Skip to content

Commit aa39b33

Browse files
os-zhuangclaude
andcommitted
fix(showcase): add sync_status/sync_error fields the resilient-sync flow writes
The showcase_resilient_sync flow's try/catch demo flags push failures by writing task.sync_status / task.sync_error from its catch region — but the showcase_task object never declared those fields, so the catch itself failed with "no such column: sync_status" and the whole run failed instead of demonstrating structured error handling. Found by step-by-step browser E2E of every showcase flow; with the fields in place the flow now completes: push retries exhaust → catch flags the task → run completed with the catch step in the run log. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent be11326 commit aa39b33

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

examples/app-showcase/src/objects/task.object.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,17 @@ export const Task = ObjectSchema.create({
6868
cover: Field.image({ label: 'Cover Image' }),
6969
labels: { type: 'tags', label: 'Labels' },
7070
notes: Field.textarea({ label: 'Notes' }),
71+
// Written by the Resilient Sync flow's try/catch region
72+
// (showcase_resilient_sync) when the outbound push exhausts its retries —
73+
// the catch branch flags the failure here for operator follow-up.
74+
sync_status: Field.select({
75+
label: 'Sync Status',
76+
options: [
77+
{ label: 'Synced', value: 'synced', color: '#10B981' },
78+
{ label: 'Failed', value: 'failed', color: '#EF4444' },
79+
],
80+
}),
81+
sync_error: Field.textarea({ label: 'Sync Error' }),
7182
},
7283

7384
validations: [

0 commit comments

Comments
 (0)