yetone
|
b9895c2ded
|
tests: the gateway's and Devin's tests run on Windows in a home of their own — on Windows os.UserHomeDir reads USERPROFILE, not HOME, so a test that set HOME to a temp dir still found the one USERPROFILE every gateway test shares (and the box's real agents); Devin's CLI keeps its sign-in under APPDATA. Each such test now sets USERPROFILE with HOME (setHome), TestDevinOwnMovesWithPlan sets APPDATA, and the tests whose Claude Code is a shell script skip on Windows, where it can't run and the box's real claude ran instead. Tests only. The gateway suite and TestDevinOwnMovesWithPlan pass on Windows; go test -tags nogui ./... passes on macOS.
|
2026-10-01 20:26:53 +08:00 |
|
yetone
|
44720c6190
|
gateway: Claude Code's WebSearch keeps its metadata through a relay that serves only Claude Code (#359) — a request carrying web_search_20250305 to an Anthropic endpoint other than api.anthropic.com is built again rather than relayed, and the rebuilt body dropped metadata (user_id); a relay limited to the official Claude Code client turned it away with 403. The client's metadata now goes on as sent when an Anthropic request is built for an Anthropic upstream (Bedrock still gets none, as on the relay path, #176). TestClaudeCodeWebSearchKeepsMetadata fails without the change. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass (Claude account tests and TestMoveDevin pass alone; TestCursorPluginContext fails on main since 1ce05f0).
|
2026-10-01 02:12:35 +08:00 |
|