mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Show activity for standalone web search calls (#24693)
## Why Standalone `web.run` calls run in the extension, so they need normal web-search progress activity while a request is in flight and durable completed activity after a thread is reloaded. Follow-up to #23823; uses the extension turn-item emission path added in #24813. ## What changed - Emit standalone `web.run` start/completion items through the host turn-item emitter, preserving standard client delivery and rollout persistence. - Include useful completion detail for queries, image queries, and literal-URL `open`/`find` commands. - Render completed searches as `Searched the web` or `Searched the web for <detail>`, with snapshot coverage for the detail-free case. - Extend the app-server round-trip test to verify completed search activity is reconstructed by `thread/read` after a fresh-process reload. ## Testing - `just test -p codex-web-search-extension` - `just test -p codex-app-server -E "test(standalone_web_search_round_trips_encrypted_output)"`
This commit is contained in:
1 parent
5577a9e148
commit
96f1347fa3
10 files changed
+246
-14
No files matched your search
@@ -4,7 +4,7 @@ use super::*;
|
||||
|
||||
fn web_search_header(completed: bool) -> &'static str {
|
||||
if completed {
|
||||
"Searched"
|
||||
"Searched the web"
|
||||
} else {
|
||||
"Searching the web"
|
||||
}
|
||||
@@ -104,7 +104,8 @@ impl HistoryCell for WebSearchCell {
|
||||
let text: Text<'static> = if detail.is_empty() {
|
||||
Line::from(vec![header.bold()]).into()
|
||||
} else {
|
||||
Line::from(vec![header.bold(), " ".into(), detail.into()]).into()
|
||||
let separator = if self.completed { " for " } else { " " };
|
||||
Line::from(vec![header.bold(), separator.into(), detail.into()]).into()
|
||||
};
|
||||
PrefixedWrappedHistoryCell::new(text, vec![bullet, " ".into()], " ").display_lines(width)
|
||||
}
|
||||
@@ -115,7 +116,8 @@ impl HistoryCell for WebSearchCell {
|
||||
if detail.is_empty() {
|
||||
vec![Line::from(header)]
|
||||
} else {
|
||||
vec![Line::from(format!("{header} {detail}"))]
|
||||
let separator = if self.completed { " for " } else { " " };
|
||||
vec![Line::from(format!("{header}{separator}{detail}"))]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user