CommandExecParams
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| CodexBaseModel codexed.models.base Base model for all Codex API models. |
â‹” Inheritance diagram¶
graph TD
3368023363["v2_protocol.CommandExecParams"]
3116041069["base.CodexBaseModel"]
3879467795["main.BaseModel"]
2751680898["builtins.object"]
3116041069 --> 3368023363
3879467795 --> 3116041069
2751680898 --> 3879467795
🛈 DocStrings¶
Bases: CodexBaseModel
Run a standalone command (argv vector) in the server sandbox without creating a thread or turn.
The final command/exec response is deferred until the process exits and is sent only after all command/exec/outputDelta notifications for that connection have been emitted.
Source code in src/codexed/models/v2_protocol.py
1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 | |
cwd
class-attribute
instance-attribute
¶
Optional working directory. Defaults to the server cwd.
disable_output_cap
class-attribute
instance-attribute
¶
Disable stdout/stderr capture truncation for this request.
Cannot be combined with outputBytesCap.
disable_timeout
class-attribute
instance-attribute
¶
Disable the timeout entirely for this request.
Cannot be combined with timeoutMs.
env
class-attribute
instance-attribute
¶
Optional environment overrides merged into the server-computed environment.
Matching names override inherited values. Set a key to null to unset an inherited variable.
output_bytes_cap
class-attribute
instance-attribute
¶
Optional per-stream stdout/stderr capture cap in bytes.
When omitted, the server default applies. Cannot be combined with disableOutputCap.
permission_profile
class-attribute
instance-attribute
¶
Optional active permissions profile id for this command.
Defaults to the user's configured permissions when omitted. Cannot be combined with sandboxPolicy.
process_id
class-attribute
instance-attribute
¶
Optional client-supplied, connection-scoped process id.
Required for tty, streamStdin, streamStdoutStderr, and follow-up command/exec/write, command/exec/resize, and command/exec/terminate calls. When omitted, buffered execution gets an internal id that is not exposed to the client.
sandbox_policy
class-attribute
instance-attribute
¶
Optional sandbox policy for this command.
Uses the same shape as thread/turn execution sandbox configuration and defaults to the user's configured policy when omitted. Cannot be combined with permissionProfile.
size
class-attribute
instance-attribute
¶
size: CommandExecTerminalSize | None = None
Optional initial PTY size in character cells. Only valid when tty is true.
stream_stdin
class-attribute
instance-attribute
¶
Allow follow-up command/exec/write requests to write stdin bytes.
Requires a client-supplied processId.
stream_stdout_stderr
class-attribute
instance-attribute
¶
Stream stdout/stderr via command/exec/outputDelta notifications.
Streamed bytes are not duplicated into the final response and require a client-supplied processId.
timeout_ms
class-attribute
instance-attribute
¶
Optional timeout in milliseconds.
When omitted, the server default applies. Cannot be combined with disableTimeout.
tty
class-attribute
instance-attribute
¶
Enable PTY mode.
This implies streamStdin and streamStdoutStderr.