fix: add structured logging to frecency, stash, KV, clipboard, and remaining TUI console calls#786
Open
MrRealORG wants to merge 1 commit into
Conversation
…maining TUI console calls Replace all remaining bare console.log/error/warn in TUI code with structured Log.create() loggers. This covers: - frecency.tsx: log file IO failures on init, append, and trim writes - stash.tsx: log file IO failures on init rewrite, push, pop, remove - kv.tsx: log read/write failures for persistent KV state - clipboard.ts: replace debug console.log method selection with log.debug - app.tsx: log clipboard copy failures and plugin load failures - prompt/index.tsx: log session creation failures - dialog-mcp.tsx: log MCP toggle and status refresh failures - plugin/slots.tsx: log plugin slot errors The plugin/runtime.ts dual logging (log + console) is intentionally preserved as it aids plugin developer debugging.
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
Replace all remaining bare
console.log/error/warnin TUI code with structuredLog.create()loggers. Files that previously silently swallowed IO errors with.catch(() => {})now log the error with context (file path, error object), making file corruption and permission issues diagnosable from the log file.Changes
console.logmethod selection withlog.debug(osascript, wl-copy, xclip, xsel, powershell, fallback)The plugin/runtime.ts dual logging (structured log + console) is intentionally preserved as it aids plugin developer debugging.
Closes #785
Closes #783