Repository navigation
Harden loaded-thread pagination - #690
Conversation
|
You have reached your Codex usage limits for security reviews. Please try again later. |
There was a problem hiding this comment.
Code Review
This pull request implements bounded cursor-paginated scanning for loading subagent threads in the TUI, replacing the previous unpaginated full fetch. It introduces page size limits, total thread budgets, and validation checks to prevent cycles or oversized payloads, accompanied by comprehensive unit tests. The review feedback suggests optimizing the spawn-tree traversal in loaded_threads.rs from O(D * N) to O(N) using an adjacency list to prevent potential UI lag, and using Vec::contains in session_lifecycle.rs for a more idiomatic duplicate check.
|
Addressed the review suggestions in 14c3d71: lineage traversal now indexes children by parent for linear discovery, and duplicate detection uses the direct vector membership check. Page validation remains bounded and transactional. |
b943ff9 to
d5c7c25
Compare
Summary
Testing
cargo fmt --manifest-path codex-rs/Cargo.toml --all -- --checkExecution-heavy validation is expected to run in GitHub Actions.