Repository navigation
fix(chat): stop local workspace selection from hanging the turn - #3169
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
loadData在节点还没记入loadedKeys时就结束,rc-tree 会不停重新加载,页面卡死。同一时刻进行中的加载现在共用一个 Promise,失败会抛回去让树重试。document.body,树开着时不再关掉外层 Popover;选中目录卸掉树时会清掉「树仍打开」标记,避免之后点外面关不掉。Target branch
develop(feature / fix — default)main(release/*orhotfix/*only)Type of change
Test plan
make allpasses locallyAdded/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 passedcd dashboard && npx vitest run src/pages/Experts/components/RootDirSelect.test.tsx src/pages/Experts/components/RootDirSelect.expand.test.tsx— 9 passedcd dashboard && npx tsc -b— passedmake precommit的 format、ruff、mypy 已通过。testmon 因切到最新develop选中了约 6300 个用例,本地未跑完;完整套件交给 CI。浏览器里实际点开「本地 → 添加目录」展开树、选中目录、点空白处关闭,这次没有可用的浏览器工具,未在页面上点过。
Checklist
Made with Cursor