Skip to content

Compact gx status banner with context-aware next-step hint#409

Merged
NagyVikt merged 1 commit intomainfrom
agent/claude/improve-gx-bare-output-2026-04-23-23-58
Apr 23, 2026
Merged

Compact gx status banner with context-aware next-step hint#409
NagyVikt merged 1 commit intomainfrom
agent/claude/improve-gx-bare-output-2026-04-23-23-58

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Automated by gx branch finish (PR flow).

- Collapse `Global services:` to `N/N ● active` when stdout is a TTY and
  every service reports active; keep the expanded list for degraded
  repos, piped output, and `gx --verbose` / `GUARDEX_VERBOSE_STATUS`.
- Add `GUARDEX_COMPACT_STATUS=1` override so the compact banner can also
  be exercised in non-TTY paths (tests, CI snapshots, screencasts).
- Emit `[gitguardex] Next: …` before the help tree with a hint derived
  cheaply from current branch, `.omc/agent-worktrees` + `.omx/agent-
  worktrees` directory count, guardex toggle, and scan state. Surface an
  `⚠ N active agent worktree(s) → <invoked> finish --all` line on the
  base branch when any sandbox is live.
- Rename the help-tree title from `<TOOL>-tools logs:` to
  `<invoked> help:` and thread the invoked basename (gx / gitguardex /
  guardex) through `usage(...)` + the trailing `Try '<invoked> doctor'`
  pointer so branding matches the command the user actually typed.
- Add `getInvokedCliName()` helper and export it from `src/output`.
- Update `test/status.test.js`: default bare-gx assertions match the new
  grouped COMMANDS tree + `gx help:` title; two new tests cover compact
  mode via `GUARDEX_COMPACT_STATUS=1` and `--verbose` forcing the
  expanded services list back on.
- Bump `@imdeadpool/guardex` to `7.0.29` so the new banner ships as a
  publishable release; change notes live in
  `openspec/changes/agent-claude-improve-gx-bare-output-2026-04-23-23-58/`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@NagyVikt NagyVikt merged commit 993b491 into main Apr 23, 2026
@NagyVikt NagyVikt deleted the agent/claude/improve-gx-bare-output-2026-04-23-23-58 branch April 23, 2026 22:23
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