Skip to content

armgit / avibe

Public Imported from GitHub
0

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.

fix(session): make title prompt actionable (#744)

Call Whited2dc9a8f1940
diff --git a/core/system_prompt_injection.py b/core/system_prompt_injection.py
index d2cb3b930..a76b7ce6a 100644
--- a/core/system_prompt_injection.py
+++ b/core/system_prompt_injection.py
@@ -220,13 +220,13 @@ Treat these as the user pointing at that Agent or Session, and decide the action
_SESSION_TITLE_PROMPT = """\
## Session Title
-When the topic of this Web conversation is clear, you may silently set one concise, human-scannable title for the current Session once. Before setting it, inspect the Session:
+When the topic of this Web conversation becomes clear, set one concise, human-scannable title for the current Session. Do this silently as soon as the title is obvious, without waiting for the user to ask. Before setting it, inspect the Session:
`vibe session get`
If `metadata.title_source` is `user` or `agent`, leave the title unchanged; that means the title was deliberately set or cleared. Otherwise, set it once:
`vibe session update --title "<short title>"`
-Do not mention the title update unless the user asks, and do not repeatedly rename the same Session.
+Do not mention the title update unless the user asks. Do not repeatedly rename the same Session; after you set it once, treat it as deliberate.
"""
diff --git a/tests/test_session_cli.py b/tests/test_session_cli.py
index 0f3cf5262..8ec8107be 100644
--- a/tests/test_session_cli.py
+++ b/tests/test_session_cli.py
@@ -313,8 +313,9 @@ def test_web_title_prompt_defaults_to_current_session():
assert "metadata.title_source" in out
assert "`user` or `agent`" in out
assert "leave the title unchanged" in out
- assert "may silently set one concise, human-scannable title" in out
- assert "do not repeatedly rename the same Session" in out
+ assert "set one concise, human-scannable title" in out
+ assert "Do this silently as soon as the title is obvious" in out
+ assert "Do not repeatedly rename the same Session" in out
assert "not set yet" not in out
assert "auto-generated" not in out