Skip to content

[pull] main from QwenLM:main - #533

Merged
pull[bot] merged 2 commits into
bit-cook:mainfrom
QwenLM:main
Aug 31, 2026
Merged

[pull] main from QwenLM:main#533
pull[bot] merged 2 commits into
bit-cook:mainfrom
QwenLM:main

Conversation

@pull

@pull pull Bot commented Aug 31, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

yiliang114 and others added 2 commits August 31, 2026 17:46
…t related docs (#10479)

* test(core): pin tools.eager Object.prototype-key tolerance and correct related docs

Item 1 of #10400 (a tools.eager entry named after an Object.prototype
key crashing PermissionManager.initialize) was already fixed before
#10098 merged: resolveToolName only reads own properties of the alias
table and the crashing unknown-entry loop was removed. Pin that contract
with regression tests so a reintroduction fails CI:

- initialize() tolerates constructor/toString/valueOf/... eager entries
- resolveToolName returns Object.prototype-keyed names unchanged
- config.test.ts: add the third LS x tools.eager cell (enabled and
  covered by the list -> registered eagerly)

Also correct the doc inaccuracies tracked in the issue:

- settings.md: permissions.deny blocks MCP tool calls at runtime but
  does not remove them from the registry (tools.disabled / the
  per-server excludeTools filter does)
- ToolSearch-absent caveat (5 copies): note the resumed-session history
  re-reveal and tools.visible carve-outs
- sdk-typescript docs + README: note the tools.eager exempt families

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* test(core): cover visible permission-deferred tools

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

---------

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Copy buttons flip to a check mark and schedule a bare
setTimeout(() => setCopied(false)) to reset it. When a test file's
environment is torn down within that window the callback throws
ReferenceError: window is not defined out of react-dom's state
dispatch, and since the unit suites fail on unhandled errors an
all-green run exits 1 — main's own Test (ubuntu) hits this through
AssistantMessage.test.tsx.

A new useCopiedFlash hook owns the transient flag: flash() sets it and
schedules the reset, a re-flash restarts the window instead of letting
the older timer cut the newer feedback short, and unmount clears the
pending timer. The six call sites with the bare pattern (assistant,
system and timestamp messages, both Markdown code-block buttons, the
Git log dialog) adopt it; SessionOverviewPanel's SessionIdCell already
carried the cleanup. Two tests pin the cleanup via vi.getTimerCount()
after unmount and one pins the restarted window.
@pull pull Bot locked and limited conversation to collaborators Aug 31, 2026
@pull pull Bot added the ⤵️ pull label Aug 31, 2026
@pull
pull Bot merged commit bd59085 into bit-cook:main Aug 31, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants