mirror of
https://github.com/openai/codex.git
synced 2026-05-03 10:56:37 +00:00
## Summary - make AGENTS.md discovery and loading fully FS-aware and remove the non-FS discover helper - migrate remote-aware codex-core tests to use TestEnv workspace setup instead of syncing a local workspace copy - add AGENTS.md corner-case coverage, including directory fallbacks and remote-aware integration coverage ## Testing - cargo test -p codex-core project_doc -- --nocapture - cargo test -p codex-core hierarchical_agents -- --nocapture - cargo test -p codex-core agents_md -- --nocapture - cargo test -p codex-tui status -- --nocapture - cargo test -p codex-tui-app-server status -- --nocapture - just fix - just fmt - just bazel-lock-update - just bazel-lock-check - just argument-comment-lint - remote Linux executor tests in progress via scripts/test-remote-env.sh
34 lines
1.2 KiB
Rust
34 lines
1.2 KiB
Rust
//! Status output formatting and display adapters for the TUI.
|
|
//!
|
|
//! This module turns protocol-level snapshots into stable display structures used by `/status`
|
|
//! output and footer/status-line helpers, while keeping rendering concerns out of transport-facing
|
|
//! code.
|
|
//!
|
|
//! `rate_limits` is the main integration point for status-line usage-limit items: it converts raw
|
|
//! window snapshots into local-time labels and classifies data as available, stale, or missing.
|
|
mod account;
|
|
mod card;
|
|
mod format;
|
|
mod helpers;
|
|
mod rate_limits;
|
|
|
|
pub(crate) use account::StatusAccountDisplay;
|
|
pub(crate) use card::StatusHistoryHandle;
|
|
#[cfg(test)]
|
|
pub(crate) use card::new_status_output;
|
|
#[cfg(test)]
|
|
pub(crate) use card::new_status_output_with_rate_limits;
|
|
pub(crate) use card::new_status_output_with_rate_limits_handle;
|
|
pub(crate) use helpers::discover_agents_summary;
|
|
pub(crate) use helpers::format_directory_display;
|
|
pub(crate) use helpers::format_tokens_compact;
|
|
pub(crate) use helpers::plan_type_display_name;
|
|
pub(crate) use rate_limits::RateLimitSnapshotDisplay;
|
|
pub(crate) use rate_limits::RateLimitWindowDisplay;
|
|
#[cfg(test)]
|
|
pub(crate) use rate_limits::rate_limit_snapshot_display;
|
|
pub(crate) use rate_limits::rate_limit_snapshot_display_for_limit;
|
|
|
|
#[cfg(test)]
|
|
mod tests;
|