← Back to PRs

#7671: feat(status): add dedicated Model row to /status output

by terry-li-hm open 2026-02-03 03:20 View on GitHub →
commands stale
## Summary - Add prominent "Model" row after "OS" row showing default model and context tokens - Simplify Sessions row by removing redundant model info - Add Model row to `/status --all` for consistency - Add test assertions verifying Model row appears in output Closes #7637 ## Changes | File | Changes | |------|---------| | `src/commands/status.command.ts` | Add Model row, simplify Sessions row | | `src/commands/status-all.ts` | Add Model row for consistency | | `src/commands/status.test.ts` | Add test assertions for Model row | ## Testing - [x] `pnpm build` passes - [x] `pnpm test src/commands/status.test.ts` passes (5/5 tests) - [x] Linting passes ## Before / After **Before:** ``` Sessions: 3 active · default anthropic/claude-opus-4-5 (200k ctx) · /path/sessions.json ``` **After:** ``` Model: anthropic/claude-opus-4-5 (200k ctx) Sessions: 3 active · /path/sessions.json ``` --- [![Compound Engineered](https://img.shields.io/badge/Compound-Engineered-6366f1)](https://github.com/EveryInc/compound-engineering-plugin) 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- greptile_comment --> <h2>Greptile Overview</h2> <h3>Greptile Summary</h3> This PR updates the human-readable `/status` and `/status --all` outputs to add a dedicated **Model** row (and removes the redundant default model info from the Sessions overview line). It also adds a couple of assertions in `status.test.ts` to confirm the model appears in the formatted output. Most of the change is localized to how the Overview rows are assembled in `src/commands/status.command.ts` and `src/commands/status-all.ts`, plus a small test update. The behavior for `--json` output is unchanged. <h3>Confidence Score: 4/5</h3> - This PR is generally safe to merge; changes are mostly presentation-level with minor consistency/test robustness concerns. - Review found no obvious runtime hazards in the new `/status` row construction, and tests were updated. Main concern is that `/status --all` now derives the model from config and omits context-token info, so the new Model row can disagree with `/status` and the PR description goal. A smaller concern is the looseness of the new test assertion which could pass for unrelated output changes. - src/commands/status-all.ts; src/commands/status.test.ts <!-- greptile_other_comments_section --> <sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub> **Context used:** - Context from `dashboard` - CLAUDE.md ([source](https://app.greptile.com/review/custom-context?memory=fd949e91-5c3a-4ab5-90a1-cbe184fd6ce8)) - Context from `dashboard` - AGENTS.md ([source](https://app.greptile.com/review/custom-context?memory=0d0c8278-ef8e-4d6c-ab21-f5527e322f13)) <!-- /greptile_comment -->

Most Similar PRs