mirror of
https://github.com/openai/codex.git
synced 2026-05-02 04:11:39 +03:00
feat: max threads config (#9483)
# External (non-OpenAI) Pull Request Requirements Before opening this Pull Request, please read the dedicated "Contributing" markdown file or your PR may be closed: https://github.com/openai/codex/blob/main/docs/contributing.md If your PR conforms to our contribution guidelines, replace this text with a detailed and high quality description of your changes. Include a link to a bug report or enhancement request.
This commit is contained in:
@@ -4,6 +4,14 @@
|
||||
"description": "Base config deserialized from ~/.codex/config.toml.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"agents": {
|
||||
"description": "Agent-related settings (thread limits, etc.).",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/AgentsToml"
|
||||
}
|
||||
]
|
||||
},
|
||||
"analytics": {
|
||||
"description": "When `false`, disables analytics across Codex product surfaces in this machine. Defaults to `true`.",
|
||||
"allOf": [
|
||||
@@ -436,6 +444,18 @@
|
||||
"description": "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
|
||||
"type": "string"
|
||||
},
|
||||
"AgentsToml": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"max_threads": {
|
||||
"description": "Maximum number of agent threads that can be open concurrently. When unset, no limit is enforced.",
|
||||
"type": "integer",
|
||||
"format": "uint",
|
||||
"minimum": 1.0
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"AltScreenMode": {
|
||||
"description": "Controls whether the TUI uses the terminal's alternate screen buffer.\n\n**Background:** The alternate screen buffer provides a cleaner fullscreen experience without polluting the terminal's scrollback history. However, it conflicts with terminal multiplexers like Zellij that strictly follow the xterm specification, which defines that alternate screen buffers should not have scrollback.\n\n**Zellij's behavior:** Zellij intentionally disables scrollback in alternate screen mode (see https://github.com/zellij-org/zellij/pull/1032) to comply with the xterm spec. This is by design and not configurable in Zellij—there is no option to enable scrollback in alternate screen mode.\n\n**Solution:** This setting provides a pragmatic workaround: - `auto` (default): Automatically detect the terminal multiplexer. If running in Zellij, disable alternate screen to preserve scrollback. Enable it everywhere else. - `always`: Always use alternate screen mode (original behavior before this fix). - `never`: Never use alternate screen mode. Runs in inline mode, preserving scrollback in all multiplexers.\n\nThe CLI flag `--no-alt-screen` can override this setting at runtime.",
|
||||
"oneOf": [
|
||||
|
||||
Reference in New Issue
Block a user