⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@leeroybrun
Copy link
Contributor

@leeroybrun leeroybrun commented Jan 12, 2026

Following the merge of #107, issues have been reported by CodeRabbit in leeroybrun#1

Draft PR as I've not been able to test the changes implemented by #107 and this fix for now

Validation:

- Verified TMUX/TMUX_PANE values inside an isolated tmux server (custom socket)

- Verified kill-window syntax and new-session -t semantics via tmux manpage

Changes:

- Correct TMUX env parsing (socket_path + server_pid) and prefer TMUX_PANE for pane id

- Avoid invalid -t injection for commands that already specify a target; do not treat new-session as targetable

- Fix kill-window invocation to use -t session:window

- Align Machine.metadata typing with runtime (nullable)

- Make socket send behavior consistent when disconnected; tighten misc scripts/tests
- Fix abortOnSignal scoping in offline mode so finally cleanup compiles

- Avoid unnecessary encryption/UUID work when socket is disconnected

(Gemini/CodeRabbit feedback on PR #3)
- Remove unused env_session/env_window fields from TmuxSessionInfo

- Rename misleading claude_version_utils npm test

(CodeRabbit/Gemini nitpicks on PR #3)
@leeroybrun leeroybrun changed the title Fix possible issues introduced by #272 Fix possible issues introduced by #107 Jan 12, 2026
Align happy-cli profile schema with the app: profiles are env-var based only. Migrate any legacy provider config fields into environmentVariables during parsing to avoid data loss.
Add a single runtime invocation builder for node vs bun and allow overriding via HAPPY_CLI_SUBPROCESS_RUNTIME.
- Treat TMUX_TMPDIR as a directory via tmux client env (not -S socket path)

- Pass per-window env via new-window -e KEY=value without shell-style quoting

- Make empty sessionName resolve deterministically (attached/most-recent)

- Preserve failure semantics for signal-terminated tmux commands
Remove the hard send guard that dropped messages while disconnected and rely on socket.io client buffering (tests updated).
Make debugLargeJson a true DEBUG-only path and avoid logging expanded env values/defaults; tighten doctor masking for default templates.
The GUI sends a profile-derived env var map that may include provider-specific keys and tmux knobs; type it as Record<string,string>.
Handle codex --version output variations without misreporting 'not installed' and remove stdout logging of elicitation payloads.
Provide an EventEmitter-compatible stub and a focused unit test so offline mode can't crash on basic session events.
…2026-01-12

# Conflicts:
#	src/api/apiSession.ts
#	src/utils/offlineSessionStub.ts
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.

1 participant