@starpivot/dsh-session-title
v0.1.0
Published
Settings page for auto-title prompt and optional title model; host intercept of purpose=session-title LLM calls
Readme
@starpivot/dsh-session-title
Settings → Session title: change the auto-title system prompt at any time, and optionally pin the title model.
The default prompt is a ticket-style Chinese instruction. An empty prompt keeps the DSH built-in English short instruction. Restore default writes only that prompt; it does not change the model choice.
Behavior
- Timing is still one title after the first eligible user message (human or Host Automation). Later messages do not retitle; a sidebar rename pins the title.
- The title model follows the current conversation route by default. The settings page can pin an installed model.
- If the pinned route is unavailable: fall back to the conversation route and warn on the host.
- The host intercepts LLM calls with
purpose: 'session-title'. FrozenGenerateOptionsare cloned before dispatch; the original object is not mutated. session/title-llm-requestmay still record the helper's original system/route; the dispatched envelope is the clone.
Install
dsh plugin --profile web add github:StarPivotNet/dsh-plugins-public#path:packages/session-title
# or
dsh plugin --profile web add @starpivot/dsh-session-titleThen restart dsh web. Refresh the page to see the settings section.
Verify
node scripts/policy.test.mjs