Keep complete background results and optional decisions on work cards #34

Merged
weichen merged 3 commits from feature/workbench-flow-completion into main 2026-10-15 08:18:44 +00:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 1a5ef6b75c - Show all commits
+3 -2
View File
@@ -39,8 +39,9 @@ type WorkCard struct {
}
type WorkDecision struct {
Mode string `json:"mode"` // single | multiple
State string `json:"state"` // open | deferred | dispatching | submitted
RunID ID `json:"runId,omitempty"` // reserved child identity; reconciles acceptance after restart without rerunning
Mode string `json:"mode"` // single | multiple
State string `json:"state"` // open | deferred | dispatching | submitted
Options []WorkOption `json:"options,omitempty"`
SelectedIDs []string `json:"selectedIds,omitempty"`
FreeText string `json:"freeText,omitempty"`
+1
View File
@@ -158,6 +158,7 @@ export interface WorkCard {
decision?: WorkDecision;
}
export interface WorkDecision {
runId?: ID;
mode: 'single' | 'multiple'; state: 'open' | 'deferred' | 'dispatching' | 'submitted';
options?: { id: string; label: string }[];
selectedIds?: string[]; freeText?: string; respondedAt?: string;