fix(acp): sync native agent session titles (#1028)

* fix(acp): sync native session titles

* fix(acp): keep title refresh off turn path

* fix: reconcile native ACP titles with skill lookup

* fix: preserve OpenCode image tool instruction
This commit is contained in:
SSU-WEI HUANG
2026-07-24 10:59:47 +08:00
committed by GitHub
parent 72476b9cea
commit 40c1789357
14 changed files with 339 additions and 51 deletions
+9
View File
@@ -17,6 +17,15 @@ export const TITLE_INSTRUCTION = trimIdent(`
${SKILL_LOOKUP_INSTRUCTION}
`);
/**
* Tool instructions for native ACP sessions. Title updates come from ACP, so
* advertise only the MCP tools that remain available to the model.
*/
export const OPENCODE_NATIVE_TOOL_INSTRUCTION = trimIdent(`
When you create or find a local image file that the user should see, call the tool "hapi_display_image" with the image path so HAPI can show it inline.
${SKILL_LOOKUP_INSTRUCTION}
`);
/**
* The system prompt to inject for OpenCode sessions.
*/