refactor: replace verbose flag with structured payload logging and simplify config#8
Merged
Merged
Conversation
…mplify config - Remove --verbose, --host, --port, --ui, and --ui-mode CLI flags - Add --log flag to write request/response payload logs to a file - Replace verbose console logging with structured log output via logOutput - Add payload formatting with JSON indentation for readable logs - Add response logging for SSE streams, JSON responses, and errors - Add thread-safe logging with sync.Mutex - Add plain mode 'q' command to quit via stdin listener - Simplify resolveMode to only detect TUI vs plain (no more jsonl) - Remove jsonl UI mode entirely - Remove model stats aggregation for failed/error responses - Reduce shutdown timeout from 5s to 500ms - Update docs accordingly
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
Refactors the proxy's logging and configuration system, replacing the old verbose/debug flags with a cleaner, file-based structured logging approach.
Changes
CLI & Config
--verbose,--host,--port, and--uiCLI flags (now configured via YAML config only)--log PATHflag to write request/response payload logs to a filejsonlUI mode — onlytuiandplainremainresolveModeto auto-detect TUI vs plain based on terminal presenceLogging
logOutputsync.MutexUI
qkey handler in plain mode to quit via stdinOther