Skip to content

status: show full managed-config box; abridge the launch banner - #357

Open
rohita5l wants to merge 1 commit into
mainfrom
status-managed-config-box
Open

status: show full managed-config box; abridge the launch banner#357
rohita5l wants to merge 1 commit into
mainfrom
status-managed-config-box

Conversation

@rohita5l

Copy link
Copy Markdown
Collaborator

What

Two changes to how the workspace-managed config surfaces:

1. ucode status shows the full managed-config box. When the managed-config feature is on (ENABLE_MANAGED_AGENT_CONFIG) and a config exists for the current workspace, status now renders the whole setup — enabled agents, provider/model, MCPs, skills, and budget tiers — as one box. It reuses the same _print_managed_summary panel that launch and configure already show, read from the local cache so status stays offline-fast.

2. Bare ucode launch trades its full box for a one-line banner. Launch runs every session, so re-printing the entire config each time is noise:

• Using managed config — launching Claude Code as the default agent with system.ai.claude-opus-4-8
  • "as the default agent" only appears when the launched agent really is the config's default_agent. A budget-tier override drops it (the existing tier note in _launch_tool explains the swap), reading e.g. launching OpenCode with haiku.
  • The with <model> clause is omitted when the config pins no model.
  • The full box stays for ucode status and ucode configure, where the reader asked to see everything.

Tests

Added 5 focused tests (3 for the status box gating: present+enabled shows it, feature-off hides it and skips the cache read, no-config hides it; 2 for the launch banner: abridged content vs. the full box, and the tier-override wording). Full test_cli.py (218) passes; lint clean.

The only failing suite test, test_e2e_user_agent, is pre-existing and unrelated (verified failing on a clean checkout with these changes stashed).

This pull request and its description were written by Isaac.

`ucode status` now renders the workspace-managed config as one box (enabled
agents, provider/model, MCPs, skills, budget tiers) whenever the feature is on
and a config exists for the current workspace — reusing the same
`_print_managed_summary` panel launch/configure already show, read from the
local cache so status stays offline-fast.

Bare `ucode` launch traded its full box for a one-line banner, since it runs
every session and re-enumerating the whole config each time is noise:

  • Using managed config — launching Claude Code as the default agent with <model>

"as the default agent" only appears when the launched agent really is the
config's default; a budget-tier override drops it (the tier note in
`_launch_tool` explains the swap). The model clause is omitted when none is set.
The full box stays for `status` and `configure`.

Co-authored-by: Isaac
@rohita5l
rohita5l requested a review from lilly-luo August 18, 2026 23:41
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