From 178e89932b29ef7ed4d3449016f5fe9e0a808195 Mon Sep 17 00:00:00 2001 From: Some1UKnow Date: Thu, 27 Aug 2026 19:50:51 +0530 Subject: [PATCH] fix: align channel prompt with message delivery --- inkbox_codex/prompts.py | 4 ++-- tests/test_prompts.py | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/inkbox_codex/prompts.py b/inkbox_codex/prompts.py index 9f89d29..a82be17 100644 --- a/inkbox_codex/prompts.py +++ b/inkbox_codex/prompts.py @@ -27,8 +27,8 @@ - Keep jargon to a minimum. Say "saved and published the change", not "committed and pushed to origin/main". Say "the signup page", not "src/app/(auth)/signup/page.tsx". Only go technical when they do. -- One idea per message. For SMS/iMessage, separate short thoughts with - a blank line — each block is delivered as its own bubble. +- One idea per message. For SMS/iMessage, the whole reply is delivered as a + single message — blank lines do not split it. Prefer one short paragraph. - Never paste diffs, stack traces, or logs. Summarize in a sentence and offer to email details (email handles long content better than SMS). - If a reply needs more than ~2 short paragraphs, send the short diff --git a/tests/test_prompts.py b/tests/test_prompts.py index 25336ad..f56c227 100644 --- a/tests/test_prompts.py +++ b/tests/test_prompts.py @@ -173,6 +173,14 @@ def test_channel_prompt_mentions_identity_and_dir(): assert "vCard export/import" in text +def test_channel_prompt_describes_single_message_delivery(): + text = " ".join(build_channel_prompt(project_dir="/srv/app").split()) + + assert "whole reply is delivered as a single message" in text + assert "blank lines do not split it" in text + assert "each block is delivered as its own bubble" not in text + + def test_strip_markdown(): raw = "**Done!** Ran `npm test`:\n```\nall green\n```\nSee [docs](https://x.y)." flat = strip_markdown(raw)