mirror of
https://github.com/openai/codex.git
synced 2026-04-24 22:54:54 +00:00
## Summary
- Adds a new `thread/unarchive` RPC to move archived thread rollouts
back into the active `sessions/` tree.
## What changed
- **Protocol**
- Adds `thread/unarchive` request/response types and wiring.
- **Server**
- Implements `thread_unarchive` in the app server.
- Validates the archived rollout path and thread ID.
- Restores the rollout to `sessions/YYYY/MM/DD/...` based on the rollout
filename timestamp.
- **Core**
- Adds `find_archived_thread_path_by_id_str` helper for archived
rollouts.
- **Docs**
- Documents the new RPC and usage example.
- **Tests**
- Adds an end-to-end server test that:
1) starts a thread,
2) archives it,
3) unarchives it,
4) asserts the file is restored to `sessions/`.
## How to use
```json
{ "method": "thread/unarchive", "id": 24, "params": { "threadId": "<thread-id>" } }
```
## Author Codex Session
`codex resume 019bf158-54b6-7960-a696-9d85df7e1bc1` (soon I'll make this
kind of session UUID forkable by anyone with the right
`session_object_storage_url` line in their config, but for now just
pasting it here for my reference)
24 lines
421 B
Rust
24 lines
421 B
Rust
mod account;
|
|
mod analytics;
|
|
mod app_list;
|
|
mod collaboration_mode_list;
|
|
mod config_rpc;
|
|
mod dynamic_tools;
|
|
mod initialize;
|
|
mod model_list;
|
|
mod output_schema;
|
|
mod rate_limits;
|
|
mod request_user_input;
|
|
mod review;
|
|
mod thread_archive;
|
|
mod thread_fork;
|
|
mod thread_list;
|
|
mod thread_loaded_list;
|
|
mod thread_read;
|
|
mod thread_resume;
|
|
mod thread_rollback;
|
|
mod thread_start;
|
|
mod thread_unarchive;
|
|
mod turn_interrupt;
|
|
mod turn_start;
|