Repository navigation
fix(setup-hints): repair macOS app icon path decollision residue - #117
Conversation
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
🤖 CodeAnt AI — Review Status
|
Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📜 Recent review details
📝 Summary
Merge Risk: ⚪ Minimal · up to
|
CodeAnt PR Risk: Low Risk
Assessed commit: |
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
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
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (1 files)
Reviewed by free · Input: 69.7K · Output: 4.5K · Cached: 65K |
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 butcrates/jcode-setup-hints/src/macos_launcher.rs:18-20was not in the revert's conflict surface and kept the post-decollisionkcode.icnsreference.The actual icon file is
assets/app-icons/Jcode.icns(capital J, the upstream filename). Socargo check --workspacehas been failing on the master tip with: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_NAMEconstant is used in 3 places (lines 144, 193, 254) forPathBuf::join, so updating the constant is sufficient for all runtime uses. Theinclude_bytes!reference is the only compile-time file dependency.Unblocks
cargo check --workspaceon 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).
CodeAnt-AI Description
Fix the macOS notification app icon path
What Changed
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:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
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:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
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.