Skip to content

feat: file changes preview#165

Closed
xingty wants to merge 9 commits intoMoonshotAI:mainfrom
xingty:feat-preview
Closed

feat: file changes preview#165
xingty wants to merge 9 commits intoMoonshotAI:mainfrom
xingty:feat-preview

Conversation

@xingty
Copy link

@xingty xingty commented Nov 6, 2025

This PR introduces a preview feature to display file changes in the terminal. (maybe relates to #27)

Changes

  • File change details can now be displayed directly in the terminal
  • Added new components: PreviewChange, Preview, and a queue for UILoop handling
  • Implementation follows a similar pattern to the existing request approval feature
image

Discussion

While the current implementation works, I've realized that using PreviewChange as a payload of ApprovalRequest might lead to a cleaner architecture with fewer changes. This alternative approach could simplify the code structure.

Which approach do you think is better? I can implement the alternative in a new commit if the team prefers that direction.

@xxchan
Copy link
Collaborator

xxchan commented Jan 21, 2026

#638

@xxchan xxchan closed this Jan 21, 2026
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.

2 participants