Commit Graph

2 Commits

  • fix: GUI improvements, CROF gate, data dir consolidation, sticky proxy port
    - GUI: add Clear Log, Restart Proxy, View Log (opens requests.log) buttons
    - CROF: skip entirely unless TARGET_URL contains crof.ai (no logs pollution)
    - Consolidate all data dirs into codex-proxy (remove codex-desktop, codex-launcher)
    - Proxy port persists across restarts via .last-proxy-port file
    - Adaptive compact budget raised from 60% to 80% context window
    - Startup config cleanup moved after _init_runtime() to avoid deleting active config
  • feat: Windows native support — tkinter GUI, cross-platform proxy
    Based on v3.10.4 upstream.
    
    New files:
    - src/codex-launcher-gui.py: full tkinter GUI (10 classes) replacing GTK on Windows
    - src/codex_launcher_lib.py: shared cross-platform module (~1870 lines)
    - src/cleanup-codex-stale.py: cross-platform process cleanup
    
    translate-proxy.py Windows adaptations:
    - Platform-aware paths: %LOCALAPPDATA% for cache, %APPDATA% for config
    - Platform-aware credentials, signals, memory reporting, shell commands
    - UTF-8 encoding on all file writes (Windows cp1252 default)
    - FORCE_MODEL: proxy overrides Codex Desktop model selection
    - DeepSeek reasoning_content round-trip for multi-turn tool sessions
    - Cleanup orphan .tmp files at startup
    - requests.log rotation (2000 lines cap)
    - User-Agent: codex-launcher/1.0 in outbound HTTP requests