Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Revert "Revert "realtime prompt changes"" (#13398)

Ahmed Ibrahim041c89650979
diff --git a/codex-rs/core/tests/suite/snapshots/all__suite__compact_remote__remote_compact_resume_restates_realtime_end_shapes.snap b/codex-rs/core/tests/suite/snapshots/all__suite__compact_remote__remote_compact_resume_restates_realtime_end_shapes.snap
index 1b95615375..fc12d431e2 100644
--- a/codex-rs/core/tests/suite/snapshots/all__suite__compact_remote__remote_compact_resume_restates_realtime_end_shapes.snap
+++ b/codex-rs/core/tests/suite/snapshots/all__suite__compact_remote__remote_compact_resume_restates_realtime_end_shapes.snap
@@ -17,7 +17,7 @@ Scenario: After remote manual /compact and resume, the first resumed turn rebuil
00:compaction:encrypted=true
01:message/developer[2]:
[01] <PERMISSIONS_INSTRUCTIONS>
- [02] <realtime_conversation>\nRealtime conversation ended.\n\nYou are...
+ [02] <realtime_conversation>\nRealtime conversation ended.\n\nSubsequ...
02:message/user[2]:
[01] <AGENTS_MD>
[02] <ENVIRONMENT_CONTEXT:cwd=<CWD>>
diff --git a/codex-rs/core/tests/suite/snapshots/all__suite__compact_remote__remote_mid_turn_compaction_does_not_restate_realtime_end_shapes.snap b/codex-rs/core/tests/suite/snapshots/all__suite__compact_remote__remote_mid_turn_compaction_does_not_restate_realtime_end_shapes.snap
index eb7e583874..b1f83ce4d3 100644
--- a/codex-rs/core/tests/suite/snapshots/all__suite__compact_remote__remote_mid_turn_compaction_does_not_restate_realtime_end_shapes.snap
+++ b/codex-rs/core/tests/suite/snapshots/all__suite__compact_remote__remote_mid_turn_compaction_does_not_restate_realtime_end_shapes.snap
@@ -12,7 +12,7 @@ Scenario: Remote mid-turn continuation compaction after realtime was closed befo
02:message/developer:<realtime_conversation>\nRealtime conversation started.\n\nYou a...
03:message/user:SETUP_USER
04:message/assistant:REMOTE_SETUP_REPLY
-05:message/developer:<realtime_conversation>\nRealtime conversation ended.\n\nYou are...
+05:message/developer:<realtime_conversation>\nRealtime conversation ended.\n\nSubsequ...
06:message/user:USER_TWO
## Remote Compaction Request
@@ -23,7 +23,7 @@ Scenario: Remote mid-turn continuation compaction after realtime was closed befo
02:message/developer:<realtime_conversation>\nRealtime conversation started.\n\nYou a...
03:message/user:SETUP_USER
04:message/assistant:REMOTE_SETUP_REPLY
-05:message/developer:<realtime_conversation>\nRealtime conversation ended.\n\nYou are...
+05:message/developer:<realtime_conversation>\nRealtime conversation ended.\n\nSubsequ...
06:message/user:USER_TWO
07:function_call/test_tool
08:function_call_output:unsupported call: test_tool
diff --git a/codex-rs/core/tests/suite/snapshots/all__suite__compact_remote__remote_pre_turn_compaction_restates_realtime_end_shapes.snap b/codex-rs/core/tests/suite/snapshots/all__suite__compact_remote__remote_pre_turn_compaction_restates_realtime_end_shapes.snap
index 7f14509dd2..57af327d16 100644
--- a/codex-rs/core/tests/suite/snapshots/all__suite__compact_remote__remote_pre_turn_compaction_restates_realtime_end_shapes.snap
+++ b/codex-rs/core/tests/suite/snapshots/all__suite__compact_remote__remote_pre_turn_compaction_restates_realtime_end_shapes.snap
@@ -17,7 +17,7 @@ Scenario: Remote pre-turn auto-compaction after realtime was closed between turn
00:compaction:encrypted=true
01:message/developer[2]:
[01] <PERMISSIONS_INSTRUCTIONS>
- [02] <realtime_conversation>\nRealtime conversation ended.\n\nYou are...
+ [02] <realtime_conversation>\nRealtime conversation ended.\n\nSubsequ...
02:message/user[2]:
[01] <AGENTS_MD>
[02] <ENVIRONMENT_CONTEXT:cwd=<CWD>>
diff --git a/codex-rs/protocol/src/prompts/realtime/realtime_end.md b/codex-rs/protocol/src/prompts/realtime/realtime_end.md
index 07ccae5286..abec16da03 100644
--- a/codex-rs/protocol/src/prompts/realtime/realtime_end.md
+++ b/codex-rs/protocol/src/prompts/realtime/realtime_end.md
@@ -1,5 +1,3 @@
Realtime conversation ended.
-You are still operating behind an intermediary rather than speaking to the user directly. Use the conversation transcript and current context to decide whether backend help is actually needed, and avoid verbose responses that only add latency.
-
-Subsequent user input may return to typed text rather than transcript-style text. Do not assume recognition errors or missing punctuation once realtime has ended. Resume normal chat behavior.
+Subsequent user input will return to typed text rather than transcript-style text. Do not assume recognition errors or missing punctuation once realtime has ended. Resume normal chat behavior.
diff --git a/codex-rs/protocol/src/prompts/realtime/realtime_start.md b/codex-rs/protocol/src/prompts/realtime/realtime_start.md
index c7d363eff7..3159a2b07f 100644
--- a/codex-rs/protocol/src/prompts/realtime/realtime_start.md
+++ b/codex-rs/protocol/src/prompts/realtime/realtime_start.md
@@ -6,5 +6,4 @@ When invoked, you receive the latest conversation transcript and any relevant mo
When user text is routed from realtime, treat it as a transcript. It may be unpunctuated or contain recognition errors.
-- Ask brief clarification questions when needed.
-- Keep responses concise and action-oriented.
+- Keep responses concise and action-oriented. Your updates should help the intermediary respond to the user.