Skip to content

app-server: Silence thread status changes caused by thread being created#13079

Merged
euroelessar merged 2 commits intomainfrom
ruslan/no-status-changed-before-thread-start
Mar 3, 2026
Merged

app-server: Silence thread status changes caused by thread being created#13079
euroelessar merged 2 commits intomainfrom
ruslan/no-status-changed-before-thread-start

Conversation

@euroelessar
Copy link
Contributor

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.

@euroelessar euroelessar requested a review from maxj-oai February 28, 2026 00:32
@euroelessar euroelessar force-pushed the ruslan/no-status-changed-before-thread-start branch from ad8b616 to a62dd55 Compare March 2, 2026 23:59
.await;
}

async fn upsert_thread_with_notification(&self, thread: Thread, emit_notification: bool) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: suggest inlining this into the 2 callers as it's not adding much

@euroelessar euroelessar enabled auto-merge (squash) March 3, 2026 00:12
@euroelessar euroelessar merged commit 9022cdc into main Mar 3, 2026
50 of 53 checks passed
@euroelessar euroelessar deleted the ruslan/no-status-changed-before-thread-start branch March 3, 2026 00:52
@github-actions github-actions bot locked and limited conversation to collaborators Mar 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants