Skip to content

Populate thread previews from delegated task inputs - #50462

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/f7b3c60ef75e08c76b4084d043e3967bf2bade22
Oct 2, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Populate thread previews from delegated task inputs

Why

Delegated turns can begin without a user message, leaving threads without a task preview. Populate the preview from delegated input so these threads are discoverable before a user follow-up.

What changed

  • Extract previews from completed create_thread and send_message_to_thread outputs in the codex_app and codex_tui namespaces.
  • Unwrap recognized <codex_delegation> inputs and decode their escaped task text for display, preserving model content. Keep plain or unrecognized wrappers as text and ignore blank inputs.
  • Fill missing previews in state metadata extraction and live thread metadata updates without replacing existing previews or setting the title or first_user_message.

Testing

Add tests for delegation decoding and tool filtering, preview-only metadata updates, preservation of later user-message metadata, and database listing before a user follow-up in both legacy and paginated history modes.

## Why

Delegated turns can begin without a user message, leaving threads without a task preview. Populate the preview from delegated input so these threads are discoverable before a user follow-up.

## What changed

- Extract previews from completed `create_thread` and `send_message_to_thread` outputs in the `codex_app` and `codex_tui` namespaces.
- Unwrap recognized `<codex_delegation>` inputs and decode their escaped task text for display, preserving model content. Keep plain or unrecognized wrappers as text and ignore blank inputs.
- Fill missing previews in state metadata extraction and live thread metadata updates without replacing existing previews or setting the title or `first_user_message`.

## Testing

Add tests for delegation decoding and tool filtering, preview-only metadata updates, preservation of later user-message metadata, and database listing before a user follow-up in both legacy and paginated history modes.

GitOrigin-RevId: f7b3c60ef75e08c76b4084d043e3967bf2bade22
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/f7b3c60ef75e08c76b4084d043e3967bf2bade22 branch from 8c8de37 to 09bced5 Compare October 2, 2026 23:34
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@copyberry
copyberry Bot merged commit 09bced5 into main Oct 2, 2026
1 check failed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/f7b3c60ef75e08c76b4084d043e3967bf2bade22 branch October 2, 2026 23:34
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 2, 2026
@Techlemariam
Techlemariam deployed to issue-triage October 2, 2026 23:38 — with GitHub Actions Active
@Techlemariam
Techlemariam deployed to issue-triage October 2, 2026 23:38 — with GitHub Actions Active
@Techlemariam
Techlemariam deployed to issue-triage October 2, 2026 23:38 — with GitHub Actions Active
@Techlemariam
Techlemariam deployed to issue-triage October 2, 2026 23:39 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
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