mirror of
https://github.com/openai/codex.git
synced 2026-05-01 18:06:47 +00:00
app-server: Silence thread status changes caused by thread being created (#13079)
Currently we emit `thread/status/changed` with `Idle` status right before sending `thread/started` event (which also has `Idle` status in it). It feels that there is no point in that as client has no way to know prior state of the thread as it didn't exist yet, so silence these kinds of notifications.
This commit is contained in:
committed by
GitHub
parent
146b798129
commit
9022cdc563
@@ -2198,7 +2198,7 @@ impl CodexMessageProcessor {
|
||||
|
||||
listener_task_context
|
||||
.thread_watch_manager
|
||||
.upsert_thread(thread.clone())
|
||||
.upsert_thread_silently(thread.clone())
|
||||
.await;
|
||||
|
||||
thread.status = resolve_thread_status(
|
||||
@@ -3704,7 +3704,7 @@ impl CodexMessageProcessor {
|
||||
}
|
||||
|
||||
self.thread_watch_manager
|
||||
.upsert_thread(thread.clone())
|
||||
.upsert_thread_silently(thread.clone())
|
||||
.await;
|
||||
|
||||
thread.status = resolve_thread_status(
|
||||
@@ -6295,7 +6295,7 @@ impl CodexMessageProcessor {
|
||||
Ok(summary) => {
|
||||
let mut thread = summary_to_thread(summary);
|
||||
self.thread_watch_manager
|
||||
.upsert_thread(thread.clone())
|
||||
.upsert_thread_silently(thread.clone())
|
||||
.await;
|
||||
thread.status = resolve_thread_status(
|
||||
self.thread_watch_manager
|
||||
|
||||
Reference in New Issue
Block a user