Skip to content

fix: isolate tests from workspace CODI_HOME env var#300

Merged
laynepenney merged 1 commit intomainfrom
fix/test-failures
Feb 12, 2026
Merged

fix: isolate tests from workspace CODI_HOME env var#300
laynepenney merged 1 commit intomainfrom
fix/test-failures

Conversation

@laynepenney
Copy link
Copy Markdown
Collaborator

Summary

  • Add vitest setup file (tests/setup.ts) that deletes CODI_HOME from process.env before tests run
  • The workspace envsetup.sh sets CODI_HOME to the gripspace .codi directory, which leaked into tests and broke path isolation for unit tests (session, memory, model-map) and E2E tests (debug-bridge, session-commands)

Test plan

  • All 2203 tests pass (0 failures), previously 22 failures across 5 test files
  • Full suite run twice to confirm no flakiness

🤖 Generated with Claude Code

Add vitest setup file that deletes CODI_HOME from process.env before
tests run. The workspace envsetup.sh sets CODI_HOME to the gripspace
.codi directory, which leaked into tests and broke path isolation for
unit tests (session, memory, model-map) and E2E tests (debug-bridge,
session-commands).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@laynepenney laynepenney merged commit 4b4e662 into main Feb 12, 2026
3 checks passed
@laynepenney laynepenney deleted the fix/test-failures branch February 12, 2026 17:44
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