Skip to content

Streamline thread read handlers#19494

Merged
pakrym-oai merged 1 commit intomainfrom
pakrym/appserver-errors-thread-read
Apr 27, 2026
Merged

Streamline thread read handlers#19494
pakrym-oai merged 1 commit intomainfrom
pakrym/appserver-errors-thread-read

Conversation

@pakrym-oai
Copy link
Copy Markdown
Collaborator

Why

The thread read/list handlers mostly assemble views, but their error handling was interleaved with response emission. Returning view-building errors from the helper path keeps those handlers focused on data assembly.

What Changed

  • Added a small mapper for ThreadReadViewError to JSON-RPC errors in codex-rs/app-server/src/codex_message_processor.rs.
  • Streamlined thread list, loaded-thread, read, turn-list, and summary handlers to produce result values for the request boundary.
  • Kept the existing invalid-request vs internal-error distinctions for missing or unreadable thread data.

Verification

  • cargo check -p codex-app-server
  • cargo test -p codex-app-server --test all conversation_summary -- --test-threads=1

@pakrym-oai pakrym-oai force-pushed the pakrym/appserver-errors-thread-mutations branch from da2717b to b8828ca Compare April 25, 2026 03:09
@pakrym-oai pakrym-oai force-pushed the pakrym/appserver-errors-thread-read branch from f0dde8e to 7799914 Compare April 25, 2026 03:09
@pakrym-oai pakrym-oai changed the title Streamline thread read app-server handlers Streamline thread read handlers Apr 25, 2026
@pakrym-oai pakrym-oai marked this pull request as ready for review April 25, 2026 04:00
@pakrym-oai pakrym-oai force-pushed the pakrym/appserver-errors-thread-read branch from 7799914 to fd812db Compare April 25, 2026 04:10
@pakrym-oai pakrym-oai force-pushed the pakrym/appserver-errors-thread-mutations branch from 558676d to 8f1b0a0 Compare April 25, 2026 04:15
@pakrym-oai pakrym-oai force-pushed the pakrym/appserver-errors-thread-read branch 3 times, most recently from cdb702f to eea7c29 Compare April 26, 2026 23:15
@pakrym-oai pakrym-oai force-pushed the pakrym/appserver-errors-thread-mutations branch from 1c40d3a to e89693c Compare April 26, 2026 23:15
@pakrym-oai pakrym-oai force-pushed the pakrym/appserver-errors-thread-mutations branch from e89693c to c4b7cab Compare April 27, 2026 17:22
@pakrym-oai pakrym-oai force-pushed the pakrym/appserver-errors-thread-read branch from eea7c29 to 820705f Compare April 27, 2026 17:22
@pakrym-oai pakrym-oai force-pushed the pakrym/appserver-errors-thread-mutations branch from c4b7cab to 6001c85 Compare April 27, 2026 18:45
@pakrym-oai pakrym-oai force-pushed the pakrym/appserver-errors-thread-read branch 2 times, most recently from 5b5b247 to eb6945d Compare April 27, 2026 20:38
@pakrym-oai pakrym-oai force-pushed the pakrym/appserver-errors-thread-mutations branch from 6001c85 to 016897c Compare April 27, 2026 20:38
@pakrym-oai pakrym-oai force-pushed the pakrym/appserver-errors-thread-read branch from eb6945d to d75151a Compare April 27, 2026 21:01
@pakrym-oai pakrym-oai force-pushed the pakrym/appserver-errors-thread-mutations branch from 016897c to 869e8b6 Compare April 27, 2026 21:01
Base automatically changed from pakrym/appserver-errors-thread-mutations to main April 27, 2026 21:18
@pakrym-oai pakrym-oai force-pushed the pakrym/appserver-errors-thread-read branch from d75151a to 0a6b2e1 Compare April 27, 2026 21:19
@pakrym-oai pakrym-oai merged commit 2be9fd5 into main Apr 27, 2026
25 checks passed
@pakrym-oai pakrym-oai deleted the pakrym/appserver-errors-thread-read branch April 27, 2026 21:30
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 27, 2026
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.

1 participant