Repository navigation
fix(backends): clean host context from Claude session titles - #4022
Conversation
|
Collision check for head |
|
Refreshed head |
|
Current head |
|
Current head |
|
Current head |
|
Current head |
|
Current head |
|
Current head |
|
Current head |
|
Refreshed head |
|
Refreshed head |
|
Candidate confirmation passed on run 43758006657, head Squash |
|
Automatic main push run 43760470794 passed at squash Read each of the 16 executing jobs' checkout logs: every
The squash parent/tree match candidate proof as recorded above. #3789 is closed, both issue and PR retain milestone |
Closes #3789
What changed
Claude sessions without a custom title or SDK summary now display the user's first prompt without its complete trailing host-context block. New archives store the cleaned fallback, and existing archive titles are cleaned only when listed.
Why this shape
The shared internal helper lives beside the delimiter definitions and preserves unmatched opening text and original whitespace. Provider prompts and stored transcripts remain unchanged. Pi already takes the first line before the appended block, so it needs no change.
Proof
Continue.firstPromptmadefirst-prompt titles omit only a complete trailing host-context blockfail (5 pass, 1 fail); restored code passes all 30 original focused tests (112 assertions); after merging fix(backends): preserve archived Claude activity on restore #4023, all 32 focused tests pass (123 assertions).bun run buildpassed. Changeset names and full pending version plan validated; no major bumps.bun run check:pr --base origin/mainpassed: 993 fast tests, zero failures, plus lint/leakage and changeset gates. After the overlapping fix(backends): preserve archived Claude activity on restore #4023 archive restore change merged, a fresh preflight on1a76037241a9429b8193e1ef37386611fdef760apassed. The first preflight caught the missing internal API snapshot entry; it is now recorded.origin/main; no guard was weakened. Hosted runtime proof remains authoritative.history.tsfor failure normalization, separately from title selection; closure overlap also exists across other open PRs. Final current-head collision evidence is recorded before confirmation.{"version":1,"kind":"brain-check-pr-receipt","head":"1a76037241a9429b8193e1ef37386611fdef760a","base":"origin/main","mode":"focused","startedAt":"2026-11-15T17:02:22.730Z","finishedAt":"2026-11-15T17:03:43.542Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":15478.836812000001},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":135.2996209999983},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":97.45734200000152},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":24.451062000000093},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":65058.365203}]}Checklist
Anything left open
Nothing in the implementation scope. Native runtime verification is subject to hosted post-merge proof under the repository's hybrid CI policy.