refactor(tui): extract components infra and services layers - #3
Closed
creatang wants to merge 10 commits into
Closed
refactor(tui): extract components infra and services layers#3creatang wants to merge 10 commits into
creatang wants to merge 10 commits into
Conversation
test(tui): improve coverage for bridge and infra helpers
- Relax shell menu newline assertion on Windows (CJK paths cause wrapping) - Increase workspace command executor timeout from 5s to 15s for Windows
filepath.Abs returns a path with NUL on Linux instead of erroring. Add explicit NUL check to match the test expectation and prevent invalid paths from leaking through.
creatang
pushed a commit
that referenced
this pull request
Apr 14, 2026
fix: preserve session workdir on reload
creatang
pushed a commit
that referenced
this pull request
Apr 14, 2026
fix(runtime): preserve memo extractor hook after refactor
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.
背景:把渲染、基础设施、外部对接从核心状态机中拆离。
本次改动:
新增 internal/tui/components/:原子渲染组件(仅输入数据,输出字符串)。
新增 internal/tui/infra/:剪贴板、Markdown 渲染缓存、工作区执行/扫描等底层能力。
新增 internal/tui/services/*:runtime/provider/command/file 服务封装,统一 tea.Cmd/tea.Msg 边界。
补充对应单测。
影响范围:仅 internal/tui,不触及 runtime/provider 业务实现。
验证:
go test ./internal/tui/... ./internal/app
风险与回滚:
中低风险(目录迁移+封装);可按 PR 粒度回滚。