Skip to content

fix(gjc): restore Bun launcher session detection - #36

Open
chiznoir wants to merge 1 commit into
devswha:mainfrom
chiznoir:fix/detect-bun-gjc-entry
Open

fix(gjc): restore Bun launcher session detection#36
chiznoir wants to merge 1 commit into
devswha:mainfrom
chiznoir:fix/detect-bun-gjc-entry

Conversation

@chiznoir

Copy link
Copy Markdown

What changed

  • restore the published @gajae-code/coding-agent marker used by Bun/Node GJC launchers
  • cover both idle-pane and transcript-backed process detection

Evidence

  • current launcher resolves to @gajae-code/coding-agent/bin/gjc.js
  • commit 4a88a12 changed the detector to the nonexistent @chatmux-code/coding-agent marker during the ChatMux rebrand
  • changed-line privacy scan found no usernames, machine paths, credentials, tokens, or secrets

Verification

  • TSX_TSCONFIG_PATH=server/tsconfig.json npx tsx --test server/modules/providers/tests/live-sessions.service.test.ts (63 passed)
  • typecheck, Rust fmt/clippy/tests, lint, identity check, and production build passed
  • full local npm test currently reports 7 unrelated frontend loader/import failures; PR CI is authoritative for clean Node 22/24 runners

- Match the published @gajae-code/coding-agent package path.
- Keep idle and transcript-backed GJC detection aligned.

Tests:
- TSX_TSCONFIG_PATH=server/tsconfig.json
- npx tsx --test server/modules/providers/tests/live-sessions.service.test.ts
Copilot AI lite review requested due to automatic review settings August 12, 2026 06:23

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.

Pull request overview

Restores correct GJC launcher/session detection by switching the packaged-entry marker back to the published @gajae-code/coding-agent scope, ensuring Bun/Node-launched gjc processes are recognized reliably.

Changes:

  • Update isGjcCommandLine detection to match the published package marker (@gajae-code/coding-agent).
  • Update isGjcProcessArgs detection for bun/node argv[1] to match the same published marker.
  • Adjust live session tests to assert against the restored @gajae-code/coding-agent/bin/gjc.js path.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
server/modules/providers/services/live-sessions.service.ts Restores the packaged-entry marker used to detect interpreter-launched gjc processes.
server/modules/providers/tests/live-sessions.service.test.ts Updates assertions to cover the restored marker for both argv-anchored and cmdline-based detection.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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