Repository navigation
fix: name sessions started with skill commands - #173664
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThe PR generates session titles from registered skill-command arguments and skips earlier control-only messages. Example: Start a dashboard session with the registered command
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR addresses a current title-selection defect, and review found no actionable correctness or security findings. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherGateway creation and chat handlers pass messages into the title owner, which selects bounded task text from current input or session history, requests a label, and stores displayName for session presentation. flowchart TD
A[Creation and chat requests] --> B[Session title owner]
C[Registered skill commands] --> D[Shared task source selector]
E[Memory or durable history] --> D
B --> D
D --> F[Existing label generator]
F --> G[Session displayName]
G --> H[Sidebar and session events]
Technical reviewBest possible solution: Retain the shared registered-command selector and existing title persistence owner, then land through the normal CI gates. Do we have a high-confidence way to reproduce the issue? Current main visibly rejects registered slash-command starts and retains an earlier control message as the historical source; this read-only review did not execute target code. Is this the best way to solve the issue? The implementation repairs source selection through the existing dispatch parser and both history backends while preserving explicit-name precedence, attachment handling, worker ownership, and bounded reads. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5e2975df3778. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +78, Tests +349, Other +15. Total +442 across 18 files. Added test files: 2. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 15, 2026, 11:02 PM ET / October 16, 2026, 03:02 UTC. |
|
Merged via squash.
|
* fix: name sessions started with skill commands * fix: close title-source wrapper and timeout test boundaries * fix: avoid wrapper inventory append conflict
What Problem This Solves
Fixes sessions remaining named ‘New session’ when the first task is sent through a registered skill command, or an earlier control-only message precedes the task.
User Impact
User impact: task-bearing skill conversations receive automatic sidebar titles, while control-only conversations remain unnamed. Explicit names and attachment-derived titles are preserved. No configuration or migration is required.
Why This Change Was Made
Select title text through the same registered skill-command metadata used for dispatch, and select the first usable task consistently across in-memory and persisted history. Keep per-attempt command metadata out of the stable sidebar title cache.
Evidence
All touched test files were audited: retained distinct routing, authority, cancellation, persistence and fallback cases; removed duplicate mocking and redundant single-case table branches; shared the existing local-provider fixture instead of bypassing production title generation.
Independent API-direct review completed. Both raised concerns were checked against the owning code: skill discovery already applies the effective agent allowlist in
resolveCommandSkillLoadOptions; both memory and durable title readers intentionally preserve the existing 100-event prefix budget. The fix does not remove that bound, and a current task can still supply the title when history has no usable source. No review-suggested production changes were necessary.Additional graph typechecking passed Gateway, agent, infra, state/logging, command, plugin/platform, config/CLI, messaging and service graphs before the bounded overall run terminated; this is not a full test-graph typecheck pass. Broad proof is left to PR CI.
CI exposed two affected boundary fixtures, now repaired with red-before/green-after proof: the native wrapper inventory includes the 15 new transitive sources (both closure tests pass), and the discussion timeout test waits for actual inference to start before advancing fake time (all 8 discussion tests pass; late settlement notifications remain asserted). That entire test file was audited and an identical duplicate mock removed. Fresh API-direct review of this repair delta reported no actionable findings.