Repository navigation
fix: resolve project icons only for local environments - #33
Merged
eliophan merged 3 commits intoNov 16, 2026
Merged
Conversation
Thread snapshots resolved each thread's workspaceRoot and projectFaviconPath against this computer's filesystem, including threads from paired remote environments. Those paths name files on the remote machine, so the remote could steer Bar to read local files (up to 2 MB, through NSImage on macOS) or show an unrelated local icon. Resolve favicons only for environments in Bar's local sources. Remote threads show the default icon. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
|
Reviewed: CI macOS/Linux pass; no blocking issue found. Remote project icon paths are now prevented from being resolved against this machine, with focused regression coverage. Review model: OpenAI |
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.
Purpose
Fixes #32.
Bar looked up every thread's project icon on this computer's disk, including threads from remote environments. A remote project path names a file on the remote machine. Looking it up locally could show an unrelated icon, and it let a remote server choose which local files Bar reads.
Changes
local_sourceslock that the snapshot code already holds, so there's no re-lock.Validation
only_local_threads_resolve_project_favicons_from_this_machinecovers both a root-relative icon and an explicit path. I confirmed it fails when the local check is bypassed: a remote thread returnedSome("data:image/svg+xml;...").bash scripts/check.shpasses on macOS arm64 with Rust 1.99.1: 49 frontend tests, the contract check, the frontend build, all seven Rust crates and 35 Tauri host tests.Proved with a regression test that fails without the fix, plus the full check script. Reviewed with sol-loop: 1 round with GPT-6.1 Sol. Sol verdict: approved.
UI captures
Not applicable. Remote threads show the existing default project icon.
Contribution checks
Created with Claude Opus 5.5 in Claude Code (T3 Code). Issue found by Claude Fable 5.2.
🤖 Generated with Claude Code