[apps] Add thread_id param to optionally load thread config for apps feature check. (#11279)

- [x] Add thread_id param to optionally load thread config for apps
feature check
This commit is contained in:
Matthew Zeng
2026-02-09 23:10:26 -08:00
committed by GitHub
parent 503186b31f
commit 005e040f97
11 changed files with 186 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ use crate::agent::AgentStatus;
use crate::codex::Codex;
use crate::codex::SteerInputError;
use crate::error::Result as CodexResult;
use crate::features::Feature;
use crate::protocol::Event;
use crate::protocol::Op;
use crate::protocol::Submission;
@@ -83,4 +84,8 @@ impl CodexThread {
pub async fn config_snapshot(&self) -> ThreadConfigSnapshot {
self.codex.thread_config_snapshot().await
}
pub fn enabled(&self, feature: Feature) -> bool {
self.codex.enabled(feature)
}
}