Skip to content

[codex] Refactor output plans and cleanup logic - #417

Merged
TrueNine merged 2 commits into
mainfrom
codex/refactor-output-plans
Aug 11, 2026
Merged

TrueNine merged 2 commits into
mainfrom
codex/refactor-output-plans

Conversation

@TrueNine

Copy link
Copy Markdown
Owner

Summary

  • consolidate output-plan construction and shared cleanup behavior
  • preserve child and global memory routing across supported output adaptors
  • add cross-platform path normalization and packaging smoke regression coverage

Why

The output plans duplicated path and home-directory handling, which made cleanup behavior inconsistent and caused path-sensitive tests to fail on Windows. Packaging coverage also lived in targets that no longer matched the current crate layout.

Impact

Output generation now uses shared behavior while retaining the existing target-specific files. CI packaging checks use the current CLI and MCP assembly flow.

Validation

  • cargo test -p tnmsd regression_tests
  • bun run --cwd doc lint
  • bun run --cwd doc check:type
  • CI workflow YAML parse

- Introduced workspace scope handling in base_output_plans to manage cleanup files.
- Updated cleanup logic to exclude workspace scope files from deletion.
- Enhanced path normalization across output plans to ensure consistent path formatting.
- Refactored regex compilation in project_prompt and skill modules for efficiency.
- Improved error handling and logging in clean, dry_run, and install services.
- Simplified output file building logic in output_plan service.
- Added tests to validate new cleanup behavior and path normalization.
# Conflicts:
#	.github/workflows/ci.yml
#	doc/app/docs/[[...mdxPath]]/layout.tsx
#	sdk/src/domain/output_plans/mod.rs
@TrueNine
TrueNine marked this pull request as ready for review August 11, 2026 15:02
@TrueNine
TrueNine merged commit e64b8e4 into main Aug 11, 2026
13 checks passed
@TrueNine
TrueNine deleted the codex/refactor-output-plans branch August 11, 2026 15:03
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.

1 participant