Skip to content

Conversation

@linw1995
Copy link
Owner

@linw1995 linw1995 commented Feb 7, 2026

Summary

  • Remove TUI auto-spawn: combo run now requires an existing TUI session (via COCO_SESSION_SOCK) instead of auto-spawning one

    • Simplified combo run logic by removing TUI process spawning/waiting code
    • Removed --ignore-workspace-scripts flag and related COCO_TUI_BIN env handling
    • Added unit test to verify session socket requirement
  • Integrate llm-agents codex: Added jail-nix and llm-agents.nix dependencies to flake.nix

    • Provides isolated execution environment for tool operations
    • Codex tool now available in dev shell with proper dependency isolation

Motivation

Removing TUI auto-spawn simplifies the architecture - the CLI now focuses on client-server communication via session sockets, making the flow more explicit and testable. The codex integration enables safer, isolated tool execution.

Remove support for spawning TUI process from CLI when running combo.
Now `coco combo run` requires TUI to be already running with a valid
session socket. This simplifies the architecture and removes the need
for COCO_TUI_BIN environment variable and --ignore-workspace-scripts flag.
Add llm-agents codex package configured with jail-nix to provide a secure,
isolated execution environment. The jailed codex has access to ~/.codex and
includes all necessary development tools and Rust toolchain dependencies.
Create a separate ci shell output with only dev packages to reduce
CI environment dependencies. Update GitHub Actions to use the ci
profile instead of the default stable profile.
@codecov-commenter
Copy link

codecov-commenter commented Feb 7, 2026

Codecov Report

❌ Patch coverage is 63.63636% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 46.31%. Comparing base (55394f6) to head (b9a3f57).
⚠️ Report is 2 commits behind head on dev.

Files with missing lines Patch % Lines
src/cmd/combo.rs 68.00% 8 Missing ⚠️
crates/coco-tui/src/main.rs 33.33% 2 Missing ⚠️
crates/coco-tui/src/e2e_tests/support.rs 0.00% 1 Missing ⚠️
src/cli.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #178      +/-   ##
==========================================
- Coverage   48.12%   46.31%   -1.81%     
==========================================
  Files         105      108       +3     
  Lines       27916    30066    +2150     
==========================================
+ Hits        13435    13926     +491     
- Misses      14481    16140    +1659     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@linw1995 linw1995 merged commit 48157fa into dev Feb 7, 2026
3 checks passed
@linw1995 linw1995 deleted the refactor/remove-tui-auto-spawn branch February 7, 2026 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants