Repository navigation
revert: refactor(decollision) rename jcode to kcode (#33) - #36
Conversation
This reverts commit 901b331.
WalkthroughWarning Review details and warnings were omitted to fit the comment limit. |
|
Skipping CodeAnt AI review — this PR changes more than 100 files, which usually means a migration, codemod, or vendored drop. Line-level review on diffs this large produces duplicate findings on the same rewrite pattern and drowns out anything that actually matters. If you still want a review, comment |
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Code Review SummaryStatus: No Issues Found | Recommendation: Merge OverviewThis PR reverts PR #33 (a 2,260-commit rebase that renamed "jcode" to "kcode") which introduced build-breaking bugs in three files:
The revert restores commit
Files Reviewed (2,045 files)
Files Reviewed (2,045 files)All workspace crates restored to pre-merge state including:
Reviewed by free · Input: 537.9K · Output: 4.6K · Cached: 384.5K |
Two KCode follow-ups completed in this session: 1. PR #36 (revert of lossy PR #33) merged at 2026-10-11T01:23:31Z. Master restored to f19b47b. Required adding '## Linked issues' section to PR #36 body referencing #32 (no closing keyword, so #32 stays open for Phase 2 work). 2. feature/herdr-plugin-manifest rebased onto new master cleanly (0 conflicts, 89 commits). Pushed as new branch feature/herdr-plugin-manifest-rebased (force-push is blocked by policy; new branch name preserves the original). 3. Issue #43 filed tracking a tighter Phase 2 rebase process: per-commit cargo check, ≤200 commits per push, refactor recurring-conflict files first. The herdr crash persistence work is unaffected. Local kcode and herdr fork binaries are still active. SIGKILL test result still holds. tx-task: kcode-pr36-revert-and-rebase tx-scope: docs/sessions/20261001-herdr-crash-persistence/ tx-intent: Record the 2026-10-11 follow-up work tx-agent: jcode tx-validated: manual
…2,505 commits behind) The fork (KooshaPari/Jcode) is dramatically behind upstream (1jehuang/jcode): Volume: - Fork has, upstream doesn't: 146 commits (includes PR #33 rename, #36 revert, #44/49/51/52/54) - Upstream has, fork doesn't: 2,651 commits - Net lag: 2,505 commits Merge-base: 2026-09-14 (30 days old) - Fork: 7,573 commits ahead of merge-base - Upstream: 10,078 commits ahead of merge-base Implication: The fork is essentially a 'KCode variant' that diverged in late September. The 2,500+ upstream commits are an entire evolution the fork has not seen. Operator decision needed: A=stay diverged, B=rebase (high risk), C=reset (nuclear), D=cherry-pick selected upstream fixes. Recommend: D first. This affects: - 101 open upstream PRs may not apply cleanly to fork master - Fork may be missing critical bug fixes from upstream - A real fork sync would take days of manual work tx-agent: jcode tx-task: cleanup-arc tx-parent: a644be0 tx-validated: manual tx-scope: docs/ tx-intent: P26 fork/upstream divergence discovery
Cross-referenced the 3 rescue branches from P25 with current fork master:
rescue/e45ddd4- (active-pids):
NOT in master directly, but targets pre-rename paths (kcode-storage/)
which were reverted to jcode-storage/ via PR #36.
Master has equivalent fix: d893b43 'perf(compile): move active_pids
tracking into jcode-storage crate'
rescue/ceb860b- (home-symlink):
ALREADY in master via PR #27 (6bb97aa 'Merge pull request #27')
rescue/d6f2d20- (heading-boundary):
Empty commit (no value) — already documented in P25b
Conclusion: All 3 rescue branches are essentially obsolete. The rescue
effort preserved work that was either already integrated or had become
irrelevant due to the rename/revert (PR #33 + #36) and refactors.
Recommended: All 3 rescue branches can be deleted. They served their
defensive purpose (preventing data loss) but the work itself doesn't
add value to current master.
Validates the P26 finding: the fork makes its own decisions about
what to merge. The rescued work was absorbed into the main PR stream
in different forms.
tx-agent: jcode
tx-task: cleanup-arc
tx-parent: 257322d
tx-validated: manual
tx-scope: docs/
tx-intent: P27 rescue branches cross-reference with master
…era work Examined 2 of the 4 worktrees with real code changes. Pattern is clear: ALL uncommitted changes are extending pre-rename KCode code that was abandoned when PR #36 reverted the rename. jcode-pr27-minor-review-fixes (3 files): Branch: codex/pr27-minor-review-fixes-20261010 Changes: kcode-storage path fixes, JCODE→KCODE error messages, local env_lock() replaced with crate::storage::lock_test_env() Verdict: Pre-rename paths are obsolete. Error message flips are wrong. jcode-decollide-kcode-r2 (4 files): Branch: feature/decollide-kcode-r2 Changes: Adds 4 more JCODE→KCODE env var mappings Renames bundledJcodeBinary → bundledKcodeBinary Renames 4 JCODE_* env vars in launch.ts to KCODE_* Verdict: This is migration code for the reverted rename. JCODE_TO_KCODE_ENV table only exists in this branch — never merged to master. Recommended: Do NOT commit any of these changes. Discard them with git checkout -- or git stash. The KCode rename was reverted; the canonical namespace is JCODE again. Validates P25/P26/P27: the fork's KCode-era work is increasingly incompatible with current master. The fork needs a decision on whether to revive the KCode rename or stay on JCODE. tx-agent: jcode tx-task: cleanup-arc tx-parent: dc79f14 tx-validated: manual tx-scope: docs/ tx-intent: P28 dead KCode-era work discovery
…er KooshaPari/Jcode Project-wide entry point distinct from the cleanup-arc handoff. Covers verified repo state, build/test/gate story, the live work queue (13 fork PRs, 22 fork issues, branch+worktree inventory), working rules, and traps. Key corrections vs prior notes, each re-verified directly: - check_code_size_budget.py fails on THREE files (bash.rs 1496->1502, tui/mod.rs 2072->2077, ui_inline_interactive.rs 1382->1384), not one. - PR #36 (revert of the lossy #33 rebase) merged 2026-10-11. - fmt drift resolved by 826145e; do not re-report as open. - bare 'gh' resolves to upstream, not the fork; --repo KooshaPari/Jcode is required and one prior audit was corrupted by this. tx-agent: jcode tx-validated: manual tx-scope: docs tx-intent: give a fresh agent context everything needed to resume full project ownership without rediscovering traps
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
Summary
Reverts #33 (squash merge
901b3310821e9d65a88301072bb0a183709eefad).The original PR was a 2,260-commit rebase of KCode's rename/decollision work onto
master. The rebase was lossy in three places:crates/kcode-tui-style/src/harmony.rs— test function body forprint_calibration_scoresdroppedcrates/kcode-base/src/provider/mod.rs:117— stray};introducedcrates/kcode-swarm-core/src/lib.rs:183,187— emptySerialize/Deserializeimpls left in placecargo check --workspacefails on the merged tree with 6+ errors across 3 crates (kcode-base, kcode-swarm-core, kcode-setup-hints). This revert restores the last known-good state at046ea2af5 chore(deps): enable Dependabot via minimal config.Why a revert (not fix-forward)
A 2,260-commit rebase with multiple rebase-induced bugs is not a clean enough foundation to fix forward. The rebase needs another pass with stricter per-conflict validation (read each conflict, verify both sides, mark a checklist, run
cargo checkafter each commit, not just at the end). 30 minutes of revert + a tighter rebase is much safer than 2+ hours of fix-forward debugging that may surface more bugs.Plan after merge
cargo checkafter EACH rebase commit, not just at the endHard guarantees before the next merge
cargo check --workspaceexits 0cargo test --workspacepasses (or any pre-existing failures are documented)cargo clippy --workspace --all-targets -- -D warningsexits 0 (or failures documented)Verification
origin/master@901b33108(broken)origin/master@046ea2af5(last known-good)git diff 046ea2af5 HEAD(where HEAD is the revert branch tip) is empty — the revert is a perfect inverse of the squash merge.Out-of-scope findings
target/debug/jcodeis 344 MB and runs asjcode v0.0.0-dev (d9cb64ce4)), which is sufficient evidence the reverted code compiles into a working binary.jcode v0.0.0-devcomes from the packageversionfield at046ea2af5. The original PR title was about a "rename" but the version field at the pre-merge state was already at0.0.0-dev. This is informational only and does not affect the revert correctness.Linked issues
kcode-update-coreendpoint, README URLs, GHCR images, npm package names,jcode://URL scheme) continues independently and will be tracked in a follow-up PR.