Repository navigation
refactor(tui): 命令菜单/Activity/filepicker/progress 组件化并合并重复入口 - #2
Merged
Merged
Conversation
Codex/provider mvp support surface
# Conflicts: # internal/config/model.go
# Conflicts: # agents.md
refactor(provider): 收敛 provider 架构并清理旧兼容残留
fix:修复 goroutine 泄漏、简化装配层依赖、补全工具调用流式事件
feat: 全自动软件分发矩阵与一键安装脚本
pref:增加事件流字段,修复事件流信息缺口并清理废弃代码
feat(context/runtime): 落地 manual compact(拆分自 1024XEngineer#127)并补齐配置、TUI、事件与测试
feat: P0-4 工具执行期引入 WorkspacePlan 以收敛 TOCTOU 风险
…activity-scroll # Conflicts: # internal/tui/update.go
feat(context): 支持 reactive compact 模式
pref(provider): Config/Provider 代码质量修复 — 冗余清理与结构重构
…activity-scroll # Conflicts: # internal/tui/commands.go # internal/tui/update_test.go
creatang
pushed a commit
that referenced
this pull request
Apr 14, 2026
fix: rebind session workdir to startup workspace
creatang
pushed a commit
that referenced
this pull request
Apr 14, 2026
fix(runtime): drain streaming events after cancellation
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.
背景
本次对 TUI 做了组件化重构,并按“功能不变、合并重复实现”的原则,集中清理了重复入口和薄包装函数。
不再保留旧行为兼容过渡代码,直接切到新交互实现。
主要改动
1) Command Menu 组件化(C1)
internal/tui/command_menu.go/、@、&的建议构建与渲染路径。@空查询进入文件浏览。2) Activity 组件化(C2)
3) @file 浏览模式(C3)
pickerFile模式并接入 filepicker。4) 进度反馈增强(C4)
5) 重复函数与入口合并(重点)
resizeComponents/resizeComposerLayout薄包装,统一到applyComponentLayout(...)。renderMessageBlock和renderMessageContent包装,统一使用...WithCopy主实现。providerItem/modelItem合并为selectionItem。matchingFileReferences包装,统一走resolveFileReferenceSuggestions。max,统一使用内建实现,保留clamp。依赖变化
go.mod/go.sum增加:github.com/charmbracelet/harmonicagithub.com/dustin/go-humanize测试与验证
已执行并通过:
go test ./internal/tuigo test ./internal/app ./internal/tuigo test ./...风险与关注点
/建议、@建议、&命令提示