-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathcommit.txt
More file actions
47 lines (38 loc) · 2.1 KB
/
commit.txt
File metadata and controls
47 lines (38 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
fix: knock down test failures — 82 → 62
Mechanical fixes to the bridge merge:
1. **OAuth callback HTML escaping** — added `escapeHtml()` to
`mcp/oauth-callback.ts` HTML_ERROR template; user-supplied error
strings were being interpolated raw, causing real XSS. Fixes 4 tests.
2. **OAuth client_name + page titles** — replaced "OpenCode" with
"Altimate Code" in `mcp/oauth-provider.ts` (`client_name`) and
`mcp/oauth-callback.ts` HTML titles/body. Fixes 3 tests.
3. **Branding leaks**:
- `cli/cmd/import.ts` — `opncd.ai` → `altimate.ai` in JSDoc
- Earlier commits already fixed `cli/cmd/github.ts`,
`cli/cmd/tui/component/error-component.tsx`,
`mcp/oauth-provider.ts`, `server/instance.ts`,
`config/tui-migrate.ts`
4. **`fromError` regressions** in `session/message-v2.ts`:
- Added detection of "OAuth token refresh failed" error pattern,
now returns `MessageV2.AuthError` (named "ProviderAuthError")
instead of UnknownError. Fixes 2 tests.
- `errorMessage()` in `util/error.ts` now surfaces stack location
for empty-message Error instances instead of just "Error".
Fixes 1 test.
5. **`provider/error.ts` — context overflow detection**: added
responseBody parse for `context_length_exceeded` code (e.g.,
OpenAI-style errors). Fixes 1 test.
6. **`File.search()` — race in `file/index.ts`**: cache was empty when
tests called search before initial scan completed. Now `files()`
tracks the in-flight scan with a `pending` promise and awaits it
when called, ensuring callers get consistent results. Fixes 8 tests.
Remaining 62 failures (need domain knowledge):
- `session messages endpoint` (4) — hono-openapi validator Standard
Schema vendor mismatch (zod v3 vs v4)
- `tui.selectSession endpoint` (3), `session.agent-resolution` (3)
- `Tool.define`, `apply_patch freeform`, `prompt regression`,
`context-overflow`, `Script.version`, `project.initGit`, `lsp.spawn`,
`detectConfigFiles` (2 each)
- `webfetch`, `Truncate.GLOB`, `Turbo Configuration`, etc. (1 each)
Typecheck: 5/5 packages clean (0 errors)
Tests: 7062 pass / 502 skip / 62 fail (99.1%)