diff options
| author | Adam Malczewski <[email protected]> | 2026-06-02 15:30:42 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-02 15:30:42 +0900 |
| commit | 9c89ec9db22d0a7226c36b62640addc00918029b (patch) | |
| tree | 35ae0c91b27ec7e6aeea7800f8987fe1db268950 /packaging/[email protected] | |
| parent | c0c08720cceb75b5e635e71190ae1f956f535133 (diff) | |
| download | dispatch-9c89ec9db22d0a7226c36b62640addc00918029b.tar.gz dispatch-9c89ec9db22d0a7226c36b62640addc00918029b.zip | |
fix(tabs): advertise send_to_tab/read_tab in the agent system prompt
Granted tab-messaging tools were registered in the API tool payload but
buildSystemPrompt built its 'You have access to the following tools' list
by filtering toolNames through TOOL_DESCRIPTIONS, which had no entries for
send_to_tab/read_tab. The model was therefore told it lacked those tools
and refused to use them even when explicitly granted.
Add the two missing TOOL_DESCRIPTIONS entries so the capability list
matches the granted toolset. Add regression tests that capture the
constructed Agent's systemPrompt and assert the tab-messaging tools are
listed when granted (and omitted when not), locking the prompt list to
the schema list so they can't drift again.
Diffstat (limited to 'packaging/[email protected]')
0 files changed, 0 insertions, 0 deletions
