Revert "Load Profile state from Thread and tie visibility to the thread's model" (#30413)

This reverts commit 3615d6d96c.

Ultimately, we want to restore the ability to store a profile
per-thread, but for now reverting this fixes a fairly disruptive bug.

Release Notes:

- Fixed a bug causing the agent to use the wrong profile in some cases.
This commit is contained in:
Cole Miller 2025-05-09 14:09:38 -04:00 committed by GitHub
parent 8f07135201
commit d6ab416168
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 44 deletions

View file

@ -657,8 +657,6 @@ pub struct SerializedThread {
pub model: Option<SerializedLanguageModel>,
#[serde(default)]
pub completion_mode: Option<CompletionMode>,
#[serde(default)]
pub profile: Option<AgentProfileId>,
}
#[derive(Serialize, Deserialize, Debug)]
@ -804,7 +802,6 @@ impl LegacySerializedThread {
exceeded_window_error: None,
model: None,
completion_mode: None,
profile: None,
}
}
}