Skip to content

Add ghostel backend support#190

Open
parsnips wants to merge 2 commits intomanzaltu:mainfrom
parsnips:codex/ghostel-backend-support
Open

Add ghostel backend support#190
parsnips wants to merge 2 commits intomanzaltu:mainfrom
parsnips:codex/ghostel-backend-support

Conversation

@parsnips
Copy link
Copy Markdown

codex yolo'd

resolves #187

I've given it brief usage this evening.. should be a good starting point.

Two fixes in the ghostel backend that emerged from code review:

1. Pin the ghostel shell to /bin/sh with shell-integration disabled.
   Previously the user's $SHELL ran with full integration, which
   sourced bashrc/zshrc, emitted a prompt, and leaked GHOSTEL_*
   injection env vars into Claude before `exec claude-cmd' took over.
   A minimal sh doesn't source rc files and still `exec's cleanly.

2. Chain ghostel's native process sentinel. The wrapping sentinel
   in `claude-code-ide--start-session' replaced it unconditionally,
   skipping cleanup of ghostel's buffer-local redraw/input timers,
   the `after-focus-change-function' registration, and
   `ghostel-exit-functions'. Now we stash the original sentinel via
   `process-put' and invoke it first inside the wrapping sentinel.

Also drop `ghostel-kill-buffer-on-exit' to nil so
`claude-code-ide--cleanup-on-exit' is the single buffer-kill path,
preventing a double cleanup-on-exit invocation (once via
kill-buffer-hook, once via the sentinel).
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.

Add support for ghostel

1 participant