mirror of
https://github.com/openai/codex.git
synced 2026-12-02 00:31:03 +00:00
test(app-server): assert persisted subagent source
This commit is contained in:
@@ -424,7 +424,7 @@ replace that sweep or recover mutations missed while disconnected.
|
||||
|
||||
`threadCatalog/changed` contains persisted sidebar metadata only. It never contains turns, items,
|
||||
messages, deltas, tool state, or loaded runtime status. Subagent summaries include relationship and
|
||||
display metadata such as `parentThreadId`, `threadSource`, `agentNickname`, and `agentRole`; clients
|
||||
display metadata such as `parentThreadId`, `source`, `agentNickname`, and `agentRole`; clients
|
||||
compose runtime state from `thread/status/changed` rather than this feed.
|
||||
|
||||
### Example: List descendant threads
|
||||
|
||||
@@ -4030,16 +4030,14 @@ config_file = "./custom-role.toml"
|
||||
assert_eq!(
|
||||
(
|
||||
child_summary.parent_thread_id.as_deref(),
|
||||
child_summary.thread_source.as_ref(),
|
||||
matches!(
|
||||
child_summary.source,
|
||||
codex_app_server_protocol::SessionSource::SubAgent(_)
|
||||
),
|
||||
child_summary.agent_nickname.as_deref().map(str::is_empty),
|
||||
child_summary.agent_role.as_deref(),
|
||||
),
|
||||
(
|
||||
Some(thread.id.as_str()),
|
||||
Some(&ThreadSource::Subagent),
|
||||
Some(false),
|
||||
Some("custom"),
|
||||
)
|
||||
(Some(thread.id.as_str()), true, Some(false), Some("custom"),)
|
||||
);
|
||||
|
||||
let turn_completed = timeout(DEFAULT_READ_TIMEOUT, async {
|
||||
|
||||
Reference in New Issue
Block a user