[Bug]: The trust prompt does not show which directory it will trust
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
The trust prompt is rendered in src/ui/trusted.rs, and the value Yes saves is app.trust.project_key. Read how the prompt builds its lines, and check how wrapped_line_count sizes wrapped rows. Done means the stored project key appears under the question at a 100x14 terminal, wraps rather than truncating its end, and the 'Unknown Project' title is replaced.
Written by the indexing model from the issue text.
Description
Description
The trust screen is titled "Unknown Project" and never names the directory. Yes saves trust for the normalised absolute form of the start directory, which differs from the shell's directory when -C/--dir is used, so the user cannot see what they are agreeing to.
Steps to Reproduce
claude-rs -C /tmp/crs-untrusted-project(any untrusted directory).- Read the prompt.
Expected Behavior
The prompt shows the absolute path Yes will save, wrapped rather than truncated on narrow terminals.
Actual Behavior
At 100x14:
┌Unknown Project──────────────────────────────────────────────────┐
│ Trust this project directory?
│ Claude Rust will wait here until you choose whether to trust this workspace.
│
│ Review the project before continuing if you are unsure.
│ Choose Yes to continue or No to close Claude Rust.
│ > Yes
│ No
The path appears only after the choice, in the footer (Loc: /tmp/crs-untrusted-project).
Version
claude-rs 0.15.2 (main at 70c04ef)
Operating System
macOS (Apple Silicon), macOS 27.2
Rust Version
rustc 1.89.0 (29483883e 2025-08-04)
Proposed approach
In src/ui/trusted.rs, render the stored project key (app.trust.project_key, the value Yes saves; cwd_raw can be a relative -C .) under the question, keeping the end of a long path visible on short screens, and replace the "Unknown Project" title. The existing wrapped_line_count layout already sizes wrapped rows. UI only, no SDK change. My fork has a version of this: https://github.com/ayush5harma/claude-code-rust/pull/29 (second commit).
- Dominant language
- Rust
- Stars
- 261
- Forks
- 57
- Avg merge
- 9h 37m
- Merged PRs (30d)
- 62
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from srothgan/claude-code-rust
-
[Bug]: --dir and --bridge-script are not validated, so a bad path ends at the trust prompt or a "Bridge spawn failure"Possibly taken @ayush5harma claimed this today. Openarea: core help wanted type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
srothgan/claude-code-rust#472 ·
Maintainers usually reply within 1 day
-
[BUG]: Status rename fails before a fresh session is persistedPossibly taken @ayush5harma claimed this today. Openarea: agent-sdk area: tui help wanted status: discussion type: bug
Difficulty 4/5 3-5 days Newbie friendliness 25/100
srothgan/claude-code-rust#469 · 2 comments ·
Maintainers usually reply within 1 day
-
[FEATURE]: Add /export to save session history as MarkdownPossibly taken @ayush5harma claimed this 1 day ago. Openarea: agent-sdk area: core good first issue help wanted type: feature
Difficulty 4/5 3-5 days Newbie friendliness 45/100
srothgan/claude-code-rust#465 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
[FEATURE]: Add /reload for skills and output stylesPossibly taken @ayush5harma claimed this 1 day ago. Openarea: agent-sdk area: core good first issue help wanted type: feature
Difficulty 4/5 3-5 days Newbie friendliness 42/100
srothgan/claude-code-rust#464 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
[FEATURE]: Improve default bridge/SDK logging and startup/hook failure reportingPossibly taken @ayush5harma claimed this today. Openarea: agent-sdk area: core help wanted type: feature
Difficulty 4/5 3-5 days Newbie friendliness 30/100
srothgan/claude-code-rust#463 · 2 comments ·
Maintainers usually reply within 1 day
All issues in srothgan/claude-code-rust
Similar issues
-
test: sim_zero_omega_tests race on shared temp-file names, so two pairs of tests fail at randomOpen
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
pop-os/cosmic-comp#2956 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area:release criticality:p3 documentation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
registrystack/registry-stack#2085 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
libp2p/rust-libp2p#6694 ·
Maintainers usually reply within 1 day