Skip to content
PifeatureCLI & tooling5 files · +56 −41

Add bash-mode indicator to pi powerline-footer extension

Session from pi-mono-sessions on Hugging Face by thomasmustier · MIT · condensed by Coders Talk

12msession
0interventions
GOAL

Add visual feedback (a `!` indicator) to the pi-powerline-footer extension so the developer can tell when the editor is in bash-command mode, following existing repo conventions.

  1. Prompt · +0
    Set up visual feedback for bash-mode (!) in the pi powerline-footer extension, following repo conventions
  2. Agent did · +0m
    Explored the coding-agent package and extensions docs, searching for 'footer', 'powerline', and 'user_bash' to understand the footer/status APIs and existing extension conventions
  3. Agent did · +3m
    Located the local ~/.pi/agent/extensions/powerline-footer extension and read through its files (index.ts, segments.ts, types.ts, presets.ts, icons.ts, colors.ts, README.md) plus core footer-data-provider and editor components to understand how to hook into bash-mode state
  4. Agent did · +10m
    Added a 'bash' segment id and inputText context, implemented a bash segment rendering a warning-colored '!' when input starts with '!', and wired it into all presets (types.ts, segments.ts, presets.ts, index.ts)
  5. Fail · +10m
    Edit tool errored: 'leftSegments: ["model", "path", "git"]' matched two occurrences in presets.ts, ambiguous replacement
  6. Agent did · +10m
    Fixed the ambiguous edit by adding more context to disambiguate the ascii and custom presets, then updated the README to document the new bash segment
  7. Agent did · +12m
    Ran npm run check (biome + tsgo) across the monorepo and re-read all modified files to verify the changes
  8. Outcome · +12m
    npm run check passed across 372+ files; bash segment added to all presets, docs updated, no failing tests
VERDICT

I'd start by pointing straight at the powerline-footer extension path instead of letting the agent grep the whole monorepo for 'footer' and 'powerline' first — that exploration ate most of the session. The actual fix (a new 'bash' segment fed by input text) was small once it found the right files, and the ambiguous-edit error on presets.ts was resolved immediately by adding more context, so no real correction was needed from me.

I tried this · 0

Discussion · 0

How Builds work