Skip to content

fix(status): add space after AM indicator; add statusStyle setting to reduce noise - #8

Open
alexander-potemkin wants to merge 2 commits into
czottmann:mainfrom
alexander-potemkin:fix/status-line-spacing-and-minimal-mode
Open

fix(status): add space after AM indicator; add statusStyle setting to reduce noise#8
alexander-potemkin wants to merge 2 commits into
czottmann:mainfrom
alexander-potemkin:fix/status-line-spacing-and-minimal-mode

Conversation

@alexander-potemkin

Copy link
Copy Markdown

Summary

Two small improvements to the status line:

  1. Add space after AM indicatorAM●AM ●, consistent with pi-landstrip's ● Sandbox styling. One-character fix in the template literal.

  2. Add statusStyle setting"full" (default, current behavior) or "minimal" (show AM ● alone until the first action is checked or blocked, then show counters). Eliminates a:0 d:0 startup noise while preserving the diagnostic signal when the classifier blocks something (d:1 prompts you to check /automode denials).

Why

The a:0 d:0 counters at session start add visual noise with no informational value — nothing has been classified yet. But completely hiding the counters loses the signal when denials happen. The "minimal" style is the middle ground: quiet at start, informative once the classifier is active.

The spacing fix is cosmetic but makes the footer consistent across extensions.

Changes

  • extensions/auto-mode/state.ts: add space in template literal; respect statusStyle setting
  • extensions/auto-mode/types.ts: add StatusStyle type, statusStyle fields in AutoModeSettings and EffectiveConfig
  • extensions/auto-mode/config.ts: read statusStyle in buildEffectiveConfigFromSources and applyAutoModeScalars; default "full"
  • tests/auto-mode.test.ts: update existing tests for spacing; add tests for minimal/full styles and config precedence
  • README.md: document statusStyle

Backward compatibility

Default is "full" — existing users see no behavior change except the added space (AM●AM ●). The space-only change is cosmetic and unlikely to break anyone parsing the status line (it's a display string, not a machine interface).

@alexander-potemkin

Copy link
Copy Markdown
Author

Hi! The PR is prepared with LLM - but I'm here to take all the shame and responsibility, if something is off!

And thank you for the extension!

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