mirror of
https://github.com/openai/codex.git
synced 2026-09-14 11:57:03 +00:00
Merge branch 'async-start-tui' of https://github.com/openai/codex into async-start-tui
This commit is contained in:
@@ -225,7 +225,7 @@ impl ContextManager {
|
||||
}
|
||||
|
||||
fn process_item(&self, item: &ResponseItem, policy: TruncationPolicy) -> ResponseItem {
|
||||
let policy_with_serialization_budget = policy.mul(1.2);
|
||||
let policy_with_serialization_budget = policy * 1.2;
|
||||
match item {
|
||||
ResponseItem::FunctionCallOutput { call_id, output } => {
|
||||
let truncated =
|
||||
|
||||
@@ -173,3 +173,17 @@ sequenceDiagram
|
||||
task2->>user: Event::TurnCompleted
|
||||
task2->>-user: Event::TaskCompleted
|
||||
```
|
||||
|
||||
## Key Events
|
||||
|
||||
### SessionConfigured
|
||||
|
||||
`Event::SessionConfigured` is emitted once after `Op::ConfigureSession`.
|
||||
|
||||
Notable fields:
|
||||
- `session_id`: the backend-assigned session identifier (historically named `session_id` for
|
||||
backwards compatibility).
|
||||
- `model_family`: model metadata for the model family selected for the session. This matches the
|
||||
`/models` payload shape; the selected model slug is `model_family.slug`.
|
||||
- `approval_policy`, `sandbox_policy`, `cwd`: the effective execution and sandbox settings for the
|
||||
session.
|
||||
|
||||
@@ -58,6 +58,8 @@ pub mod live_wrap;
|
||||
mod markdown;
|
||||
mod markdown_render;
|
||||
mod markdown_stream;
|
||||
// Model migration prompt UI is no longer used in production; keep it for snapshot tests.
|
||||
#[cfg(test)]
|
||||
mod model_migration;
|
||||
mod notifications;
|
||||
pub mod onboarding;
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
#![allow(dead_code)]
|
||||
|
||||
use crate::key_hint;
|
||||
use crate::render::Insets;
|
||||
use crate::render::renderable::ColumnRenderable;
|
||||
use crate::render::renderable::Renderable;
|
||||
use crate::render::renderable::RenderableExt as _;
|
||||
use crate::selection_list::selection_option_row;
|
||||
|
||||
use crate::tui::FrameRequester;
|
||||
use crate::tui::Tui;
|
||||
use crate::tui::TuiEvent;
|
||||
|
||||
@@ -25,7 +25,8 @@ pub struct VT100Backend {
|
||||
impl VT100Backend {
|
||||
/// Creates a new `TestBackend` with the specified width and height.
|
||||
pub fn new(width: u16, height: u16) -> Self {
|
||||
crossterm::style::Colored::set_ansi_color_disabled(false);
|
||||
// Force ANSI color output even when the writer isn't a real TTY (e.g., vt100::Parser in tests).
|
||||
crossterm::style::force_color_output(true);
|
||||
Self {
|
||||
crossterm_backend: CrosstermBackend::new(vt100::Parser::new(height, width, 0)),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user