Repository navigation
refactor: extract helpers that agent-status files need room for - #30260
Conversation
No behavior change. Moves cohesive pieces out of files at their line limit so the OSC 7501 program-status work on top reads as additions: - pane-agent-identity: the confirmed-shell tab-title reset - SortableTab: its activity-status selector, into useTerminalTabActivity - agent-status-event-applicator: the Pi provider-session partial update - terminal-derived-agent-facts: resolving a PTY's status target panes - server-row-ownership: notifying row-mutation listeners
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to
|
ELI5
Moves five small pieces of code into their own helpers so the files they lived in have room for the OSC 7501 work stacked on top. Nothing behaves differently.
What Changed
No user-visible change. Five extractions, each moved as is:
pane-agent-identity.ts: the confirmed-shell tab-title reset, nowconfirmed-shell-agent-title.tsSortableTab.tsx: its activity-status selector, now theuseTerminalTabActivityhookagent-status-event-applicator.ts: the Pi provider-session partial update, nowagent-status-partial-updates.tsterminal-derived-agent-facts.ts: resolving which panes a PTY's status belongs to, nowresolveTerminalAgentStatusTargetsserver-row-ownership.ts: notifying row-mutation listeners, nownotifyStatusRowMutationListenersWhy
Each of these files sits at its
max-lineslimit, and the next PR adds to every one of them. Extracting first, rather than disabling the rule or splitting during the feature PR, keeps the feature diff purely additive and this one easy to verify as a move.Stack:
Linked Issue
N/A (maintainer change; no pre-existing issue)
Visual Proof
N/A: pure refactor with no visual or interaction change.
Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Existing tests: the terminal-pane, tab-bar, IPC-hook, agent-hooks and runtime suites pass (10,265 tests). The one failure,
orca-runtime.test.ts(badgeColor on runtime cloneRepo), also fails onmain.No new tests: behaviour is unchanged.
Static checks: typecheck and lint are clean.
AI Disclosure
Review
Agent skill upstream boundary
Notes
No security, platform, SSH, mobile or compatibility impact; code moves only.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)