Skip to content

feat(footer): default to a one-line plain footer with a lighter layout - #26

Merged
tt-a1i merged 1 commit into
mainfrom
footer-plain-default
Aug 20, 2026
Merged

feat(footer): default to a one-line plain footer with a lighter layout#26
tt-a1i merged 1 commit into
mainfrom
footer-plain-default

Conversation

@tt-a1i

@tt-a1i tt-a1i commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

What

Switches the default dashboard footer from the one-line powerline dashboard to a one-line plain footer:

  • DEFAULT_FOOTER_STYLE: powerlineplain
  • DEFAULT_FOOTER_LINES: cwd model thinking context cache cost throughput |flex| git prcwd git pr |flex| model context cost

Renders as:

~/project · main · PR #42          seal/glm-5.3 · ctx 25% · $0.213

Why

  • The powerline default ships ANSI256 blocks + separator glyphs that depend on Nerd Font for best rendering; plain text is readable in every terminal with no font requirements.
  • The old default crammed 9 segments into one line; the new default keeps the highest-signal items (location, model, context, cost) and drops thinking/cache/throughput, which remain available via custom ui_footer_lines.
  • Powerline / powerline-mono remain first-class presets — users who want colored blocks can opt in with one command.

Notes

  • Existing configs are untouched: users with explicit footerStyle/footerLines in my-pi-setup.json keep their settings (verified in the legacy-migration tests).
  • Updated: default constants, setup prompt copy, README defaults table, and affected tests.
  • bun run check and bun run test (713 + 29 tests) pass.

Switch the default footer from a one-line powerline dashboard to a
one-line plain footer: cwd/git/pr on the left, model/context/cost on
the right. Powerline stays available as an explicit preset for users
who want colored blocks.

- DEFAULT_FOOTER_STYLE: powerline -> plain
- DEFAULT_FOOTER_LINES: cwd model thinking context cache cost
  throughput flex git pr -> cwd git pr flex model context cost
- Update setup prompt, README defaults table, and tests
@tt-a1i
tt-a1i merged commit 696fece into main Aug 20, 2026
4 checks passed
tt-a1i added a commit that referenced this pull request Aug 20, 2026
The leaner default layout from #26 leaves room for a single status to inline
at width 80, so the old lines.length >= 2 assertion encoded placement rather
than the property it meant to protect: the status must stay visible.
tt-a1i added a commit that referenced this pull request Aug 20, 2026
* fix(plan-mode): always offer an exit from plan mode

* feat(footer): inline a single status into the first footer line when it fits

* feat(plan-mode): judge bash by command effect instead of syntax

Allow quoted literal arguments and a narrow set of read-only search and inspection tools.\nKeep shell expansion, composition, unsafe flags, and unknown effects fail-closed so plan mode cannot mutate before approval.

* refactor(plan-mode): fold short-flag clusters into one scanner

The first pass added cluster handling twice: once inside scanArguments and
once in a separate scanShortFlagClusters pass. The scanArguments branch was
not gated by program, so it silently widened git and gh too. Collapse both
into one opt-in parameter that only the file-inspection programs pass.

* test(footer): assert status visibility rather than a dedicated line

The leaner default layout from #26 leaves room for a single status to inline
at width 80, so the old lines.length >= 2 assertion encoded placement rather
than the property it meant to protect: the status must stay visible.

---------

Co-authored-by: tt-a1i <tt-a1i@users.noreply.github.com>
@tt-a1i
tt-a1i deleted the footer-plain-default branch August 20, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant