Repository navigation
fix: Windows daemon detection and ANSI colors - #27
Merged
Merged
Conversation
added 2 commits
February 25, 2026 21:40
- Fix is_process_alive() on Windows to work across sessions using SYNCHRONIZE access - Add port-checking fallback for daemon detection when PID check fails - Enable ANSI colors on Windows terminals - Simplify tmux session setup (remove problematic bootstrap session) - Add xterm geometry settings for headless environments - Update SCROLLING_FIX_ANALYSIS.md with fixes and incident report
Add debug logging to trace mobile input flow: - Log when input is received from mobile - Log bytes being written to PTY - Log success/failure of write and flush operations Helps diagnose Windows input issues.
Greptile SummaryFixes Windows-specific daemon issues and terminal rendering problems. Key Changes:
Issues Found:
Confidence Score: 4/5
|
| Filename | Overview |
|---|---|
| cli/src/daemon.rs | Adds port-checking fallback for Windows daemon detection; updates konsole and xterm terminal spawning with improved argument handling and geometry settings |
| cli/src/main.rs | Enables ANSI color support on Windows via set_virtual_terminal(true) - safe and straightforward |
| cli/src/platform.rs | Improves Windows process detection by switching from PROCESS_QUERY_LIMITED_INFORMATION to SYNCHRONIZE access for cross-session compatibility |
| cli/src/pty_wrapper.rs | Simplifies tmux session setup by removing bootstrap session approach (which caused spawn loop); moves history-limit setting after session creation. Contains stale comment. |
Last reviewed commit: 727df88
added 2 commits
February 25, 2026 21:54
- Fix /dev/null to use NUL on Windows for tmux commands - Add proper error handling for stdout writes with logging - Add Windows virtual terminal processing enablement in PTY wrapper - Add winapi dependency for Windows console APIs - Disable raw mode setup on Windows (not supported) - Add stderr output on Windows for debugging black screen issue
When mobile app requests 'bash' or 'sh' (Shell), map to PowerShell on Windows since Windows doesn't have bash by default. - Add command mapping in spawn_session_windows() - bash/sh/zsh -> powershell - Other commands pass through unchanged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes Windows-specific issues with daemon process detection and terminal colors.
Changes
Windows Process Detection
is_process_alive()
to work across Windows sessions using
SYNCHRONIZE
access +
WaitForSingleObject
Terminal Colors
colored::control::set_virtual_terminal(true)
Tmux Session Setup
-geometry 160x50 -fa Monospace -fg white -bg black
) for headless environments
Documentation
Testing
Related Issues