tui: compact defaults, one delegate artifact, LSP repair inspector - #4246
Conversation
|
Claude finished @Hmbown's task in 6m 15s —— View job Review complete
SummarySolid direction (compact-by-default presentation, single delegate artifact, and a real LSP repair-loop signal for the Turn Inspector), but I found three correctness issues in the new event-driven state, all missed by the added tests because those tests exercise the pure render functions with hand-constructed state rather than the actual event → state reducer. Findings1. if self.name == "agent" {
if agent_activity::is_agent_inspection(self) {
return agent_activity::render_agent_compact(self, low_motion);
}
// Spawn / start / run: suppress the generic tool card entirely.
return Vec::new();
}This returns nothing for any non-inspection Fix: gate the suppression on status, e.g. only suppress when 2. Diagnostic counts are double-counted —
repair.diagnostics_found = repair.diagnostics_found.saturating_add(diagnostics_found);
repair.files_touched = repair.files_touched.saturating_add(files);So on the normal find-then-inject path, every real diagnostic is counted twice — the Turn Inspector will show "Found 4 diagnostics across 2 files" for what was actually 2 diagnostics in 1 file. 3. The "resolved" repair state is unreachable in production —
Notes (not blocking)
|
|
I'll analyze this and get back to you. |
CI fix pushedFailed: Root cause: #4095 compact defaults + #4133 spawn suppress left stale tests — calm preset still expected Comfortable spacing, env-override tests assumed animated Fix: CI re-running on the new head. |
Calm preset expects compact spacing, env-override tests start from an animated baseline after #4095, and agent history tests cover inspection compact lines while spawn cards stay empty for DelegateCard. Also rustfmt the updated history fixtures.
|
I'll analyze this and get back to you. |
|
Follow-up: rustfmt + rewrote tip commit(s) to drop |
d11e86a to
4dac753
Compare
|
Claude finished @Hmbown's task in 1m 57s —— View job Re-review after CI fix push
SummaryThe new commit (
None of these were part of the CI failure being fixed (the CI fix was purely aligning tests to the already-existing compact-default/spawn-suppress behavior, per the commit message), so it's expected they're untouched — flagging so they aren't lost before merge. Recommend addressing at least #1 (silent spawn failures are a real UX regression) before this lands; #2/#3 affect the new Diagnostics inspector's accuracy but aren't a regression from prior behavior since the feature is new in this PR. CI on the new commit is still running as of this review ( |
CI fix — compact defaults / #4133 spawn suppress test driftCause: #4095 compact/calm defaults + #4133 “one DelegateCard artifact per spawn” left 9 tests on the old animated defaults and spawn-as-generic-tool-card expectations (calm preset Fix (pushed):
Local verify: previously failing 9 tests now pass (11 related tests green). |
|
✅ Post-fix CI: Test (macos/windows/ubuntu), Lint, Version drift, Mobile smoke all green on |

Summary
calm_mode,low_motion,show_tool_details=false,transcript_spacing=compact). Verbose/detail remains opt-in via/verboseand settings.agentspawn tool cards render empty soDelegateCardis the single visible artifact; peek/status/wait stay as one compact line.LspRepairUpdate; Turn Inspector Diagnostics section shows found/injected/repair/latest when LSP produced diagnostics (quiet otherwise).work_updatetool is a larger tools/prompt change; left open.Test plan
default_settings_are_compact_presentationagent_spawn_suppresses_generic_card_in_favor_of_delegate_cardagent_inspection_stays_compact_in_transcript_modeturn_diagnostics_lines_quiet_when_no_activity/turn_diagnostics_lines_summarize_repair_loopapply_preset_calm_sets_bundle_and_preserves_evidenceRefs #4095 #4133 #4107 #4102
Made with Cursor