feat(tasks): deepening a task into a note keeps the task, linked to the note's first checkbox

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
sandrodachandClaude Opus 5.5 committed 2026-11-01 11:32:42 +01:00
1 parent c851b8e3ba
commit 1a56be572c
5 files changed
+66 -3

No files matched your search

+5 -2
View File
@@ -666,8 +666,11 @@ export const TasksView: React.FC<TasksViewProps> = ({
triggerHaptic(20);
const updated = await api.triageAction(task.id, 'keep', { convertTo: 'document' });
onRefreshStats();
if (updated.convertedRefId) {
onOpenDocument(updated.convertedRefId);
// The task stays in its list, linked to the note's first checkbox (docId); open that note
setTasks((prev) => prev.map((t) => (t.id === updated.id ? updated : t)));
const docId = updated.docId || (updated.convertedType === 'document' ? updated.convertedRefId : '');
if (docId) {
onOpenDocument(docId);
} else {
loadData();
}