Repository navigation
fix: keep session titles stable after the opening task - #185337
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9c424bedfd
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "displayName", | ||
| "titleRefinement", | ||
| "delivery", |
There was a problem hiding this comment.
Keep the retired title field reserved for plugin slots
A plugin registering sessionEntrySlotKey: "titleRefinement" is now accepted because this key is removed from the reserved list without being added to RETIRED_SESSION_SLOT_KEYS. However, patchPluginSessionExtension in src/plugins/host-hook-state.ts writes the projected value into that top-level field, and the updated projectCanonicalSessionEntryShape unconditionally strips it during persistence. The patch therefore reports success while its promised session-entry projection disappears. Move the key into the retired-key set so registration rejects this unusable slot, as it does for other retired fields.
Useful? React with 👍 / 👎.
|
Codex review: blocked before merge. What this changesThis PR removes automatic title refinement after follow-up messages while preserving initial naming and explicit renames. Example: A conversation starts as “Release planning” and receives seven follow-up requests to land and archive a PR.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 3 items remain Keep open: this maintainer-backed simplification restores stable titles, but the retired field becomes a valid plugin slot whose projection is silently discarded. Priority: P2 Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherThe Control UI supplies opening-task title inputs to Gateway session creation; the existing naming owner generates and persists a display name that session projections deliver to the sidebar and header. flowchart LR
A[Control UI opening task] --> B[Session creation]
B --> C[Existing title owner]
C --> D[Title model]
D --> E[Guarded session write]
E --> F[Sidebar and header]
G[Explicit rename] --> E
Technical reviewBest possible solution: Keep initial naming and explicit renames under their existing owners, and move titleRefinement into the existing retired plugin-slot set. Do we have a high-confidence way to reproduce the issue? Current main visibly counts eligible follow-ups and permits one generated-title replacement; the PR reports a handler regression failing on the base and passing on the head, which this read-only review did not execute. Is this the best way to solve the issue? Deleting refinement from the existing naming owner is the smallest complete implementation of the approved direction; client-input compatibility is retained, but the retired slot reservation must also remain. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 46a4495487f2. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource -145, Tests -81, Docs -1. Total -227 across 22 files. Added test files: 0. View PR surface stats
Review metrics
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 26, 2026, 10:48 PM ET / October 27, 2026, 02:48 UTC. |
|
The iMessage failure is pre-existing on main. The coordinator reproduced Exact-head CI run 40442632933 is complete. All other jobs passed or skipped, including all three PostgreSQL conformance jobs; the aggregate gate is red from this failure. The coordinator authorizes the native pre-existing-failure squash-landing exception. No CI rerun was requested. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* fix: keep session titles stable after the opening task * fix(protocol): remove unshipped generated title flag
|
Follow-up proposal: #197334 brings the reset and refinement behavior together for Telegram private topics and Dashboard conversations. The intended flow is simple: the first real task names the conversation; six follow-up task messages give the utility model one chance to improve the current name. Commands do not count. After This deliberately revisits the removal in #185337 rather than adding a separate, competing refinement path. Related context: #184821, #174317 and #183368. The proposal is deployed locally for testing. The new PR includes focused tests and a real Telegram screenshot showing a retained topic name through reset, model selection and the next ordinary message; full live refinement coverage is not claimed. |
What Problem This Solves
Later prompts could unexpectedly rename a Dashboard conversation after six follow-up tasks, replacing the sidebar title without an explicit rename.
User Impact
A conversation keeps the title inferred from its opening task. Only an explicit rename through
sessions.patchchanges it afterward. Existing session rows with the retired refinement marker still load; no Doctor action is needed.Why This Change Was Made
Delete the countdown, recent-context title generation, overwrite path, persisted marker, and obsolete tests. Keep the existing title owner for first-task naming and explicit patches for renames. Preserve registered-skill task selection from #174317 because initial naming still needs it.
Remove the unshipped
sessions.create.displayNameGeneratedinput from the schema, generated validators, Dashboard callers, and pending-placement reader. The releases v2026.10.7 and v2026.10.10-beta.3 did not contain it, so no shipped protocol contract requires compatibility. A pending browser placement draft from the unreleased refinement implementation may be discarded by validation; existing session database rows remain readable.Related: #174317.
Evidence
The Gateway-handler regression creates an automatically named conversation, sends seven follow-ups, and explicitly renames it through
sessions.patch. On the base it fails because the title becomesLand PR and archiveinstead of retainingRelease planning. The legacy-row admission regression also fails on the base because it exposes the retired marker.Focused checks pass: 66 Gateway/storage tests, 41 UI domain tests, and all three existing title-page browser cases. Core/UI typechecks, targeted oxlint, formatting, and
git diff --checkpass on the original implementation. The follow-up schema and placement-recovery suites pass all 28 tests. Compiled protocol validators were regenerated withpnpm gateway:validators:gen;pnpm protocol:genalso succeeds. Follow-up core/UI typechecks, targeted oxlint, formatting, andgit diff --checkpass. Exact-head CI is being checked before landing.The focused Gateway/storage invocation took 250.08 seconds including worker compilation and teardown; UI proof took 29.91 seconds including the browser build. The seven-follow-up regression took 19.255 seconds; its existing creation-title file totals 44.451 seconds of reported case time because it also covers worktree failures and remote-session lifecycle. That RPC/storage boundary catches the original unsolicited rename; a cheaper helper-only test would miss caller scheduling. The older-row decoder case reported 0ms in the passing run. Follow-up schema/recovery proof took 38.47 seconds across three files.
Proof uses isolated synthetic state and fixed model output; no production Gateway, real user state, or external model service is involved. No rendering or styling code changes. The existing browser cases cover initial-title creation; the seven-follow-up stability regression runs at the Gateway handler boundary.
CI classification
Exact head
73e0b51e6e21c0bf833e993df04b2c68b3002c1eis mergeable. CI run 40442632933, attempt 1 is complete: 71 jobs passed, 21 skipped; only checks-node-changed-extensions-bundle-5 and its aggregate gate failed. All three PostgreSQL conformance jobs passed.The iMessage failure is pre-existing on main. The coordinator reproduced the same rich-link final-delivery case and expected-one-
sendassertion on unchanged main at merge basece503a58dad3b06cfba1cc357bab3e5a0435f024and on this exact PR head: both runs returned 1 failed / 2 passed. Native requests weresendthenchats.list. Main push CI does not select that changed-extensions shard, explaining the automatic report's unknown classification. No iMessage source or assertion is changed here. A separate lane owns its repair.Coordinator classification and landing authorization. Landing uses the native pre-existing-failure exception, retaining the failed CI result and all review/security gates. No CI rerun was requested.
The final change removes 235 net lines across 24 files: production +20/-173 (net -153), tests +44/-125 (net -81), documentation +3/-4 (net -1).