Skip to content

feat(decollide): Phase 2 — external-infra source refs (2 of 2 PRs) - #34

Merged
KooshaPari merged 1 commit into
feature/herdr-plugin-manifestfrom
feature/decollide-kcode-r2
Oct 16, 2026
Merged

KooshaPari merged 1 commit into
feature/herdr-plugin-manifestfrom
feature/decollide-kcode-r2

Conversation

@KooshaPari

Copy link
Copy Markdown
Owner

Summary

Continues the KCode decollision from PR #31 (Phase 1, MERGED). This PR migrates the source-tree references to external infrastructure that was deliberately preserved in Phase 1.

What changed

  • kcode-update-core endpoint: now points at KooshaPari/KCode/releases/latest (the fork has release v0.85.0-k1.0.0, so the URL is live)
  • README.md: GitHub Releases URL → KooshaPari/KCode/releases
  • README.md: GHCR image URL → ghcr.io/KooshaPari/kcode/...
  • jcode.sh → kcode.sh across 8 crates (config-types, tui, sdk, app-core, telemetry-core, base, plus tests)
  • Subdomain endpoints: telemetry.jcode.sh → telemetry.kcode.sh, api.jcode.sh → api.kcode.sh
  • @1jehuang/jcode-sdk → @1jehuang/kcode-sdk (and 6 platform-specific packages) across sdk/typescript/ + sdk/npm/ + scripts/ + CI
  • JcodeClient class → KcodeClient in SDK
  • iOS: jcode:// → kcode://, JCodeKit → KcodeKit, JCodeMobile → KcodeMobile, com.jcode.mobile.* → com.kcode.mobile.*, jcode-servers.json → kcode-servers.json (URL scheme + Info.plist + Xcode project + Swift + tests + .gitignore + CI workflow)
  • assets/branding/logo-*.txt: brand name + URL updated
  • 3 PowerShell install scripts: jcode.sh → kcode.sh
  • telemetry-worker/ (Node.js): jcode.sh → kcode.sh
  • iOS folders renamed: ios/Sources/JCodeKit/ → KcodeKit/, JCodeMobile/ → KcodeMobile/, ios/Tests/JCodeKitTests/ → KcodeKitTests/
  • docs/IOS_APP.md, ios/TestHarness/check_production.sh: stale JCodeKit refs

SDK backwards-compat shim (TypeScript)

The TS SDK now uses kcode as primary with jcode as legacy fallback for existing installs:

  • Home dir: ~/.kcode (primary) → ~/.jcode (legacy fallback)
  • Env vars: KCODE_HOME (primary) → JCODE_HOME (legacy fallback)
  • Config dir: ~/.config/kcode (primary) → ~/.config/jcode (legacy fallback)
  • Socket names: kcode-api.sock / kcode.sock (primary) → jcode-api.sock / jcode.sock (legacy cleanup on startup)
  • Binary name: kcode (primary) → jcode (PATH lookup fallback)
  • Temp dir prefix: kcode-sdk-instance- (primary) → jcode-sdk-instance- (legacy cleanup on startup)
  • userJcodeHome() preserved as deprecated alias for userKcodeHome()
  • bundledJcodeBinary() preserved as deprecated alias for bundledKcodeBinary()

This matches the Phase 1 Rust shim approach (kcode-storage::kcode_dir + kcode_storage::migrate_legacy_jcode_env).

Verification

  • cargo check --workspace: PASS (13m 52s, only pre-existing ratatui 0.30 deprecation warnings; 0 errors)
  • 126 files changed (+522 / -454, net +68 lines for SDK shim additions)

Out of scope (requires live infra provisioning)

  • AWS infra in scripts/phone-server/ (JcodePhoneProvisioner, JcodeOperator, jcode-phone-server stack, jcode-dev-monthly-cost budget, jcode-guard-stop/-warn SNS, jcode-phone-wake/jcode-guard-breaker Lambdas, jcode-pair-service.py, jcode-serve.service, jcode-pair.service) — preserved as-is
  • scripts/phone-server/testflight-setup.py (JCodeMobile reference) — AWS infra, preserved
  • 1jehuang/jcode upstream URLs in non-update code (e.g. test fixtures, PR comment) — out of scope per design
  • .audit/jcode-assessment-2026-09-15/ — historical audit, preserved
  • docs/sessions/* — historical session docs, preserved
  • Historical README upstream badges (1jehuang/jcode/release, stars, etc.) — these are upstream metadata, not fork URLs
  • Binary asset filenames (docs/*.mp4, docs/jcode_reddit_dashboard.png) — cosmetic, not in build path

Coordination required (operator work, separate from this PR)

These source references now point at infrastructure that must be re-provisioned in lockstep — code changes alone are not sufficient:

  1. DNS: provision kcode.sh (and *.kcode.sh subdomains) and redirect or replace jcode.sh
  2. GHCR: re-publish ghcr.io/KooshaPari/kcode/* image and deprecate the ghcr.io/KooshaPari/jcode/* image
  3. npm: re-publish @1jehuang/kcode-sdk and the 6 platform packages, then deprecate the @1jehuang/jcode-* packages
  4. iOS: rebuild the KcodeMobile app and re-submit to TestFlight / App Store with the new bundle ID, URL scheme, and framework name
  5. AWS: rename JcodePhoneProvisioner, JcodeOperator, jcode-phone-server stack, jcode-dev-monthly-cost budget, jcode-guard-stop/-warn SNS, jcode-phone-wake/jcode-guard-breaker Lambdas, jcode-pair-service.py, jcode-serve.service, jcode-pair.service — in lockstep with the corresponding source renames (which are deferred to a separate operator-led PR)

The Phase 1 backwards-compat shim covers the user-facing surfaces for 1 release cycle. The Phase 2 source updates prepare the tree for the infra migrations. Once items 1-5 above are complete, a Phase 3 PR can delete the legacy fallbacks and the backwards-compat shim.

Closes #32

The tracking issue for the decollide will be closed once Phase 1 + Phase 2 are both merged.

Ledger

tx-agent:     forge
tx-validated: cargo-check
tx-scope:     crates/kcode-app-core/src/update.rs, crates/kcode-update-core/src/lib.rs, README.md, sdk/typescript/, sdk/npm/, ios/, docs/IOS_APP.md, .github/workflows/ios-testflight.yml, scripts/install.ps1, scripts/uninstall.ps1, scripts/test_windows_setup_evaluation.ps1, scripts/test_sdk_package.sh, telemetry-worker/, assets/branding/
tx-intent:    decollide KCode from jcode end-to-end (Phase 2: external-infra source refs)

Continues the KCode decollision from PR #31 (Phase 1, MERGED). This PR
migrates the source-tree references to external infrastructure that was
deliberately preserved in Phase 1.

## What changed

- kcode-update-core endpoint: now points at KooshaPari/KCode/releases/latest
  (the fork has release v0.85.0-k1.0.0, so the URL is live)
- README.md: GitHub Releases URL migrated to KooshaPari/KCode/releases
- README.md: GHCR image URL migrated to ghcr.io/KooshaPari/kcode/...
- jcode.sh → kcode.sh across 8 crates (config-types, tui, sdk, app-core,
  telemetry-core, base, plus tests)
- Subdomain endpoints: telemetry.jcode.sh → telemetry.kcode.sh,
  api.jcode.sh → api.kcode.sh
- @1jehuang/jcode-sdk → @1jehuang/kcode-sdk (and 6 platform-specific
  packages) across sdk/typescript/ + sdk/npm/ + scripts/ + CI
- JcodeClient class → KcodeClient in SDK
- iOS: jcode:// → kcode://, JCodeKit → KcodeKit, JCodeMobile → KcodeMobile,
  com.jcode.mobile.* → com.kcode.mobile.*, jcode-servers.json →
  kcode-servers.json (URL scheme + Info.plist + Xcode project + Swift + tests
  + .gitignore + CI workflow)
- assets/branding/logo-*.txt: brand name + URL updated
- 3 PowerShell install scripts: jcode.sh → kcode.sh
- telemetry-worker/ (Node.js): jcode.sh → kcode.sh
- iOS folders renamed: ios/Sources/JCodeKit/ → KcodeKit/, JCodeMobile/ →
  KcodeMobile/, ios/Tests/JCodeKitTests/ → KcodeKitTests/
- docs/IOS_APP.md, ios/TestHarness/check_production.sh: stale JCodeKit refs

## SDK backwards-compat shim (TypeScript)

The TS SDK now uses kcode as primary with jcode as legacy fallback for
existing installs:

- Home dir: ~/.kcode (primary) → ~/.jcode (legacy fallback)
- Env vars: KCODE_HOME (primary) → JCODE_HOME (legacy fallback)
- Config dir: ~/.config/kcode (primary) → ~/.config/jcode (legacy fallback)
- Socket names: kcode-api.sock / kcode.sock (primary) → jcode-api.sock /
  jcode.sock (legacy cleanup on startup)
- Binary name: kcode (primary) → jcode (PATH lookup fallback)
- Temp dir prefix: kcode-sdk-instance- (primary) → jcode-sdk-instance-
  (legacy cleanup on startup)
- userJcodeHome() preserved as deprecated alias for userKcodeHome()
- bundledJcodeBinary() preserved as deprecated alias for bundledKcodeBinary()

This matches the Phase 1 Rust shim approach (kcode-storage::kcode_dir +
kcode_storage::migrate_legacy_jcode_env).

## Verification

- cargo check --workspace: PASS (13m 52s, only pre-existing ratatui 0.30
  deprecation warnings; 0 errors)
- 126 files changed (+522 / -454, net +68 lines for SDK shim additions)

## Out of scope (requires live infra provisioning)

- AWS infra in scripts/phone-server/ (JcodePhoneProvisioner, JcodeOperator,
  jcode-phone-server stack, jcode-dev-monthly-cost budget, jcode-guard-stop/
  -warn SNS, jcode-phone-wake/jcode-guard-breaker Lambdas, jcode-pair-service.py,
  jcode-serve.service, jcode-pair.service) — preserved as-is
- scripts/phone-server/testflight-setup.py (JCodeMobile reference) — AWS
  infra, preserved
- 1jehuang/jcode upstream URLs in non-update code (e.g. test fixtures, PR
  comment) — out of scope per design
- .audit/jcode-assessment-2026-09-15/ — historical audit, preserved
- docs/sessions/* — historical session docs, preserved
- Historical README upstream badges (1jehuang/jcode/release, stars, etc.)
  — these are upstream metadata, not fork URLs
- Binary asset filenames (docs/*.mp4, docs/jcode_reddit_dashboard.png) —
  cosmetic, not in build path

## Coordination required (operator work, separate from this PR)

These source references now point at infrastructure that must be re-provisioned
in lockstep — code changes alone are not sufficient:

1. DNS: provision kcode.sh (and *.kcode.sh subdomains) and redirect or
   replace jcode.sh
2. GHCR: re-publish ghcr.io/KooshaPari/kcode/* image and deprecate the
   ghcr.io/KooshaPari/jcode/* image
3. npm: re-publish @1jehuang/kcode-sdk and the 6 platform packages, then
   deprecate the @1jehuang/jcode-* packages
4. iOS: rebuild the KcodeMobile app and re-submit to TestFlight / App Store
   with the new bundle ID, URL scheme, and framework name
5. AWS: rename JcodePhoneProvisioner, JcodeOperator, jcode-phone-server
   stack, jcode-dev-monthly-cost budget, jcode-guard-stop/-warn SNS,
   jcode-phone-wake/jcode-guard-breaker Lambdas, jcode-pair-service.py,
   jcode-serve.service, jcode-pair.service — in lockstep with the
   corresponding source renames (which are deferred to a separate
   operator-led PR)

The Phase 1 backwards-compat shim covers the user-facing surfaces for
1 release cycle. The Phase 2 source updates prepare the tree for the
infra migrations. Once items 1-5 above are complete, a Phase 3 PR can
delete the legacy fallbacks and the backwards-compat shim.

## Ledger

tx-agent:     forge
tx-validated: cargo-check
tx-scope:     crates/kcode-app-core/src/update.rs, crates/kcode-update-core/src/lib.rs, README.md, sdk/typescript/src/{launch,sockets,binary,index}.ts, sdk/typescript/package.json, sdk/typescript/package-lock.json, sdk/typescript/RELEASING.md, sdk/typescript/README.md, sdk/typescript/test/, sdk/typescript/examples/, sdk/npm/*/package.json, sdk/npm/*/README.md, ios/Sources/KcodeKit/, ios/Sources/KcodeMobile/, ios/Tests/KcodeKitTests/, ios/TestHarness/, ios/Package.swift, ios/project.yml, ios/.gitignore, ios/PRODUCTION_CHECKLIST.md, docs/IOS_APP.md, .github/workflows/ios-testflight.yml, scripts/install.ps1, scripts/uninstall.ps1, scripts/test_windows_setup_evaluation.ps1, scripts/test_sdk_package.sh, telemetry-worker/, assets/branding/
tx-intent:    decollide KCode from jcode end-to-end (Phase 2: external-infra source refs)

Closes #32 (the decollide tracking issue, after Phase 1 + Phase 2 are both merged)
Copilot AI balanced review requested due to automatic review settings October 9, 2026 01:47
@codeant-ai

codeant-ai Bot commented Oct 9, 2026

Copy link
Copy Markdown

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 @codeant-ai : review. For better signal, consider splitting the PR into smaller chunks.

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.

@coderabbitai

coderabbitai Bot commented Oct 9, 2026

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 124 files, which is 24 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: f0ab82d2-8b8e-4ae6-935f-8f67fe9b548d
📥 Commits

Reviewing files that changed from the base of the PR and between b1eb537 and d1e286c.

⛔ Files ignored due to path filters (2)
  • ios/Sources/KcodeMobile/Assets.xcassets/AppIcon.appiconset/AppIcon.png is excluded by !**/*.png
  • sdk/typescript/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (124)
  • .github/workflows/ios-testflight.yml
  • .github/workflows/publish-typescript-sdk.yml
  • README.md
  • assets/branding/logo-3d.txt
  • assets/branding/logo-minimal.txt
  • changelog/README.md
  • changelog/v0.44.0.json
  • crates/kcode-app-core/src/tool/discover.rs
  • crates/kcode-app-core/src/update.rs
  • crates/kcode-base/src/config.rs
  • crates/kcode-base/src/config/default_file.rs
  • crates/kcode-base/src/config_tests.rs
  • crates/kcode-base/src/sponsors.rs
  • crates/kcode-base/src/sponsors/provenance.rs
  • crates/kcode-base/src/subscription_api.rs
  • crates/kcode-base/src/subscription_catalog.rs
  • crates/kcode-config-types/src/lib.rs
  • crates/kcode-sdk/src/launch.rs
  • crates/kcode-telemetry-core/src/lib.rs
  • crates/kcode-telemetry-core/src/tests.rs
  • crates/kcode-tui/src/tui/app/commands_remote.rs
  • crates/kcode-tui/src/tui/app/support.rs
  • crates/kcode-tui/src/tui/ui_messages/tests.rs
  • crates/kcode-update-core/src/lib.rs
  • docs/IOS_APP.md
  • docs/JCODE_CLOUD_AWS.md
  • docs/SPONSORED_DISCOVERY_SPONSOR_ONBOARDING.md
  • docs/WINDOWS.md
  • ios/.gitignore
  • ios/PRODUCTION_CHECKLIST.md
  • ios/Package.swift
  • ios/Sources/KcodeKit/Connection.swift
  • ios/Sources/KcodeKit/CredentialStore.swift
  • ios/Sources/KcodeKit/Gateway.swift
  • ios/Sources/KcodeKit/Pairing.swift
  • ios/Sources/KcodeKit/SessionReducer.swift
  • ios/Sources/KcodeKit/Transport.swift
  • ios/Sources/KcodeKit/Wire.swift
  • ios/Sources/KcodeMobile/AppModel.swift
  • ios/Sources/KcodeMobile/Assets.xcassets/AppIcon.appiconset/Contents.json
  • ios/Sources/KcodeMobile/Assets.xcassets/Contents.json
  • ios/Sources/KcodeMobile/Assets.xcassets/LaunchBackground.colorset/Contents.json
  • ios/Sources/KcodeMobile/Info.plist
  • ios/Sources/KcodeMobile/JCodeMobileApp.swift
  • ios/Sources/KcodeMobile/MarkdownText.swift
  • ios/Sources/KcodeMobile/PrivacyInfo.xcprivacy
  • ios/Sources/KcodeMobile/QRScannerView.swift
  • ios/Sources/KcodeMobile/Theme.swift
  • ios/Sources/KcodeMobile/Views/ChatView.swift
  • ios/Sources/KcodeMobile/Views/Composer.swift
  • ios/Sources/KcodeMobile/Views/ConnectionBanner.swift
  • ios/Sources/KcodeMobile/Views/EntryView.swift
  • ios/Sources/KcodeMobile/Views/PairingView.swift
  • ios/Sources/KcodeMobile/Views/RootView.swift
  • ios/Sources/KcodeMobile/Views/SettingsSections.swift
  • ios/Sources/KcodeMobile/Views/SettingsView.swift
  • ios/Sources/KcodeMobile/Views/ToolCallCard.swift
  • ios/Sources/KcodeMobile/Views/TranscriptView.swift
  • ios/TestHarness/README.md
  • ios/TestHarness/check_production.sh
  • ios/TestHarness/reward/aggregate.py
  • ios/TestHarness/reward/context.py
  • ios/TestHarness/reward/interaction/ui_map.py
  • ios/TestHarness/reward/test_determinism.py
  • ios/TestHarness/run_e2e.sh
  • ios/TestHarness/ui_lint.py
  • ios/TestHarness/ui_matrix.py
  • ios/TestHarness/ui_metrics.py
  • ios/Tests/KcodeKitTests/ConnectionTests.swift
  • ios/Tests/KcodeKitTests/SessionReducerTests.swift
  • ios/Tests/KcodeKitTests/WireTests.swift
  • ios/project.yml
  • scripts/benchmark_attribution.py
  • scripts/herdr-install-jcode.sh
  • scripts/install.ps1
  • scripts/install.sh
  • scripts/install_bun.sh
  • scripts/setup_friction_eval.sh
  • scripts/test_benchmark_discovery.py
  • scripts/test_install_conversion.sh
  • scripts/test_sdk_package.sh
  • scripts/test_windows_setup_evaluation.ps1
  • scripts/uninstall.ps1
  • scripts/uninstall.sh
  • sdk/npm/darwin-arm64/README.md
  • sdk/npm/darwin-arm64/package.json
  • sdk/npm/darwin-x64/README.md
  • sdk/npm/darwin-x64/package.json
  • sdk/npm/linux-arm64/README.md
  • sdk/npm/linux-arm64/package.json
  • sdk/npm/linux-x64/README.md
  • sdk/npm/linux-x64/package.json
  • sdk/npm/win32-arm64/README.md
  • sdk/npm/win32-arm64/package.json
  • sdk/npm/win32-x64/README.md
  • sdk/npm/win32-x64/package.json
  • sdk/typescript/README.md
  • sdk/typescript/RELEASING.md
  • sdk/typescript/examples/demo-app/README.md
  • sdk/typescript/examples/demo-app/index.mjs
  • sdk/typescript/examples/demo-app/package.json
  • sdk/typescript/examples/stream-chat.mjs
  • sdk/typescript/package.json
  • sdk/typescript/src/binary.ts
  • sdk/typescript/src/client.ts
  • sdk/typescript/src/index.ts
  • sdk/typescript/src/launch.ts
  • sdk/typescript/src/structured.ts
  • sdk/typescript/test/client.test.ts
  • sdk/typescript/test/launch.test.ts
  • sdk/typescript/test/live-capabilities.mjs
  • sdk/typescript/test/live-control.mjs
  • sdk/typescript/test/live-isolation.mjs
  • sdk/typescript/test/live-launch.mjs
  • sdk/typescript/test/live-options.mjs
  • sdk/typescript/test/live-turn.mjs
  • sdk/typescript/test/structured.test.ts
  • src/cli/account.rs
  • src/cli/args.rs
  • telemetry-worker/README.md
  • telemetry-worker/package.json
  • telemetry-worker/src/worker.js
  • telemetry-worker/test/worker.test.mjs
  • telemetry-worker/wrangler.toml

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autopilot · 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.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​1jehuang/​kcode-darwin-arm64@​1.2.0N/AN/AN/AN/AN/A
Addednpm/​@​1jehuang/​kcode-darwin-x64@​1.2.0N/AN/AN/AN/AN/A
Addednpm/​@​1jehuang/​kcode-linux-arm64@​1.2.0N/AN/AN/AN/AN/A
Addednpm/​@​1jehuang/​kcode-linux-x64@​1.2.0N/AN/AN/AN/AN/A
Addednpm/​@​1jehuang/​kcode-win32-arm64@​1.2.0N/AN/AN/AN/AN/A
Addednpm/​@​1jehuang/​kcode-win32-x64@​1.2.0N/AN/AN/AN/AN/A

View full report

@kilo-code-bot kilo-code-bot Bot 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.

Code review findings (see summary comment for full details).

options.jcodeHome ??
fs.mkdtempSync(path.join(os.tmpdir(), "jcode-sdk-instance-"));
fs.mkdirSync(jcodeHome, { recursive: true, mode: 0o700 });
const binary = options.binary ?? bundledKcodeBinary() ?? "kcode";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CRITICAL: bundledKcodeBinary() is called here but the function is never defined — binary.ts still exports bundledJcodeBinary() (the platform packages were renamed to @1jehuang/kcode-* on lines 7-13, but the function and the resolved binary name .../bin/jcode on line 33 were not). This is a compile-time TS2304: Cannot find name 'bundledKcodeBinary' that breaks npm run build and the published-package test in scripts/test_sdk_package.sh:66. Rename the function to bundledKcodeBinary() in binary.ts and update the resolved binary path from jcode/jcode.exe to kcode/kcode.exe, then re-export it from index.ts.


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

env: {
...process.env,
JCODE_HOME: jcodeHome,
JCODE_HOME: kcodeHome,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

WARNING: launchInstance() still sets JCODE_HOME, JCODE_RUNTIME_DIR, JCODE_API_SOCKET, JCODE_SOCKET, JCODE_SWARM_MODEL, and JCODE_WAKE_MODE on the spawned child. The Rust side (kcode-storage::migrate_legacy_jcode_env, crates/kcode-storage/src/lib.rs:14) only migrates JCODE_NO_EMOJI, JCODE_BINARY, JCODE_API_SOCKET, JCODE_CONFIG, and JCODE_HOME — it does NOT handle JCODE_RUNTIME_DIR, JCODE_SOCKET, JCODE_SWARM_MODEL, or JCODE_WAKE_MODE. So a private instance launched by the new SDK is governed by legacy env vars the daemon will not migrate, while the KCODE_* vars the daemon actually honors are never set. Either set the KCODE_* form here, or add the missing entries to JCODE_TO_KCODE_ENV so the two sides agree on the contract.


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

@kilo-code-bot

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

Copy link
Copy Markdown

Code Review Summary

Status: 2 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 1
WARNING 1
Issue Details (click to expand)

CRITICAL

File Line Issue
sdk/typescript/src/launch.ts 572 bundledKcodeBinary() is called but never defined — binary.ts still exports bundledJcodeBinary() and resolves .../bin/jcode, which no longer exists in the renamed @1jehuang/kcode-* packages. Breaks npm run build (TS2304) and scripts/test_sdk_package.sh:66.

WARNING

File Line Issue
sdk/typescript/src/launch.ts 616 launchInstance() sets JCODE_* env vars on the spawned child, but kcode-storage::migrate_legacy_jcode_env (crates/kcode-storage/src/lib.rs:14) only migrates JCODE_NO_EMOJI, JCODE_BINARY, JCODE_API_SOCKET, JCODE_CONFIG, JCODE_HOME. JCODE_RUNTIME_DIR, JCODE_SOCKET, JCODE_SWARM_MODEL, JCODE_WAKE_MODE are not migrated, so the daemon never sees the KCODE_* form it honors.
Also noted (no inline target — file not in this PR)
  • sdk/typescript/src/sockets.ts:63,68 — apiSocketPath()/legacySocketPath() still read JCODE_API_SOCKET/JCODE_SOCKET and append jcode-api.sock/jcode.sock, but launchInstance() now creates kcode-api.sock/kcode.sock. A client calling the default socket path resolves a file nothing is listening on. Align env-var names and filenames with the KCODE_*/kcode.sock convention.
Files Reviewed (126 files)
  • Rust (19 files): crates/kcode-app-core/src/{tool/discover.rs, update.rs}, crates/kcode-base/src/{config.rs, config/default_file.rs, config_tests.rs, sponsors.rs, sponsors/provenance.rs, subscription_api.rs, subscription_catalog.rs}, crates/kcode-config-types/src/lib.rs, crates/kcode-sdk/src/launch.rs, crates/kcode-telemetry-core/src/{lib.rs, tests.rs}, crates/kcode-tui/src/tui/app/{commands_remote.rs, support.rs}, crates/kcode-tui/src/tui/ui_messages/tests.rs, crates/kcode-update-core/src/lib.rs, src/cli/{account.rs, args.rs} — clean string renames only; no logic changes.
  • TypeScript SDK: sdk/typescript/src/{binary.ts, client.ts, index.ts, launch.ts, structured.ts}, sdk/typescript/test/launch.test.ts, sdk/typescript/package.json, sdk/npm/*/package.json — contains the backwards-compat shim; 2 issues found.
  • iOS: ios/Package.swift, ios/project.yml, ios/.gitignore, ios/PRODUCTION_CHECKLIST.md, ios/Sources/KcodeMobile/Info.plist, ios/Sources/KcodeMobile/JCodeMobileApp.swift — renames verified consistent; no stale jcode://, JCodeKit, or JCodeMobile references remain.
  • Scripts/docs/assets: README.md, changelog/v0.44.0.json, scripts/install.{sh,ps1}, scripts/uninstall.{sh,ps1}, scripts/test_sdk_package.sh, scripts/herdr-install-jcode.sh, telemetry-worker/{src/worker.js, wrangler.toml}, assets/branding/*, docs/{IOS_APP.md, JCODE_CLOUD_AWS.md, WINDOWS.md} — all jcode.sh → kcode.sh replacements verified; no stale jcode.sh in added lines.

Fix these issues in Kilo Cloud


Reviewed by free · Input: 973.7K · Output: 37.7K · Cached: 3.3M

KooshaPari pushed a commit that referenced this pull request Oct 15, 2026
…-size ratchet defense)

tx-agent:     jcode
tx-task:      B.8.85
tx-parent:    1262747
tx-validated: cargo-check (0 errors, 16.49s incremental), 3-restore_session-tests (PASS 6.26s), git-verify (fast-forward 0 conflicts)
tx-scope:     docs/sessions/2026-10-12-cleanup-and-release/01_AUDIT.md
tx-intent:    Record B.8.85 — peer-orchestrator merged PR #78 (let-chain refactor for ui_inline_interactive.rs, defends check_code_size_budget.py) during B.8.84 finalization. PR #79 was merged to a different base (revert/pr-33-merge, KCode decollision, out of orchestrator scope). Fast-forwarded local master to 1262747 with 0 conflicts. Discovered 13 open PRs in operator's fork; 2 MERGEABLE+ready (PR #34 decollide-r2, PR #25 codex-poke) but not merged in B.8.85 because operator's 'proc' signal was scoped to the 3 PRs I had on radar. New standing memory: peer-orchestrator can move origin/master while orchestrator is working; always git fetch origin master before any push/merge, reconcile via git merge --ff-only (safe) or git reset --hard + re-merge (when local commits need rebase).
@KooshaPari
KooshaPari merged commit adb5669 into feature/herdr-plugin-manifest Oct 16, 2026
7 checks passed
KooshaPari added a commit that referenced this pull request Oct 16, 2026
Section 1 and the open-PR table were still the 21:50Z pass. Live master is 2e39f50, #34 landed on the #8 branch, and Actions dispatch is still HTTP 422.

tx-agent: jcode
tx-validated: manual
tx-task: ownership-snapshot
tx-scope: docs/PROJECT_OWNERSHIP_HANDOFF.md
tx-intent: stop the next agent from resuming at a stale HEAD and a wrong PR base
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.

2 participants