Repository navigation
fix(project-context): follow-ups to the folder trust prompt - #6987
Conversation
Signed-off-by: Akshat Lakhera <[email protected]>
|
Verdict: Approve This is a clean follow-up to the folder trust prompt. The Agent UI now says it is asking to trust a folder instead of claiming to read its files, the guide explains that a trusted folder stays trusted when its files change, and the two copies of the "can anyone answer this prompt?" check are now one shared function. The merged check behaves exactly like both old copies, and the new tests pin each caller to it. I found no blocking issues. Real-world evidenceN/A: no evidence bundle was produced for this run. The only visible change is one line of Agent UI narration text, which a unit test checks directly. This verdict rests on reading the code. I could not run the tests here because the runner has no Python test environment. 🔍 Technical detailsIssues found 🟢 Agent UI and TUI word the narration slightly differently when a folder is given ( Checks run
Strengths
|
Summary
This picks up the review notes left on #6965 once the trust prompt went in, covering the project map guide, the Agent UI narration and the duplicated prompt check.
Why
The project map guide still said a Claude model gets the repository's guidance under auto without mentioning that the folder has to be trusted first, and it never explained what happens when a trusted folder's files change later, while the Agent UI kept saying "Reading this folder's instructions and skills" even though it was only asking the question, and the check for whether anyone is there to answer a prompt was written twice, once for path access and once for the trust prompt, so the two could easily drift apart.
Linked issue
Refs #6289
Changes
The guide now says that auto only loads a folder's guidance once you trust it and that the answer is saved under the folder's path rather than its contents, so a pull that adds or changes a CLAUDE.md, an AGENTS.md or a skill doesn't bring a new question while a moved folder or a second clone gets asked again. The Agent UI narration now reads "Asking to trust this folder" to match the TUI, and the duplicated check has become a single someone_can_answer helper in console.py that both path access and the trust prompt call, behaving exactly as before and with tests on each caller so they stay in sync. The Arabic strings are left as they are and still need a native speaker to look at them.
Test plan
I ran pytest on test_project_trust, test_sse_narration, test_path_access_prompt and test_console_tool_confirmation along with python util/lint.py --all, and everything touched by this change passes.
Evidence
There are no screenshots since the only visible change is the narration text, which test_sse_narration checks directly.
PTAL @kovtcharov-amd