ThreadResumeParams
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| CodexBaseModel codexed.models.base Base model for all Codex API models. |
⋔ Inheritance diagram¶
graph TD
939492100["v2_protocol.ThreadResumeParams"]
3116041069["base.CodexBaseModel"]
3879467795["main.BaseModel"]
2751680898["builtins.object"]
3116041069 --> 939492100
3879467795 --> 3116041069
2751680898 --> 3879467795
🛈 DocStrings¶
Bases: CodexBaseModel
There are three ways to resume a thread: 1. By thread_id: load the thread from disk by thread_id and resume it. 2. By history: instantiate the thread from memory and resume it. 3. By path: load the thread from disk by path and resume it.
For non-running threads, the precedence is: history > non-empty path > thread_id. If using history or a non-empty path for a non-running thread, the thread_id param will be ignored.
If thread_id identifies a running thread, app-server rejoins that thread and treats a non-empty path as a consistency check against the active rollout path. Empty string path values are treated as absent.
Prefer using thread_id whenever possible.
Source code in src/codexed/models/v2_protocol.py
10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 | |
approvals_reviewer
class-attribute
instance-attribute
¶
approvals_reviewer: ApprovalsReviewer | None = None
Override where approval requests are routed for review on this thread and subsequent turns.
exclude_turns
class-attribute
instance-attribute
¶
When true, return only thread metadata and live-resume state without populating thread.turns. This is useful when the client plans to call thread/turns/list immediately after resuming. Full-history hydration is deprecated for paginated threads; use this with thread/turns/list and thread/items/list instead.
history
class-attribute
instance-attribute
¶
[UNSTABLE] FOR CODEX CLOUD - DO NOT USE. If specified, the thread will be resumed with the provided history instead of loaded from disk.
initial_turns_page
class-attribute
instance-attribute
¶
initial_turns_page: ThreadResumeInitialTurnsPageParams | None = None
When present, include a thread/turns/list page in the resume response so clients can bootstrap recent turns without a second request.
model
class-attribute
instance-attribute
¶
Configuration overrides for the resumed thread, if any.
path
class-attribute
instance-attribute
¶
[UNSTABLE] Specify the rollout path to resume from. If specified for a non-running thread, the thread_id param will be ignored. If thread_id identifies a running thread, the path must match the active rollout path.
permissions
class-attribute
instance-attribute
¶
Named profile id for the resumed thread. Cannot be combined with sandbox.
personality
class-attribute
instance-attribute
¶
personality: Personality | None = None
@deprecated friendly and pragmatic no longer select a style. Changing this does not rewrite the thread's existing instructions.
runtime_workspace_roots
class-attribute
instance-attribute
¶
runtime_workspace_roots: list[AbsolutePathBuf] | None = None
Replace the thread's runtime workspace roots. Paths must be absolute.