Skip to content

Fix test failure: Add MockLLMAPI for test mode#34

Closed
Copilot wants to merge 3 commits intomainfrom
copilot/fix-linux-command-test
Closed

Fix test failure: Add MockLLMAPI for test mode#34
Copilot wants to merge 3 commits intomainfrom
copilot/fix-linux-command-test

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 16, 2026

Rebase Branch on Current Main - COMPLETE

Plan:

  • Check current branch state and identify commits to rebase
  • Fetch latest main branch from origin
  • Perform rebase of current branch onto main
  • Resolve conflicts in 5 files (config/index.ts, loz.ts, llm/index.ts, index.ts, README.md)
  • Rebuild and verify tests still pass
  • Force push rebased branch to remote

Rebase Summary:

Successfully rebased copilot/fix-linux-command-test onto main (commit fbdaae1).

Changes Rebased:

  • MockLLMAPI Implementation: Added mock LLM API for test mode
  • Config Test Mode Handling: Skip interactive prompts when MOCHA_ENV=test
  • Test Mode Detection: Use MockLLMAPI when running in test mode

Conflicts Resolved:

  1. src/config/index.ts: Merged test mode check into current config loading logic
  2. src/loz.ts: Added MockLLMAPI import and test mode initialization
  3. src/llm/index.ts: Added MockLLMAPI class implementation
  4. src/index.ts: Kept main version (includes new agent mode features)
  5. README.md: Kept main version (includes agent mode documentation)

Test Results After Rebase:

✅ Build successful
✅ "Handle no output" test passes
✅ All "Linux Command Test" suite tests pass (3/3)

The branch now has 1 clean commit on top of the latest main branch.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits February 16, 2026 20:09
Co-authored-by: joone <1979160+joone@users.noreply.github.com>
Co-authored-by: joone <1979160+joone@users.noreply.github.com>
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