Skip to content

fix(tui): update task glyph when status changes#1306

Open
YOMXXX wants to merge 1 commit into
XiaomiMiMo:mainfrom
YOMXXX:fix/1281-task-completion-order
Open

fix(tui): update task glyph when status changes#1306
YOMXXX wants to merge 1 commit into
XiaomiMiMo:mainfrom
YOMXXX:fix/1281-task-completion-order

Conversation

@YOMXXX

@YOMXXX YOMXXX commented Jun 24, 2026

Copy link
Copy Markdown

Summary

  • make TaskItem compute its status glyph reactively so an existing row updates from [ ] to [✓] after task.updated marks it done
  • add an OpenTUI regression test that renders a task, changes status from open to done, and verifies the glyph updates

Fixes #1281

Tests

  • bun test test/cli/tui/task-item.test.tsx test/cli/tui/slot-replace.test.tsx test/cli/tui/use-event.test.tsx --timeout 30000
  • bun typecheck
  • git diff --check

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.

task再完成之后没有被标记为已经完成

1 participant