Repository navigation
A session can be titled on demand: POST /session/:sessionID/title - #12
Merged
Merged
Conversation
…st-turn title core Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…nt no-op Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…mand title reads only its message window Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ages Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…model when the bound is missing Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 72 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
…itle through the fake model Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
POST /session/:sessionID/titleruns opencode's title agent over the newest 1-50 real messages of a session on demand, with an optional compare-and-set on the current title. DocuMentor titles a project discussion before any turn, so opencode's first-turn title never runs for it; DocuMentor also offers Suggest a title on any chat.The first-turn step (
ensureTitle) and the route share onegenerateTitle. Input errors (child_session,no_messages,unknown_model) are a 400.The fake model server (
test/lib/llm-server.ts) serves a title request from a queued entry whosematchfits it before the fixed "E2E Title" answer; the SDK is regenerated;documentor/FORK.mddocuments the changed upstream files.Spec:
docs/superpowers/specs/2026-10-22-session-title-on-demand-design.mdinTheFabFab/KPG.Local runs:
prompt.test.ts79 pass / 1 pre-existing skip,httpapi-session.test.ts25/25, the OpenAPI/SDK tests 36/36,bun turbo typecheckandcheck:generatedgreen.🤖 Generated with Claude Code