Commit Graph
4042 Commits
Author SHA1 Message Date
James Peter eaa13aeae4 chore(upstream): strip code branding in docs during diff 2025-10-06 09:07:04 +10:00
James Peter f79a37d48d chore(upstream): drop .DS_Store noise in diff-crates 2025-10-06 09:05:14 +10:00
James Peter 60fd13edee chore(upstream): ignore code prefix in diff crate comparisons 2025-10-06 09:01:17 +10:00
James Peter 158f572c98 chore(upstream): normalize crate rename noise in diff-crates 2025-10-06 08:59:57 +10:00
James Peter 10072a6bb0 fix(workflows): restore release and point to code-rs 2025-10-06 08:54:53 +10:00
James Peter 9374db2a1f chore(tui): remove legacy overlay stack 2025-10-06 08:48:22 +10:00
James Peter ab33834aae chore(tui): drop vt100-tests flag and sync docs 2025-10-06 08:40:54 +10:00
James PeterandClaude 12543222de docs: add comprehensive session summary for 2025-10-06
Created detailed summary document capturing all work completed during
the Phase 1 cleanup session.

Session Achievements:
- Completed Phase 1-3: Baseline & Tooling, Crate Adoption, Fork Cleanup
- Removed 35,000 lines of legacy test code (106 files)
- Adopted upstream crates (mcp-client, responses-api-proxy)
- Audited feature flags and module usage (all active, no dead code)
- Documented test scaffolding patterns (ChatWidgetHarness)
- Created 5 new migration/maintenance documentation files

Metrics Summary:
- Test files: 205 → 99 (-52%)
- Test code lines: 46,300 → 11,300 (-76%)
- Orphaned modules: 6 → 0 (100% removed)
- Build time: 1m 30s (no regression)
- Documentation: 5 new comprehensive guides

Commits Created (4):
1. Legacy test retirement and upstream crate adoption
2. Feature flag and module audit completion
3. Test scaffolding patterns documentation
4. Roadmap update with completion status

Next Steps Identified:
- Checkout upstream to codex-rs/ for test porting
- Begin Phase 2: Port 6 critical core runtime tests
- Begin Phase 3: Port 3 TUI rendering tests
- Expand smoke test coverage using documented patterns

Status: Phase 1 Complete ✅ | Phase 2-4 Ready 🔄 | Upstream Checkout Needed 📋

Session captured all deliverables, metrics, lessons learned, and blockers
for future reference and continuity.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
2025-10-06 05:25:36 +10:00
James PeterandClaude 44440bbf33 docs: update roadmap with Phase 1 completion status
Updated ROADMAP.md to reflect all completed Phase 1 work and reorganize
next actions with completion markers.

Completed (2025-10-06):
- Feature flag audit: code-fork properly used, gates 12 TUI extensions
- Module usage audit: All core and TUI modules actively used
- Test scaffolding documentation: ChatWidgetHarness patterns documented
- Dead code inventory: Comprehensive audit summary added

Active Work:
- Phase 2: Core runtime test porting (blocked on codex-rs/ checkout)
- Upstream diff review (requires codex-rs/ directory setup)
- Smoke test expansion (ongoing, following documented patterns)

Next Steps:
- Checkout upstream to codex-rs/ for diff tracking and test porting
- Begin porting 9 critical tests per legacy-tests-retirement.md
- Expand smoke test coverage using documented harness patterns

All Phase 1-3 objectives complete (Baseline & Tooling, Crate Adoption,
Fork Cleanup). Phase 4 (Test Suite Rebuild) in progress with scaffolding
complete and porting plan documented.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
2025-10-06 05:23:48 +10:00
James PeterandClaude 880551b7cd docs: document test scaffolding patterns and helpers
Added comprehensive documentation for the new test scaffolding infrastructure
created for code-rs smoke tests.

Test Scaffolding Documentation:
- ChatWidgetHarness: Test harness for widget testing without terminal I/O
- Assertion helpers: Pre-built assertions for common test patterns
- Usage examples: Real-world test patterns from ui_smoke.rs
- Best practices: Guidelines for writing maintainable smoke tests
- Extension guide: How to add new helpers and harness variants

Helper Functions Documented:
- ChatWidgetHarness::new() - Create test harness with defaults
- harness.handle_event() - Send protocol events to widget
- harness.drain_events() - Collect emitted AppEvents
- assert_has_insert_history() - Verify history insertion
- assert_has_background_event_containing() - Check background events
- assert_has_terminal_chunk_containing() - Verify terminal output
- assert_has_codex_event() - Check CodexEvent emission
- assert_no_events() - Verify no events emitted

Future Infrastructure:
- AppHarness for full app-level testing
- ExecutorHarness for command lifecycle testing
- MCPHarness for MCP server interaction testing
- VT100 replay tests for rendering regression testing

This documentation enables developers to write new smoke tests following
established patterns and expand test coverage incrementally.

Related: chatwidget::smoke_helpers in code-rs/tui/src/chatwidget/smoke_helpers.rs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
2025-10-06 05:23:09 +10:00
James PeterandClaude 452e3cb374 docs: complete feature flag and module audit
Completed comprehensive audit of code-fork feature flag usage and module
organization across code-rs workspace.

Audit Results:
- Feature flags: All flags actively used, no unused flags detected
  - code-fork: Enabled by default, gates 12 fork-specific TUI extensions
  - vt100-tests: Retained for future test scaffolding
  - debug-logs, dev-faults: Active for development

- Module usage: All core and TUI modules actively used
  - code-rs/core subdirs (codex/, unified_exec/, exec_command/): All active
  - code-rs/tui modules: No orphaned code detected
  - #![allow(dead_code)]: 9 files with acceptable usage (helpers, utilities)

- Dead code status: No critical dead code remaining after Phase 1 cleanup
  - 35,000+ lines removed (106 test files + 6 orphaned modules)
  - All remaining code actively used and properly integrated

Updated DEAD_CODE_INVENTORY.md with:
- Feature flag audit results and usage details
- Module usage verification for core and TUI
- Audit summary section with documentation links
- Updated success metrics reflecting Phase 1 completion

Next: Focus on porting 9 critical tests per legacy-tests-retirement.md

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
2025-10-06 05:20:34 +10:00
James PeterandClaude 72437dddb6 chore: complete legacy test retirement and upstream crate adoption
This commit completes Phase 1 of the codebase cleanup plan documented in
ROADMAP.md and related migration documents.

Major changes:
- Removed legacy test suites from code-rs/ crates (~35,000 lines)
- Adopted upstream codex-mcp-client and codex-responses-api-proxy
- Deleted TUI compat layer, agent task planning docs, and orphaned modules
- Updated documentation to reflect current state and future phases

Test Coverage:
- Deleted tests from: app-server, apply-patch, chatgpt, cli, core, exec,
  login, mcp-server
- Documented 9 remaining coverage gaps requiring new tests (see
  docs/migration/legacy-tests-retirement.md)
- Preserved smoke test infrastructure in tui/tests/ui_smoke.rs

Crate Adoptions:
- mcp-client: Now re-exports codex-mcp-client with fork-specific buffer config
- responses-api-proxy: Now re-exports codex-responses-api-proxy with minimal
  wrapper
- mcp-types: Updated to use upstream types where possible

TUI Cleanup:
- Removed compat.rs ratatui adapter layer
- Deleted obsolete modules: app_backtrack, custom_terminal, scroll_view,
  text_block, transcript_app
- Archived agent_tasks/ planning docs to docs/archive/

Documentation Updates:
- ROADMAP.md: Marked Phases 1-2 complete, updated next actions
- TEST_SUITE_RESET.md: Documented Phase 1 completion
- DEAD_CODE_INVENTORY.md: Updated with deletion outcomes
- Added docs/migration/legacy-tests-retirement.md with 6-week plan
- Added docs/maintenance/prompt-architecture.md

Next Steps (Phase 2-3):
- Port critical test coverage (9 test files identified)
- Expand smoke test scenarios
- Continue upstream tracking per monthly cadence

See docs/migration/ for detailed migration status and roadmap.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
2025-10-06 05:15:48 +10:00
James Peter a79664e2b9 Merge branch 'code-branch-20251005-024843' 2025-10-05 20:49:49 +10:00
James Peter 100db6b093 docs: reset roadmap and add maintenance guides 2025-10-05 20:48:06 +10:00
James Peter 991ffd5e88 Revert "refactor(tui): route ratatui imports through compat"
This reverts commit 40c479f2cc.
2025-10-05 19:48:52 +10:00
James Peter 40c479f2cc refactor(tui): route ratatui imports through compat 2025-10-05 19:27:12 +10:00
James Peter 970096b02c docs(tui): expand legacy plan and add smoke test scaffold 2025-10-05 18:34:07 +10:00
James Peter 408f4be916 feat(tui): add compat adapter and smoke documentation 2025-10-05 17:33:29 +10:00
Code Snapshot 6a26f04c48 code snapshot 2025-10-05 16:22:02 +10:00
James Peter 4e7e49cf80 Merge branch 'code-branch-20251005-013414' 2025-10-05 12:06:02 +10:00
James Peter c785f2da58 chore(codex-rs): sync with upstream main 2025-10-05 12:05:06 +10:00
James Peter 2690f8729b fix(core/git_worktree): restore cache mirror toggle 2025-10-05 12:02:23 +10:00
James Peter 3cd0db1903 fix(core/git_worktree): gate cache copying behind env 2025-10-05 11:32:59 +10:00
James Peter 7225a58a1b fix(branch): ignore dev-fast CLI shims 2025-10-05 11:25:00 +10:00
James Peter 466475b427 chore(build): make code workspace default 2025-10-05 10:39:13 +10:00
James Peter ddffc8284a fix(core/git-worktree): gate target cache mirroring 2025-10-05 10:38:55 +10:00
James Peter 378a658e92 feat(core/git_worktree): mirror build caches in branch worktrees 2025-10-05 09:28:51 +10:00
James Peter d257af00dd fix(tui/auto): skip review wait when disabled 2025-10-05 09:28:37 +10:00
James Peter 6dff174f69 Merge branch 'code-branch-20251004-135106' 2025-10-05 09:07:43 +10:00
James Peter bef3c895ee merge code-branch-20251004-135106 via /merge 2025-10-05 09:07:09 +10:00
James Peter 59f22502c2 chore(workspace): sync codex tree and finish reset plan 2025-10-05 09:04:09 +10:00
James Peter c09362bc63 docs(plan): record snapshot and pruning strategy 2025-10-05 04:57:59 +10:00
James Peter 929a57ffab feat(code-rs): add forked workspace and dual build support 2025-10-05 04:27:49 +10:00
James Peter c15947f4a3 Merge branch 'code-branch-20251004-180006' 2025-10-05 04:27:33 +10:00
James Peter 17b8328b3e feat(core/git_worktree): mirror build caches in branch worktrees 2025-10-05 04:21:55 +10:00
James Peter e8cdadff2b Merge branch 'code-branch-20251004-174132' 2025-10-05 03:57:34 +10:00
James Peter 260ec9eaaf fix(tui/auto): skip review wait when disabled 2025-10-05 03:57:16 +10:00
James Peter 9f83056ae3 Merge branch 'code-branch-20251004-124344' 2025-10-04 23:49:12 +10:00
James Peter 03d21938f8 merge local main into code-branch-20251004-124344 before merge 2025-10-04 23:49:12 +10:00
James Peter 1ed6a22bdf fix(core/agents): honor write mode and apply cloud diffs 2025-10-04 23:47:16 +10:00
James Peter 767b9880fb Merge branch 'code-branch-20251004-123518' 2025-10-04 23:45:16 +10:00
James Peter f793682161 feat(tui/auto): add setup toggles for Auto Drive 2025-10-04 23:26:29 +10:00
James Peter 09d77044c8 docs(plan): reset strategy for code/core refactor 2025-10-04 22:34:23 +10:00
James Peter a0f571bc00 chore(workflows): remove issue automation jobs 2025-10-04 12:50:23 +10:00
James Peter add93a55db Merge branch 'code-branch-20251003-215900' 2025-10-04 12:43:18 +10:00
James Peter d0d1746fe8 merge local main into code-branch-20251003-215900 before merge 2025-10-04 12:43:18 +10:00
James Peter 2655594d1c merge main into code-branch-20251003-215900 before merge 2025-10-04 12:43:18 +10:00
James Peter 293b6243b8 ci(workflows): keep legacy issue/preview/upstream-only 2025-10-04 12:36:16 +10:00
James Peter 38fbc04cf0 Merge branch 'code-branch-20251003-220814' 2025-10-04 12:17:46 +10:00
James Peter 42454ef617 merge local main into code-branch-20251003-220814 before merge 2025-10-04 12:17:46 +10:00