mirror of
https://github.com/openai/codex.git
synced 2026-05-01 03:42:05 +03:00
chore: rework unified exec events (#7775)
This commit is contained in:
@@ -518,6 +518,9 @@ pub enum EventMsg {
|
||||
/// Incremental chunk of output from a running command.
|
||||
ExecCommandOutputDelta(ExecCommandOutputDeltaEvent),
|
||||
|
||||
/// Terminal interaction for an in-progress command (stdin sent and stdout observed).
|
||||
TerminalInteraction(TerminalInteractionEvent),
|
||||
|
||||
ExecCommandEnd(ExecCommandEndEvent),
|
||||
|
||||
/// Notification that the agent attached a local image via the view_image tool.
|
||||
@@ -1455,6 +1458,17 @@ pub struct ExecCommandOutputDeltaEvent {
|
||||
pub chunk: Vec<u8>,
|
||||
}
|
||||
|
||||
#[serde_as]
|
||||
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, JsonSchema, TS)]
|
||||
pub struct TerminalInteractionEvent {
|
||||
/// Identifier for the ExecCommandBegin that produced this chunk.
|
||||
pub call_id: String,
|
||||
/// Process id associated with the running command.
|
||||
pub process_id: String,
|
||||
/// Stdin sent to the running session.
|
||||
pub stdin: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Deserialize, Serialize, JsonSchema, TS)]
|
||||
pub struct BackgroundEventEvent {
|
||||
pub message: String,
|
||||
|
||||
Reference in New Issue
Block a user