Skip to content

Return agent snapshots from close_agent - #47252

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/bdbd877aaf0389e830d6a7e84a5e14bb7d47277a
Sep 22, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/bdbd877aaf0389e830d6a7e84a5e14bb7d47277a

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Return agent snapshots from close_agent

What changed

Return an AgentInfo snapshot captured before shutdown, including metadata for known unloaded agents. Use the snapshot's status and metadata in the tool's completion event and its status in previous_status, replacing the separate status subscription.

Preserve the pre-close status for error reporting when shutdown removes the target before a descendant fails to close. Propagate unexpected thread lookup errors before attempting shutdown.

## What changed

Return an `AgentInfo` snapshot captured before shutdown, including metadata for known unloaded agents. Use the snapshot's status and metadata in the tool's completion event and its status in `previous_status`, replacing the separate status subscription.

Preserve the pre-close status for error reporting when shutdown removes the target before a descendant fails to close. Propagate unexpected thread lookup errors before attempting shutdown.

GitOrigin-RevId: bdbd877aaf0389e830d6a7e84a5e14bb7d47277a
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/bdbd877aaf0389e830d6a7e84a5e14bb7d47277a branch from 190db59 to fdd89e7 Compare September 22, 2026 10:58
@copyberry
copyberry Bot merged commit fdd89e7 into main Sep 22, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/bdbd877aaf0389e830d6a7e84a5e14bb7d47277a branch September 22, 2026 10:58
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 22, 2026
@ozelath
ozelath deployed to issue-triage September 22, 2026 10:59 — with GitHub Actions Active
@ozelath
ozelath deployed to issue-triage September 22, 2026 10:59 — with GitHub Actions Active
@ozelath
ozelath deployed to issue-triage September 22, 2026 10:59 — with GitHub Actions Active
@lostmsu
lostmsu deployed to issue-triage September 22, 2026 11:00 — with GitHub Actions Active
@lostmsu
lostmsu deployed to issue-triage September 22, 2026 11:00 — with GitHub Actions Active
@lostmsu
lostmsu deployed to issue-triage September 22, 2026 11:00 — with GitHub Actions Active
@lostmsu
lostmsu deployed to issue-triage September 22, 2026 11:01 — with GitHub Actions Active
@bureok
bureok deployed to issue-triage September 22, 2026 11:04 — with GitHub Actions Active
@bureok
bureok deployed to issue-triage September 22, 2026 11:04 — with GitHub Actions Active
@bureok
bureok deployed to issue-triage September 22, 2026 11:04 — with GitHub Actions Active
@bureok
bureok deployed to issue-triage September 22, 2026 11:05 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — fdd89e78 Deployed Sep 22, 2026 by bureok via Identify potential duplicates (open issues fallback) #47408
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.

5 participants