Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
fix(prompt): simplify session key injection
cyhfd3af8b7ce6d
diff --git a/core/system_prompt_injection.py b/core/system_prompt_injection.pyindex 1531ae028..2fe678446 100644--- a/core/system_prompt_injection.py+++ b/core/system_prompt_injection.py@@ -76,12 +76,10 @@ Use `vibe watch add` for managed background waiters that should keep running untUse `vibe hook send --session-key ... --prompt ...` for one-shot asynchronous sends without saving a task or watch.Current conversation targeting:-- Default session key: `{default_session_key}`-- Channel-level session key: `{channel_session_key}`+- Current session key: `{default_session_key}`Rules:- `session_key` controls the conversation scope that Vibe Remote will continue using.-- When you do not want to keep the current session and instead want to start or reuse a higher-level session, usually use the higher-level session key. For example, if the default key is `slack::channel::C123::thread::171717.123`, then `slack::channel::C123` creates or reuses the channel-scoped session.- `--post-to` changes the delivery target, not the session scope. Use `--post-to channel` when the session should stay thread-scoped but the follow-up message should be posted to the parent channel.- Use `--cron "<expr>"` for recurring tasks or `--at "<ISO-8601>"` for one-off stored tasks.- Use `vibe watch list`, `vibe watch show`, `vibe watch pause`, `vibe watch resume`, and `vibe watch remove` to manage background work after creation.@@ -132,14 +130,8 @@ def _build_scheduled_tasks_prompt(context: MessageContext, *, fallback_platform:include_thread=True,fallback_platform=fallback_platform,)- channel_key = _build_prompt_session_key(- context,- include_thread=False,- fallback_platform=fallback_platform,- )return _SCHEDULED_TASKS_PROMPT.format(default_session_key=default_key,- channel_session_key=channel_key,)diff --git a/tests/test_codex_agent.py b/tests/test_codex_agent.pyindex 07f78b487..86e742a40 100644--- a/tests/test_codex_agent.py+++ b/tests/test_codex_agent.py@@ -909,13 +909,13 @@ class CodexAgentPayloadTests(unittest.IsolatedAsyncioTestCase):self.assertEqual(params["threadId"], "thread-existing")developer_instructions = params["developerInstructions"]self.assertEqual(developer_instructions.count("Focus on regressions."), 1)- self.assertEqual(developer_instructions.count("Default session key:"), 1)+ self.assertEqual(developer_instructions.count("Current session key:"), 1)self.assertEqual(developer_instructions.count("If you generate an image with Codex"), 1)self.assertIn(- "Default session key: `slack::channel::C1::thread::171717.123`",+ "Current session key: `slack::channel::C1::thread::171717.123`",developer_instructions,)- self.assertIn("Channel-level session key: `slack::channel::C1`", developer_instructions)+ self.assertNotIn("Channel-level session key:", developer_instructions)async def test_resume_thread_keeps_system_prompt_injection_when_quick_replies_are_disabled(self):agent = object.__new__(CodexAgent)diff --git a/tests/test_reply_enhancer_platform.py b/tests/test_reply_enhancer_platform.pyindex f535ed4f2..bcceccb61 100644--- a/tests/test_reply_enhancer_platform.py+++ b/tests/test_reply_enhancer_platform.py@@ -147,12 +147,8 @@ class ReplyEnhancerPlatformTests(unittest.IsolatedAsyncioTestCase):"Use `vibe watch add` for managed background waiters that should keep running until a condition is met and then send a follow-up.",prompt,)- self.assertIn("Default session key: `slack::channel::C1::thread::171717.123`", prompt)- self.assertIn("Channel-level session key: `slack::channel::C1`", prompt)- self.assertIn(- "When you do not want to keep the current session and instead want to start or reuse a higher-level session, usually use the higher-level session key.",- prompt,- )+ self.assertIn("Current session key: `slack::channel::C1::thread::171717.123`", prompt)+ self.assertNotIn("Channel-level session key:", prompt)self.assertIn("`--post-to` changes the delivery target, not the session scope. Use `--post-to channel` when the session should stay thread-scoped but the follow-up message should be posted to the parent channel.",prompt,@@ -198,8 +194,8 @@ class ReplyEnhancerPlatformTests(unittest.IsolatedAsyncioTestCase):fallback_platform="slack",)- self.assertIn("Default session key: `slack::channel::C1::thread::171717.123`", prompt)- self.assertIn("Channel-level session key: `slack::channel::C1`", prompt)+ self.assertIn("Current session key: `slack::channel::C1::thread::171717.123`", prompt)+ self.assertNotIn("Channel-level session key:", prompt)self.assertIn("usually in the current user's section: `slack/U1`.", prompt)def test_prompt_handles_missing_platform_specific(self):