Address the open review findings on the Host web client without changing how
the desktop starts: the desktop no longer auto-discovers and joins a running
Host (only an explicit CINDY_HOST_API does).
- pairing: one-time pairing exchanges for a session cookie; the home page no
longer issues credentials or embeds the API token; Host/Origin checks,
session expiry closes event streams, logout clears cookies.
- credentials/accounts: provider keys are scoped by account/provider/engine and
never fall back to the gateway key; model catalog cache is isolated per
account; logout reuses the desktop saved-account tombstone policy; macOS and
Windows credentials go through a private Electron safeStorage helper.
- execution: input queue claims its slot before async preparation, keeps input on
failure, stops cleanly while preserving streamed output, pauses on save
failure, and deleting a task stops and clears it; SDK session context is
restored after refresh and Host restart.
- web shim: unsupported actions fail instead of reporting success.
- desktop explicit Host mode: auth, interaction and input-queue events reach the
existing channels; shared storage cores (project aliases, recent workdirs,
ghost snapshot worker) are used by both desktop and Host.
- CI: Host regression matrix on macOS, Windows and Linux; fix the task tag
migration test to use the new migration config.
Out of scope here: a windowless Electron helper and custom MCP storage
extraction. Simulated OS tests do not replace real keychain/DPAPI or
three-platform validation; see docs/host/pr-9246-completion.md.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
* docs: fix dangling internal links and widen the link gate
`docs/legal/README.md` and `docs/README.md` still linked the two WeChat
compliance records that 1260b7c4 ("chore(docs): remove wechat related
documents") deleted, and `openai-chat-dual-channel-plan.md` pointed at two
files that never existed in this repository's history.
- `docs/legal/README.md`: drop the now-empty "人工维护的合规记录" section.
- `docs/README.md`: drop the index row for the deleted record.
- `openai-chat-dual-channel-plan.md`: `subscription-bridge.md` has no
successor doc, so reference `packages/anthropic-responses-bridge` (whose
description covers exactly that Anthropic Messages -> OpenAI Responses
bridge) instead; repoint `configuration-design-principles.md` to its
successor `dev-rules/configuration-and-overrides.md`, which owns the
override / restore-default semantics the sentence relies on.
The existing "developer documentation links resolve" test only covered
CONTRIBUTING plus three canonical docs, so none of these were caught. Widen
it to AGENTS.md, both CONTRIBUTING files and every markdown file under
`docs/` (5 -> 47 documents).
Extending the coverage requires ignoring code, because design-rules/DESIGN.md
demonstrates markdown link syntax inline (`[x](y)`). `stripCodeSpans` removes
fenced blocks before inline spans (fences contain backticks, so the reverse
order eats the fence itself). Links written as [`foo.md`](./foo.md) keep
working: stripping leaves [](./foo.md) and the target is still inside the
parentheses.
Note: the WeChat connector itself still ships (`packages/wechat-ilink`); this
change only removes references to files that are already gone. Whether those
compliance records should be restored is a maintainer/legal call, not part of
this change.
Verification:
- `node --test scripts/__tests__/dev-docs-contract.test.mjs` -> 6/6 pass.
- Negative check: re-adding one dangling link fails the widened test with
`broken local link in docs/legal/README.md: ./wechat-open-sdk-compliance.md`;
reverting it goes back to green.
- `pnpm test:unit` -> 56 workspaces PASS, 0 FAIL.
- No package with a `typecheck` script is touched (docs plus the root
`scripts/` test), so the per-package typecheck step is a no-op.
Signed-off-by: Zymonody7 <2196905367@qq.com>
* test(docs-contract): strip indented fences and multi-backtick code spans
Review follow-up (Greptile): `stripCodeSpans` only recognised fences at column
0 and single-backtick inline spans, and both forms already exist in the docs it
now checks:
- indented fences (inside list items) — `docs/design-rules/DESIGN.md:435` and
`docs/dev-rules/pi-remaining-work.md:27`;
- a multi-backtick span whose content itself contains backticks —
`docs/product-rules/task-and-conversation-naming.md:390`
(`` `${n} 个会话` ``).
Neither currently holds markdown-link syntax, so the gate passes either way.
The risk is latent: adding a link example inside one of them would fail the
gate on something that is not a link.
- Fences now allow leading whitespace on both the opener and the closer.
- Inline spans pair on equal-length backtick runs, so a span containing
backticks is removed whole. Deliberately does not cross newlines — a stray
backtick must not silently disable link checking for the rest of the file.
Verification:
- `node --test scripts/__tests__/dev-docs-contract.test.mjs` -> 6/6 pass
(unchanged across all 47 documents).
- Behaviour spot-checks on the stripper: links inside an indented fence, inside
a single-backtick span, and inside a multi-backtick span are all dropped,
while a plain link and [`foo.md`](./foo.md) both survive.
- Negative check still holds: re-adding a dangling link fails with
`broken local link in docs/legal/README.md: ./wechat-open-sdk-compliance.md`.
- `pnpm test:unit` -> 56 workspaces PASS, 0 FAIL.
Signed-off-by: Zymonody7 <2196905367@qq.com>
---------
Signed-off-by: Zymonody7 <2196905367@qq.com>
* ci: 并行拆分 Windows 单测门禁
Signed-off-by: david <david@xd.com>
* fix(ci): 收窄空分片兼容范围
Signed-off-by: david <david@xd.com>
---------
Signed-off-by: david <david@xd.com>
* test: 建立 Windows 路径单测门禁
Signed-off-by: david <david@xd.com>
* fix(scripts): 统一 Windows worktree 实路径
Signed-off-by: david <david@xd.com>
* test(desktop): 覆盖 Windows no-follow 回退
Signed-off-by: david <david@xd.com>
* test(desktop): 对齐 Windows 真实路径夹具
Signed-off-by: david <david@xd.com>
---------
Signed-off-by: david <david@xd.com>