Skip to content

fix(chat): stop local workspace selection from hanging the turn - #3169

Merged
jubaoliang merged 1 commit into
developfrom
fix/local-execution-hang
Nov 26, 2026
Merged

jubaoliang merged 1 commit into
developfrom
fix/local-execution-hang

Conversation

@jubaoliang

Copy link
Copy Markdown
Collaborator

Summary

  • 选本地目录时,目录树的 loadData 在节点还没记入 loadedKeys 时就结束,rc-tree 会不停重新加载,页面卡死。同一时刻进行中的加载现在共用一个 Promise,失败会抛回去让树重试。
  • 目录树下拉原来挂在会话输入栏的 Popover 里面,两个弹层互相重新对齐,也会把标签页卡死。下拉改到 document.body,树开着时不再关掉外层 Popover;选中目录卸掉树时会清掉「树仍打开」标记,避免之后点外面关不掉。
  • 托管 runner 自己的 shell / 写入会等一张永远不会出现的权限卡,回合停在生成中。目录已绑定时,在任何 await 之前直接拒绝这类调用。

Target branch

  • Base is develop (feature / fix — default)
  • Base is main (release/* or hotfix/* only)

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Refactor / chore
  • Release / hotfix

Test plan

  • make all passes locally

  • Added/updated tests

  • uv run pytest tests/unit/agents/test_team_file_target.py::test_bound_runner_shell_is_denied_without_waiting_for_a_card tests/unit/agents/test_team_file_target.py::test_runner_shell_stays_on_the_initiator_after_the_prompt_context_ends tests/unit/agents/test_team_file_target.py::test_runner_write_is_denied_and_not_reported_as_the_selected_directory — 3 passed

  • cd dashboard && npx vitest run src/pages/Experts/components/RootDirSelect.test.tsx src/pages/Experts/components/RootDirSelect.expand.test.tsx — 9 passed

  • cd dashboard && npx tsc -b — passed

  • make precommit 的 format、ruff、mypy 已通过。testmon 因切到最新 develop 选中了约 6300 个用例,本地未跑完;完整套件交给 CI。

  • 浏览器里实际点开「本地 → 添加目录」展开树、选中目录、点空白处关闭,这次没有可用的浏览器工具,未在页面上点过。

Checklist

  • README / docs updated (if needed)

Made with Cursor

The directory picker resolved its loader before the node was marked loaded, and the tree dropdown sat inside the composer popover, so the tab froze. A managed runner's own shell also waited on a permission card that never renders.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jubaoliang
jubaoliang merged commit aa1f8c3 into develop Nov 26, 2026
8 checks passed
@jubaoliang
jubaoliang deleted the fix/local-execution-hang branch November 26, 2026 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants