feat: add internal/config package and upgrade to Go 1.26#22
Merged
Conversation
Add persistent config support via ~/.httpmon/config.json with Load/Save, CLI flag overrides, and MCP token migration from legacy mcp-token file. Upgrade Go from 1.25.3 to 1.26.0 and golangci-lint to v2.9.0 to resolve race detector toolchain mismatch. Update README with MCP server docs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
These are by-design: repeat/compose send user-initiated requests through the local proxy, and the editor command comes from $VISUAL/$EDITOR. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Load persistent config on startup, overlay CLI flags via ApplyFlags. Use cfg.ProxyPort, cfg.BufferSize, cfg.MCPEnabled, cfg.MCPAddr, cfg.ThrottlePreset instead of raw flag values. MCP token now managed via config.LoadOrCreateToken. Pass DataDir into TUI AppConfig for future settings screen. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Centered popup with 7 fields: ProxyPort, MCPEnabled, MCPAddr, BufferSize, ThrottlePreset, ListMode, TreeGroupBy. Bool/enum fields toggle on Enter, int/string fields open textinput. Esc saves to disk. Fields requiring restart show (restart) hint. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Promote feat/mcp-server to PR #20 link. Add feat/config-package-go126 section covering persistent config, TUI settings screen, Go 1.26 upgrade. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extract settingsFieldDisplay to deduplicate format logic, simplify bool toggle to one-liner, fix struct field alignment, remove comments that restate obvious code. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…o126 # Conflicts: # cmd/httpmon/main.go
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
internal/configpackage for persistent JSON config (~/.httpmon/config.json) with Load/Save, default backfill, CLI flag overrides viaApplyFlags, and MCP token migration from legacymcp-tokenfileTest plan
go test -race ./internal/config/— 10 tests, 92.3% coveragemake allpasses (lint + test + build)httpmon --mcp-tokenprints token correctly~/.httpmon/config.json🤖 Generated with Claude Code