Skip to content

fix: resolve project icons only for local environments - #33

Merged
eliophan merged 3 commits into
eliophan:mainfrom
techbrewboss:fix/remote-favicon-local-paths
Nov 16, 2026
Merged

eliophan merged 3 commits into
eliophan:mainfrom
techbrewboss:fix/remote-favicon-local-paths

Conversation

@techbrewboss

Copy link
Copy Markdown
Collaborator

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

  • Project icons are resolved only for environments in Bar's local sources. Remote threads show the default icon.
  • The check reuses the local_sources lock that the snapshot code already holds, so there's no re-lock.
  • Added a CHANGELOG entry under Unreleased.

Validation

  • Regression test: only_local_threads_resolve_project_favicons_from_this_machine covers both a root-relative icon and an explicit path. I confirmed it fails when the local check is bypassed: a remote thread returned Some("data:image/svg+xml;...").
  • Full check: bash scripts/check.sh passes 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.
  • Not run: Linux checks were not run locally, and no packaged native acceptance was done.

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

  • No personal database, pairing key, token, credential, or unredacted private data is included.
  • User-visible changes and compatibility limits are documented where applicable.
  • New dependencies, copied code, and artwork have compatible licenses and required attribution.

Created with Claude Opus 5.5 in Claude Code (T3 Code). Issue found by Claude Fable 5.2.

🤖 Generated with Claude Code

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>
@eliophan

Copy link
Copy Markdown
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 gpt-6.1-sol.

@eliophan
eliophan merged commit 4d3c481 into eliophan:main Nov 16, 2026
2 checks passed
@techbrewboss
techbrewboss deleted the fix/remote-favicon-local-paths branch November 16, 2026 10:09
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.

[Bug]: Remote threads resolve project icons from local file paths

2 participants