summaryrefslogtreecommitdiffhomepage
path: root/packages/api
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-02 15:55:12 +0900
committerAdam Malczewski <[email protected]>2026-06-02 15:55:12 +0900
commite4379da8d1e8c7a8a89c63bdaaef99a74bf56cf2 (patch)
tree652c8bea110add9447057d0f2bf4038e91d39877 /packages/api
parentaa295e82197ebc77d9466eee28380bc5bcc0863d (diff)
downloaddispatch-e4379da8d1e8c7a8a89c63bdaaef99a74bf56cf2.tar.gz
dispatch-e4379da8d1e8c7a8a89c63bdaaef99a74bf56cf2.zip
fix(tabs): say a reply will WAKE you with a new message (clearer than 'arrives on its own')
Matches actual behavior: a peer's reply wakes this tab with a new message in a later turn. Updated the send_to_tab description (both canReadTab branches), the delivery-result text (both branches), and the system-prompt one-liner; updated the test assertion accordingly.
Diffstat (limited to 'packages/api')
-rw-r--r--packages/api/src/agent-manager.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/api/src/agent-manager.ts b/packages/api/src/agent-manager.ts
index 3d233fc..684f8ec 100644
--- a/packages/api/src/agent-manager.ts
+++ b/packages/api/src/agent-manager.ts
@@ -84,7 +84,7 @@ const TOOL_DESCRIPTIONS: Record<string, string> = {
youtube_transcribe:
"Fetch the transcript/subtitles for a YouTube video. Set background=true to start in the background and get a job_id for later retrieval.",
send_to_tab:
- "Send a message to another tab (agent) by its short ID, as shown in the tab bar. Fire-and-forget: it queues/wakes the target and returns immediately without waiting for a reply. Do NOT sleep, poll, or run commands to wait — a reply arrives on its own in a later turn; if you are only waiting, end your turn.",
+ "Send a message to another tab (agent) by its short ID, as shown in the tab bar. Fire-and-forget: it queues/wakes the target and returns immediately without waiting for a reply. Do NOT sleep, poll, or run commands to wait — if the target replies it will wake you with a new message in a later turn; if you are only waiting, end your turn.",
read_tab:
"Read another tab (agent)'s most recent completed response by its short ID. Returns a non-blocking snapshot; if the target is still running you get its previous completed turn. Use after send_to_tab to collect a reply.",
};