summaryrefslogtreecommitdiffhomepage
path: root/packages/core/tests
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/core/tests
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/core/tests')
-rw-r--r--packages/core/tests/tools/send-to-tab.test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/core/tests/tools/send-to-tab.test.ts b/packages/core/tests/tools/send-to-tab.test.ts
index 48ff460..21d8032 100644
--- a/packages/core/tests/tools/send-to-tab.test.ts
+++ b/packages/core/tests/tools/send-to-tab.test.ts
@@ -38,8 +38,8 @@ describe("createSendToTabTool — schema & description", () => {
it("never mentions read_tab in the description when canReadTab is false", () => {
const tool = createSendToTabTool(makeCallbacks({ canReadTab: false }));
expect(tool.description).not.toContain("read_tab");
- // Still tells the agent a reply arrives on its own + to end its turn.
- expect(tool.description.toLowerCase()).toContain("arrives on its own");
+ // Still tells the agent a reply will wake it + to end its turn.
+ expect(tool.description.toLowerCase()).toContain("wake you with a new message");
expect(tool.description.toLowerCase()).toContain("end your turn");
});
});