Skip to content

fix(setup-hints): repair macOS app icon path decollision residue - #117

Merged
KooshaPari merged 1 commit into
masterfrom
fix/decollision-macos-icon-path
Oct 17, 2026
Merged

KooshaPari merged 1 commit into
masterfrom
fix/decollision-macos-icon-path

Conversation

@KooshaPari

@KooshaPari KooshaPari commented Oct 17, 2026 •

Copy link
Copy Markdown
Owner

User description

Residue from the reverted refactor(decollision): rename jcode to kcode (#33) (squash-merged 2026-10-09, reverted at #36, 901b33108 → f19b47b19). The revert restored most files but crates/jcode-setup-hints/src/macos_launcher.rs:18-20 was not in the revert's conflict surface and kept the post-decollision kcode.icns reference.

The actual icon file is assets/app-icons/Jcode.icns (capital J, the upstream filename). So cargo check --workspace has been failing on the master tip with:

crates/jcode-setup-hints/src/macos_launcher.rs:18:37: error: couldn't read
  `.../jcode/crates/jcode-setup-hints/../../assets/app-icons/kcode.icns`:
  No such file or directory (os error 2)

Fix (option b from the State & Forward Docket): update the two path references to Jcode.icns. This is the lower-friction path consistent with the rest of the fork post-revert — no Cargo metadata changes required.

The MACOS_APP_ICON_FILE_NAME constant is used in 3 places (lines 144, 193, 254) for PathBuf::join, so updating the constant is sufficient for all runtime uses. The include_bytes! reference is the only compile-time file dependency.

Unblocks cargo check --workspace on the master tip.

Files changed: 1 file, 2 insertions, 2 deletions.

Decollision arc reference: see STATE-AND-FORWARD-DOCKET.md §4.1 (decollision status, post-revert). This is the only known residue from the revert of #33.

Not caused by any forward-path PR (verified: none of #108 #109 #111 #112 #113 #114 touch this file).

tx-agent:     jcode
tx-validated: cargo-check
tx-scope:     crates/jcode-setup-hints/src/macos_launcher.rs
tx-intent:    repair decollision residue to unblock workspace cargo check

CodeAnt-AI Description

Fix the macOS notification app icon path

What Changed

  • Use the existing icon file when building and setting up the macOS notification app

Impact

✅ Workspace builds succeed
✅ macOS notification app bundles its icon

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

The KCode fork's `macos_launcher.rs:18-20` referenced
`assets/app-icons/kcode.icns` (lowercase, post-decollision name) but
the actual file is `Jcode.icns` (capital J, the upstream filename).

Root cause: residue from the reverted `refactor(decollision): rename
jcode to kcode (#33)` (squash-merged 2026-10-09, reverted at #36
2026-10-08, 901b331 -> f19b47b). The revert restored most files
but `macos_launcher.rs:18-20` was not in the revert's conflict
surface and kept the post-decollision path. `cargo check --workspace`
has been failing on the master tip ever since.

Fix: update the two path references to `Jcode.icns` (option b from
the State & Forward Docket — the lower-friction path consistent with
the rest of the fork post-revert, no Cargo metadata changes required).

The `MACOS_APP_ICON_FILE_NAME` constant is used 3 places (lines 144,
193, 254) for `PathBuf::join`, so updating the constant is sufficient
for all runtime uses. The `include_bytes!` reference is the only
compile-time file dependency.

Unblocks `cargo check --workspace` on the master tip.

tx-agent:     jcode
tx-validated: cargo-check
tx-scope:     crates/jcode-setup-hints/src/macos_launcher.rs
tx-intent:    repair decollision residue to unblock workspace cargo check
tx-pr:        n/a
Copilot AI balanced review requested due to automatic review settings October 17, 2026 22:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@codeant-ai

codeant-ai Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

🤖 CodeAnt AI — Review Status

Status Commit Started (UTC) Finished (UTC)
✅ Reviewed your PR 00005af Oct 17, 2026 · 22:01 22:03

@codeant-ai

codeant-ai Bot commented Oct 17, 2026

Copy link
Copy Markdown

Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai codeant-ai Bot added the size:XS This PR changes 0-9 lines, ignoring generated files label Oct 17, 2026
@coderabbitai

coderabbitai Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: db691daf-a583-4201-91fe-342dcf0aa62f
📥 Commits

Reviewing files that changed from the base of the PR and between 732ac47 and 00005af.

📒 Files selected for processing: 1
  • crates/jcode-setup-hints/src/macos_launcher.rs

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📜 Recent review details
⏰ Context from checks skipped due to timeout: 2
  • GitHub Check: Kilo Code Review
  • GitHub Check: semgrep-cloud-platform/scan
🔇 Additional comments: 1
crates/jcode-setup-hints/src/macos_launcher.rs: 1

17-17: LGTM!

Also applies to: 20-20

📝 Summary

Summary

The change updates the macOS notification broker’s icon filename and compile-time asset path to Jcode.icns. The source references assets/app-icons/Jcode.icns, matching the reported asset name.

Must Fix

No blocking issues are evident from the supplied change. Test results were not provided.

Should Fix

None identified.

Consider

The updated filename is also used to locate the bundled icon at runtime.

Approve / Request Changes

Approve.

The notification broker bundle now uses Jcode.icns instead of kcode.icns. The icon filename and bundled asset path are updated together.

Changes: macOS broker icon

Layer / File(s) Summary
Update broker icon asset
crates/jcode-setup-hints/src/macos_launcher.rs
The broker icon filename and bundled asset path change from kcode.icns to Jcode.icns.

Priority: ⬆️ High

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Suggested reviewers: 1jehuang

Merge Risk: ⚪ Minimal · up to 00005

The broker now uses the existing Jcode.icns asset consistently for its embedded icon and bundle path. No concrete merge-blocking risk remains; normal checks still apply.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly identifies the fix to the macOS app icon path and matches the main change.
Description check Passed The description directly explains the stale kcode.icns reference, the replacement with Jcode.icns, the affected file, and the expected workspace check result.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files.

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
✨ Simplify code
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codeant-ai

codeant-ai Bot commented Oct 17, 2026

Copy link
Copy Markdown

CodeAnt PR Risk: Low Risk

  • The PR appears safe to merge; the macOS icon filename and embedded asset path use the same capitalization.

Assessed commit: 00005af433de

KooshaPari added a commit that referenced this pull request Oct 17, 2026
P2 of the forward-path Docket. Coordinator can now rename a swarm
member's session by id, without the receiving client conflating it
with its own session rename.

- protocol: add Request::RenameSwarmSession (target_session_id arg)
  as a distinct verb so older servers reject it rather than silently
  renaming the connection's own session. SetSessionSaved from #98
  is preserved (independent bookmarking verb).
- protocol/lib.rs: id extractor matches RenameSession | RenameSwarmSession
  + SetSessionSaved (union of master + PR surface)
- app-core/client_lifecycle: dispatch the new verb to the target agent
  (lookup by target_session_id via sessions.read().await)
- app-core/client_actions + tests: handler for the new request type
- tui/backend: rename_session takes Option<target_session_id> and
  dispatches to the right enum variant; set_session_saved preserved
- tui/app + input + remote/key_handling + tui_state + tui_lifecycle:
  propagate the target_session_id from the coordinator
- protocol tests: core_events.rs gains coverage for RenameSwarmSession
  serde round-trip

Conflict resolution: master had SetSessionSaved (#98) and PR had
RenameSwarmSession. Kept BOTH — they are independent verbs, the union
is the intended post-batch state.

tx-agent:     jcode
tx-validated: cargo-check-protocol-only (rest blocked by pre-existing
             kcode.icns -> Jcode.icns bug, fixed in #117)
tx-task:      PR-105
tx-scope:     crates/jcode-protocol, crates/jcode-app-core, crates/jcode-tui
tx-intent:    Land TUI rename wire-up; close the forward-path P2 item
@KooshaPari
KooshaPari merged commit 4a44386 into master Oct 17, 2026
6 checks passed
@KooshaPari
KooshaPari deleted the fix/decollision-macos-icon-path branch October 17, 2026 22:08
KooshaPari added a commit that referenced this pull request Oct 17, 2026
Decollision residue: crates/jcode-app-core/src/update.rs calls
update_product::SELF_UPDATE_ENABLED and update_product::require_update_channel,
but update_product.rs was missing both. The build failed with 5 E0425
errors. Both items were removed during the decollision arc and never
restored.

Fix is surgical, mirrors the original PR #116 design (option b path,
unconditional self-update disabled, fail-closed). This supersedes the
icon-rename half of PR #116 (we took the opposite icon path in #117);
the remaining 6 build fixes in #116 are still pending.

tx-agent:     jcode
tx-validated: cargo-check-app-core (in progress)
tx-task:      fixes 5 E0425 errors in update.rs
tx-scope:     crates/jcode-app-core/src/update_product.rs
tx-intent:    restore missing API surface; close the build break
@kilo-code-bot

kilo-code-bot Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 files)
  • crates/jcode-setup-hints/src/macos_launcher.rs

Reviewed by free · Input: 69.7K · Output: 4.5K · Cached: 65K

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants