Improve support for todo widgets #1610
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.47) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 299 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.341
Real PR Conversation Timeline
1 comments
"Review active on #1610"
general
weight: 0.35
yummyPancake2607
Improve support for todo widgets
Fixes #1575
---
Goal of the work
The todo widget in zulip-terminal relies on widget submessages to represent user actions such as toggling, adding, and renaming items.
This PR improves support for todo widgets by completing missing UI interactions and ensuring todo actions are sent correctly to the server.
---
What was missing or broken
Before this change:
---
What this PR changes
This PR is intentionally split into small, focused commits:
1) Send widget submessages via the correct endpoint
POST /api/v1/submessage.Result: todo actions are correctly delivered to the server.
---
2) Support toggling todo tasks
Result: users can reliably mark tasks as complete or incomplete.
---
3) Add todo text input popup
Result: users can add todo items interactively from the terminal UI.
---
4) Add todo rename popup
Result: todo items can be edited without leaving the widget.
---
5) Support adding todo tasks
Result: newly added todo items persist and sync correctly.
---
User-visible behavior
When focused on a todo widget:
1–9a, type the text, pressEntert, type the new text, pressEnter---
Screenshots
Add todo popup
<img width="823" height="377" alt="Add todo popup"
src="https://github.com/user-attachments/assets/0f41360d-08c2-4f4b-b943-cf76ae6fd81d" />
Rename / edit popup
<img width="823" height="377" alt="Rename todo popup"
src="https://github.com/user-attachments/assets/dcca06d1-1a5e-4b45-abdd-f74ee4e61569" />
---
How to test
at