Skip to content

refactor(tui): extract components infra and services layers - #3

Closed
creatang wants to merge 10 commits into
codex/tui-split-01-state-boundaryfrom
codex/tui-split-02-adapters-infra-services
Closed

refactor(tui): extract components infra and services layers#3
creatang wants to merge 10 commits into
codex/tui-split-01-state-boundaryfrom
codex/tui-split-02-adapters-infra-services

Conversation

@creatang

@creatang creatang commented Apr 7, 2026

Copy link
Copy Markdown
Owner

背景:把渲染、基础设施、外部对接从核心状态机中拆离。
本次改动:
新增 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 粒度回滚。

@creatang
creatang deleted the branch codex/tui-split-01-state-boundary April 10, 2026 05:40
@creatang creatang closed this Apr 10, 2026
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
@creatang
creatang deleted the codex/tui-split-02-adapters-infra-services branch April 15, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant