refactor: modularize tui.go into internal/tui with 12 focused files#52
Merged
Conversation
- Split 2818-line monolithic tui.go into 8 focused modules (model, update, view, render, dialogs, history, tasks, helpers) - Move all tui_*.go and i18n.go from project root into internal/tui/ - Change package from main to tui, export StartTUI for main.go - Update main.go import and call site - Remove circular self-imports, use direct type references within package - Compiles and passes go vet cleanly
- Update tech stack: Go 1.24+, openai-go/v3 SDK - Add DevOps, ImplPlan, and Executor agent definitions - Expand tool count from 14 to 17 (micro_agent, impl_plan, flow_control) - Refine module structure with flat file layout and new modules (compact, diff, workspace_guard) - Add three-tier LLM configuration priority docs - Add security mechanisms appendix (WorkspaceGuard, UserConfirmManager) - Add Embedding & Vector Search section to CLAUDE.md - Fix test command paths (internal/assistant/agents → internal/agents) - Fix section numbering and TOC consistency
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.
No description provided.