Skip to content

fix: resolve all test failures from fork restructure#91

Merged
kulvirgit merged 1 commit intomainfrom
fix/test-failures-v2
Mar 7, 2026
Merged

fix: resolve all test failures from fork restructure#91
kulvirgit merged 1 commit intomainfrom
fix/test-failures-v2

Conversation

@kulvirgit
Copy link
Copy Markdown
Collaborator

Summary

  • Add null guard to NamedError.isInstance() preventing TypeError on null input
  • Add Azure OpenAI overflow detection patterns for context overflow handling
  • Fix token estimation tests to use new content-aware ratio (3.7)
  • Fix compaction/prune config tests: altimate-code.jsonopencode.json
  • Fix install test fixtures: @opencode-ai/opencode@altimateai/altimate-code
  • Fix bin/altimate-code entry in package.json to point to dedicated wrapper
  • Fix test import paths for relocated modules (bridge/client, bridge/engine, tool/project-scan)
  • Add synthetic pending emission + bash output streaming to ACP agent event handler

Test plan

  • All 1561 tests pass (0 failures, 8 skips)
  • Verified pre-existing typecheck error in src/plugin/index.ts exists on main (not introduced by this PR)

- Add null guard to `NamedError.isInstance()` preventing `TypeError` on null input
- Add Azure OpenAI overflow detection patterns (`the request was too long`,
  `maximum tokens for requested operation`)
- Fix token estimation tests to use new content-aware ratio (3.7)
- Fix compaction/prune config tests: `altimate-code.json` → `opencode.json`
- Fix install test fixtures: `@opencode-ai/opencode` → `@altimateai/altimate-code`
- Fix `bin/altimate-code` entry in `package.json` to point to dedicated wrapper
- Fix test import paths for relocated modules (`bridge/client`, `bridge/engine`,
  `tool/project-scan`)
- Add synthetic pending emission + bash output streaming to ACP agent event handler
- Add `pendingEmitted` tracking set and clear bash snapshots on pending state

Co-Authored-By: Kai (Claude Opus 4.6) <noreply@anthropic.com>
@kulvirgit kulvirgit merged commit 473523e into main Mar 7, 2026
7 of 12 checks passed
@kulvirgit kulvirgit deleted the fix/test-failures-v2 branch March 9, 2026 20:50
anandgupta42 pushed a commit that referenced this pull request Mar 17, 2026
fix: resolve all test failures from fork restructure
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