Files
magpie/internal/cli
yetone e894443932 trae: a check-in Trae CN refused 9074 says Trae refused it and to check in in the Trae CN app, not that Trae pays only its own app (#1920)
#1920 showed Buddy Switch checking in third-party Trae CN accounts, so
"Trae CN only gives check-in credits to its own app" wasn't true. What is
known is that Trae CN answered the claim 9074 (当前参与用户太多). The
own-app outcome stays as it was (the day's answer, no Check in now), but a
Trae account (By "trae") now has its own text in every place it shows:

- GUI card and Settings line: two new keys in en, zh, zh-TW, ja and de
  ("Trae CN refused this check-in (9074: too many taking part); check in
  in the Trae CN app" / "Trae CN 拒绝了这次签到(9074 当前参与用户太多),
  请在 Trae CN App 里签到"). WorkBuddy keeps the shared own-app key.
- TUI line and cell, CLI: provider.TraeRefusedWords; the cell says
  "签到 refused by Trae CN (9074) · check in in its app".
- trae_checkin.go, workbuddy_checkin.go and provider-plugins.md comments
  and the claim's fallback message say the same. They also note the
  plugin side: since @magpie-community/opencode-trae-auth 0.2.14 the
  account the machine's own Trae CN client is signed in as checks in with
  the client's device id, read only. No id is made up or rotated (#1705).

Ran (worktree at origin/main 9d97fd073, -tags nogui, -p 1):
- gofmt -l internal/: clean. go vet ./internal/{tui,cli,provider} for
  darwin, linux and windows.
- go test ./internal/tui ./internal/cli: ok.
- go test -run 'Trae|Checkin|WorkBuddy' ./internal/provider: ok.
- GUI: usage-checkin.test.cjs and i18n-keys.test.cjs in Chromium and
  WebKit, en and zh: 31 pass, 0 fail.

Broken by hand:
- app.js's card without the Trae branch: the renamed usage-checkin test
  fails in chromium en/zh and webkit en/zh (4 of 4).
- pages.go's ownAppWords without the Trae branch: the new
  TestTraeOwnAppSaysTraeRefused fails.

Not tried: a real Trae CN account. No test checks the CLI line on its
own. The ja, de and zh-TW strings are checked only by i18n-keys.

Full suite: SUITE_LINE
2026-10-15 23:08:02 +08:00
..