Skip to content

Inspector tabs: one job per tab, config moved to Settings - #1442

Merged
currentbits merged 22 commits into
mainfrom
coder/inspector-tabs-redesign
Oct 4, 2026
Merged

currentbits merged 22 commits into
mainfrom
coder/inspector-tabs-redesign

Conversation

@currentbits

Copy link
Copy Markdown
Owner

Part 2 of #1422. Stacked on #1424 (inspector performance); merge that first and this retargets to main. Spec: docs/superpowers/specs/2026-10-03-inspector-tabs-design.md. Plan: docs/superpowers/plans/2026-10-03-inspector-tabs-redesign.md.

What changed

Each tab gets one job, a fixed layout, and the shared InspectorSection / InspectorBanner style. The banners use #1434's marker-yellow accent. Duplicates are removed, and configuration moves to Settings.

  • Environment:
    • Status header: branch, ahead/behind, Sync, Pull, N changed files ›, the PR link, a one-line recap, and Finder / Editor / repo icon links. Source-control and remote notices appear inline only when relevant.
    • Sections: Run (dev server, verification, local servers), then Checkpoints (collapsed), then Lanes (collapsed when there are none, hidden for remote projects).
    • Removed: drag-to-reorder (envSectionOrder); a stale saved order is ignored. Also removed: the Fork, Pull requests, Repository and Changes cards, the footer, Display and Spotlight.
  • Agents:
    • Session line: provider · status · turns · cost, plus tokens and the session id.
    • Crew leads: Team first, with Integrate / Verify / Land under it.
    • Workers: a Lead: … › line.
    • Other sections: Tasks and Subagents, and Hypotheses (collapsed). Empty sections are hidden.
  • Memory: search, type and + on one row. A N memories need review › banner appears only when the queue is non-empty. The list is unchanged. The footer shows consolidation status and a Code map & config doctor › link.
  • Skills: search, one filter menu (instead of 11 chips), Manage ›, a drift banner holding Sync, and the installed list.
  • Thread header: Fork / Hand off to…, hidden while the thread is working. Before this it was only in the sidebar card menu.
  • Settings:
    • General: a Display group (same uiPrefs keys, so existing preferences carry over).
    • Git: per-project Spotlight with a project picker.
    • Memory: Project tools (Code map, Config doctor) with a project picker.
    • New Skills & MCP pane: catalog, MCP servers, import, Add skill. These components moved unchanged.

The perf branch's AgentsContent behaviour is untouched: scoped summaries, the debounced isCrewLead effect, and the integrationSeq guards.

Verification

  • tsc clean, renderer 2712/2712, electron 4107/4107, vite build OK.
  • Screenshot pass of all four tabs, the header and the new Settings panes in the dev renderer: matches the design, zero console errors.
  • Every task had a spec and quality review, plus a final whole-branch review. Its fixes are applied:
    • the session id is restored;
    • the review queue shows "Loading…" instead of a premature "Nothing left to review";
    • Skills action errors clear on retry;
    • closing Settings no longer resets the Skills list;
    • the banners no longer use a live-region role.

Open decision

With an empty memory review queue, the "auto-resolved" activity summary has no entry point anymore; before, a Review chip showed it. This was plan discrepancy 10. It needs the owner's call: accept it, or add a small count-less banner that shows only the activity line.

🤖 Generated with Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Willem and others added 22 commits October 4, 2026 15:43
…ft banner

- SkillsTab reloads on a refreshKey bump; App bumps it when Settings
  closes, so installs/imports/adds made in Settings & MCP are no longer
  stale behind the modal.
- The filter menu's <details> now closes on Escape (refocusing its
  summary) and on an outside pointerdown, via a document listener scoped
  to while it is open.
- Drop the aria-label that duplicated (and could drift from) the visible
  "Filter · N" count.
- Split load errors from action errors so a failed Remove/Sync no longer
  hides the drift banner; only a failed load does.
- Add coverage for the Added <name> status message in SkillsManager.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The filter menu's Escape handler only preventDefault'd, so the native
keydown still bubbled to App.tsx's window-level Escape listener and closed
the whole drawer. stopPropagation on the handling branch is enough since
App's listener is bubble-phase (React's stopPropagation calls native
stopPropagation before the event reaches window).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…, recap)

Rebuilds GitTab's Environment pane as a fixed Status header: branch,
Sync/Pull, an "N changed files ›" link (fetchDiff-backed) that opens Git,
the PR link, the one-line recap, inline source-control/remote notices, and
small Finder/Editor icon links. Replaces the old Recap/Pull/Repository/Scm
cards and the Changes card with this single header; Finder/Editor become
icon buttons per the 2026-10-04 decision to keep them (no other home).

GitTab drops onOpenPrs/prsActive/providers/onFork/spotlight/setSpotlight and
gains fetchDiff, wired through AgentsPanel and App.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MergeQueueCard and CheckpointsCard now render through InspectorSection
(collapsible, with a count badge) instead of a bare gitCard section.
Checkpoints start collapsed; Lanes starts open only once a lane exists.
MergeQueueCard drops setSpotlight and reads the project's spotlight flag
directly; the opt-in checkbox moved to Settings -> Git in Task 2.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
appWiring: the PR-opener test now asserts the sidebar Review nav is the
pull-requests home, not an Environment card (data-open-prs is gone).
forkHandoff: adds a test proving the inspector has no Fork card and the
header / card menu are the only Fork homes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ers, collapsed hypotheses

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ettings

The Memory tab becomes one toolbar row (search, type, +), a review banner
that opens into the needs-your-call queue, the memory list, and a footer
line (scope, consolidation status, Code map & config doctor link into
Settings -> Memory). Code map and config doctor (MemoryProjectTools) left
the tab in Task 2; MemoryTab.tsx no longer renders them, and their test
coverage moves to test/memoryProjectTools.test.tsx (moved verbatim, mount
swapped to <MemoryProjectTools>). Also drops the extra nested div.secondary
wrapper Task 2's reviewer flagged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
envSectionOrder.ts (and its coder.envSectionOrder localStorage key) is
deleted along with its unit test; the environment section order is now
fixed by spec and nothing reads the stale key. ForkCard (unused since
the Environment rebuild) and LABEL_ICON_PROPS go with it. AgentsPanelProps
drops the settings/MCP/skills-import/harness-import/agent-config props
that only ever lived in the interface, plus activeView, onOpenPrs, onFork,
spotlight and setSpotlight; App.tsx drops the matching <AgentsPanel> props.
skillsLibrary.ts drops the unused SkillsView type.

Also: MergeQueueCard's remote prop was never passed by the app (the
caller already decides whether to render the card at all), so it and
its one test case are gone. EditorCard's hasThread hint was unreachable
from GitTab (called only after an early "no thread" return), so it and
its no-thread test are gone too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
AgentsPanel.module.css, MemoryTab.module.css and SkillsTab.module.css
carried classes for components and markup earlier tasks already removed
(the EnvSection drag chrome, the old sessionCard/teamSection/gitCard
cards, the Fork handoff menu, the inline PR form, the Pulse tab, and a
few older leftovers like reviewChip/sectionHead/cardHead and the Skills
filter-chip row). Deleted rule-by-rule, verified by re-running the
styles.<class> / styles["<class>"] usage scan from the task brief until
all four inspector CSS modules report no dead classes.

deCardUi.test.ts's "drop --border tiles" case swaps its now-deleted
sessionCard/gitCard/teamSection tuples for Inspector.module.css's
section/banner, keeping the same assertion; workflow stays since it is
still used.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ged-files labels

Adds a case that seeds localStorage["coder.envSectionOrder"] with a
reversed order before mounting GitTab, asserting the section order
stays Status/Run/Checkpoints/Lanes per spec now that nothing reads the
key. Also covers the changed-files label's singular/zero wording
(0 -> "No changed files", 1 -> "1 changed file"), previously only
exercised at n=3.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The redesign dropped shortSessionId from the session line; nothing else
in the UI exposes it, and it's needed to resume from the CLI. Renders
in the muted tokens line, appended with its own separator, and shows
even when there's no usage yet.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Opening the review banner rendered "Nothing left to review." until the
full load returned, because the queue items array was empty before
detailLoaded flipped true. Gate the empty state on detailLoaded and
show Loading… while it's still pending.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
reload()'s success path cleared loadError but not actionError, so a
failed Remove left its error banner on screen even after a Retry
reload succeeded. Clear both in the same place.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… the list

Every refreshKey bump cleared skills, expandedKeys and confirmRemove,
so each Settings close flashed Loading… and collapsed any expanded
row. Split into two effects: the projectPath/listSkills-driven reload
keeps its full reset; a separate refreshKey effect only calls reload()
(skipping the initial mount, already handled by the first effect).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
It's an actionable control (a button with a label), not a live
update region.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This repo is public; /Users/willem/... paths and an npx cache path in
the worktree-setup snippet and the screenshot script leaked the local
username. Replace with ~/code/coder/... and a generic reference to the
npx-cached playwright package.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@currentbits
currentbits force-pushed the coder/inspector-tabs-redesign branch from be07383 to 42f59cf Compare October 4, 2026 13:44
@currentbits
currentbits changed the base branch from coder/inspector-performance to main October 4, 2026 13:44
@currentbits
currentbits merged commit 539afb0 into main Oct 4, 2026
6 checks passed
@currentbits
currentbits deleted the coder/inspector-tabs-redesign branch October 4, 2026 13:54
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