Multi-select feature parity: the bulk properties panel should expose all the same settings as single-clip editing (effects, position/crop, text, transitions, entrance/exit/continuous animations, volume slider, from/to timing, etc.), not just opacity/speed/mute. Also ensure all single-clip operations work with multi-selection where it makes sense: arrow key track movement, context menu operations (copy, split-at-playhead for each), and live visual feedback during multi-drag. The BulkClipPanel in PropertiesPanel.tsx currently only shows 3 fields — it needs to match the full ClipPanel feature set with mixed-value handling.
code
Batch framing:
- Execute batch 1 of 5.
- Actionable task IDs for this batch: ['T1', 'T2', 'T3', 'T6', 'T7']
- Already completed task IDs available as dependency context: []
Actionable tasks for this batch:
[
{
"id": "T1",
"description": "Create src/tools/video-editor/lib/bulk-utils.ts with three exports: (1) getSharedValue<T> \u2014 moved from PropertiesPanel.tsx:12-19, compares by strict equality, returns shared value or null. (2) getSharedNestedValue<T>(clips, accessor) \u2014 compares nested objects by their type field (for effects) or JSON.stringify (for text), returns shared value or null. (3) getBulkVisibleTabs(clips, tracks): ClipTab[] \u2014 mirrors getVisibleClipTabs (ClipPanel.tsx:37-49): Effects always shown, Timing always shown, Position shown if ANY clip is on a visual track (including text clips \u2014 per DECISION-006 correcting the plan's original rule), Audio shown if ANY clip is non-text, Text shown only if ALL clips are text type. Replace the inline getSharedValue in PropertiesPanel.tsx with the import.",
"depends_on": [],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T2",
"description": "Add handleUpdateClipsDeep(clipIds: string[], patchFn: (existing: ClipMeta) => Partial<ClipMeta>) to useClipEditing.ts. This takes a patch factory that receives each clip's current meta from dataRef.current.meta[id], builds per-clip patches preserving nested sub-fields, then calls applyTimelineEdit(current.rows, metaUpdates). Uses the existing getValidClipIds helper. Export from UseClipEditingResult interface. Wire through useTimelineState.ts (add to clipEditing usage at ~line 186, expose in editor useMemo at ~line 207) and useTimelineState.types.ts (add handleUpdateClipsDeep: ClipEditingHook['handleUpdateClipsDeep'] to TimelineEditorContextValue).",
"depends_on": [],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T3",
"description": "Add handleResetClipsPosition(clipIds: string[]) to useClipEditing.ts. Loops over valid clip IDs, building per-clip patches that clear x/y/width/height/cropTop/cropBottom/cropLeft/cropRight (same fields as handleResetClipPosition at line 166-183, but using applyTimelineEdit with a metaUpdates record instead of applyResolvedConfigEdit). Export from UseClipEditingResult, wire through useTimelineState.ts and useTimelineState.types.ts same as T2.",
"depends_on": [],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T6",
"description": "Enable arrow-key track movement for multi-select. (1) In useTimelineTrackManagement.ts, add moveSelectedClipsToTrack(direction, selectedClipIds: ReadonlySet<string>): groups all selected clips by current row, for each group finds target track of same kind one step in direction (same traversal as moveSelectedClipToTrack at line 135-165), if ANY group can't find a valid target the entire operation is a no-op (atomic). If selection spans track kinds (visual + audio), each kind-group moves independently within its kind. Calls moveClipToRow for each clip. Export from result interface. (2) Wire through useTimelineState.ts and useTimelineState.types.ts. (3) In VideoEditorShell.tsx:50, change canMoveSelectedClipToTrack: editor.selectedClipIds.size === 1 to editor.selectedClipIds.size >= 1. (4) In useKeyboardShortcuts.ts, update moveSelectedClipToTrack call to use the new multi-clip function passing the full selection set.",
"depends_on": [],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T7",
"description": "Add 'Split at Playhead' to batch context menu. (1) In useClipEditing.ts, add handleSplitClipsAtPlayhead(clipIds: string[]) \u2014 iterates over all clip IDs, for each clip that intersects the current playhead time (checked via finding the action in rows where action.start <= currentTime < action.end), calls splitClipAtPlayhead. Clips not intersecting are silently skipped. (2) Export from UseClipEditingResult, wire through useTimelineState.ts and useTimelineState.types.ts. (3) In ClipAction.tsx, add onSplitClipsAtPlayhead?: (clipIds: string[]) => void to ClipActionProps. Add a 'Split {N} clips at playhead' menu item with Scissors icon in the batch context menu section (after the mute item at line 156-168, before the delete item). (4) Wire the handler through wherever ClipAction is instantiated (TimelineEditor.tsx).",
"depends_on": [],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
}
]
code
Completed task context (already satisfied, do not re-execute unless directly required by current edits):
[]
Prior batch deviations (address if applicable):
None
Batch-scoped sense checks:
[
{
"id": "SC1",
"task_id": "T1",
"question": "Does getBulkVisibleTabs show Position tab for an all-text multi-selection (matching getVisibleClipTabs which returns 'position' for text clips)?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC2",
"task_id": "T2",
"question": "Does handleUpdateClipsDeep produce per-clip metaUpdates entries (not a single shared patch) so applyTimelineEdit's shallow merge doesn't destroy clip-specific nested data?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC3",
"task_id": "T3",
"question": "Does handleResetClipsPosition set all 8 position/crop fields to undefined for each clip, matching the single-clip handleResetClipPosition at useClipEditing.ts:171-181?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC6",
"task_id": "T6",
"question": "Is the multi-clip track movement atomic per kind-group (if any visual clip can't move up, no visual clips move, but audio clips can still move independently)?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC7",
"task_id": "T7",
"question": "Does handleSplitClipsAtPlayhead correctly handle the case where some selected clips don't intersect the playhead (should skip silently, not error)?",
"executor_note": "",
"verdict": ""
}
]
code
Full execution tracking source of truth (`finalize.json`):
{
"tasks": [
{
"id": "T1",
"description": "Create src/tools/video-editor/lib/bulk-utils.ts with three exports: (1) getSharedValue<T> \u2014 moved from PropertiesPanel.tsx:12-19, compares by strict equality, returns shared value or null. (2) getSharedNestedValue<T>(clips, accessor) \u2014 compares nested objects by their type field (for effects) or JSON.stringify (for text), returns shared value or null. (3) getBulkVisibleTabs(clips, tracks): ClipTab[] \u2014 mirrors getVisibleClipTabs (ClipPanel.tsx:37-49): Effects always shown, Timing always shown, Position shown if ANY clip is on a visual track (including text clips \u2014 per DECISION-006 correcting the plan's original rule), Audio shown if ANY clip is non-text, Text shown only if ALL clips are text type. Replace the inline getSharedValue in PropertiesPanel.tsx with the import.",
"depends_on": [],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T2",
"description": "Add handleUpdateClipsDeep(clipIds: string[], patchFn: (existing: ClipMeta) => Partial<ClipMeta>) to useClipEditing.ts. This takes a patch factory that receives each clip's current meta from dataRef.current.meta[id], builds per-clip patches preserving nested sub-fields, then calls applyTimelineEdit(current.rows, metaUpdates). Uses the existing getValidClipIds helper. Export from UseClipEditingResult interface. Wire through useTimelineState.ts (add to clipEditing usage at ~line 186, expose in editor useMemo at ~line 207) and useTimelineState.types.ts (add handleUpdateClipsDeep: ClipEditingHook['handleUpdateClipsDeep'] to TimelineEditorContextValue).",
"depends_on": [],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T3",
"description": "Add handleResetClipsPosition(clipIds: string[]) to useClipEditing.ts. Loops over valid clip IDs, building per-clip patches that clear x/y/width/height/cropTop/cropBottom/cropLeft/cropRight (same fields as handleResetClipPosition at line 166-183, but using applyTimelineEdit with a metaUpdates record instead of applyResolvedConfigEdit). Export from UseClipEditingResult, wire through useTimelineState.ts and useTimelineState.types.ts same as T2.",
"depends_on": [],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T4",
"description": "Rewrite BulkClipPanel in PropertiesPanel.tsx with tabbed structure matching ClipPanel. Props: clips (ResolvedTimelineClip[]), visibleTabs, compositionWidth/Height, onChange (scalar), onChangeDeep (patch factory), onResetPosition, onToggleMute, onClose, activeTab, setActiveTab. Tabs: \u2014 entrance/exit/continuous selects using so each clip preserves its own duration/intensity (pattern: ). Custom effect editor shown only when all clips share the same custom effect slug. \u2014 speed (scalar onChange), Source In/Out (scalar onChange). Start time excluded (DECISION-003). \u2014 X/Y/Width/Height inputs (scalar onChange), Opacity slider (scalar onChange), Reset Position button (onResetPosition). \u2014 Volume slider (scalar onChange), Toggle Mute button (onToggleMute). (only when ALL clips are text) \u2014 fontSize and color using to preserve each clip's content. Text content excluded (DECISION-004). Header shows '{N} clips selected' with close button. Tab bar uses for column count. Mixed values show 'Mixed' placeholder on inputs, disabled select option for selects.",
"depends_on": [
"T1",
"T2",
"T3"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T5",
"description": "Update PropertiesPanel component (PropertiesPanel.tsx:150-257) to compute and pass all bulk props. Expand shared-value computation (lines 188-191) for all fields needed by BulkClipPanel using for scalars and for entrance/exit/continuous/text. Compute via . Wire: \u2192 , \u2192 , \u2192 , \u2192 . Pass , , , . Add and to the destructured context values from .",
"depends_on": [
"T1",
"T2",
"T3",
"T4"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T6",
"description": "Enable arrow-key track movement for multi-select. (1) In , add : groups all selected clips by current row, for each group finds target track of same kind one step in (same traversal as at line 135-165), if ANY group can't find a valid target the entire operation is a no-op (atomic). If selection spans track kinds (visual + audio), each kind-group moves independently within its kind. Calls for each clip. Export from result interface. (2) Wire through and . (3) In , change to . (4) In , update call to use the new multi-clip function passing the full selection set.",
"depends_on": [],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T7",
"description": "Add 'Split at Playhead' to batch context menu. (1) In , add \u2014 iterates over all clip IDs, for each clip that intersects the current playhead time (checked via finding the action in rows where ), calls . Clips not intersecting are silently skipped. (2) Export from , wire through and . (3) In , add to . Add a 'Split {N} clips at playhead' menu item with Scissors icon in the batch context menu section (after the mute item at line 156-168, before the delete item). (4) Wire the handler through wherever ClipAction is instantiated (TimelineEditor.tsx).",
"depends_on": [],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T8",
"description": "TypeScript compilation check. Run and fix any type errors from the expanded interfaces and new handler signatures across all changed files.",
"depends_on": [
"T1",
"T2",
"T3",
"T4",
"T5",
"T6",
"T7"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T9",
"description": "Manual testing checklist. (1) Select 2+ video clips on visual tracks \u2192 verify Effects, Timing, Position, Audio tabs appear. Edit entrance effect \u2192 confirm each clip keeps its own duration. Edit opacity \u2192 confirm all update. (2) Select mixed types (video + text) \u2192 verify Text tab hidden, Position and Audio tabs shown. (3) Select 2+ text clips \u2192 verify Text tab shown, Position tab shown (DECISION-006), font size edit preserves each clip's content. (4) Arrow up/down with multi-select \u2192 verify all clips move together, no-op if any clip in a kind-group is blocked. (5) Right-click multi-select \u2192 verify 'Split at Playhead' appears and works (splits intersecting clips only). (6) Verify mixed-value display shows 'Mixed' placeholder correctly for all field types.",
"depends_on": [
"T8"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
}
],
"watch_items": [
"[CRITICAL] Shallow merge in applyTimelineEdit (useTimelineSave.ts:236-237): overwrites nested objects. All nested-field bulk edits (entrance, exit, continuous, text) MUST use handleUpdateClipsDeep with the patch factory pattern, never handleUpdateClips with a static patch containing nested objects.",
"[DECISION-006] Position tab must be shown for ALL visual-track clips including text. The plan's Step 1.4 incorrectly says 'non-text on a visual track' \u2014 this must be corrected to 'any clip on a visual track'. Reference: ClipPanel.tsx:41-42 returns position for text clips.",
"[DEBT] bulk-panel-tabs: Ensure text clip multi-selections get the Position tab. This was flagged as existing debt \u2014 the implementation must not make it worse.",
"[DEBT] properties-panel-scope: Crop and transition controls are deliberately out of scope (DECISION-001). Do not attempt to add them.",
"[DEBT] context-menu-scope: Copy/paste is deliberately out of scope (DECISION-002). No existing infrastructure to extend.",
"[SCOPE] Bulk Source In/Out: These are scalar fields that apply the same value to all clips. This is potentially useful (e.g., 'trim all to start at 2s') but could surprise users. Include them but note in the UI that the value applies to all clips.",
"[SCOPE] Arrow-key cross-kind movement: When selection spans track kinds (visual + audio), each kind-group should move independently. Block only if a kind-group has no valid target, not the entire operation.",
"[SCOPE] Undo criterion from success criteria is aspirational \u2014 this codebase has no undo/redo system. The patch factory approach preserves data correctly so undo would work if/when implemented, but cannot be tested now.",
"[WIRING] New handlers (handleUpdateClipsDeep, handleResetClipsPosition, handleSplitClipsAtPlayhead, moveSelectedClipsToTrack) must be wired through 3 layers: useClipEditing \u2192 useTimelineState \u2192 useTimelineState.types (TimelineEditorContextValue interface). Missing any layer causes a silent context value omission.",
"[PATTERN] BulkClipPanel should reuse the same shadcn components (Select, Input, Slider, Tabs, Button) and the same sentinel, , and component from ClipPanel.tsx. Consider extracting shared pieces if duplication exceeds ~20 lines."
],
"sense_checks": [
{
"id": "SC1",
"task_id": "T1",
"question": "Does getBulkVisibleTabs show Position tab for an all-text multi-selection (matching getVisibleClipTabs which returns 'position' for text clips)?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC2",
"task_id": "T2",
"question": "Does handleUpdateClipsDeep produce per-clip metaUpdates entries (not a single shared patch) so applyTimelineEdit's shallow merge doesn't destroy clip-specific nested data?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC3",
"task_id": "T3",
"question": "Does handleResetClipsPosition set all 8 position/crop fields to undefined for each clip, matching the single-clip handleResetClipPosition at useClipEditing.ts:171-181?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC4",
"task_id": "T4",
"question": "Do all effect selects (entrance/exit/continuous) in BulkClipPanel use onChangeDeep (not onChange), and does each patch factory reference / / to preserve per-clip sub-fields?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC5",
"task_id": "T5",
"question": "Are handleUpdateClipsDeep and handleResetClipsPosition both destructured from useTimelineEditorContext() and wired to BulkClipPanel's onChangeDeep and onResetPosition props?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC6",
"task_id": "T6",
"question": "Is the multi-clip track movement atomic per kind-group (if any visual clip can't move up, no visual clips move, but audio clips can still move independently)?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC7",
"task_id": "T7",
"question": "Does handleSplitClipsAtPlayhead correctly handle the case where some selected clips don't intersect the playhead (should skip silently, not error)?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC8",
"task_id": "T8",
"question": "Does pass with zero errors after all changes?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC9",
"task_id": "T9",
"question": "When editing entrance effect type in bulk mode, does each clip retain its individual entrance.duration value (not reset to the 0.4 default)?",
"executor_note": "",
"verdict": ""
}
],
"meta_commentary": "\n\n T1, T2, T3, T6, T7 are independent \u2014 execute in parallel. T4 depends on T1-T3 (needs the utility types and handler signatures). T5 depends on T4 (passes computed props to the new BulkClipPanel). T8-T9 are sequential validation after all code.\n\n The entire plan's architecture revolves around the patch factory pattern in T2. When reviewing T4, verify that EVERY nested-field edit (entrance, exit, continuous, text fontSize, text color) goes through , not . Scalar fields (opacity, speed, volume, x, y, width, height, from, to) are safe to use .\n\n The plan's Step 1.4 says Position is shown "if ANY selected clip is non-text on a visual track." This is WRONG per the gate warning. ClipPanel.tsx:41-42 shows Position for text clips too. The correct rule for getBulkVisibleTabs is: Position shown if ANY clip is on a visual track (regardless of clipType). The executor MUST correct this.\n\n\n- Cross-kind arrow movement: Each kind-group moves independently (not all-or-nothing across kinds). This is more useful than blocking the entire operation when a mixed selection can't fully move.\n- Bulk Source In/Out: Included as scalar fields. Applying the same source trim to all clips is a valid use case (e.g., skip first 2 seconds of all clips).\n\n Crop controls (in OverlayEditor), transition controls (don't exist anywhere), copy/paste (no infrastructure), undo/redo (no system), start time bulk edit (destructive stacking).\n\n FieldLabel and NO_EFFECT/TAB_COLUMNS_CLASS from ClipPanel.tsx will be needed by BulkClipPanel. Either extract to a shared file or co-locate in PropertiesPanel.tsx. Don't duplicate the effect type arrays \u2014 import from .\n\n Each new handler must appear in: (1) useClipEditing.ts return object, (2) UseClipEditingResult interface, (3) useTimelineState.ts editor useMemo, (4) useTimelineState.ts useMemo deps array, (5) TimelineEditorContextValue in useTimelineState.types.ts. Missing any of these 5 causes a silent failure where the handler is undefined at runtime."
}
code
Debt watch items (do not make these worse):
[DEBT] agent-chat-rendering: removing the duplicate assistant turn may hide message_user text if the frontend only renders assistant-role turns as chat bubbles. (flagged 1 times across 1 plans)
[DEBT] bulk-panel-tabs: text clip multi-selections would miss the position tab under the plan's stated rule. (flagged 1 times across 1 plans)
[DEBT] conflict-resolution: silently reloading agent-originated timeline updates would discard dirty local edits. (flagged 1 times across 1 plans)
[DEBT] context-menu-scope: multi-clip copy is not included despite being mentioned in the original idea. (flagged 1 times across 1 plans)
[DEBT] issue-detection: mid-sentence-cut detection is not implementable without transcript/profile data that the current provider doesn't expose. (flagged 1 times across 1 plans)
[DEBT] optimistic-locking: plan only specifies version checking at the db write layer; the ui load/state/save path doesn't carry config_version yet. (flagged 1 times across 1 plans)
[DEBT] properties-panel-scope: crop and transition controls are not included in the bulk panel, narrowing the original idea's scope. (flagged 1 times across 1 plans)
[DEBT] realtime-subscriptions: the shared realtime system doesn't know about timeline_agent_sessions; step 7 hooks need their own channel subscription. (flagged 1 times across 1 plans)
[DEBT] selection-save-bridge: the plan specifies passing pruneselection into usetimelinesave but doesn't detail the hook-layer bridge needed because usetimelinesave is instantiated inside usetimelinedata before usetimelinestate runs. (flagged 1 times across 1 plans)
[DEBT] task-deduplication: server-generated idempotency keys would break retry deduplication because retried requests get fresh keys. (flagged 1 times across 1 plans)
[DEBT] task-system-integration: create_generation_task is underspecified against the actual task family system. (flagged 1 times across 1 plans)
[DEBT] tool-error-propagation: a blanket catch in executetool would silently downgrade db/persistence failures into ordinary tool results, changing the session error/http 500 behavior. (flagged 1 times across 1 plans)
code
Assistant
{"output":"Batch 1 executed for T1, T2, T3, T6, and T7. Added the shared bulk helpers, wired the new bulk clip-editing handlers through timeline state/context, enabled multi-select arrow-key track moves, added batch split-at-playhead in the clip context menu, and verified the changes with npx tsc --noEmit. Checkpoint written to .megaplan/plans/multi-select-feature-parity-20260326-0548/execution_batch_1.json.","files_changed":["src/tools/video-editor/lib/bulk-utils.ts","src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx","src/tools/video-editor/hooks/useClipEditing.ts","src/tools/video-editor/hooks/useTimelineTrackManagement.ts","src/tools/video-editor/hooks/useTimelineState.ts","src/tools/video-editor/hooks/useTimelineState.types.ts","src/tools/video-editor/hooks/useKeyboardShortcuts.ts","src/tools/video-editor/components/VideoEditorShell.tsx","src/tools/video-editor/components/TimelineEditor/ClipAction.tsx","src/tools/video-editor/components/TimelineEditor/TimelineEditor.tsx",".megaplan/plans/multi-select-feature-parity-20260326-0548/execution_batch_1.json"],"commands_run":["git status --short","rg -n "getSharedValue|BulkClipPanel|useClipEditing|handleResetClipPosition|moveSelectedClipToTrack|ClipAction|useKeyboardShortcuts|VideoEditorShell|useTimelineState.types|useTimelineTrackManagement|splitClipAtPlayhead" src/tools/video-editor","sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx","sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts","sed -n '1,360p' src/tools/video-editor/hooks/useTimelineTrackManagement.ts","sed -n '1,380p' src/tools/video-editor/hooks/useTimelineState.ts","sed -n '1,220p' src/tools/video-editor/hooks/useTimelineState.types.ts","sed -n '1,220p' src/tools/video-editor/components/VideoEditorShell.tsx","sed -n '1,220p' src/tools/video-editor/hooks/useKeyboardShortcuts.ts","sed -n '1,260p' src/tools/video-editor/components/TimelineEditor/ClipAction.tsx","sed -n '1,260p' src/tools/video-editor/components/TimelineEditor/TimelineEditor.tsx","npx tsc --noEmit"],"deviations":[],"task_updates":[{"task_id":"T1","status":"done","executor_notes":"Added shared bulk helpers in bulk-utils.ts, replaced the inline PropertiesPanel helper import, and verified the new tab helper keeps position visible for visual-track selections including text clips.","files_changed":["src/tools/video-editor/lib/bulk-utils.ts","src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx"],"commands_run":["sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx","npx tsc --noEmit"]},{"task_id":"T2","status":"done","executor_notes":"Added handleUpdateClipsDeep with per-clip patch generation from current.meta[clipId], then exposed it through useTimelineState and useTimelineState.types so nested bulk patches are not shared across clips.","files_changed":["src/tools/video-editor/hooks/useClipEditing.ts","src/tools/video-editor/hooks/useTimelineState.ts","src/tools/video-editor/hooks/useTimelineState.types.ts"],"commands_run":["sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts","sed -n '1,380p' src/tools/video-editor/hooks/useTimelineState.ts","sed -n '1,220p' src/tools/video-editor/hooks/useTimelineState.types.ts","npx tsc --noEmit"]},{"task_id":"T3","status":"done","executor_notes":"Added to clear the same eight position/crop fields as the single-clip reset path for every valid selected clip, and wired it through the editor context types/state.","files_changed":["src/tools/video-editor/hooks/useClipEditing.ts","src/tools/video-editor/hooks/useTimelineState.ts","src/tools/video-editor/hooks/useTimelineState.types.ts"],"commands_run":["sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts","sed -n '1,380p' src/tools/video-editor/hooks/useTimelineState.ts","sed -n '1,220p' src/tools/video-editor/hooks/useTimelineState.types.ts","npx tsc --noEmit"]},{"task_id":"T6","status":"done","executor_notes":"Implemented with per-kind planning and blocking, exposed it through timeline state/context, and updated keyboard handling so arrow-key track moves operate on the full selection.","files_changed":["src/tools/video-editor/hooks/useTimelineTrackManagement.ts","src/tools/video-editor/hooks/useTimelineState.ts","src/tools/video-editor/hooks/useTimelineState.types.ts","src/tools/video-editor/hooks/useKeyboardShortcuts.ts","src/tools/video-editor/components/VideoEditorShell.tsx"],"commands_run":["sed -n '1,360p' src/tools/video-editor/hooks/useTimelineTrackManagement.ts","sed -n '1,220p' src/tools/video-editor/hooks/useKeyboardShortcuts.ts","sed -n '1,220p' src/tools/video-editor/components/VideoEditorShell.tsx","npx tsc --noEmit"]},{"task_id":"T7","status":"done","executor_notes":"Added with silent skipping for non-intersecting clips, wired it through the editor context, and added the batch context-menu action in /.","files_changed":["src/tools/video-editor/hooks/useClipEditing.ts","src/tools/video-editor/hooks/useTimelineState.ts","src/tools/video-editor/hooks/useTimelineState.types.ts","src/tools/video-editor/components/TimelineEditor/ClipAction.tsx","src/tools/video-editor/components/TimelineEditor/TimelineEditor.tsx"],"commands_run":["sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts","sed -n '1,260p' src/tools/video-editor/components/TimelineEditor/ClipAction.tsx","sed -n '1,260p' src/tools/video-editor/components/TimelineEditor/TimelineEditor.tsx","npx tsc --noEmit"]}],"sense_check_acknowledgments":[{"sense_check_id":"SC1","executor_note":" adds whenever any selected clip is on a visual track, so an all-text visual multi-selection still shows the Position tab."},{"sense_check_id":"SC2","executor_note":" builds a distinct entry for each valid clip ID from before calling , so nested bulk patches are per clip rather than shared."},{"sense_check_id":"SC3","executor_note":" sets , , , , , , , and to for each valid selected clip."},{"sense_check_id":"SC6","executor_note":" computes target rows per source-row group and only executes a kind-group when every group in that kind has a valid adjacent track; visual and audio selections are evaluated independently."},{"sense_check_id":"SC7","executor_note":" first checks which selected clips intersect the current playhead via the current row actions and silently skips any selected clips that do not intersect."}]}
Multi-select feature parity: the bulk properties panel should expose all the same settings as single-clip editing (effects, position/crop, text, transitions, entrance/exit/continuous animations, volume slider, from/to timing, etc.), not just opacity/speed/mute. Also ensure all single-clip operations work with multi-selection where it makes sense: arrow key track movement, context menu operations (copy, split-at-playhead for each), and live visual feedback during multi-drag. The BulkClipPanel in PropertiesPanel.tsx currently only shows 3 fields — it needs to match the full ClipPanel feature set with mixed-value handling.
code
Batch framing:
- Execute batch 2 of 5.
- Actionable task IDs for this batch: ['T4']
- Already completed task IDs available as dependency context: ['T1', 'T2', 'T3', 'T6', 'T7']
Actionable tasks for this batch:
[
{
"id": "T4",
"description": "Rewrite BulkClipPanel in PropertiesPanel.tsx with tabbed structure matching ClipPanel. Props: clips (ResolvedTimelineClip[]), visibleTabs, compositionWidth/Height, onChange (scalar), onChangeDeep (patch factory), onResetPosition, onToggleMute, onClose, activeTab, setActiveTab. Tabs: Effects \u2014 entrance/exit/continuous selects using onChangeDeep so each clip preserves its own duration/intensity (pattern: onChangeDeep((meta) => ({ entrance: value === NO_EFFECT ? undefined : { type: value, duration: meta.entrance?.duration ?? 0.4 } }))). Custom effect editor shown only when all clips share the same custom effect slug. Timing \u2014 speed (scalar onChange), Source In/Out (scalar onChange). Start time excluded (DECISION-003). Position \u2014 X/Y/Width/Height inputs (scalar onChange), Opacity slider (scalar onChange), Reset Position button (onResetPosition). Audio \u2014 Volume slider (scalar onChange), Toggle Mute button (onToggleMute). Text (only when ALL clips are text) \u2014 fontSize and color using onChangeDeep to preserve each clip's content. Text content excluded (DECISION-004). Header shows '{N} clips selected' with close button. Tab bar uses visibleTabs for column count. Mixed values show 'Mixed' placeholder on inputs, disabled select option for selects.",
"depends_on": [
"T1",
"T2",
"T3"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
}
]
Assistant
I’m working only in the bulk panel path for this batch. First I’m pulling the current PropertiesPanel/ClipPanel structure and the shared effect/custom-editor pieces so the bulk UI can mirror single-clip editing without breaking the nested patch rules.
Assistant
The bulk panel rewrite is substantial, so I’m changing it in one pass: shared tab chrome from ClipPanel, mixed-value state for numeric/text fields, and deep-patch handling for every nested effect/text edit so durations and content stay intact per clip.
Assistant
The new bulk panel shape is in place. I’m running TypeScript now to catch any typing gaps from the deeper prop surface and the shared tab chrome reuse before I checkpoint this batch.
Assistant
TypeScript is clean after the bulk panel rewrite. I’ve confirmed the effect selects all route through onChangeDeep with per-clip duration/intensity preservation, and I’m writing the batch checkpoint now.
Assistant
{"output":"Batch 2 executed for T4. BulkClipPanel was rewritten into a tabbed bulk editor aligned with the single-clip panel, including mixed-value handling, deep-patch effect/text updates, shared custom-effect gating, and TypeScript verification via npx tsc --noEmit. Checkpoint written to .megaplan/plans/multi-select-feature-parity-20260326-0548/execution_batch_2.json.","files_changed":["src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx","src/tools/video-editor/components/PropertiesPanel/ClipPanel.tsx",".megaplan/plans/multi-select-feature-parity-20260326-0548/execution_batch_2.json"],"commands_run":["sed -n '1,360p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx","sed -n '1,320p' src/tools/video-editor/components/PropertiesPanel/ClipPanel.tsx","sed -n '1,220p' src/tools/video-editor/effects/index.tsx","rg --files src/tools/video-editor | rg '/effects(\.|/|$)'","rg -n "onChangeDeep|meta\.entrance\?\.duration|meta\.exit\?\.duration|meta\.continuous\?\.intensity|CustomEffectEditor|MIXED_SELECT_VALUE|Toggle mute|Source In and Source Out" src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx","git diff -- src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx src/tools/video-editor/components/PropertiesPanel/ClipPanel.tsx","npx tsc --noEmit"],"deviations":[],"task_updates":[{"task_id":"T4","status":"done","executor_notes":"Rebuilt BulkClipPanel into a tabbed bulk editor matching the single-clip structure, with mixed-value placeholders, bulk timing/position/audio/text controls, shared custom-effect gating, and deep-patch handling for nested effect/text edits verified by TypeScript.","files_changed":["src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx","src/tools/video-editor/components/PropertiesPanel/ClipPanel.tsx"],"commands_run":["sed -n '1,360p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx","sed -n '1,320p' src/tools/video-editor/components/PropertiesPanel/ClipPanel.tsx","rg -n "onChangeDeep|meta\.entrance\?\.duration|meta\.exit\?\.duration|meta\.continuous\?\.intensity|CustomEffectEditor|MIXED_SELECT_VALUE" src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx","npx tsc --noEmit"]}],"sense_check_acknowledgments":[{"sense_check_id":"SC4","executor_note":"All bulk effect selects use onChangeDeep, and each patch factory preserves per-clip nested fields through meta.entrance?.duration, meta.exit?.duration, or meta.continuous?.intensity; the shared custom-effect editor uses the same deep-patch pattern."}]}
Multi-select feature parity: the bulk properties panel should expose all the same settings as single-clip editing (effects, position/crop, text, transitions, entrance/exit/continuous animations, volume slider, from/to timing, etc.), not just opacity/speed/mute. Also ensure all single-clip operations work with multi-selection where it makes sense: arrow key track movement, context menu operations (copy, split-at-playhead for each), and live visual feedback during multi-drag. The BulkClipPanel in PropertiesPanel.tsx currently only shows 3 fields — it needs to match the full ClipPanel feature set with mixed-value handling.
code
Batch framing:
- Execute batch 3 of 5.
- Actionable task IDs for this batch: ['T5']
- Already completed task IDs available as dependency context: ['T1', 'T2', 'T3', 'T4', 'T6', 'T7']
Actionable tasks for this batch:
[
{
"id": "T5",
"description": "Update PropertiesPanel component (PropertiesPanel.tsx:150-257) to compute and pass all bulk props. Expand shared-value computation (lines 188-191) for all fields needed by BulkClipPanel using getSharedValue for scalars and getSharedNestedValue for entrance/exit/continuous/text. Compute bulkVisibleTabs via getBulkVisibleTabs(bulkSelectedClips, data.resolvedConfig?.tracks ?? []). Wire: onChange \u2192 handleUpdateClips(selectedClipIdsList, patch), onChangeDeep \u2192 handleUpdateClipsDeep(selectedClipIdsList, patchFn), onResetPosition \u2192 handleResetClipsPosition(selectedClipIdsList), onToggleMute \u2192 handleToggleMuteClips(selectedClipIdsList). Pass activeTab, setActiveTab, compositionSize.width, compositionSize.height. Add handleUpdateClipsDeep and handleResetClipsPosition to the destructured context values from useTimelineEditorContext().",
"depends_on": [
"T1",
"T2",
"T3",
"T4"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
}
]
code
Assistant
I’m taking the refactor that T5 implies instead of layering more state into PropertiesPanel: move the bulk UI into its own component, compute all shared values in the parent with the bulk helpers, and pass the resolved props down. That both satisfies the wiring requirement and trims the oversized panel file.
Assistant
The refactor exposed one React-state hazard: draft inputs should reset only when the shared bulk values change, not on every render. I’m tightening that dependency list before the final typecheck so local editing stays stable.
Assistant
The parent panel now owns the shared bulk state again: nested effect/text values are computed with the bulk helpers, scalar fields are computed in PropertiesPanel, and the deep/reset handlers are passed down explicitly. I’m checkpointing that wiring and the clean TypeScript run.
Assistant
{"output":"Batch 3 executed for T5. PropertiesPanel now computes the bulk shared scalar and nested values with the bulk helpers, passes the resolved props into a dedicated BulkClipPanel, and explicitly wires handleUpdateClipsDeep/handleResetClipsPosition into onChangeDeep/onResetPosition. npx tsc --noEmit passes. Checkpoint written to .megaplan/plans/multi-select-feature-parity-20260326-0548/execution_batch_3.json.","files_changed":["src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx","src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx",".megaplan/plans/multi-select-feature-parity-20260326-0548/execution_batch_3.json"],"commands_run":["sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx","sed -n '1,320p' src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx","rg -n "handleUpdateClipsDeep|handleResetClipsPosition|onChangeDeep=|onResetPosition=|getSharedNestedValue|getSharedValue|getBulkVisibleTabs" src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx","wc -l src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx","npx tsc --noEmit"],"deviations":[],"task_updates":[{"task_id":"T5","status":"done","executor_notes":"Moved bulk shared-value derivation into PropertiesPanel using getSharedValue for scalar fields and getSharedNestedValue for entrance/exit/continuous/text, then passed the resolved values and handlers into BulkClipPanel; TypeScript verification passes.","files_changed":["src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx","src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx"],"commands_run":["sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx","sed -n '1,320p' src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx","rg -n "handleUpdateClipsDeep|handleResetClipsPosition|onChangeDeep=|onResetPosition=|getSharedNestedValue|getSharedValue|getBulkVisibleTabs" src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx","npx tsc --noEmit"]}],"sense_check_acknowledgments":[{"sense_check_id":"SC5","executor_note":"PropertiesPanel now destructures both handleUpdateClipsDeep and handleResetClipsPosition from useTimelineEditorContext() and wires them into BulkClipPanel as onChangeDeep and onResetPosition."}]}
Multi-select feature parity: the bulk properties panel should expose all the same settings as single-clip editing (effects, position/crop, text, transitions, entrance/exit/continuous animations, volume slider, from/to timing, etc.), not just opacity/speed/mute. Also ensure all single-clip operations work with multi-selection where it makes sense: arrow key track movement, context menu operations (copy, split-at-playhead for each), and live visual feedback during multi-drag. The BulkClipPanel in PropertiesPanel.tsx currently only shows 3 fields — it needs to match the full ClipPanel feature set with mixed-value handling.
code
Batch framing:
- Execute batch 4 of 5.
- Actionable task IDs for this batch: ['T8']
- Already completed task IDs available as dependency context: ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7']
Actionable tasks for this batch:
[
{
"id": "T8",
"description": "TypeScript compilation check. Run npx tsc --noEmit and fix any type errors from the expanded interfaces and new handler signatures across all changed files.",
"depends_on": [
"T1",
"T2",
"T3",
"T4",
"T5",
"T6",
"T7"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
}
]
code
Completed task context (already satisfied, do not re-execute unless directly required by current edits):
[
{
"id": "T1",
"description": "Create src/tools/video-editor/lib/bulk-utils.ts with three exports: (1) getSharedValue<T> \u2014 moved from PropertiesPanel.tsx:12-19, compares by strict equality, returns shared value or null. (2) getSharedNestedValue<T>(clips, accessor) \u2014 compares nested objects by their type field (for effects) or JSON.stringify (for text), returns shared value or null. (3) getBulkVisibleTabs(clips, tracks): ClipTab[] \u2014 mirrors getVisibleClipTabs (ClipPanel.tsx:37-49): Effects always shown, Timing always shown, Position shown if ANY clip is on a visual track (including text clips \u2014 per DECISION-006 correcting the plan's original rule), Audio shown if ANY clip is non-text, Text shown only if ALL clips are text type. Replace the inline in PropertiesPanel.tsx with the import.",
"depends_on": [],
"status": "done",
"executor_notes": "Added shared bulk helpers in , replaced the inline PropertiesPanel helper import, and verified the new tab helper keeps visible for visual-track selections including text clips.",
"files_changed": [
"src/tools/video-editor/lib/bulk-utils.ts",
"src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx"
],
"commands_run": [
"sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T2",
"description": "Add to . This takes a patch factory that receives each clip's current meta from , builds per-clip patches preserving nested sub-fields, then calls . Uses the existing helper. Export from interface. Wire through (add to clipEditing usage at ~line 186, expose in editor useMemo at ~line 207) and (add to TimelineEditorContextValue).",
"depends_on": [],
"status": "done",
"executor_notes": "Added with per-clip patch generation from , then exposed it through and so nested bulk patches are not shared across clips.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,380p' src/tools/video-editor/hooks/useTimelineState.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useTimelineState.types.ts",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T3",
"description": "Add to . Loops over valid clip IDs, building per-clip patches that clear x/y/width/height/cropTop/cropBottom/cropLeft/cropRight (same fields as at line 166-183, but using with a metaUpdates record instead of ). Export from , wire through and same as T2.",
"depends_on": [],
"status": "done",
"executor_notes": "Added to clear the same eight position/crop fields as the single-clip reset path for every valid selected clip, and wired it through the editor context types/state.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,380p' src/tools/video-editor/hooks/useTimelineState.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useTimelineState.types.ts",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T4",
"description": "Rewrite in PropertiesPanel.tsx with tabbed structure matching ClipPanel. Props: clips (ResolvedTimelineClip[]), visibleTabs, compositionWidth/Height, onChange (scalar), onChangeDeep (patch factory), onResetPosition, onToggleMute, onClose, activeTab, setActiveTab. Tabs: \u2014 entrance/exit/continuous selects using so each clip preserves its own duration/intensity (pattern: ). Custom effect editor shown only when all clips share the same custom effect slug. \u2014 speed (scalar onChange), Source In/Out (scalar onChange). Start time excluded (DECISION-003). \u2014 X/Y/Width/Height inputs (scalar onChange), Opacity slider (scalar onChange), Reset Position button (onResetPosition). \u2014 Volume slider (scalar onChange), Toggle Mute button (onToggleMute). (only when ALL clips are text) \u2014 fontSize and color using to preserve each clip's content. Text content excluded (DECISION-004). Header shows '{N} clips selected' with close button. Tab bar uses for column count. Mixed values show 'Mixed' placeholder on inputs, disabled select option for selects.",
"depends_on": [
"T1",
"T2",
"T3"
],
"status": "done",
"executor_notes": "Rebuilt into a tabbed bulk editor matching the single-clip structure, with mixed-value placeholders, bulk timing/position/audio/text controls, shared custom-effect gating, and deep-patch handling for nested effect/text edits verified by TypeScript.",
"files_changed": [
"src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"src/tools/video-editor/components/PropertiesPanel/ClipPanel.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"sed -n '1,320p' src/tools/video-editor/components/PropertiesPanel/ClipPanel.tsx",
"rg -n "onChangeDeep|meta\.entrance\?\.duration|meta\.exit\?\.duration|meta\.continuous\?\.intensity|CustomEffectEditor|MIXED_SELECT_VALUE" src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T5",
"description": "Update PropertiesPanel component (PropertiesPanel.tsx:150-257) to compute and pass all bulk props. Expand shared-value computation (lines 188-191) for all fields needed by BulkClipPanel using for scalars and for entrance/exit/continuous/text. Compute via . Wire: \u2192 , \u2192 , \u2192 , \u2192 . Pass , , , . Add and to the destructured context values from .",
"depends_on": [
"T1",
"T2",
"T3",
"T4"
],
"status": "done",
"executor_notes": "Moved bulk shared-value derivation into using for scalar fields and for entrance/exit/continuous/text, then passed the resolved values and handlers into ; TypeScript verification passes.",
"files_changed": [
"src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx"
],
"commands_run": [
"sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"sed -n '1,320p' src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx",
"rg -n "handleUpdateClipsDeep|handleResetClipsPosition|onChangeDeep=|onResetPosition=|getSharedNestedValue|getSharedValue|getBulkVisibleTabs" src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T6",
"description": "Enable arrow-key track movement for multi-select. (1) In , add : groups all selected clips by current row, for each group finds target track of same kind one step in (same traversal as at line 135-165), if ANY group can't find a valid target the entire operation is a no-op (atomic). If selection spans track kinds (visual + audio), each kind-group moves independently within its kind. Calls for each clip. Export from result interface. (2) Wire through and . (3) In , change to . (4) In , update call to use the new multi-clip function passing the full selection set.",
"depends_on": [],
"status": "done",
"executor_notes": "Implemented with per-kind planning and blocking, exposed it through timeline state/context, and updated keyboard handling so arrow-key track moves operate on the full selection.",
"files_changed": [
"src/tools/video-editor/hooks/useTimelineTrackManagement.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts",
"src/tools/video-editor/hooks/useKeyboardShortcuts.ts",
"src/tools/video-editor/components/VideoEditorShell.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useTimelineTrackManagement.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useKeyboardShortcuts.ts",
"sed -n '1,220p' src/tools/video-editor/components/VideoEditorShell.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T7",
"description": "Add 'Split at Playhead' to batch context menu. (1) In , add \u2014 iterates over all clip IDs, for each clip that intersects the current playhead time (checked via finding the action in rows where ), calls . Clips not intersecting are silently skipped. (2) Export from , wire through and . (3) In , add to . Add a 'Split {N} clips at playhead' menu item with Scissors icon in the batch context menu section (after the mute item at line 156-168, before the delete item). (4) Wire the handler through wherever ClipAction is instantiated (TimelineEditor.tsx).",
"depends_on": [],
"status": "done",
"executor_notes": "Added with silent skipping for non-intersecting clips, wired it through the editor context, and added the batch context-menu action in /.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts",
"src/tools/video-editor/components/TimelineEditor/ClipAction.tsx",
"src/tools/video-editor/components/TimelineEditor/TimelineEditor.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,260p' src/tools/video-editor/components/TimelineEditor/ClipAction.tsx",
"sed -n '1,260p' src/tools/video-editor/components/TimelineEditor/TimelineEditor.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
}
]
Assistant
I’m handling only the TypeScript validation batch here. I’m running a fresh npx tsc --noEmit against the current repository state and will only touch files if that check surfaces type regressions from the prior batches.
Assistant
tsc is clean with zero errors, so this batch is a pure verification checkpoint. I’m writing the batch record now with the passing compile result and no code fixes needed.
Assistant
{"output":"Batch 4 executed for T8. A fresh npx tsc --noEmit run passed with zero errors across the accumulated multi-select changes, so no code fixes were required in this batch. Checkpoint written to .megaplan/plans/multi-select-feature-parity-20260326-0548/execution_batch_4.json.","files_changed":[".megaplan/plans/multi-select-feature-parity-20260326-0548/execution_batch_4.json"],"commands_run":["npx tsc --noEmit"],"deviations":[],"task_updates":[{"task_id":"T8","status":"done","executor_notes":"Ran a fresh TypeScript compilation check against the accumulated multi-select changes; npx tsc --noEmit completed with zero errors, so no follow-up code edits were required in this batch.","files_changed":[],"commands_run":["npx tsc --noEmit"]}],"sense_check_acknowledgments":[{"sense_check_id":"SC8","executor_note":"npx tsc --noEmit passed with zero errors after the batch 1-3 multi-select changes."}]}
Multi-select feature parity: the bulk properties panel should expose all the same settings as single-clip editing (effects, position/crop, text, transitions, entrance/exit/continuous animations, volume slider, from/to timing, etc.), not just opacity/speed/mute. Also ensure all single-clip operations work with multi-selection where it makes sense: arrow key track movement, context menu operations (copy, split-at-playhead for each), and live visual feedback during multi-drag. The BulkClipPanel in PropertiesPanel.tsx currently only shows 3 fields — it needs to match the full ClipPanel feature set with mixed-value handling.
code
Batch framing:
- Execute batch 5 of 5.
- Actionable task IDs for this batch: ['T9']
- Already completed task IDs available as dependency context: ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8']
Actionable tasks for this batch:
[
{
"id": "T9",
"description": "Manual testing checklist. (1) Select 2+ video clips on visual tracks \u2192 verify Effects, Timing, Position, Audio tabs appear. Edit entrance effect \u2192 confirm each clip keeps its own duration. Edit opacity \u2192 confirm all update. (2) Select mixed types (video + text) \u2192 verify Text tab hidden, Position and Audio tabs shown. (3) Select 2+ text clips \u2192 verify Text tab shown, Position tab shown (DECISION-006), font size edit preserves each clip's content. (4) Arrow up/down with multi-select \u2192 verify all clips move together, no-op if any clip in a kind-group is blocked. (5) Right-click multi-select \u2192 verify 'Split at Playhead' appears and works (splits intersecting clips only). (6) Verify mixed-value display shows 'Mixed' placeholder correctly for all field types.",
"depends_on": [
"T8"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
}
]
code
Completed task context (already satisfied, do not re-execute unless directly required by current edits):
[
{
"id": "T1",
"description": "Create src/tools/video-editor/lib/bulk-utils.ts with three exports: (1) getSharedValue<T> \u2014 moved from PropertiesPanel.tsx:12-19, compares by strict equality, returns shared value or null. (2) \u2014 compares nested objects by their field (for effects) or JSON.stringify (for text), returns shared value or null. (3) \u2014 mirrors (ClipPanel.tsx:37-49): Effects always shown, Timing always shown, Position shown if ANY clip is on a visual track (including text clips \u2014 per DECISION-006 correcting the plan's original rule), Audio shown if ANY clip is non-text, Text shown only if ALL clips are text type. Replace the inline in PropertiesPanel.tsx with the import.",
"depends_on": [],
"status": "done",
"executor_notes": "Added shared bulk helpers in , replaced the inline PropertiesPanel helper import, and verified the new tab helper keeps visible for visual-track selections including text clips.",
"files_changed": [
"src/tools/video-editor/lib/bulk-utils.ts",
"src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx"
],
"commands_run": [
"sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T2",
"description": "Add to . This takes a patch factory that receives each clip's current meta from , builds per-clip patches preserving nested sub-fields, then calls . Uses the existing helper. Export from interface. Wire through (add to clipEditing usage at ~line 186, expose in editor useMemo at ~line 207) and (add to TimelineEditorContextValue).",
"depends_on": [],
"status": "done",
"executor_notes": "Added with per-clip patch generation from , then exposed it through and so nested bulk patches are not shared across clips.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,380p' src/tools/video-editor/hooks/useTimelineState.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useTimelineState.types.ts",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T3",
"description": "Add to . Loops over valid clip IDs, building per-clip patches that clear x/y/width/height/cropTop/cropBottom/cropLeft/cropRight (same fields as at line 166-183, but using with a metaUpdates record instead of ). Export from , wire through and same as T2.",
"depends_on": [],
"status": "done",
"executor_notes": "Added to clear the same eight position/crop fields as the single-clip reset path for every valid selected clip, and wired it through the editor context types/state.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,380p' src/tools/video-editor/hooks/useTimelineState.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useTimelineState.types.ts",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T4",
"description": "Rewrite in PropertiesPanel.tsx with tabbed structure matching ClipPanel. Props: clips (ResolvedTimelineClip[]), visibleTabs, compositionWidth/Height, onChange (scalar), onChangeDeep (patch factory), onResetPosition, onToggleMute, onClose, activeTab, setActiveTab. Tabs: \u2014 entrance/exit/continuous selects using so each clip preserves its own duration/intensity (pattern: ). Custom effect editor shown only when all clips share the same custom effect slug. \u2014 speed (scalar onChange), Source In/Out (scalar onChange). Start time excluded (DECISION-003). \u2014 X/Y/Width/Height inputs (scalar onChange), Opacity slider (scalar onChange), Reset Position button (onResetPosition). \u2014 Volume slider (scalar onChange), Toggle Mute button (onToggleMute). (only when ALL clips are text) \u2014 fontSize and color using to preserve each clip's content. Text content excluded (DECISION-004). Header shows '{N} clips selected' with close button. Tab bar uses for column count. Mixed values show 'Mixed' placeholder on inputs, disabled select option for selects.",
"depends_on": [
"T1",
"T2",
"T3"
],
"status": "done",
"executor_notes": "Rebuilt into a tabbed bulk editor matching the single-clip structure, with mixed-value placeholders, bulk timing/position/audio/text controls, shared custom-effect gating, and deep-patch handling for nested effect/text edits verified by TypeScript.",
"files_changed": [
"src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"src/tools/video-editor/components/PropertiesPanel/ClipPanel.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"sed -n '1,320p' src/tools/video-editor/components/PropertiesPanel/ClipPanel.tsx",
"rg -n "onChangeDeep|meta\.entrance\?\.duration|meta\.exit\?\.duration|meta\.continuous\?\.intensity|CustomEffectEditor|MIXED_SELECT_VALUE" src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T5",
"description": "Update PropertiesPanel component (PropertiesPanel.tsx:150-257) to compute and pass all bulk props. Expand shared-value computation (lines 188-191) for all fields needed by BulkClipPanel using for scalars and for entrance/exit/continuous/text. Compute via . Wire: \u2192 , \u2192 , \u2192 , \u2192 . Pass , , , . Add and to the destructured context values from .",
"depends_on": [
"T1",
"T2",
"T3",
"T4"
],
"status": "done",
"executor_notes": "Moved bulk shared-value derivation into using for scalar fields and for entrance/exit/continuous/text, then passed the resolved values and handlers into ; TypeScript verification passes.",
"files_changed": [
"src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx"
],
"commands_run": [
"sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"sed -n '1,320p' src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx",
"rg -n "handleUpdateClipsDeep|handleResetClipsPosition|onChangeDeep=|onResetPosition=|getSharedNestedValue|getSharedValue|getBulkVisibleTabs" src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T6",
"description": "Enable arrow-key track movement for multi-select. (1) In , add : groups all selected clips by current row, for each group finds target track of same kind one step in (same traversal as at line 135-165), if ANY group can't find a valid target the entire operation is a no-op (atomic). If selection spans track kinds (visual + audio), each kind-group moves independently within its kind. Calls for each clip. Export from result interface. (2) Wire through and . (3) In , change to . (4) In , update call to use the new multi-clip function passing the full selection set.",
"depends_on": [],
"status": "done",
"executor_notes": "Implemented with per-kind planning and blocking, exposed it through timeline state/context, and updated keyboard handling so arrow-key track moves operate on the full selection.",
"files_changed": [
"src/tools/video-editor/hooks/useTimelineTrackManagement.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts",
"src/tools/video-editor/hooks/useKeyboardShortcuts.ts",
"src/tools/video-editor/components/VideoEditorShell.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useTimelineTrackManagement.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useKeyboardShortcuts.ts",
"sed -n '1,220p' src/tools/video-editor/components/VideoEditorShell.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T7",
"description": "Add 'Split at Playhead' to batch context menu. (1) In , add \u2014 iterates over all clip IDs, for each clip that intersects the current playhead time (checked via finding the action in rows where ), calls . Clips not intersecting are silently skipped. (2) Export from , wire through and . (3) In , add to . Add a 'Split {N} clips at playhead' menu item with Scissors icon in the batch context menu section (after the mute item at line 156-168, before the delete item). (4) Wire the handler through wherever ClipAction is instantiated (TimelineEditor.tsx).",
"depends_on": [],
"status": "done",
"executor_notes": "Added with silent skipping for non-intersecting clips, wired it through the editor context, and added the batch context-menu action in /.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts",
"src/tools/video-editor/components/TimelineEditor/ClipAction.tsx",
"src/tools/video-editor/components/TimelineEditor/TimelineEditor.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,260p' src/tools/video-editor/components/TimelineEditor/ClipAction.tsx",
"sed -n '1,260p' src/tools/video-editor/components/TimelineEditor/TimelineEditor.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T8",
"description": "TypeScript compilation check. Run and fix any type errors from the expanded interfaces and new handler signatures across all changed files.",
"depends_on": [
"T1",
"T2",
"T3",
"T4",
"T5",
"T6",
"T7"
],
"status": "done",
"executor_notes": "Ran a fresh TypeScript compilation check against the accumulated multi-select changes; completed with zero errors, so no follow-up code edits were required in this batch.",
"files_changed": [],
"commands_run": [
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
}
]
Assistant
I’m treating this batch as validation-only. First I’m checking whether the repo already has an automated browser/e2e path I can use for the manual checklist; if not, I’ll record the exact validation gap instead of pretending the UI was exercised.
Assistant
I checked the repo for an existing browser or e2e path for the manual checklist and didn’t find one. I’m verifying the implemented bulk-edit code paths directly now so the batch result can distinguish code-level coverage from the UI checks we could not execute here.
Assistant
There isn’t an existing browser runner or e2e harness in this repo, so I can’t truthfully mark the manual checklist as executed from the terminal. I’m pulling the exact bulk-edit branches now so the batch result can clearly separate “implemented and code-verified” from “not manually exercised here.”
Assistant
I confirmed the bulk entrance-effect path preserves each clip’s existing duration in code, but there is still no viable way to execute the UI checklist end-to-end from this terminal session. I’m checkpointing the batch as a blocked manual-validation step rather than inventing test results.
Assistant
{"output":"Batch 5 could not complete the manual UI checklist from this terminal-only environment. I verified the relevant bulk-edit code paths and confirmed the entrance-effect bulk update preserves each clip's existing entrance.duration, but the interactive scenarios in T9 still require browser-based manual validation. Checkpoint written to .megaplan/plans/multi-select-feature-parity-20260326-0548/execution_batch_5.json.","files_changed":[".megaplan/plans/multi-select-feature-parity-20260326-0548/execution_batch_5.json"],"commands_run":["cat package.json","rg -n "playwright|cypress|vitest|jest|testing-library|e2e|storybook" -S .","rg --files . | rg "(playwright|cypress|e2e|spec\\.|test\\.)"","sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx","sed -n '260,520p' src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx","sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx","rg -n "moveSelectedClipsToTrack|handleSplitClipsAtPlayhead|placeholder=\"Mixed\"|meta\\.entrance\\?\\.duration|Text tab|position" src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx src/tools/video-editor/hooks/useTimelineTrackManagement.ts src/tools/video-editor/hooks/useClipEditing.ts src/tools/video-editor/lib/bulk-utils.ts"],"deviations":["Manual testing was not executable in this CLI-only environment because the repository does not expose an existing browser/e2e harness for the video editor flows in T9."],"task_updates":[{"task_id":"T9","status":"blocked","executor_notes":"I could not execute the manual checklist from this terminal session because there is no browser automation or dedicated e2e/manual harness available in the repo for these editor interactions. Code inspection confirms the targeted behaviors are implemented, including mixed-value placeholders, bulk tab visibility, multi-track movement wiring, batch split-at-playhead wiring, and entrance-effect bulk updates preserving each clip's existing entrance.duration, but the interactive UI checklist remains outstanding.","files_changed":[],"commands_run":["cat package.json","rg -n "playwright|cypress|vitest|jest|testing-library|e2e|storybook" -S .","rg --files . | rg "(playwright|cypress|e2e|spec\\.|test\\.)"","sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx","sed -n '260,520p' src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx","sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx","rg -n "moveSelectedClipsToTrack|handleSplitClipsAtPlayhead|placeholder=\"Mixed\"|meta\\.entrance\\?\\.duration|Text tab|position" src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx src/tools/video-editor/hooks/useTimelineTrackManagement.ts src/tools/video-editor/hooks/useClipEditing.ts src/tools/video-editor/lib/bulk-utils.ts"]}],"sense_check_acknowledgments":[{"sense_check_id":"SC9","executor_note":"Code inspection confirms the bulk Entrance select uses onChangeDeep((meta) => ({ entrance: value === NO_EFFECT ? undefined : { type: value, duration: meta.entrance?.duration ?? 0.4 } })), so clips that already have an keep their own value; is only used when a clip has no existing duration. This was verified from code, not by manual UI execution."}]}
Multi-select feature parity: the bulk properties panel should expose all the same settings as single-clip editing (effects, position/crop, text, transitions, entrance/exit/continuous animations, volume slider, from/to timing, etc.), not just opacity/speed/mute. Also ensure all single-clip operations work with multi-selection where it makes sense: arrow key track movement, context menu operations (copy, split-at-playhead for each), and live visual feedback during multi-drag. The BulkClipPanel in PropertiesPanel.tsx currently only shows 3 fields — it needs to match the full ClipPanel feature set with mixed-value handling.
code
Batch framing:
- Execute batch 5 of 5.
- Actionable task IDs for this batch: ['T9']
- Already completed task IDs available as dependency context: ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8']
Actionable tasks for this batch:
[
{
"id": "T9",
"description": "Manual testing checklist. (1) Select 2+ video clips on visual tracks \u2192 verify Effects, Timing, Position, Audio tabs appear. Edit entrance effect \u2192 confirm each clip keeps its own duration. Edit opacity \u2192 confirm all update. (2) Select mixed types (video + text) \u2192 verify Text tab hidden, Position and Audio tabs shown. (3) Select 2+ text clips \u2192 verify Text tab shown, Position tab shown (DECISION-006), font size edit preserves each clip's content. (4) Arrow up/down with multi-select \u2192 verify all clips move together, no-op if any clip in a kind-group is blocked. (5) Right-click multi-select \u2192 verify 'Split at Playhead' appears and works (splits intersecting clips only). (6) Verify mixed-value display shows 'Mixed' placeholder correctly for all field types.",
"depends_on": [
"T8"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
}
]
code
Completed task context (already satisfied, do not re-execute unless directly required by current edits):
[
{
"id": "T1",
"description": "Create src/tools/video-editor/lib/bulk-utils.ts with three exports: (1) getSharedValue<T> \u2014 moved from PropertiesPanel.tsx:12-19, compares by strict equality, returns shared value or null. (2) \u2014 compares nested objects by their field (for effects) or JSON.stringify (for text), returns shared value or null. (3) \u2014 mirrors (ClipPanel.tsx:37-49): Effects always shown, Timing always shown, Position shown if ANY clip is on a visual track (including text clips \u2014 per DECISION-006 correcting the plan's original rule), Audio shown if ANY clip is non-text, Text shown only if ALL clips are text type. Replace the inline in PropertiesPanel.tsx with the import.",
"depends_on": [],
"status": "done",
"executor_notes": "Added shared bulk helpers in , replaced the inline PropertiesPanel helper import, and verified the new tab helper keeps visible for visual-track selections including text clips.",
"files_changed": [
"src/tools/video-editor/lib/bulk-utils.ts",
"src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx"
],
"commands_run": [
"sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T2",
"description": "Add to . This takes a patch factory that receives each clip's current meta from , builds per-clip patches preserving nested sub-fields, then calls . Uses the existing helper. Export from interface. Wire through (add to clipEditing usage at ~line 186, expose in editor useMemo at ~line 207) and (add to TimelineEditorContextValue).",
"depends_on": [],
"status": "done",
"executor_notes": "Added with per-clip patch generation from , then exposed it through and so nested bulk patches are not shared across clips.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,380p' src/tools/video-editor/hooks/useTimelineState.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useTimelineState.types.ts",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T3",
"description": "Add to . Loops over valid clip IDs, building per-clip patches that clear x/y/width/height/cropTop/cropBottom/cropLeft/cropRight (same fields as at line 166-183, but using with a metaUpdates record instead of ). Export from , wire through and same as T2.",
"depends_on": [],
"status": "done",
"executor_notes": "Added to clear the same eight position/crop fields as the single-clip reset path for every valid selected clip, and wired it through the editor context types/state.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,380p' src/tools/video-editor/hooks/useTimelineState.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useTimelineState.types.ts",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T4",
"description": "Rewrite in PropertiesPanel.tsx with tabbed structure matching ClipPanel. Props: clips (ResolvedTimelineClip[]), visibleTabs, compositionWidth/Height, onChange (scalar), onChangeDeep (patch factory), onResetPosition, onToggleMute, onClose, activeTab, setActiveTab. Tabs: \u2014 entrance/exit/continuous selects using so each clip preserves its own duration/intensity (pattern: ). Custom effect editor shown only when all clips share the same custom effect slug. \u2014 speed (scalar onChange), Source In/Out (scalar onChange). Start time excluded (DECISION-003). \u2014 X/Y/Width/Height inputs (scalar onChange), Opacity slider (scalar onChange), Reset Position button (onResetPosition). \u2014 Volume slider (scalar onChange), Toggle Mute button (onToggleMute). (only when ALL clips are text) \u2014 fontSize and color using to preserve each clip's content. Text content excluded (DECISION-004). Header shows '{N} clips selected' with close button. Tab bar uses for column count. Mixed values show 'Mixed' placeholder on inputs, disabled select option for selects.",
"depends_on": [
"T1",
"T2",
"T3"
],
"status": "done",
"executor_notes": "Rebuilt into a tabbed bulk editor matching the single-clip structure, with mixed-value placeholders, bulk timing/position/audio/text controls, shared custom-effect gating, and deep-patch handling for nested effect/text edits verified by TypeScript.",
"files_changed": [
"src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"src/tools/video-editor/components/PropertiesPanel/ClipPanel.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"sed -n '1,320p' src/tools/video-editor/components/PropertiesPanel/ClipPanel.tsx",
"rg -n "onChangeDeep|meta\.entrance\?\.duration|meta\.exit\?\.duration|meta\.continuous\?\.intensity|CustomEffectEditor|MIXED_SELECT_VALUE" src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T5",
"description": "Update PropertiesPanel component (PropertiesPanel.tsx:150-257) to compute and pass all bulk props. Expand shared-value computation (lines 188-191) for all fields needed by BulkClipPanel using for scalars and for entrance/exit/continuous/text. Compute via . Wire: \u2192 , \u2192 , \u2192 , \u2192 . Pass , , , . Add and to the destructured context values from .",
"depends_on": [
"T1",
"T2",
"T3",
"T4"
],
"status": "done",
"executor_notes": "Moved bulk shared-value derivation into using for scalar fields and for entrance/exit/continuous/text, then passed the resolved values and handlers into ; TypeScript verification passes.",
"files_changed": [
"src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx"
],
"commands_run": [
"sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"sed -n '1,320p' src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx",
"rg -n "handleUpdateClipsDeep|handleResetClipsPosition|onChangeDeep=|onResetPosition=|getSharedNestedValue|getSharedValue|getBulkVisibleTabs" src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T6",
"description": "Enable arrow-key track movement for multi-select. (1) In , add : groups all selected clips by current row, for each group finds target track of same kind one step in (same traversal as at line 135-165), if ANY group can't find a valid target the entire operation is a no-op (atomic). If selection spans track kinds (visual + audio), each kind-group moves independently within its kind. Calls for each clip. Export from result interface. (2) Wire through and . (3) In , change to . (4) In , update call to use the new multi-clip function passing the full selection set.",
"depends_on": [],
"status": "done",
"executor_notes": "Implemented with per-kind planning and blocking, exposed it through timeline state/context, and updated keyboard handling so arrow-key track moves operate on the full selection.",
"files_changed": [
"src/tools/video-editor/hooks/useTimelineTrackManagement.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts",
"src/tools/video-editor/hooks/useKeyboardShortcuts.ts",
"src/tools/video-editor/components/VideoEditorShell.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useTimelineTrackManagement.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useKeyboardShortcuts.ts",
"sed -n '1,220p' src/tools/video-editor/components/VideoEditorShell.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T7",
"description": "Add 'Split at Playhead' to batch context menu. (1) In , add \u2014 iterates over all clip IDs, for each clip that intersects the current playhead time (checked via finding the action in rows where ), calls . Clips not intersecting are silently skipped. (2) Export from , wire through and . (3) In , add to . Add a 'Split {N} clips at playhead' menu item with Scissors icon in the batch context menu section (after the mute item at line 156-168, before the delete item). (4) Wire the handler through wherever ClipAction is instantiated (TimelineEditor.tsx).",
"depends_on": [],
"status": "done",
"executor_notes": "Added with silent skipping for non-intersecting clips, wired it through the editor context, and added the batch context-menu action in /.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts",
"src/tools/video-editor/components/TimelineEditor/ClipAction.tsx",
"src/tools/video-editor/components/TimelineEditor/TimelineEditor.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,260p' src/tools/video-editor/components/TimelineEditor/ClipAction.tsx",
"sed -n '1,260p' src/tools/video-editor/components/TimelineEditor/TimelineEditor.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T8",
"description": "TypeScript compilation check. Run and fix any type errors from the expanded interfaces and new handler signatures across all changed files.",
"depends_on": [
"T1",
"T2",
"T3",
"T4",
"T5",
"T6",
"T7"
],
"status": "done",
"executor_notes": "Ran a fresh TypeScript compilation check against the accumulated multi-select changes; completed with zero errors, so no follow-up code edits were required in this batch.",
"files_changed": [],
"commands_run": [
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
}
]
Assistant
{"output":"Batch 5 could not complete the manual UI checklist from this terminal-only environment. I verified the relevant bulk-edit code paths and confirmed the entrance-effect bulk update preserves each clip's existing entrance.duration, but the interactive scenarios in T9 still require browser-based manual validation. Checkpoint written to .megaplan/plans/multi-select-feature-parity-20260326-0548/execution_batch_5.json.","files_changed":[".megaplan/plans/multi-select-feature-parity-20260326-0548/execution_batch_5.json"],"commands_run":["cat package.json","rg -n "playwright|cypress|vitest|jest|testing-library|e2e|storybook" -S .","rg --files . | rg "(playwright|cypress|e2e|spec\\.|test\\.)"","sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx","sed -n '260,520p' src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx","sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx","rg -n "moveSelectedClipsToTrack|handleSplitClipsAtPlayhead|placeholder=\"Mixed\"|meta\\.entrance\\?\\.duration|Text tab|position" src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx src/tools/video-editor/hooks/useTimelineTrackManagement.ts src/tools/video-editor/hooks/useClipEditing.ts src/tools/video-editor/lib/bulk-utils.ts"],"deviations":["Manual testing was not executable in this CLI-only environment because the repository does not expose an existing browser/e2e harness for the video editor flows in T9."],"task_updates":[{"task_id":"T9","status":"blocked","executor_notes":"I could not execute the manual checklist from this terminal session because there is no browser automation or dedicated e2e/manual harness available in the repo for these editor interactions. Code inspection confirms the targeted behaviors are implemented, including mixed-value placeholders, bulk tab visibility, multi-track movement wiring, batch split-at-playhead wiring, and entrance-effect bulk updates preserving each clip's existing entrance.duration, but the interactive UI checklist remains outstanding.","files_changed":[],"commands_run":["cat package.json","rg -n "playwright|cypress|vitest|jest|testing-library|e2e|storybook" -S .","rg --files . | rg "(playwright|cypress|e2e|spec\\.|test\\.)"","sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx","sed -n '260,520p' src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx","sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx","rg -n "moveSelectedClipsToTrack|handleSplitClipsAtPlayhead|placeholder=\"Mixed\"|meta\\.entrance\\?\\.duration|Text tab|position" src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx src/tools/video-editor/hooks/useTimelineTrackManagement.ts src/tools/video-editor/hooks/useClipEditing.ts src/tools/video-editor/lib/bulk-utils.ts"]}],"sense_check_acknowledgments":[{"sense_check_id":"SC9","executor_note":"Code inspection confirms the bulk Entrance select uses onChangeDeep((meta) => ({ entrance: value === NO_EFFECT ? undefined : { type: value, duration: meta.entrance?.duration ?? 0.4 } })), so clips that already have an keep their own value; is only used when a clip has no existing duration. This was verified from code, not by manual UI execution."}]}
Note: User explicitly approved this plan at the gate checkpoint.
Robustness level: standard.
Requirements:
- Execute only the actionable tasks in this batch.
- Treat completed tasks as dependency context, not new work.
- Return structured JSON only.
- Only produce `task_updates` for these tasks: [T1, T2, T3, T6, T7]
- Only produce `sense_check_acknowledgments` for these sense checks: [SC1, SC2, SC3, SC6, SC7]
- Do not include updates for tasks or sense checks outside this batch.
- Keep `executor_notes` verification-focused.
- Best-effort progress checkpointing: if `/Users/user_c042661f/Documents/reigh-workspace/reigh-app/.megaplan/plans/multi-select-feature-parity-20260326-0548/execution_batch_1.json` is writable, checkpoint task and sense-check updates there (not `finalize.json`). The harness owns `finalize.json`.
handleResetClipsPosition
moveSelectedClipsToTrack
handleSplitClipsAtPlayhead
ClipAction
TimelineEditor
getBulkVisibleTabs
position
handleUpdateClipsDeep
metaUpdates
current.meta[clipId]
applyTimelineEdit
handleResetClipsPosition
x
y
width
height
cropTop
cropBottom
cropLeft
cropRight
undefined
moveSelectedClipsToTrack
handleSplitClipsAtPlayhead
code
Completed task context (already satisfied, do not re-execute unless directly required by current edits):
[
{
"id": "T1",
"description": "Create src/tools/video-editor/lib/bulk-utils.ts with three exports: (1) getSharedValue<T> \u2014 moved from PropertiesPanel.tsx:12-19, compares by strict equality, returns shared value or null. (2) getSharedNestedValue<T>(clips, accessor) \u2014 compares nested objects by their type field (for effects) or JSON.stringify (for text), returns shared value or null. (3) getBulkVisibleTabs(clips, tracks): ClipTab[] \u2014 mirrors getVisibleClipTabs (ClipPanel.tsx:37-49): Effects always shown, Timing always shown, Position shown if ANY clip is on a visual track (including text clips \u2014 per DECISION-006 correcting the plan's original rule), Audio shown if ANY clip is non-text, Text shown only if ALL clips are text type. Replace the inline getSharedValue in PropertiesPanel.tsx with the import.",
"depends_on": [],
"status": "done",
"executor_notes": "Added shared bulk helpers in bulk-utils.ts, replaced the inline PropertiesPanel helper import, and verified the new tab helper keeps position visible for visual-track selections including text clips.",
"files_changed": [
"src/tools/video-editor/lib/bulk-utils.ts",
"src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx"
],
"commands_run": [
"sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T2",
"description": "Add handleUpdateClipsDeep(clipIds: string[], patchFn: (existing: ClipMeta) => Partial<ClipMeta>) to useClipEditing.ts. This takes a patch factory that receives each clip's current meta from dataRef.current.meta[id], builds per-clip patches preserving nested sub-fields, then calls applyTimelineEdit(current.rows, metaUpdates). Uses the existing getValidClipIds helper. Export from UseClipEditingResult interface. Wire through useTimelineState.ts (add to clipEditing usage at ~line 186, expose in editor useMemo at ~line 207) and useTimelineState.types.ts (add handleUpdateClipsDeep: ClipEditingHook['handleUpdateClipsDeep'] to TimelineEditorContextValue).",
"depends_on": [],
"status": "done",
"executor_notes": "Added handleUpdateClipsDeep with per-clip patch generation from current.meta[clipId], then exposed it through useTimelineState and useTimelineState.types so nested bulk patches are not shared across clips.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,380p' src/tools/video-editor/hooks/useTimelineState.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useTimelineState.types.ts",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T3",
"description": "Add handleResetClipsPosition(clipIds: string[]) to useClipEditing.ts. Loops over valid clip IDs, building per-clip patches that clear x/y/width/height/cropTop/cropBottom/cropLeft/cropRight (same fields as handleResetClipPosition at line 166-183, but using applyTimelineEdit with a metaUpdates record instead of applyResolvedConfigEdit). Export from UseClipEditingResult, wire through useTimelineState.ts and useTimelineState.types.ts same as T2.",
"depends_on": [],
"status": "done",
"executor_notes": "Added handleResetClipsPosition to clear the same eight position/crop fields as the single-clip reset path for every valid selected clip, and wired it through the editor context types/state.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,380p' src/tools/video-editor/hooks/useTimelineState.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useTimelineState.types.ts",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T6",
"description": "Enable arrow-key track movement for multi-select. (1) In useTimelineTrackManagement.ts, add moveSelectedClipsToTrack(direction, selectedClipIds: ReadonlySet<string>): groups all selected clips by current row, for each group finds target track of same kind one step in direction (same traversal as moveSelectedClipToTrack at line 135-165), if ANY group can't find a valid target the entire operation is a no-op (atomic). If selection spans track kinds (visual + audio), each kind-group moves independently within its kind. Calls moveClipToRow for each clip. Export from result interface. (2) Wire through useTimelineState.ts and useTimelineState.types.ts. (3) In VideoEditorShell.tsx:50, change canMoveSelectedClipToTrack: editor.selectedClipIds.size === 1 to editor.selectedClipIds.size >= 1. (4) In useKeyboardShortcuts.ts, update moveSelectedClipToTrack call to use the new multi-clip function passing the full selection set.",
"depends_on": [],
"status": "done",
"executor_notes": "Implemented moveSelectedClipsToTrack with per-kind planning and blocking, exposed it through timeline state/context, and updated keyboard handling so arrow-key track moves operate on the full selection.",
"files_changed": [
"src/tools/video-editor/hooks/useTimelineTrackManagement.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts",
"src/tools/video-editor/hooks/useKeyboardShortcuts.ts",
"src/tools/video-editor/components/VideoEditorShell.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useTimelineTrackManagement.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useKeyboardShortcuts.ts",
"sed -n '1,220p' src/tools/video-editor/components/VideoEditorShell.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T7",
"description": "Add 'Split at Playhead' to batch context menu. (1) In useClipEditing.ts, add handleSplitClipsAtPlayhead(clipIds: string[]) \u2014 iterates over all clip IDs, for each clip that intersects the current playhead time (checked via finding the action in rows where action.start <= currentTime < action.end), calls splitClipAtPlayhead. Clips not intersecting are silently skipped. (2) Export from UseClipEditingResult, wire through useTimelineState.ts and useTimelineState.types.ts. (3) In ClipAction.tsx, add onSplitClipsAtPlayhead?: (clipIds: string[]) => void to ClipActionProps. Add a 'Split {N} clips at playhead' menu item with Scissors icon in the batch context menu section (after the mute item at line 156-168, before the delete item). (4) Wire the handler through wherever ClipAction is instantiated (TimelineEditor.tsx).",
"depends_on": [],
"status": "done",
"executor_notes": "Added handleSplitClipsAtPlayhead with silent skipping for non-intersecting clips, wired it through the editor context, and added the batch context-menu action in ClipAction/TimelineEditor.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts",
"src/tools/video-editor/components/TimelineEditor/ClipAction.tsx",
"src/tools/video-editor/components/TimelineEditor/TimelineEditor.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,260p' src/tools/video-editor/components/TimelineEditor/ClipAction.tsx",
"sed -n '1,260p' src/tools/video-editor/components/TimelineEditor/TimelineEditor.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
}
]
code
Prior batch deviations (address if applicable):
[
"Advisory observation mismatch: executor claimed files not observed in git status/content hash delta: .megaplan/plans/multi-select-feature-parity-20260326-0548/execution_batch_1.json",
"Advisory audit finding: Git status shows changed files not claimed by any task: .megaplan/debt.json, .megaplan/plans/build-a-turn-based-timeline-20260326-0005, .megaplan/plans/investigate-and-fix-visual-20260325-2044/evidence, .megaplan/plans/investigate-and-fix-visual-20260325-2044/execution.json, .megaplan/plans/investigate-and-fix-visual-20260325-2044/execution_audit.json, .megaplan/plans/investigate-and-fix-visual-20260325-2044/execution_batch_1.json, .megaplan/plans/investigate-and-fix-visual-20260325-2044/execution_batch_2.json, .megaplan/plans/investigate-and-fix-visual-20260325-2044/execution_batch_3.json, .megaplan/plans/investigate-and-fix-visual-20260325-2044/execution_batch_4.json, .megaplan/plans/investigate-and-fix-visual-20260325-2044/execution_trace.jsonl, .megaplan/plans/investigate-and-fix-visual-20260325-2044/finalize.json, .megaplan/plans/investigate-and-fix-visual-20260325-2044/state.json, .megaplan/plans/migrate-all-task-creation-20260325-2354, .megaplan/plans/multi-select-feature-parity-20260326-0548, .megaplan/plans/multi-select-timeline-clips-20260326-0415, .megaplan/plans/refactor-ai-timeline-agent-20260326-0157, .megaplan/plans/replace-xzdarcy-react-20260325-2054/critique_v1.json, .megaplan/plans/replace-xzdarcy-react-20260325-2054/execution_audit.json, .megaplan/plans/replace-xzdarcy-react-20260325-2054/execution_batch_1.json, .megaplan/plans/replace-xzdarcy-react-20260325-2054/execution_batch_2.json, .megaplan/plans/replace-xzdarcy-react-20260325-2054/execution_batch_3.json, .megaplan/plans/replace-xzdarcy-react-20260325-2054/execution_batch_4.json, .megaplan/plans/replace-xzdarcy-react-20260325-2054/execution_batch_5.json, .megaplan/plans/replace-xzdarcy-react-20260325-2054/execution_batch_6.json, .megaplan/plans/replace-xzdarcy-react-20260325-2054/execution_batch_7.json, .megaplan/plans/replace-xzdarcy-react-20260325-2054/execution_batch_8.json, .megaplan/plans/replace-xzdarcy-react-20260325-2054/execution_trace.jsonl, .megaplan/plans/replace-xzdarcy-react-20260325-2054/faults.json, .megaplan/plans/replace-xzdarcy-react-20260325-2054/finalize.json, .megaplan/plans/replace-xzdarcy-react-20260325-2054/gate.json, .megaplan/plans/replace-xzdarcy-react-20260325-2054/gate_signals_v1.json, .megaplan/plans/replace-xzdarcy-react-20260325-2054/plan_v1.meta.json, .megaplan/plans/replace-xzdarcy-react-20260325-2054/state.json, .megaplan/plans/split-usetimelinedata-ts-678-20260325-2047/execution.json, .megaplan/plans/split-usetimelinedata-ts-678-20260325-2047/execution_audit.json, .megaplan/plans/split-usetimelinedata-ts-678-20260325-2047/execution_batch_1.json, .megaplan/plans/split-usetimelinedata-ts-678-20260325-2047/execution_batch_2.json, .megaplan/plans/split-usetimelinedata-ts-678-20260325-2047/execution_batch_3.json, .megaplan/plans/split-usetimelinedata-ts-678-20260325-2047/execution_batch_4.json, .megaplan/plans/split-usetimelinedata-ts-678-20260325-2047/execution_trace.jsonl, .megaplan/plans/split-usetimelinedata-ts-678-20260325-2047/finalize.json, .megaplan/plans/split-usetimelinedata-ts-678-20260325-2047/gate.json, .megaplan/plans/split-usetimelinedata-ts-678-20260325-2047/state.json, .megaplan/schemas/gate.json, .megaplan/schemas/plan.json, eslint.supabase-facade-allowlist.js, investigation, package-lock.json, package.json, src/shared/types/joinClips.ts, src/tools/video-editor/components/AgentChat, src/tools/video-editor/components/PreviewPanel/OverlayEditor.tsx, src/tools/video-editor/components/TimelineEditor/DropIndicator.tsx, src/tools/video-editor/components/TimelineEditor/TimeRuler.tsx, src/tools/video-editor/components/TimelineEditor/TimelineCanvas.tsx, src/tools/video-editor/components/TimelineEditor/TrackLabel.tsx, src/tools/video-editor/components/TimelineEditor/timeline-overrides.css, src/tools/video-editor/compositions/VisualClip.tsx, src/tools/video-editor/data/DataProvider.ts, src/tools/video-editor/data/SupabaseDataProvider.ts, src/tools/video-editor/hooks/useAgentSession.ts, src/tools/video-editor/hooks/useAgentVoice.ts, src/tools/video-editor/hooks/useAssetManagement.ts, src/tools/video-editor/hooks/useAssetOperations.ts, src/tools/video-editor/hooks/useClipDrag.ts, src/tools/video-editor/hooks/useClipResize.ts, src/tools/video-editor/hooks/useDerivedTimeline.ts, src/tools/video-editor/hooks/useDragCoordinator.ts, src/tools/video-editor/hooks/useEditorPreferences.ts, src/tools/video-editor/hooks/useExternalDrop.ts, src/tools/video-editor/hooks/useMarqueeSelect.ts, src/tools/video-editor/hooks/useMultiSelect.ts, src/tools/video-editor/hooks/useRenderState.ts, src/tools/video-editor/hooks/useTimeline.ts, src/tools/video-editor/hooks/useTimelineData.ts, src/tools/video-editor/hooks/useTimelinePlayback.ts, src/tools/video-editor/hooks/useTimelineQueries.ts, src/tools/video-editor/hooks/useTimelineRealtime.ts, src/tools/video-editor/hooks/useTimelineSave.ts, src/tools/video-editor/hooks/useTimelineSync.ts, src/tools/video-editor/lib/coordinate-utils.ts, src/tools/video-editor/lib/drop-position.ts, src/tools/video-editor/lib/render-bounds.test.ts, src/tools/video-editor/lib/render-bounds.ts, src/tools/video-editor/lib/render-bounds.validation.test.ts, src/tools/video-editor/lib/resolve-overlaps.ts, src/tools/video-editor/lib/snap-edges.ts, src/tools/video-editor/lib/timeline-data.ts, src/tools/video-editor/lib/timeline-save-utils.ts, src/tools/video-editor/types/agent-session.ts, src/tools/video-editor/types/timeline-canvas.ts, supabase/.temp/cli-latest, supabase/functions/_shared/transcription.ts, supabase/functions/ai-timeline-agent, supabase/functions/ai-voice-prompt/index.ts, supabase/migrations/20260326100000_add_timeline_config_version.sql, supabase/migrations/20260326100001_create_timeline_agent_sessions.sql",
"Advisory audit finding: Sense check SC4 is missing an executor acknowledgment.",
"Advisory audit finding: Sense check SC5 is missing an executor acknowledgment.",
"Advisory audit finding: Sense check SC8 is missing an executor acknowledgment.",
"Advisory audit finding: Sense check SC9 is missing an executor acknowledgment."
]
code
Batch-scoped sense checks:
[
{
"id": "SC4",
"task_id": "T4",
"question": "Do all effect selects (entrance/exit/continuous) in BulkClipPanel use onChangeDeep (not onChange), and does each patch factory reference meta.entrance?.duration / meta.exit?.duration / meta.continuous?.intensity to preserve per-clip sub-fields?",
"executor_note": "",
"verdict": ""
}
]
code
Full execution tracking source of truth (`finalize.json`):
{
"tasks": [
{
"id": "T1",
"description": "Create src/tools/video-editor/lib/bulk-utils.ts with three exports: (1) getSharedValue<T> \u2014 moved from PropertiesPanel.tsx:12-19, compares by strict equality, returns shared value or null. (2) getSharedNestedValue<T>(clips, accessor) \u2014 compares nested objects by their type field (for effects) or JSON.stringify (for text), returns shared value or null. (3) getBulkVisibleTabs(clips, tracks): ClipTab[] \u2014 mirrors getVisibleClipTabs (ClipPanel.tsx:37-49): Effects always shown, Timing always shown, Position shown if ANY clip is on a visual track (including text clips \u2014 per DECISION-006 correcting the plan's original rule), Audio shown if ANY clip is non-text, Text shown only if ALL clips are text type. Replace the inline getSharedValue in PropertiesPanel.tsx with the import.",
"depends_on": [],
"status": "done",
"executor_notes": "Added shared bulk helpers in bulk-utils.ts, replaced the inline PropertiesPanel helper import, and verified the new tab helper keeps position visible for visual-track selections including text clips.",
"files_changed": [
"src/tools/video-editor/lib/bulk-utils.ts",
"src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx"
],
"commands_run": [
"sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T2",
"description": "Add handleUpdateClipsDeep(clipIds: string[], patchFn: (existing: ClipMeta) => Partial<ClipMeta>) to useClipEditing.ts. This takes a patch factory that receives each clip's current meta from dataRef.current.meta[id], builds per-clip patches preserving nested sub-fields, then calls applyTimelineEdit(current.rows, metaUpdates). Uses the existing getValidClipIds helper. Export from UseClipEditingResult interface. Wire through useTimelineState.ts (add to clipEditing usage at ~line 186, expose in editor useMemo at ~line 207) and useTimelineState.types.ts (add handleUpdateClipsDeep: ClipEditingHook['handleUpdateClipsDeep'] to TimelineEditorContextValue).",
"depends_on": [],
"status": "done",
"executor_notes": "Added handleUpdateClipsDeep with per-clip patch generation from current.meta[clipId], then exposed it through useTimelineState and useTimelineState.types so nested bulk patches are not shared across clips.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,380p' src/tools/video-editor/hooks/useTimelineState.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useTimelineState.types.ts",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T3",
"description": "Add handleResetClipsPosition(clipIds: string[]) to useClipEditing.ts. Loops over valid clip IDs, building per-clip patches that clear x/y/width/height/cropTop/cropBottom/cropLeft/cropRight (same fields as handleResetClipPosition at line 166-183, but using applyTimelineEdit with a metaUpdates record instead of applyResolvedConfigEdit). Export from UseClipEditingResult, wire through useTimelineState.ts and useTimelineState.types.ts same as T2.",
"depends_on": [],
"status": "done",
"executor_notes": "Added handleResetClipsPosition to clear the same eight position/crop fields as the single-clip reset path for every valid selected clip, and wired it through the editor context types/state.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,380p' src/tools/video-editor/hooks/useTimelineState.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useTimelineState.types.ts",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T4",
"description": "Rewrite BulkClipPanel in PropertiesPanel.tsx with tabbed structure matching ClipPanel. Props: clips (ResolvedTimelineClip[]), visibleTabs, compositionWidth/Height, onChange (scalar), onChangeDeep (patch factory), onResetPosition, onToggleMute, onClose, activeTab, setActiveTab. Tabs: Effects \u2014 entrance/exit/continuous selects using onChangeDeep so each clip preserves its own duration/intensity (pattern: onChangeDeep((meta) => ({ entrance: value === NO_EFFECT ? undefined : { type: value, duration: meta.entrance?.duration ?? 0.4 } }))). Custom effect editor shown only when all clips share the same custom effect slug. Timing \u2014 speed (scalar onChange), Source In/Out (scalar onChange). Start time excluded (DECISION-003). Position \u2014 X/Y/Width/Height inputs (scalar onChange), Opacity slider (scalar onChange), Reset Position button (onResetPosition). Audio \u2014 Volume slider (scalar onChange), Toggle Mute button (onToggleMute). Text (only when ALL clips are text) \u2014 fontSize and color using onChangeDeep to preserve each clip's content. Text content excluded (DECISION-004). Header shows '{N} clips selected' with close button. Tab bar uses visibleTabs for column count. Mixed values show 'Mixed' placeholder on inputs, disabled select option for selects.",
"depends_on": [
"T1",
"T2",
"T3"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T5",
"description": "Update PropertiesPanel component (PropertiesPanel.tsx:150-257) to compute and pass all bulk props. Expand shared-value computation (lines 188-191) for all fields needed by BulkClipPanel using getSharedValue for scalars and getSharedNestedValue for entrance/exit/continuous/text. Compute bulkVisibleTabs via getBulkVisibleTabs(bulkSelectedClips, data.resolvedConfig?.tracks ?? []). Wire: onChange \u2192 handleUpdateClips(selectedClipIdsList, patch), onChangeDeep \u2192 handleUpdateClipsDeep(selectedClipIdsList, patchFn), onResetPosition \u2192 handleResetClipsPosition(selectedClipIdsList), onToggleMute \u2192 handleToggleMuteClips(selectedClipIdsList). Pass activeTab, setActiveTab, compositionSize.width, compositionSize.height. Add handleUpdateClipsDeep and handleResetClipsPosition to the destructured context values from useTimelineEditorContext().",
"depends_on": [
"T1",
"T2",
"T3",
"T4"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T6",
"description": "Enable arrow-key track movement for multi-select. (1) In useTimelineTrackManagement.ts, add moveSelectedClipsToTrack(direction, selectedClipIds: ReadonlySet<string>): groups all selected clips by current row, for each group finds target track of same kind one step in direction (same traversal as moveSelectedClipToTrack at line 135-165), if ANY group can't find a valid target the entire operation is a no-op (atomic). If selection spans track kinds (visual + audio), each kind-group moves independently within its kind. Calls moveClipToRow for each clip. Export from result interface. (2) Wire through useTimelineState.ts and useTimelineState.types.ts. (3) In VideoEditorShell.tsx:50, change canMoveSelectedClipToTrack: editor.selectedClipIds.size === 1 to editor.selectedClipIds.size >= 1. (4) In useKeyboardShortcuts.ts, update moveSelectedClipToTrack call to use the new multi-clip function passing the full selection set.",
"depends_on": [],
"status": "done",
"executor_notes": "Implemented moveSelectedClipsToTrack with per-kind planning and blocking, exposed it through timeline state/context, and updated keyboard handling so arrow-key track moves operate on the full selection.",
"files_changed": [
"src/tools/video-editor/hooks/useTimelineTrackManagement.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts",
"src/tools/video-editor/hooks/useKeyboardShortcuts.ts",
"src/tools/video-editor/components/VideoEditorShell.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useTimelineTrackManagement.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useKeyboardShortcuts.ts",
"sed -n '1,220p' src/tools/video-editor/components/VideoEditorShell.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T7",
"description": "Add 'Split at Playhead' to batch context menu. (1) In useClipEditing.ts, add handleSplitClipsAtPlayhead(clipIds: string[]) \u2014 iterates over all clip IDs, for each clip that intersects the current playhead time (checked via finding the action in rows where action.start <= currentTime < action.end), calls splitClipAtPlayhead. Clips not intersecting are silently skipped. (2) Export from UseClipEditingResult, wire through useTimelineState.ts and useTimelineState.types.ts. (3) In ClipAction.tsx, add onSplitClipsAtPlayhead?: (clipIds: string[]) => void to ClipActionProps. Add a 'Split {N} clips at playhead' menu item with Scissors icon in the batch context menu section (after the mute item at line 156-168, before the delete item). (4) Wire the handler through wherever ClipAction is instantiated (TimelineEditor.tsx).",
"depends_on": [],
"status": "done",
"executor_notes": "Added handleSplitClipsAtPlayhead with silent skipping for non-intersecting clips, wired it through the editor context, and added the batch context-menu action in ClipAction/TimelineEditor.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts",
"src/tools/video-editor/components/TimelineEditor/ClipAction.tsx",
"src/tools/video-editor/components/TimelineEditor/TimelineEditor.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,260p' src/tools/video-editor/components/TimelineEditor/ClipAction.tsx",
"sed -n '1,260p' src/tools/video-editor/components/TimelineEditor/TimelineEditor.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T8",
"description": "TypeScript compilation check. Run npx tsc --noEmit and fix any type errors from the expanded interfaces and new handler signatures across all changed files.",
"depends_on": [
"T1",
"T2",
"T3",
"T4",
"T5",
"T6",
"T7"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T9",
"description": "Manual testing checklist. (1) Select 2+ video clips on visual tracks \u2192 verify Effects, Timing, Position, Audio tabs appear. Edit entrance effect \u2192 confirm each clip keeps its own duration. Edit opacity \u2192 confirm all update. (2) Select mixed types (video + text) \u2192 verify Text tab hidden, Position and Audio tabs shown. (3) Select 2+ text clips \u2192 verify Text tab shown, Position tab shown (DECISION-006), font size edit preserves each clip's content. (4) Arrow up/down with multi-select \u2192 verify all clips move together, no-op if any clip in a kind-group is blocked. (5) Right-click multi-select \u2192 verify 'Split at Playhead' appears and works (splits intersecting clips only). (6) Verify mixed-value display shows 'Mixed' placeholder correctly for all field types.",
"depends_on": [
"T8"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
}
],
"watch_items": [
"[CRITICAL] Shallow merge in applyTimelineEdit (useTimelineSave.ts:236-237): { ...existingMeta, ...patch } overwrites nested objects. All nested-field bulk edits (entrance, exit, continuous, text) MUST use handleUpdateClipsDeep with the patch factory pattern, never handleUpdateClips with a static patch containing nested objects.",
"[DECISION-006] Position tab must be shown for ALL visual-track clips including text. The plan's Step 1.4 incorrectly says 'non-text on a visual track' \u2014 this must be corrected to 'any clip on a visual track'. Reference: ClipPanel.tsx:41-42 returns position for text clips.",
"[DEBT] bulk-panel-tabs: Ensure text clip multi-selections get the Position tab. This was flagged as existing debt \u2014 the implementation must not make it worse.",
"[DEBT] properties-panel-scope: Crop and transition controls are deliberately out of scope (DECISION-001). Do not attempt to add them.",
"[DEBT] context-menu-scope: Copy/paste is deliberately out of scope (DECISION-002). No existing infrastructure to extend.",
"[SCOPE] Bulk Source In/Out: These are scalar fields that apply the same value to all clips. This is potentially useful (e.g., 'trim all to start at 2s') but could surprise users. Include them but note in the UI that the value applies to all clips.",
"[SCOPE] Arrow-key cross-kind movement: When selection spans track kinds (visual + audio), each kind-group should move independently. Block only if a kind-group has no valid target, not the entire operation.",
"[SCOPE] Undo criterion from success criteria is aspirational \u2014 this codebase has no undo/redo system. The patch factory approach preserves data correctly so undo would work if/when implemented, but cannot be tested now.",
"[WIRING] New handlers (handleUpdateClipsDeep, handleResetClipsPosition, handleSplitClipsAtPlayhead, moveSelectedClipsToTrack) must be wired through 3 layers: useClipEditing \u2192 useTimelineState \u2192 useTimelineState.types (TimelineEditorContextValue interface). Missing any layer causes a silent context value omission.",
"[PATTERN] BulkClipPanel should reuse the same shadcn components (Select, Input, Slider, Tabs, Button) and the same NO_EFFECT sentinel, TAB_COLUMNS_CLASS, and FieldLabel component from ClipPanel.tsx. Consider extracting shared pieces if duplication exceeds ~20 lines."
],
"sense_checks": [
{
"id": "SC1",
"task_id": "T1",
"question": "Does getBulkVisibleTabs show Position tab for an all-text multi-selection (matching getVisibleClipTabs which returns 'position' for text clips)?",
"executor_note": "getBulkVisibleTabs adds position whenever any selected clip is on a visual track, so an all-text visual multi-selection still shows the Position tab.",
"verdict": ""
},
{
"id": "SC2",
"task_id": "T2",
"question": "Does handleUpdateClipsDeep produce per-clip metaUpdates entries (not a single shared patch) so applyTimelineEdit's shallow merge doesn't destroy clip-specific nested data?",
"executor_note": "handleUpdateClipsDeep builds a distinct metaUpdates entry for each valid clip ID from current.meta[clipId] before calling applyTimelineEdit, so nested bulk patches are per clip rather than shared.",
"verdict": ""
},
{
"id": "SC3",
"task_id": "T3",
"question": "Does handleResetClipsPosition set all 8 position/crop fields to undefined for each clip, matching the single-clip handleResetClipPosition at useClipEditing.ts:171-181?",
"executor_note": "handleResetClipsPosition sets x, y, width, height, cropTop, cropBottom, cropLeft, and cropRight to undefined for each valid selected clip.",
"verdict": ""
},
{
"id": "SC4",
"task_id": "T4",
"question": "Do all effect selects (entrance/exit/continuous) in BulkClipPanel use onChangeDeep (not onChange), and does each patch factory reference meta.entrance?.duration / meta.exit?.duration / meta.continuous?.intensity to preserve per-clip sub-fields?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC5",
"task_id": "T5",
"question": "Are handleUpdateClipsDeep and handleResetClipsPosition both destructured from useTimelineEditorContext() and wired to BulkClipPanel's onChangeDeep and onResetPosition props?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC6",
"task_id": "T6",
"question": "Is the multi-clip track movement atomic per kind-group (if any visual clip can't move up, no visual clips move, but audio clips can still move independently)?",
"executor_note": "moveSelectedClipsToTrack computes target rows per source-row group and only executes a kind-group when every group in that kind has a valid adjacent track; visual and audio selections are evaluated independently.",
"verdict": ""
},
{
"id": "SC7",
"task_id": "T7",
"question": "Does handleSplitClipsAtPlayhead correctly handle the case where some selected clips don't intersect the playhead (should skip silently, not error)?",
"executor_note": "handleSplitClipsAtPlayhead first checks which selected clips intersect the current playhead via the current row actions and silently skips any selected clips that do not intersect.",
"verdict": ""
},
{
"id": "SC8",
"task_id": "T8",
"question": "Does npx tsc --noEmit pass with zero errors after all changes?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC9",
"task_id": "T9",
"question": "When editing entrance effect type in bulk mode, does each clip retain its individual entrance.duration value (not reset to the 0.4 default)?",
"executor_note": "",
"verdict": ""
}
],
"meta_commentary": "Execution guidance:\n\nParallelism: T1, T2, T3, T6, T7 are independent \u2014 execute in parallel. T4 depends on T1-T3 (needs the utility types and handler signatures). T5 depends on T4 (passes computed props to the new BulkClipPanel). T8-T9 are sequential validation after all code.\n\nThe shallow-merge bug is the #1 correctness risk. The entire plan's architecture revolves around the patch factory pattern in T2. When reviewing T4, verify that EVERY nested-field edit (entrance, exit, continuous, text fontSize, text color) goes through onChangeDeep, not onChange. Scalar fields (opacity, speed, volume, x, y, width, height, from, to) are safe to use onChange.\n\nTab visibility correction (DECISION-006): The plan's Step 1.4 says Position is shown "if ANY selected clip is non-text on a visual track." This is WRONG per the gate warning. ClipPanel.tsx:41-42 shows Position for text clips too. The correct rule for getBulkVisibleTabs is: Position shown if ANY clip is on a visual track (regardless of clipType). The executor MUST correct this.\n\nUnresolved design decisions made here:\n- Cross-kind arrow movement: Each kind-group moves independently (not all-or-nothing across kinds). This is more useful than blocking the entire operation when a mixed selection can't fully move.\n- Bulk Source In/Out: Included as scalar fields. Applying the same source trim to all clips is a valid use case (e.g., skip first 2 seconds of all clips).\n\nWhat NOT to build: Crop controls (in OverlayEditor), transition controls (don't exist anywhere), copy/paste (no infrastructure), undo/redo (no system), start time bulk edit (destructive stacking).\n\nExtracting shared code: FieldLabel and NO_EFFECT/TAB_COLUMNS_CLASS from ClipPanel.tsx will be needed by BulkClipPanel. Either extract to a shared file or co-locate in PropertiesPanel.tsx. Don't duplicate the effect type arrays \u2014 import from effects.ts.\n\nWiring checklist for new handlers: Each new handler must appear in: (1) useClipEditing.ts return object, (2) UseClipEditingResult interface, (3) useTimelineState.ts editor useMemo, (4) useTimelineState.ts useMemo deps array, (5) TimelineEditorContextValue in useTimelineState.types.ts. Missing any of these 5 causes a silent failure where the handler is undefined at runtime."
}
code
Debt watch items (do not make these worse):
[DEBT] agent-chat-rendering: removing the duplicate assistant turn may hide message_user text if the frontend only renders assistant-role turns as chat bubbles. (flagged 1 times across 1 plans)
[DEBT] bulk-panel-tabs: text clip multi-selections would miss the position tab under the plan's stated rule. (flagged 1 times across 1 plans)
[DEBT] conflict-resolution: silently reloading agent-originated timeline updates would discard dirty local edits. (flagged 1 times across 1 plans)
[DEBT] context-menu-scope: multi-clip copy is not included despite being mentioned in the original idea. (flagged 1 times across 1 plans)
[DEBT] issue-detection: mid-sentence-cut detection is not implementable without transcript/profile data that the current provider doesn't expose. (flagged 1 times across 1 plans)
[DEBT] optimistic-locking: plan only specifies version checking at the db write layer; the ui load/state/save path doesn't carry config_version yet. (flagged 1 times across 1 plans)
[DEBT] properties-panel-scope: crop and transition controls are not included in the bulk panel, narrowing the original idea's scope. (flagged 1 times across 1 plans)
[DEBT] realtime-subscriptions: the shared realtime system doesn't know about timeline_agent_sessions; step 7 hooks need their own channel subscription. (flagged 1 times across 1 plans)
[DEBT] selection-save-bridge: the plan specifies passing pruneselection into usetimelinesave but doesn't detail the hook-layer bridge needed because usetimelinesave is instantiated inside usetimelinedata before usetimelinestate runs. (flagged 1 times across 1 plans)
[DEBT] task-deduplication: server-generated idempotency keys would break retry deduplication because retried requests get fresh keys. (flagged 1 times across 1 plans)
[DEBT] task-system-integration: create_generation_task is underspecified against the actual task family system. (flagged 1 times across 1 plans)
[DEBT] tool-error-propagation: a blanket catch in executetool would silently downgrade db/persistence failures into ordinary tool results, changing the session error/http 500 behavior. (flagged 1 times across 1 plans)
code
Note: User explicitly approved this plan at the gate checkpoint.
Robustness level: standard.
Requirements:
- Execute only the actionable tasks in this batch.
- Treat completed tasks as dependency context, not new work.
- Return structured JSON only.
- Only produce `task_updates` for these tasks: [T4]
- Only produce `sense_check_acknowledgments` for these sense checks: [SC4]
- Do not include updates for tasks or sense checks outside this batch.
- Keep `executor_notes` verification-focused.
- Best-effort progress checkpointing: if `/Users/user_c042661f/Documents/reigh-workspace/reigh-app/.megaplan/plans/multi-select-feature-parity-20260326-0548/execution_batch_2.json` is writable, checkpoint task and sense-check updates there (not `finalize.json`). The harness owns `finalize.json`.
Completed task context (already satisfied, do not re-execute unless directly required by current edits):
[
{
"id": "T1",
"description": "Create src/tools/video-editor/lib/bulk-utils.ts with three exports: (1) getSharedValue<T> \u2014 moved from PropertiesPanel.tsx:12-19, compares by strict equality, returns shared value or null. (2) getSharedNestedValue<T>(clips, accessor) \u2014 compares nested objects by their type field (for effects) or JSON.stringify (for text), returns shared value or null. (3) getBulkVisibleTabs(clips, tracks): ClipTab[] \u2014 mirrors getVisibleClipTabs (ClipPanel.tsx:37-49): Effects always shown, Timing always shown, Position shown if ANY clip is on a visual track (including text clips \u2014 per DECISION-006 correcting the plan's original rule), Audio shown if ANY clip is non-text, Text shown only if ALL clips are text type. Replace the inline getSharedValue in PropertiesPanel.tsx with the import.",
"depends_on": [],
"status": "done",
"executor_notes": "Added shared bulk helpers in bulk-utils.ts, replaced the inline PropertiesPanel helper import, and verified the new tab helper keeps position visible for visual-track selections including text clips.",
"files_changed": [
"src/tools/video-editor/lib/bulk-utils.ts",
"src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx"
],
"commands_run": [
"sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T2",
"description": "Add handleUpdateClipsDeep(clipIds: string[], patchFn: (existing: ClipMeta) => Partial<ClipMeta>) to useClipEditing.ts. This takes a patch factory that receives each clip's current meta from dataRef.current.meta[id], builds per-clip patches preserving nested sub-fields, then calls applyTimelineEdit(current.rows, metaUpdates). Uses the existing getValidClipIds helper. Export from UseClipEditingResult interface. Wire through useTimelineState.ts (add to clipEditing usage at ~line 186, expose in editor useMemo at ~line 207) and useTimelineState.types.ts (add handleUpdateClipsDeep: ClipEditingHook['handleUpdateClipsDeep'] to TimelineEditorContextValue).",
"depends_on": [],
"status": "done",
"executor_notes": "Added handleUpdateClipsDeep with per-clip patch generation from current.meta[clipId], then exposed it through useTimelineState and useTimelineState.types so nested bulk patches are not shared across clips.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,380p' src/tools/video-editor/hooks/useTimelineState.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useTimelineState.types.ts",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T3",
"description": "Add handleResetClipsPosition(clipIds: string[]) to useClipEditing.ts. Loops over valid clip IDs, building per-clip patches that clear x/y/width/height/cropTop/cropBottom/cropLeft/cropRight (same fields as handleResetClipPosition at line 166-183, but using applyTimelineEdit with a metaUpdates record instead of applyResolvedConfigEdit). Export from UseClipEditingResult, wire through useTimelineState.ts and useTimelineState.types.ts same as T2.",
"depends_on": [],
"status": "done",
"executor_notes": "Added handleResetClipsPosition to clear the same eight position/crop fields as the single-clip reset path for every valid selected clip, and wired it through the editor context types/state.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,380p' src/tools/video-editor/hooks/useTimelineState.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useTimelineState.types.ts",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T4",
"description": "Rewrite BulkClipPanel in PropertiesPanel.tsx with tabbed structure matching ClipPanel. Props: clips (ResolvedTimelineClip[]), visibleTabs, compositionWidth/Height, onChange (scalar), onChangeDeep (patch factory), onResetPosition, onToggleMute, onClose, activeTab, setActiveTab. Tabs: Effects \u2014 entrance/exit/continuous selects using onChangeDeep so each clip preserves its own duration/intensity (pattern: onChangeDeep((meta) => ({ entrance: value === NO_EFFECT ? undefined : { type: value, duration: meta.entrance?.duration ?? 0.4 } }))). Custom effect editor shown only when all clips share the same custom effect slug. Timing \u2014 speed (scalar onChange), Source In/Out (scalar onChange). Start time excluded (DECISION-003). Position \u2014 X/Y/Width/Height inputs (scalar onChange), Opacity slider (scalar onChange), Reset Position button (onResetPosition). Audio \u2014 Volume slider (scalar onChange), Toggle Mute button (onToggleMute). Text (only when ALL clips are text) \u2014 fontSize and color using onChangeDeep to preserve each clip's content. Text content excluded (DECISION-004). Header shows '{N} clips selected' with close button. Tab bar uses visibleTabs for column count. Mixed values show 'Mixed' placeholder on inputs, disabled select option for selects.",
"depends_on": [
"T1",
"T2",
"T3"
],
"status": "done",
"executor_notes": "Rebuilt BulkClipPanel into a tabbed bulk editor matching the single-clip structure, with mixed-value placeholders, bulk timing/position/audio/text controls, shared custom-effect gating, and deep-patch handling for nested effect/text edits verified by TypeScript.",
"files_changed": [
"src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"src/tools/video-editor/components/PropertiesPanel/ClipPanel.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"sed -n '1,320p' src/tools/video-editor/components/PropertiesPanel/ClipPanel.tsx",
"rg -n "onChangeDeep|meta\.entrance\?\.duration|meta\.exit\?\.duration|meta\.continuous\?\.intensity|CustomEffectEditor|MIXED_SELECT_VALUE" src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T6",
"description": "Enable arrow-key track movement for multi-select. (1) In useTimelineTrackManagement.ts, add moveSelectedClipsToTrack(direction, selectedClipIds: ReadonlySet<string>): groups all selected clips by current row, for each group finds target track of same kind one step in direction (same traversal as moveSelectedClipToTrack at line 135-165), if ANY group can't find a valid target the entire operation is a no-op (atomic). If selection spans track kinds (visual + audio), each kind-group moves independently within its kind. Calls moveClipToRow for each clip. Export from result interface. (2) Wire through useTimelineState.ts and useTimelineState.types.ts. (3) In VideoEditorShell.tsx:50, change canMoveSelectedClipToTrack: editor.selectedClipIds.size === 1 to editor.selectedClipIds.size >= 1. (4) In useKeyboardShortcuts.ts, update moveSelectedClipToTrack call to use the new multi-clip function passing the full selection set.",
"depends_on": [],
"status": "done",
"executor_notes": "Implemented moveSelectedClipsToTrack with per-kind planning and blocking, exposed it through timeline state/context, and updated keyboard handling so arrow-key track moves operate on the full selection.",
"files_changed": [
"src/tools/video-editor/hooks/useTimelineTrackManagement.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts",
"src/tools/video-editor/hooks/useKeyboardShortcuts.ts",
"src/tools/video-editor/components/VideoEditorShell.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useTimelineTrackManagement.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useKeyboardShortcuts.ts",
"sed -n '1,220p' src/tools/video-editor/components/VideoEditorShell.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T7",
"description": "Add 'Split at Playhead' to batch context menu. (1) In useClipEditing.ts, add handleSplitClipsAtPlayhead(clipIds: string[]) \u2014 iterates over all clip IDs, for each clip that intersects the current playhead time (checked via finding the action in rows where action.start <= currentTime < action.end), calls splitClipAtPlayhead. Clips not intersecting are silently skipped. (2) Export from UseClipEditingResult, wire through useTimelineState.ts and useTimelineState.types.ts. (3) In ClipAction.tsx, add onSplitClipsAtPlayhead?: (clipIds: string[]) => void to ClipActionProps. Add a 'Split {N} clips at playhead' menu item with Scissors icon in the batch context menu section (after the mute item at line 156-168, before the delete item). (4) Wire the handler through wherever ClipAction is instantiated (TimelineEditor.tsx).",
"depends_on": [],
"status": "done",
"executor_notes": "Added handleSplitClipsAtPlayhead with silent skipping for non-intersecting clips, wired it through the editor context, and added the batch context-menu action in ClipAction/TimelineEditor.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts",
"src/tools/video-editor/components/TimelineEditor/ClipAction.tsx",
"src/tools/video-editor/components/TimelineEditor/TimelineEditor.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,260p' src/tools/video-editor/components/TimelineEditor/ClipAction.tsx",
"sed -n '1,260p' src/tools/video-editor/components/TimelineEditor/TimelineEditor.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
}
]
{
"id": "SC5",
"task_id": "T5",
"question": "Are handleUpdateClipsDeep and handleResetClipsPosition both destructured from useTimelineEditorContext() and wired to BulkClipPanel's onChangeDeep and onResetPosition props?",
"executor_note": "",
"verdict": ""
}
]
code
Full execution tracking source of truth (`finalize.json`):
{
"tasks": [
{
"id": "T1",
"description": "Create src/tools/video-editor/lib/bulk-utils.ts with three exports: (1) getSharedValue<T> \u2014 moved from PropertiesPanel.tsx:12-19, compares by strict equality, returns shared value or null. (2) getSharedNestedValue<T>(clips, accessor) \u2014 compares nested objects by their type field (for effects) or JSON.stringify (for text), returns shared value or null. (3) getBulkVisibleTabs(clips, tracks): ClipTab[] \u2014 mirrors getVisibleClipTabs (ClipPanel.tsx:37-49): Effects always shown, Timing always shown, Position shown if ANY clip is on a visual track (including text clips \u2014 per DECISION-006 correcting the plan's original rule), Audio shown if ANY clip is non-text, Text shown only if ALL clips are text type. Replace the inline getSharedValue in PropertiesPanel.tsx with the import.",
"depends_on": [],
"status": "done",
"executor_notes": "Added shared bulk helpers in bulk-utils.ts, replaced the inline PropertiesPanel helper import, and verified the new tab helper keeps position visible for visual-track selections including text clips.",
"files_changed": [
"src/tools/video-editor/lib/bulk-utils.ts",
"src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx"
],
"commands_run": [
"sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T2",
"description": "Add handleUpdateClipsDeep(clipIds: string[], patchFn: (existing: ClipMeta) => Partial<ClipMeta>) to useClipEditing.ts. This takes a patch factory that receives each clip's current meta from dataRef.current.meta[id], builds per-clip patches preserving nested sub-fields, then calls applyTimelineEdit(current.rows, metaUpdates). Uses the existing getValidClipIds helper. Export from UseClipEditingResult interface. Wire through useTimelineState.ts (add to clipEditing usage at ~line 186, expose in editor useMemo at ~line 207) and useTimelineState.types.ts (add handleUpdateClipsDeep: ClipEditingHook['handleUpdateClipsDeep'] to TimelineEditorContextValue).",
"depends_on": [],
"status": "done",
"executor_notes": "Added handleUpdateClipsDeep with per-clip patch generation from current.meta[clipId], then exposed it through useTimelineState and useTimelineState.types so nested bulk patches are not shared across clips.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,380p' src/tools/video-editor/hooks/useTimelineState.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useTimelineState.types.ts",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T3",
"description": "Add handleResetClipsPosition(clipIds: string[]) to useClipEditing.ts. Loops over valid clip IDs, building per-clip patches that clear x/y/width/height/cropTop/cropBottom/cropLeft/cropRight (same fields as handleResetClipPosition at line 166-183, but using applyTimelineEdit with a metaUpdates record instead of applyResolvedConfigEdit). Export from UseClipEditingResult, wire through useTimelineState.ts and useTimelineState.types.ts same as T2.",
"depends_on": [],
"status": "done",
"executor_notes": "Added handleResetClipsPosition to clear the same eight position/crop fields as the single-clip reset path for every valid selected clip, and wired it through the editor context types/state.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,380p' src/tools/video-editor/hooks/useTimelineState.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useTimelineState.types.ts",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T4",
"description": "Rewrite BulkClipPanel in PropertiesPanel.tsx with tabbed structure matching ClipPanel. Props: clips (ResolvedTimelineClip[]), visibleTabs, compositionWidth/Height, onChange (scalar), onChangeDeep (patch factory), onResetPosition, onToggleMute, onClose, activeTab, setActiveTab. Tabs: Effects \u2014 entrance/exit/continuous selects using onChangeDeep so each clip preserves its own duration/intensity (pattern: onChangeDeep((meta) => ({ entrance: value === NO_EFFECT ? undefined : { type: value, duration: meta.entrance?.duration ?? 0.4 } }))). Custom effect editor shown only when all clips share the same custom effect slug. Timing \u2014 speed (scalar onChange), Source In/Out (scalar onChange). Start time excluded (DECISION-003). Position \u2014 X/Y/Width/Height inputs (scalar onChange), Opacity slider (scalar onChange), Reset Position button (onResetPosition). Audio \u2014 Volume slider (scalar onChange), Toggle Mute button (onToggleMute). Text (only when ALL clips are text) \u2014 fontSize and color using onChangeDeep to preserve each clip's content. Text content excluded (DECISION-004). Header shows '{N} clips selected' with close button. Tab bar uses visibleTabs for column count. Mixed values show 'Mixed' placeholder on inputs, disabled select option for selects.",
"depends_on": [
"T1",
"T2",
"T3"
],
"status": "done",
"executor_notes": "Rebuilt BulkClipPanel into a tabbed bulk editor matching the single-clip structure, with mixed-value placeholders, bulk timing/position/audio/text controls, shared custom-effect gating, and deep-patch handling for nested effect/text edits verified by TypeScript.",
"files_changed": [
"src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"src/tools/video-editor/components/PropertiesPanel/ClipPanel.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"sed -n '1,320p' src/tools/video-editor/components/PropertiesPanel/ClipPanel.tsx",
"rg -n "onChangeDeep|meta\.entrance\?\.duration|meta\.exit\?\.duration|meta\.continuous\?\.intensity|CustomEffectEditor|MIXED_SELECT_VALUE" src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T5",
"description": "Update PropertiesPanel component (PropertiesPanel.tsx:150-257) to compute and pass all bulk props. Expand shared-value computation (lines 188-191) for all fields needed by BulkClipPanel using getSharedValue for scalars and getSharedNestedValue for entrance/exit/continuous/text. Compute bulkVisibleTabs via getBulkVisibleTabs(bulkSelectedClips, data.resolvedConfig?.tracks ?? []). Wire: onChange \u2192 handleUpdateClips(selectedClipIdsList, patch), onChangeDeep \u2192 handleUpdateClipsDeep(selectedClipIdsList, patchFn), onResetPosition \u2192 handleResetClipsPosition(selectedClipIdsList), onToggleMute \u2192 handleToggleMuteClips(selectedClipIdsList). Pass activeTab, setActiveTab, compositionSize.width, compositionSize.height. Add handleUpdateClipsDeep and handleResetClipsPosition to the destructured context values from useTimelineEditorContext().",
"depends_on": [
"T1",
"T2",
"T3",
"T4"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T6",
"description": "Enable arrow-key track movement for multi-select. (1) In useTimelineTrackManagement.ts, add moveSelectedClipsToTrack(direction, selectedClipIds: ReadonlySet<string>): groups all selected clips by current row, for each group finds target track of same kind one step in direction (same traversal as moveSelectedClipToTrack at line 135-165), if ANY group can't find a valid target the entire operation is a no-op (atomic). If selection spans track kinds (visual + audio), each kind-group moves independently within its kind. Calls moveClipToRow for each clip. Export from result interface. (2) Wire through useTimelineState.ts and useTimelineState.types.ts. (3) In VideoEditorShell.tsx:50, change canMoveSelectedClipToTrack: editor.selectedClipIds.size === 1 to editor.selectedClipIds.size >= 1. (4) In useKeyboardShortcuts.ts, update moveSelectedClipToTrack call to use the new multi-clip function passing the full selection set.",
"depends_on": [],
"status": "done",
"executor_notes": "Implemented moveSelectedClipsToTrack with per-kind planning and blocking, exposed it through timeline state/context, and updated keyboard handling so arrow-key track moves operate on the full selection.",
"files_changed": [
"src/tools/video-editor/hooks/useTimelineTrackManagement.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts",
"src/tools/video-editor/hooks/useKeyboardShortcuts.ts",
"src/tools/video-editor/components/VideoEditorShell.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useTimelineTrackManagement.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useKeyboardShortcuts.ts",
"sed -n '1,220p' src/tools/video-editor/components/VideoEditorShell.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T7",
"description": "Add 'Split at Playhead' to batch context menu. (1) In useClipEditing.ts, add handleSplitClipsAtPlayhead(clipIds: string[]) \u2014 iterates over all clip IDs, for each clip that intersects the current playhead time (checked via finding the action in rows where action.start <= currentTime < action.end), calls splitClipAtPlayhead. Clips not intersecting are silently skipped. (2) Export from UseClipEditingResult, wire through useTimelineState.ts and useTimelineState.types.ts. (3) In ClipAction.tsx, add onSplitClipsAtPlayhead?: (clipIds: string[]) => void to ClipActionProps. Add a 'Split {N} clips at playhead' menu item with Scissors icon in the batch context menu section (after the mute item at line 156-168, before the delete item). (4) Wire the handler through wherever ClipAction is instantiated (TimelineEditor.tsx).",
"depends_on": [],
"status": "done",
"executor_notes": "Added handleSplitClipsAtPlayhead with silent skipping for non-intersecting clips, wired it through the editor context, and added the batch context-menu action in ClipAction/TimelineEditor.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts",
"src/tools/video-editor/components/TimelineEditor/ClipAction.tsx",
"src/tools/video-editor/components/TimelineEditor/TimelineEditor.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,260p' src/tools/video-editor/components/TimelineEditor/ClipAction.tsx",
"sed -n '1,260p' src/tools/video-editor/components/TimelineEditor/TimelineEditor.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T8",
"description": "TypeScript compilation check. Run npx tsc --noEmit and fix any type errors from the expanded interfaces and new handler signatures across all changed files.",
"depends_on": [
"T1",
"T2",
"T3",
"T4",
"T5",
"T6",
"T7"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T9",
"description": "Manual testing checklist. (1) Select 2+ video clips on visual tracks \u2192 verify Effects, Timing, Position, Audio tabs appear. Edit entrance effect \u2192 confirm each clip keeps its own duration. Edit opacity \u2192 confirm all update. (2) Select mixed types (video + text) \u2192 verify Text tab hidden, Position and Audio tabs shown. (3) Select 2+ text clips \u2192 verify Text tab shown, Position tab shown (DECISION-006), font size edit preserves each clip's content. (4) Arrow up/down with multi-select \u2192 verify all clips move together, no-op if any clip in a kind-group is blocked. (5) Right-click multi-select \u2192 verify 'Split at Playhead' appears and works (splits intersecting clips only). (6) Verify mixed-value display shows 'Mixed' placeholder correctly for all field types.",
"depends_on": [
"T8"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
}
],
"watch_items": [
"[CRITICAL] Shallow merge in applyTimelineEdit (useTimelineSave.ts:236-237): { ...existingMeta, ...patch } overwrites nested objects. All nested-field bulk edits (entrance, exit, continuous, text) MUST use handleUpdateClipsDeep with the patch factory pattern, never handleUpdateClips with a static patch containing nested objects.",
"[DECISION-006] Position tab must be shown for ALL visual-track clips including text. The plan's Step 1.4 incorrectly says 'non-text on a visual track' \u2014 this must be corrected to 'any clip on a visual track'. Reference: ClipPanel.tsx:41-42 returns position for text clips.",
"[DEBT] bulk-panel-tabs: Ensure text clip multi-selections get the Position tab. This was flagged as existing debt \u2014 the implementation must not make it worse.",
"[DEBT] properties-panel-scope: Crop and transition controls are deliberately out of scope (DECISION-001). Do not attempt to add them.",
"[DEBT] context-menu-scope: Copy/paste is deliberately out of scope (DECISION-002). No existing infrastructure to extend.",
"[SCOPE] Bulk Source In/Out: These are scalar fields that apply the same value to all clips. This is potentially useful (e.g., 'trim all to start at 2s') but could surprise users. Include them but note in the UI that the value applies to all clips.",
"[SCOPE] Arrow-key cross-kind movement: When selection spans track kinds (visual + audio), each kind-group should move independently. Block only if a kind-group has no valid target, not the entire operation.",
"[SCOPE] Undo criterion from success criteria is aspirational \u2014 this codebase has no undo/redo system. The patch factory approach preserves data correctly so undo would work if/when implemented, but cannot be tested now.",
"[WIRING] New handlers (handleUpdateClipsDeep, handleResetClipsPosition, handleSplitClipsAtPlayhead, moveSelectedClipsToTrack) must be wired through 3 layers: useClipEditing \u2192 useTimelineState \u2192 useTimelineState.types (TimelineEditorContextValue interface). Missing any layer causes a silent context value omission.",
"[PATTERN] BulkClipPanel should reuse the same shadcn components (Select, Input, Slider, Tabs, Button) and the same NO_EFFECT sentinel, TAB_COLUMNS_CLASS, and FieldLabel component from ClipPanel.tsx. Consider extracting shared pieces if duplication exceeds ~20 lines."
],
"sense_checks": [
{
"id": "SC1",
"task_id": "T1",
"question": "Does getBulkVisibleTabs show Position tab for an all-text multi-selection (matching getVisibleClipTabs which returns 'position' for text clips)?",
"executor_note": "getBulkVisibleTabs adds position whenever any selected clip is on a visual track, so an all-text visual multi-selection still shows the Position tab.",
"verdict": ""
},
{
"id": "SC2",
"task_id": "T2",
"question": "Does handleUpdateClipsDeep produce per-clip metaUpdates entries (not a single shared patch) so applyTimelineEdit's shallow merge doesn't destroy clip-specific nested data?",
"executor_note": "handleUpdateClipsDeep builds a distinct metaUpdates entry for each valid clip ID from current.meta[clipId] before calling applyTimelineEdit, so nested bulk patches are per clip rather than shared.",
"verdict": ""
},
{
"id": "SC3",
"task_id": "T3",
"question": "Does handleResetClipsPosition set all 8 position/crop fields to undefined for each clip, matching the single-clip handleResetClipPosition at useClipEditing.ts:171-181?",
"executor_note": "handleResetClipsPosition sets x, y, width, height, cropTop, cropBottom, cropLeft, and cropRight to undefined for each valid selected clip.",
"verdict": ""
},
{
"id": "SC4",
"task_id": "T4",
"question": "Do all effect selects (entrance/exit/continuous) in BulkClipPanel use onChangeDeep (not onChange), and does each patch factory reference meta.entrance?.duration / meta.exit?.duration / meta.continuous?.intensity to preserve per-clip sub-fields?",
"executor_note": "All bulk effect selects use onChangeDeep, and each patch factory preserves per-clip nested fields through meta.entrance?.duration, meta.exit?.duration, or meta.continuous?.intensity; the shared custom-effect editor uses the same deep-patch pattern.",
"verdict": ""
},
{
"id": "SC5",
"task_id": "T5",
"question": "Are handleUpdateClipsDeep and handleResetClipsPosition both destructured from useTimelineEditorContext() and wired to BulkClipPanel's onChangeDeep and onResetPosition props?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC6",
"task_id": "T6",
"question": "Is the multi-clip track movement atomic per kind-group (if any visual clip can't move up, no visual clips move, but audio clips can still move independently)?",
"executor_note": "moveSelectedClipsToTrack computes target rows per source-row group and only executes a kind-group when every group in that kind has a valid adjacent track; visual and audio selections are evaluated independently.",
"verdict": ""
},
{
"id": "SC7",
"task_id": "T7",
"question": "Does handleSplitClipsAtPlayhead correctly handle the case where some selected clips don't intersect the playhead (should skip silently, not error)?",
"executor_note": "handleSplitClipsAtPlayhead first checks which selected clips intersect the current playhead via the current row actions and silently skips any selected clips that do not intersect.",
"verdict": ""
},
{
"id": "SC8",
"task_id": "T8",
"question": "Does npx tsc --noEmit pass with zero errors after all changes?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC9",
"task_id": "T9",
"question": "When editing entrance effect type in bulk mode, does each clip retain its individual entrance.duration value (not reset to the 0.4 default)?",
"executor_note": "",
"verdict": ""
}
],
"meta_commentary": "Execution guidance:\n\nParallelism: T1, T2, T3, T6, T7 are independent \u2014 execute in parallel. T4 depends on T1-T3 (needs the utility types and handler signatures). T5 depends on T4 (passes computed props to the new BulkClipPanel). T8-T9 are sequential validation after all code.\n\nThe shallow-merge bug is the #1 correctness risk. The entire plan's architecture revolves around the patch factory pattern in T2. When reviewing T4, verify that EVERY nested-field edit (entrance, exit, continuous, text fontSize, text color) goes through onChangeDeep, not onChange. Scalar fields (opacity, speed, volume, x, y, width, height, from, to) are safe to use onChange.\n\nTab visibility correction (DECISION-006): The plan's Step 1.4 says Position is shown "if ANY selected clip is non-text on a visual track." This is WRONG per the gate warning. ClipPanel.tsx:41-42 shows Position for text clips too. The correct rule for getBulkVisibleTabs is: Position shown if ANY clip is on a visual track (regardless of clipType). The executor MUST correct this.\n\nUnresolved design decisions made here:\n- Cross-kind arrow movement: Each kind-group moves independently (not all-or-nothing across kinds). This is more useful than blocking the entire operation when a mixed selection can't fully move.\n- Bulk Source In/Out: Included as scalar fields. Applying the same source trim to all clips is a valid use case (e.g., skip first 2 seconds of all clips).\n\nWhat NOT to build: Crop controls (in OverlayEditor), transition controls (don't exist anywhere), copy/paste (no infrastructure), undo/redo (no system), start time bulk edit (destructive stacking).\n\nExtracting shared code: FieldLabel and NO_EFFECT/TAB_COLUMNS_CLASS from ClipPanel.tsx will be needed by BulkClipPanel. Either extract to a shared file or co-locate in PropertiesPanel.tsx. Don't duplicate the effect type arrays \u2014 import from effects.ts.\n\nWiring checklist for new handlers: Each new handler must appear in: (1) useClipEditing.ts return object, (2) UseClipEditingResult interface, (3) useTimelineState.ts editor useMemo, (4) useTimelineState.ts useMemo deps array, (5) TimelineEditorContextValue in useTimelineState.types.ts. Missing any of these 5 causes a silent failure where the handler is undefined at runtime."
}
code
Debt watch items (do not make these worse):
[DEBT] agent-chat-rendering: removing the duplicate assistant turn may hide message_user text if the frontend only renders assistant-role turns as chat bubbles. (flagged 1 times across 1 plans)
[DEBT] bulk-panel-tabs: text clip multi-selections would miss the position tab under the plan's stated rule. (flagged 1 times across 1 plans)
[DEBT] conflict-resolution: silently reloading agent-originated timeline updates would discard dirty local edits. (flagged 1 times across 1 plans)
[DEBT] context-menu-scope: multi-clip copy is not included despite being mentioned in the original idea. (flagged 1 times across 1 plans)
[DEBT] issue-detection: mid-sentence-cut detection is not implementable without transcript/profile data that the current provider doesn't expose. (flagged 1 times across 1 plans)
[DEBT] optimistic-locking: plan only specifies version checking at the db write layer; the ui load/state/save path doesn't carry config_version yet. (flagged 1 times across 1 plans)
[DEBT] properties-panel-scope: crop and transition controls are not included in the bulk panel, narrowing the original idea's scope. (flagged 1 times across 1 plans)
[DEBT] realtime-subscriptions: the shared realtime system doesn't know about timeline_agent_sessions; step 7 hooks need their own channel subscription. (flagged 1 times across 1 plans)
[DEBT] selection-save-bridge: the plan specifies passing pruneselection into usetimelinesave but doesn't detail the hook-layer bridge needed because usetimelinesave is instantiated inside usetimelinedata before usetimelinestate runs. (flagged 1 times across 1 plans)
[DEBT] task-deduplication: server-generated idempotency keys would break retry deduplication because retried requests get fresh keys. (flagged 1 times across 1 plans)
[DEBT] task-system-integration: create_generation_task is underspecified against the actual task family system. (flagged 1 times across 1 plans)
[DEBT] tool-error-propagation: a blanket catch in executetool would silently downgrade db/persistence failures into ordinary tool results, changing the session error/http 500 behavior. (flagged 1 times across 1 plans)
code
Note: User explicitly approved this plan at the gate checkpoint.
Robustness level: standard.
Requirements:
- Execute only the actionable tasks in this batch.
- Treat completed tasks as dependency context, not new work.
- Return structured JSON only.
- Only produce `task_updates` for these tasks: [T5]
- Only produce `sense_check_acknowledgments` for these sense checks: [SC5]
- Do not include updates for tasks or sense checks outside this batch.
- Keep `executor_notes` verification-focused.
- Best-effort progress checkpointing: if `/Users/user_c042661f/Documents/reigh-workspace/reigh-app/.megaplan/plans/multi-select-feature-parity-20260326-0548/execution_batch_3.json` is writable, checkpoint task and sense-check updates there (not `finalize.json`). The harness owns `finalize.json`.
{
"id": "SC8",
"task_id": "T8",
"question": "Does npx tsc --noEmit pass with zero errors after all changes?",
"executor_note": "",
"verdict": ""
}
]
code
Full execution tracking source of truth (`finalize.json`):
{
"tasks": [
{
"id": "T1",
"description": "Create src/tools/video-editor/lib/bulk-utils.ts with three exports: (1) getSharedValue<T> \u2014 moved from PropertiesPanel.tsx:12-19, compares by strict equality, returns shared value or null. (2) getSharedNestedValue<T>(clips, accessor) \u2014 compares nested objects by their type field (for effects) or JSON.stringify (for text), returns shared value or null. (3) getBulkVisibleTabs(clips, tracks): ClipTab[] \u2014 mirrors getVisibleClipTabs (ClipPanel.tsx:37-49): Effects always shown, Timing always shown, Position shown if ANY clip is on a visual track (including text clips \u2014 per DECISION-006 correcting the plan's original rule), Audio shown if ANY clip is non-text, Text shown only if ALL clips are text type. Replace the inline getSharedValue in PropertiesPanel.tsx with the import.",
"depends_on": [],
"status": "done",
"executor_notes": "Added shared bulk helpers in bulk-utils.ts, replaced the inline PropertiesPanel helper import, and verified the new tab helper keeps position visible for visual-track selections including text clips.",
"files_changed": [
"src/tools/video-editor/lib/bulk-utils.ts",
"src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx"
],
"commands_run": [
"sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T2",
"description": "Add handleUpdateClipsDeep(clipIds: string[], patchFn: (existing: ClipMeta) => Partial<ClipMeta>) to useClipEditing.ts. This takes a patch factory that receives each clip's current meta from dataRef.current.meta[id], builds per-clip patches preserving nested sub-fields, then calls applyTimelineEdit(current.rows, metaUpdates). Uses the existing getValidClipIds helper. Export from UseClipEditingResult interface. Wire through useTimelineState.ts (add to clipEditing usage at ~line 186, expose in editor useMemo at ~line 207) and useTimelineState.types.ts (add handleUpdateClipsDeep: ClipEditingHook['handleUpdateClipsDeep'] to TimelineEditorContextValue).",
"depends_on": [],
"status": "done",
"executor_notes": "Added handleUpdateClipsDeep with per-clip patch generation from current.meta[clipId], then exposed it through useTimelineState and useTimelineState.types so nested bulk patches are not shared across clips.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,380p' src/tools/video-editor/hooks/useTimelineState.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useTimelineState.types.ts",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T3",
"description": "Add handleResetClipsPosition(clipIds: string[]) to useClipEditing.ts. Loops over valid clip IDs, building per-clip patches that clear x/y/width/height/cropTop/cropBottom/cropLeft/cropRight (same fields as handleResetClipPosition at line 166-183, but using applyTimelineEdit with a metaUpdates record instead of applyResolvedConfigEdit). Export from UseClipEditingResult, wire through useTimelineState.ts and useTimelineState.types.ts same as T2.",
"depends_on": [],
"status": "done",
"executor_notes": "Added handleResetClipsPosition to clear the same eight position/crop fields as the single-clip reset path for every valid selected clip, and wired it through the editor context types/state.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,380p' src/tools/video-editor/hooks/useTimelineState.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useTimelineState.types.ts",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T4",
"description": "Rewrite BulkClipPanel in PropertiesPanel.tsx with tabbed structure matching ClipPanel. Props: clips (ResolvedTimelineClip[]), visibleTabs, compositionWidth/Height, onChange (scalar), onChangeDeep (patch factory), onResetPosition, onToggleMute, onClose, activeTab, setActiveTab. Tabs: Effects \u2014 entrance/exit/continuous selects using onChangeDeep so each clip preserves its own duration/intensity (pattern: onChangeDeep((meta) => ({ entrance: value === NO_EFFECT ? undefined : { type: value, duration: meta.entrance?.duration ?? 0.4 } }))). Custom effect editor shown only when all clips share the same custom effect slug. Timing \u2014 speed (scalar onChange), Source In/Out (scalar onChange). Start time excluded (DECISION-003). Position \u2014 X/Y/Width/Height inputs (scalar onChange), Opacity slider (scalar onChange), Reset Position button (onResetPosition). Audio \u2014 Volume slider (scalar onChange), Toggle Mute button (onToggleMute). Text (only when ALL clips are text) \u2014 fontSize and color using onChangeDeep to preserve each clip's content. Text content excluded (DECISION-004). Header shows '{N} clips selected' with close button. Tab bar uses visibleTabs for column count. Mixed values show 'Mixed' placeholder on inputs, disabled select option for selects.",
"depends_on": [
"T1",
"T2",
"T3"
],
"status": "done",
"executor_notes": "Rebuilt BulkClipPanel into a tabbed bulk editor matching the single-clip structure, with mixed-value placeholders, bulk timing/position/audio/text controls, shared custom-effect gating, and deep-patch handling for nested effect/text edits verified by TypeScript.",
"files_changed": [
"src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"src/tools/video-editor/components/PropertiesPanel/ClipPanel.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"sed -n '1,320p' src/tools/video-editor/components/PropertiesPanel/ClipPanel.tsx",
"rg -n "onChangeDeep|meta\.entrance\?\.duration|meta\.exit\?\.duration|meta\.continuous\?\.intensity|CustomEffectEditor|MIXED_SELECT_VALUE" src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T5",
"description": "Update PropertiesPanel component (PropertiesPanel.tsx:150-257) to compute and pass all bulk props. Expand shared-value computation (lines 188-191) for all fields needed by BulkClipPanel using getSharedValue for scalars and getSharedNestedValue for entrance/exit/continuous/text. Compute bulkVisibleTabs via getBulkVisibleTabs(bulkSelectedClips, data.resolvedConfig?.tracks ?? []). Wire: onChange \u2192 handleUpdateClips(selectedClipIdsList, patch), onChangeDeep \u2192 handleUpdateClipsDeep(selectedClipIdsList, patchFn), onResetPosition \u2192 handleResetClipsPosition(selectedClipIdsList), onToggleMute \u2192 handleToggleMuteClips(selectedClipIdsList). Pass activeTab, setActiveTab, compositionSize.width, compositionSize.height. Add handleUpdateClipsDeep and handleResetClipsPosition to the destructured context values from useTimelineEditorContext().",
"depends_on": [
"T1",
"T2",
"T3",
"T4"
],
"status": "done",
"executor_notes": "Moved bulk shared-value derivation into PropertiesPanel using getSharedValue for scalar fields and getSharedNestedValue for entrance/exit/continuous/text, then passed the resolved values and handlers into BulkClipPanel; TypeScript verification passes.",
"files_changed": [
"src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx"
],
"commands_run": [
"sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"sed -n '1,320p' src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx",
"rg -n "handleUpdateClipsDeep|handleResetClipsPosition|onChangeDeep=|onResetPosition=|getSharedNestedValue|getSharedValue|getBulkVisibleTabs" src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T6",
"description": "Enable arrow-key track movement for multi-select. (1) In useTimelineTrackManagement.ts, add moveSelectedClipsToTrack(direction, selectedClipIds: ReadonlySet<string>): groups all selected clips by current row, for each group finds target track of same kind one step in direction (same traversal as moveSelectedClipToTrack at line 135-165), if ANY group can't find a valid target the entire operation is a no-op (atomic). If selection spans track kinds (visual + audio), each kind-group moves independently within its kind. Calls moveClipToRow for each clip. Export from result interface. (2) Wire through useTimelineState.ts and useTimelineState.types.ts. (3) In VideoEditorShell.tsx:50, change canMoveSelectedClipToTrack: editor.selectedClipIds.size === 1 to editor.selectedClipIds.size >= 1. (4) In useKeyboardShortcuts.ts, update moveSelectedClipToTrack call to use the new multi-clip function passing the full selection set.",
"depends_on": [],
"status": "done",
"executor_notes": "Implemented moveSelectedClipsToTrack with per-kind planning and blocking, exposed it through timeline state/context, and updated keyboard handling so arrow-key track moves operate on the full selection.",
"files_changed": [
"src/tools/video-editor/hooks/useTimelineTrackManagement.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts",
"src/tools/video-editor/hooks/useKeyboardShortcuts.ts",
"src/tools/video-editor/components/VideoEditorShell.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useTimelineTrackManagement.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useKeyboardShortcuts.ts",
"sed -n '1,220p' src/tools/video-editor/components/VideoEditorShell.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T7",
"description": "Add 'Split at Playhead' to batch context menu. (1) In useClipEditing.ts, add handleSplitClipsAtPlayhead(clipIds: string[]) \u2014 iterates over all clip IDs, for each clip that intersects the current playhead time (checked via finding the action in rows where action.start <= currentTime < action.end), calls splitClipAtPlayhead. Clips not intersecting are silently skipped. (2) Export from UseClipEditingResult, wire through useTimelineState.ts and useTimelineState.types.ts. (3) In ClipAction.tsx, add onSplitClipsAtPlayhead?: (clipIds: string[]) => void to ClipActionProps. Add a 'Split {N} clips at playhead' menu item with Scissors icon in the batch context menu section (after the mute item at line 156-168, before the delete item). (4) Wire the handler through wherever ClipAction is instantiated (TimelineEditor.tsx).",
"depends_on": [],
"status": "done",
"executor_notes": "Added handleSplitClipsAtPlayhead with silent skipping for non-intersecting clips, wired it through the editor context, and added the batch context-menu action in ClipAction/TimelineEditor.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts",
"src/tools/video-editor/components/TimelineEditor/ClipAction.tsx",
"src/tools/video-editor/components/TimelineEditor/TimelineEditor.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,260p' src/tools/video-editor/components/TimelineEditor/ClipAction.tsx",
"sed -n '1,260p' src/tools/video-editor/components/TimelineEditor/TimelineEditor.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T8",
"description": "TypeScript compilation check. Run npx tsc --noEmit and fix any type errors from the expanded interfaces and new handler signatures across all changed files.",
"depends_on": [
"T1",
"T2",
"T3",
"T4",
"T5",
"T6",
"T7"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T9",
"description": "Manual testing checklist. (1) Select 2+ video clips on visual tracks \u2192 verify Effects, Timing, Position, Audio tabs appear. Edit entrance effect \u2192 confirm each clip keeps its own duration. Edit opacity \u2192 confirm all update. (2) Select mixed types (video + text) \u2192 verify Text tab hidden, Position and Audio tabs shown. (3) Select 2+ text clips \u2192 verify Text tab shown, Position tab shown (DECISION-006), font size edit preserves each clip's content. (4) Arrow up/down with multi-select \u2192 verify all clips move together, no-op if any clip in a kind-group is blocked. (5) Right-click multi-select \u2192 verify 'Split at Playhead' appears and works (splits intersecting clips only). (6) Verify mixed-value display shows 'Mixed' placeholder correctly for all field types.",
"depends_on": [
"T8"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
}
],
"watch_items": [
"[CRITICAL] Shallow merge in applyTimelineEdit (useTimelineSave.ts:236-237): { ...existingMeta, ...patch } overwrites nested objects. All nested-field bulk edits (entrance, exit, continuous, text) MUST use handleUpdateClipsDeep with the patch factory pattern, never handleUpdateClips with a static patch containing nested objects.",
"[DECISION-006] Position tab must be shown for ALL visual-track clips including text. The plan's Step 1.4 incorrectly says 'non-text on a visual track' \u2014 this must be corrected to 'any clip on a visual track'. Reference: ClipPanel.tsx:41-42 returns position for text clips.",
"[DEBT] bulk-panel-tabs: Ensure text clip multi-selections get the Position tab. This was flagged as existing debt \u2014 the implementation must not make it worse.",
"[DEBT] properties-panel-scope: Crop and transition controls are deliberately out of scope (DECISION-001). Do not attempt to add them.",
"[DEBT] context-menu-scope: Copy/paste is deliberately out of scope (DECISION-002). No existing infrastructure to extend.",
"[SCOPE] Bulk Source In/Out: These are scalar fields that apply the same value to all clips. This is potentially useful (e.g., 'trim all to start at 2s') but could surprise users. Include them but note in the UI that the value applies to all clips.",
"[SCOPE] Arrow-key cross-kind movement: When selection spans track kinds (visual + audio), each kind-group should move independently. Block only if a kind-group has no valid target, not the entire operation.",
"[SCOPE] Undo criterion from success criteria is aspirational \u2014 this codebase has no undo/redo system. The patch factory approach preserves data correctly so undo would work if/when implemented, but cannot be tested now.",
"[WIRING] New handlers (handleUpdateClipsDeep, handleResetClipsPosition, handleSplitClipsAtPlayhead, moveSelectedClipsToTrack) must be wired through 3 layers: useClipEditing \u2192 useTimelineState \u2192 useTimelineState.types (TimelineEditorContextValue interface). Missing any layer causes a silent context value omission.",
"[PATTERN] BulkClipPanel should reuse the same shadcn components (Select, Input, Slider, Tabs, Button) and the same NO_EFFECT sentinel, TAB_COLUMNS_CLASS, and FieldLabel component from ClipPanel.tsx. Consider extracting shared pieces if duplication exceeds ~20 lines."
],
"sense_checks": [
{
"id": "SC1",
"task_id": "T1",
"question": "Does getBulkVisibleTabs show Position tab for an all-text multi-selection (matching getVisibleClipTabs which returns 'position' for text clips)?",
"executor_note": "getBulkVisibleTabs adds position whenever any selected clip is on a visual track, so an all-text visual multi-selection still shows the Position tab.",
"verdict": ""
},
{
"id": "SC2",
"task_id": "T2",
"question": "Does handleUpdateClipsDeep produce per-clip metaUpdates entries (not a single shared patch) so applyTimelineEdit's shallow merge doesn't destroy clip-specific nested data?",
"executor_note": "handleUpdateClipsDeep builds a distinct metaUpdates entry for each valid clip ID from current.meta[clipId] before calling applyTimelineEdit, so nested bulk patches are per clip rather than shared.",
"verdict": ""
},
{
"id": "SC3",
"task_id": "T3",
"question": "Does handleResetClipsPosition set all 8 position/crop fields to undefined for each clip, matching the single-clip handleResetClipPosition at useClipEditing.ts:171-181?",
"executor_note": "handleResetClipsPosition sets x, y, width, height, cropTop, cropBottom, cropLeft, and cropRight to undefined for each valid selected clip.",
"verdict": ""
},
{
"id": "SC4",
"task_id": "T4",
"question": "Do all effect selects (entrance/exit/continuous) in BulkClipPanel use onChangeDeep (not onChange), and does each patch factory reference meta.entrance?.duration / meta.exit?.duration / meta.continuous?.intensity to preserve per-clip sub-fields?",
"executor_note": "All bulk effect selects use onChangeDeep, and each patch factory preserves per-clip nested fields through meta.entrance?.duration, meta.exit?.duration, or meta.continuous?.intensity; the shared custom-effect editor uses the same deep-patch pattern.",
"verdict": ""
},
{
"id": "SC5",
"task_id": "T5",
"question": "Are handleUpdateClipsDeep and handleResetClipsPosition both destructured from useTimelineEditorContext() and wired to BulkClipPanel's onChangeDeep and onResetPosition props?",
"executor_note": "PropertiesPanel now destructures both handleUpdateClipsDeep and handleResetClipsPosition from useTimelineEditorContext() and wires them into BulkClipPanel as onChangeDeep and onResetPosition.",
"verdict": ""
},
{
"id": "SC6",
"task_id": "T6",
"question": "Is the multi-clip track movement atomic per kind-group (if any visual clip can't move up, no visual clips move, but audio clips can still move independently)?",
"executor_note": "moveSelectedClipsToTrack computes target rows per source-row group and only executes a kind-group when every group in that kind has a valid adjacent track; visual and audio selections are evaluated independently.",
"verdict": ""
},
{
"id": "SC7",
"task_id": "T7",
"question": "Does handleSplitClipsAtPlayhead correctly handle the case where some selected clips don't intersect the playhead (should skip silently, not error)?",
"executor_note": "handleSplitClipsAtPlayhead first checks which selected clips intersect the current playhead via the current row actions and silently skips any selected clips that do not intersect.",
"verdict": ""
},
{
"id": "SC8",
"task_id": "T8",
"question": "Does npx tsc --noEmit pass with zero errors after all changes?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC9",
"task_id": "T9",
"question": "When editing entrance effect type in bulk mode, does each clip retain its individual entrance.duration value (not reset to the 0.4 default)?",
"executor_note": "",
"verdict": ""
}
],
"meta_commentary": "Execution guidance:\n\nParallelism: T1, T2, T3, T6, T7 are independent \u2014 execute in parallel. T4 depends on T1-T3 (needs the utility types and handler signatures). T5 depends on T4 (passes computed props to the new BulkClipPanel). T8-T9 are sequential validation after all code.\n\nThe shallow-merge bug is the #1 correctness risk. The entire plan's architecture revolves around the patch factory pattern in T2. When reviewing T4, verify that EVERY nested-field edit (entrance, exit, continuous, text fontSize, text color) goes through onChangeDeep, not onChange. Scalar fields (opacity, speed, volume, x, y, width, height, from, to) are safe to use onChange.\n\nTab visibility correction (DECISION-006): The plan's Step 1.4 says Position is shown "if ANY selected clip is non-text on a visual track." This is WRONG per the gate warning. ClipPanel.tsx:41-42 shows Position for text clips too. The correct rule for getBulkVisibleTabs is: Position shown if ANY clip is on a visual track (regardless of clipType). The executor MUST correct this.\n\nUnresolved design decisions made here:\n- Cross-kind arrow movement: Each kind-group moves independently (not all-or-nothing across kinds). This is more useful than blocking the entire operation when a mixed selection can't fully move.\n- Bulk Source In/Out: Included as scalar fields. Applying the same source trim to all clips is a valid use case (e.g., skip first 2 seconds of all clips).\n\nWhat NOT to build: Crop controls (in OverlayEditor), transition controls (don't exist anywhere), copy/paste (no infrastructure), undo/redo (no system), start time bulk edit (destructive stacking).\n\nExtracting shared code: FieldLabel and NO_EFFECT/TAB_COLUMNS_CLASS from ClipPanel.tsx will be needed by BulkClipPanel. Either extract to a shared file or co-locate in PropertiesPanel.tsx. Don't duplicate the effect type arrays \u2014 import from effects.ts.\n\nWiring checklist for new handlers: Each new handler must appear in: (1) useClipEditing.ts return object, (2) UseClipEditingResult interface, (3) useTimelineState.ts editor useMemo, (4) useTimelineState.ts useMemo deps array, (5) TimelineEditorContextValue in useTimelineState.types.ts. Missing any of these 5 causes a silent failure where the handler is undefined at runtime."
}
code
Debt watch items (do not make these worse):
[DEBT] agent-chat-rendering: removing the duplicate assistant turn may hide message_user text if the frontend only renders assistant-role turns as chat bubbles. (flagged 1 times across 1 plans)
[DEBT] bulk-panel-tabs: text clip multi-selections would miss the position tab under the plan's stated rule. (flagged 1 times across 1 plans)
[DEBT] conflict-resolution: silently reloading agent-originated timeline updates would discard dirty local edits. (flagged 1 times across 1 plans)
[DEBT] context-menu-scope: multi-clip copy is not included despite being mentioned in the original idea. (flagged 1 times across 1 plans)
[DEBT] issue-detection: mid-sentence-cut detection is not implementable without transcript/profile data that the current provider doesn't expose. (flagged 1 times across 1 plans)
[DEBT] optimistic-locking: plan only specifies version checking at the db write layer; the ui load/state/save path doesn't carry config_version yet. (flagged 1 times across 1 plans)
[DEBT] properties-panel-scope: crop and transition controls are not included in the bulk panel, narrowing the original idea's scope. (flagged 1 times across 1 plans)
[DEBT] realtime-subscriptions: the shared realtime system doesn't know about timeline_agent_sessions; step 7 hooks need their own channel subscription. (flagged 1 times across 1 plans)
[DEBT] selection-save-bridge: the plan specifies passing pruneselection into usetimelinesave but doesn't detail the hook-layer bridge needed because usetimelinesave is instantiated inside usetimelinedata before usetimelinestate runs. (flagged 1 times across 1 plans)
[DEBT] task-deduplication: server-generated idempotency keys would break retry deduplication because retried requests get fresh keys. (flagged 1 times across 1 plans)
[DEBT] task-system-integration: create_generation_task is underspecified against the actual task family system. (flagged 1 times across 1 plans)
[DEBT] tool-error-propagation: a blanket catch in executetool would silently downgrade db/persistence failures into ordinary tool results, changing the session error/http 500 behavior. (flagged 1 times across 1 plans)
code
Note: User explicitly approved this plan at the gate checkpoint.
Robustness level: standard.
Requirements:
- Execute only the actionable tasks in this batch.
- Treat completed tasks as dependency context, not new work.
- Return structured JSON only.
- Only produce `task_updates` for these tasks: [T8]
- Only produce `sense_check_acknowledgments` for these sense checks: [SC8]
- Do not include updates for tasks or sense checks outside this batch.
- Keep `executor_notes` verification-focused.
- Best-effort progress checkpointing: if `/Users/user_c042661f/Documents/reigh-workspace/reigh-app/.megaplan/plans/multi-select-feature-parity-20260326-0548/execution_batch_4.json` is writable, checkpoint task and sense-check updates there (not `finalize.json`). The harness owns `finalize.json`.
{
"id": "SC9",
"task_id": "T9",
"question": "When editing entrance effect type in bulk mode, does each clip retain its individual entrance.duration value (not reset to the 0.4 default)?",
"executor_note": "",
"verdict": ""
}
]
code
Full execution tracking source of truth (`finalize.json`):
{
"tasks": [
{
"id": "T1",
"description": "Create src/tools/video-editor/lib/bulk-utils.ts with three exports: (1) getSharedValue<T> \u2014 moved from PropertiesPanel.tsx:12-19, compares by strict equality, returns shared value or null. (2) getSharedNestedValue<T>(clips, accessor) \u2014 compares nested objects by their type field (for effects) or JSON.stringify (for text), returns shared value or null. (3) getBulkVisibleTabs(clips, tracks): ClipTab[] \u2014 mirrors getVisibleClipTabs (ClipPanel.tsx:37-49): Effects always shown, Timing always shown, Position shown if ANY clip is on a visual track (including text clips \u2014 per DECISION-006 correcting the plan's original rule), Audio shown if ANY clip is non-text, Text shown only if ALL clips are text type. Replace the inline getSharedValue in PropertiesPanel.tsx with the import.",
"depends_on": [],
"status": "done",
"executor_notes": "Added shared bulk helpers in bulk-utils.ts, replaced the inline PropertiesPanel helper import, and verified the new tab helper keeps position visible for visual-track selections including text clips.",
"files_changed": [
"src/tools/video-editor/lib/bulk-utils.ts",
"src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx"
],
"commands_run": [
"sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T2",
"description": "Add handleUpdateClipsDeep(clipIds: string[], patchFn: (existing: ClipMeta) => Partial<ClipMeta>) to useClipEditing.ts. This takes a patch factory that receives each clip's current meta from dataRef.current.meta[id], builds per-clip patches preserving nested sub-fields, then calls applyTimelineEdit(current.rows, metaUpdates). Uses the existing getValidClipIds helper. Export from UseClipEditingResult interface. Wire through useTimelineState.ts (add to clipEditing usage at ~line 186, expose in editor useMemo at ~line 207) and useTimelineState.types.ts (add handleUpdateClipsDeep: ClipEditingHook['handleUpdateClipsDeep'] to TimelineEditorContextValue).",
"depends_on": [],
"status": "done",
"executor_notes": "Added handleUpdateClipsDeep with per-clip patch generation from current.meta[clipId], then exposed it through useTimelineState and useTimelineState.types so nested bulk patches are not shared across clips.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,380p' src/tools/video-editor/hooks/useTimelineState.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useTimelineState.types.ts",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T3",
"description": "Add handleResetClipsPosition(clipIds: string[]) to useClipEditing.ts. Loops over valid clip IDs, building per-clip patches that clear x/y/width/height/cropTop/cropBottom/cropLeft/cropRight (same fields as handleResetClipPosition at line 166-183, but using applyTimelineEdit with a metaUpdates record instead of applyResolvedConfigEdit). Export from UseClipEditingResult, wire through useTimelineState.ts and useTimelineState.types.ts same as T2.",
"depends_on": [],
"status": "done",
"executor_notes": "Added handleResetClipsPosition to clear the same eight position/crop fields as the single-clip reset path for every valid selected clip, and wired it through the editor context types/state.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,380p' src/tools/video-editor/hooks/useTimelineState.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useTimelineState.types.ts",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T4",
"description": "Rewrite BulkClipPanel in PropertiesPanel.tsx with tabbed structure matching ClipPanel. Props: clips (ResolvedTimelineClip[]), visibleTabs, compositionWidth/Height, onChange (scalar), onChangeDeep (patch factory), onResetPosition, onToggleMute, onClose, activeTab, setActiveTab. Tabs: Effects \u2014 entrance/exit/continuous selects using onChangeDeep so each clip preserves its own duration/intensity (pattern: onChangeDeep((meta) => ({ entrance: value === NO_EFFECT ? undefined : { type: value, duration: meta.entrance?.duration ?? 0.4 } }))). Custom effect editor shown only when all clips share the same custom effect slug. Timing \u2014 speed (scalar onChange), Source In/Out (scalar onChange). Start time excluded (DECISION-003). Position \u2014 X/Y/Width/Height inputs (scalar onChange), Opacity slider (scalar onChange), Reset Position button (onResetPosition). Audio \u2014 Volume slider (scalar onChange), Toggle Mute button (onToggleMute). Text (only when ALL clips are text) \u2014 fontSize and color using onChangeDeep to preserve each clip's content. Text content excluded (DECISION-004). Header shows '{N} clips selected' with close button. Tab bar uses visibleTabs for column count. Mixed values show 'Mixed' placeholder on inputs, disabled select option for selects.",
"depends_on": [
"T1",
"T2",
"T3"
],
"status": "done",
"executor_notes": "Rebuilt BulkClipPanel into a tabbed bulk editor matching the single-clip structure, with mixed-value placeholders, bulk timing/position/audio/text controls, shared custom-effect gating, and deep-patch handling for nested effect/text edits verified by TypeScript.",
"files_changed": [
"src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"src/tools/video-editor/components/PropertiesPanel/ClipPanel.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"sed -n '1,320p' src/tools/video-editor/components/PropertiesPanel/ClipPanel.tsx",
"rg -n "onChangeDeep|meta\.entrance\?\.duration|meta\.exit\?\.duration|meta\.continuous\?\.intensity|CustomEffectEditor|MIXED_SELECT_VALUE" src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T5",
"description": "Update PropertiesPanel component (PropertiesPanel.tsx:150-257) to compute and pass all bulk props. Expand shared-value computation (lines 188-191) for all fields needed by BulkClipPanel using getSharedValue for scalars and getSharedNestedValue for entrance/exit/continuous/text. Compute bulkVisibleTabs via getBulkVisibleTabs(bulkSelectedClips, data.resolvedConfig?.tracks ?? []). Wire: onChange \u2192 handleUpdateClips(selectedClipIdsList, patch), onChangeDeep \u2192 handleUpdateClipsDeep(selectedClipIdsList, patchFn), onResetPosition \u2192 handleResetClipsPosition(selectedClipIdsList), onToggleMute \u2192 handleToggleMuteClips(selectedClipIdsList). Pass activeTab, setActiveTab, compositionSize.width, compositionSize.height. Add handleUpdateClipsDeep and handleResetClipsPosition to the destructured context values from useTimelineEditorContext().",
"depends_on": [
"T1",
"T2",
"T3",
"T4"
],
"status": "done",
"executor_notes": "Moved bulk shared-value derivation into PropertiesPanel using getSharedValue for scalar fields and getSharedNestedValue for entrance/exit/continuous/text, then passed the resolved values and handlers into BulkClipPanel; TypeScript verification passes.",
"files_changed": [
"src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx"
],
"commands_run": [
"sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"sed -n '1,320p' src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx",
"rg -n "handleUpdateClipsDeep|handleResetClipsPosition|onChangeDeep=|onResetPosition=|getSharedNestedValue|getSharedValue|getBulkVisibleTabs" src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T6",
"description": "Enable arrow-key track movement for multi-select. (1) In useTimelineTrackManagement.ts, add moveSelectedClipsToTrack(direction, selectedClipIds: ReadonlySet<string>): groups all selected clips by current row, for each group finds target track of same kind one step in direction (same traversal as moveSelectedClipToTrack at line 135-165), if ANY group can't find a valid target the entire operation is a no-op (atomic). If selection spans track kinds (visual + audio), each kind-group moves independently within its kind. Calls moveClipToRow for each clip. Export from result interface. (2) Wire through useTimelineState.ts and useTimelineState.types.ts. (3) In VideoEditorShell.tsx:50, change canMoveSelectedClipToTrack: editor.selectedClipIds.size === 1 to editor.selectedClipIds.size >= 1. (4) In useKeyboardShortcuts.ts, update moveSelectedClipToTrack call to use the new multi-clip function passing the full selection set.",
"depends_on": [],
"status": "done",
"executor_notes": "Implemented moveSelectedClipsToTrack with per-kind planning and blocking, exposed it through timeline state/context, and updated keyboard handling so arrow-key track moves operate on the full selection.",
"files_changed": [
"src/tools/video-editor/hooks/useTimelineTrackManagement.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts",
"src/tools/video-editor/hooks/useKeyboardShortcuts.ts",
"src/tools/video-editor/components/VideoEditorShell.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useTimelineTrackManagement.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useKeyboardShortcuts.ts",
"sed -n '1,220p' src/tools/video-editor/components/VideoEditorShell.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T7",
"description": "Add 'Split at Playhead' to batch context menu. (1) In useClipEditing.ts, add handleSplitClipsAtPlayhead(clipIds: string[]) \u2014 iterates over all clip IDs, for each clip that intersects the current playhead time (checked via finding the action in rows where action.start <= currentTime < action.end), calls splitClipAtPlayhead. Clips not intersecting are silently skipped. (2) Export from UseClipEditingResult, wire through useTimelineState.ts and useTimelineState.types.ts. (3) In ClipAction.tsx, add onSplitClipsAtPlayhead?: (clipIds: string[]) => void to ClipActionProps. Add a 'Split {N} clips at playhead' menu item with Scissors icon in the batch context menu section (after the mute item at line 156-168, before the delete item). (4) Wire the handler through wherever ClipAction is instantiated (TimelineEditor.tsx).",
"depends_on": [],
"status": "done",
"executor_notes": "Added handleSplitClipsAtPlayhead with silent skipping for non-intersecting clips, wired it through the editor context, and added the batch context-menu action in ClipAction/TimelineEditor.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts",
"src/tools/video-editor/components/TimelineEditor/ClipAction.tsx",
"src/tools/video-editor/components/TimelineEditor/TimelineEditor.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,260p' src/tools/video-editor/components/TimelineEditor/ClipAction.tsx",
"sed -n '1,260p' src/tools/video-editor/components/TimelineEditor/TimelineEditor.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T8",
"description": "TypeScript compilation check. Run npx tsc --noEmit and fix any type errors from the expanded interfaces and new handler signatures across all changed files.",
"depends_on": [
"T1",
"T2",
"T3",
"T4",
"T5",
"T6",
"T7"
],
"status": "done",
"executor_notes": "Ran a fresh TypeScript compilation check against the accumulated multi-select changes; npx tsc --noEmit completed with zero errors, so no follow-up code edits were required in this batch.",
"files_changed": [],
"commands_run": [
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T9",
"description": "Manual testing checklist. (1) Select 2+ video clips on visual tracks \u2192 verify Effects, Timing, Position, Audio tabs appear. Edit entrance effect \u2192 confirm each clip keeps its own duration. Edit opacity \u2192 confirm all update. (2) Select mixed types (video + text) \u2192 verify Text tab hidden, Position and Audio tabs shown. (3) Select 2+ text clips \u2192 verify Text tab shown, Position tab shown (DECISION-006), font size edit preserves each clip's content. (4) Arrow up/down with multi-select \u2192 verify all clips move together, no-op if any clip in a kind-group is blocked. (5) Right-click multi-select \u2192 verify 'Split at Playhead' appears and works (splits intersecting clips only). (6) Verify mixed-value display shows 'Mixed' placeholder correctly for all field types.",
"depends_on": [
"T8"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
}
],
"watch_items": [
"[CRITICAL] Shallow merge in applyTimelineEdit (useTimelineSave.ts:236-237): { ...existingMeta, ...patch } overwrites nested objects. All nested-field bulk edits (entrance, exit, continuous, text) MUST use handleUpdateClipsDeep with the patch factory pattern, never handleUpdateClips with a static patch containing nested objects.",
"[DECISION-006] Position tab must be shown for ALL visual-track clips including text. The plan's Step 1.4 incorrectly says 'non-text on a visual track' \u2014 this must be corrected to 'any clip on a visual track'. Reference: ClipPanel.tsx:41-42 returns position for text clips.",
"[DEBT] bulk-panel-tabs: Ensure text clip multi-selections get the Position tab. This was flagged as existing debt \u2014 the implementation must not make it worse.",
"[DEBT] properties-panel-scope: Crop and transition controls are deliberately out of scope (DECISION-001). Do not attempt to add them.",
"[DEBT] context-menu-scope: Copy/paste is deliberately out of scope (DECISION-002). No existing infrastructure to extend.",
"[SCOPE] Bulk Source In/Out: These are scalar fields that apply the same value to all clips. This is potentially useful (e.g., 'trim all to start at 2s') but could surprise users. Include them but note in the UI that the value applies to all clips.",
"[SCOPE] Arrow-key cross-kind movement: When selection spans track kinds (visual + audio), each kind-group should move independently. Block only if a kind-group has no valid target, not the entire operation.",
"[SCOPE] Undo criterion from success criteria is aspirational \u2014 this codebase has no undo/redo system. The patch factory approach preserves data correctly so undo would work if/when implemented, but cannot be tested now.",
"[WIRING] New handlers (handleUpdateClipsDeep, handleResetClipsPosition, handleSplitClipsAtPlayhead, moveSelectedClipsToTrack) must be wired through 3 layers: useClipEditing \u2192 useTimelineState \u2192 useTimelineState.types (TimelineEditorContextValue interface). Missing any layer causes a silent context value omission.",
"[PATTERN] BulkClipPanel should reuse the same shadcn components (Select, Input, Slider, Tabs, Button) and the same NO_EFFECT sentinel, TAB_COLUMNS_CLASS, and FieldLabel component from ClipPanel.tsx. Consider extracting shared pieces if duplication exceeds ~20 lines."
],
"sense_checks": [
{
"id": "SC1",
"task_id": "T1",
"question": "Does getBulkVisibleTabs show Position tab for an all-text multi-selection (matching getVisibleClipTabs which returns 'position' for text clips)?",
"executor_note": "getBulkVisibleTabs adds position whenever any selected clip is on a visual track, so an all-text visual multi-selection still shows the Position tab.",
"verdict": ""
},
{
"id": "SC2",
"task_id": "T2",
"question": "Does handleUpdateClipsDeep produce per-clip metaUpdates entries (not a single shared patch) so applyTimelineEdit's shallow merge doesn't destroy clip-specific nested data?",
"executor_note": "handleUpdateClipsDeep builds a distinct metaUpdates entry for each valid clip ID from current.meta[clipId] before calling applyTimelineEdit, so nested bulk patches are per clip rather than shared.",
"verdict": ""
},
{
"id": "SC3",
"task_id": "T3",
"question": "Does handleResetClipsPosition set all 8 position/crop fields to undefined for each clip, matching the single-clip handleResetClipPosition at useClipEditing.ts:171-181?",
"executor_note": "handleResetClipsPosition sets x, y, width, height, cropTop, cropBottom, cropLeft, and cropRight to undefined for each valid selected clip.",
"verdict": ""
},
{
"id": "SC4",
"task_id": "T4",
"question": "Do all effect selects (entrance/exit/continuous) in BulkClipPanel use onChangeDeep (not onChange), and does each patch factory reference meta.entrance?.duration / meta.exit?.duration / meta.continuous?.intensity to preserve per-clip sub-fields?",
"executor_note": "All bulk effect selects use onChangeDeep, and each patch factory preserves per-clip nested fields through meta.entrance?.duration, meta.exit?.duration, or meta.continuous?.intensity; the shared custom-effect editor uses the same deep-patch pattern.",
"verdict": ""
},
{
"id": "SC5",
"task_id": "T5",
"question": "Are handleUpdateClipsDeep and handleResetClipsPosition both destructured from useTimelineEditorContext() and wired to BulkClipPanel's onChangeDeep and onResetPosition props?",
"executor_note": "PropertiesPanel now destructures both handleUpdateClipsDeep and handleResetClipsPosition from useTimelineEditorContext() and wires them into BulkClipPanel as onChangeDeep and onResetPosition.",
"verdict": ""
},
{
"id": "SC6",
"task_id": "T6",
"question": "Is the multi-clip track movement atomic per kind-group (if any visual clip can't move up, no visual clips move, but audio clips can still move independently)?",
"executor_note": "moveSelectedClipsToTrack computes target rows per source-row group and only executes a kind-group when every group in that kind has a valid adjacent track; visual and audio selections are evaluated independently.",
"verdict": ""
},
{
"id": "SC7",
"task_id": "T7",
"question": "Does handleSplitClipsAtPlayhead correctly handle the case where some selected clips don't intersect the playhead (should skip silently, not error)?",
"executor_note": "handleSplitClipsAtPlayhead first checks which selected clips intersect the current playhead via the current row actions and silently skips any selected clips that do not intersect.",
"verdict": ""
},
{
"id": "SC8",
"task_id": "T8",
"question": "Does npx tsc --noEmit pass with zero errors after all changes?",
"executor_note": "npx tsc --noEmit passed with zero errors after the batch 1-3 multi-select changes.",
"verdict": ""
},
{
"id": "SC9",
"task_id": "T9",
"question": "When editing entrance effect type in bulk mode, does each clip retain its individual entrance.duration value (not reset to the 0.4 default)?",
"executor_note": "",
"verdict": ""
}
],
"meta_commentary": "Execution guidance:\n\nParallelism: T1, T2, T3, T6, T7 are independent \u2014 execute in parallel. T4 depends on T1-T3 (needs the utility types and handler signatures). T5 depends on T4 (passes computed props to the new BulkClipPanel). T8-T9 are sequential validation after all code.\n\nThe shallow-merge bug is the #1 correctness risk. The entire plan's architecture revolves around the patch factory pattern in T2. When reviewing T4, verify that EVERY nested-field edit (entrance, exit, continuous, text fontSize, text color) goes through onChangeDeep, not onChange. Scalar fields (opacity, speed, volume, x, y, width, height, from, to) are safe to use onChange.\n\nTab visibility correction (DECISION-006): The plan's Step 1.4 says Position is shown "if ANY selected clip is non-text on a visual track." This is WRONG per the gate warning. ClipPanel.tsx:41-42 shows Position for text clips too. The correct rule for getBulkVisibleTabs is: Position shown if ANY clip is on a visual track (regardless of clipType). The executor MUST correct this.\n\nUnresolved design decisions made here:\n- Cross-kind arrow movement: Each kind-group moves independently (not all-or-nothing across kinds). This is more useful than blocking the entire operation when a mixed selection can't fully move.\n- Bulk Source In/Out: Included as scalar fields. Applying the same source trim to all clips is a valid use case (e.g., skip first 2 seconds of all clips).\n\nWhat NOT to build: Crop controls (in OverlayEditor), transition controls (don't exist anywhere), copy/paste (no infrastructure), undo/redo (no system), start time bulk edit (destructive stacking).\n\nExtracting shared code: FieldLabel and NO_EFFECT/TAB_COLUMNS_CLASS from ClipPanel.tsx will be needed by BulkClipPanel. Either extract to a shared file or co-locate in PropertiesPanel.tsx. Don't duplicate the effect type arrays \u2014 import from effects.ts.\n\nWiring checklist for new handlers: Each new handler must appear in: (1) useClipEditing.ts return object, (2) UseClipEditingResult interface, (3) useTimelineState.ts editor useMemo, (4) useTimelineState.ts useMemo deps array, (5) TimelineEditorContextValue in useTimelineState.types.ts. Missing any of these 5 causes a silent failure where the handler is undefined at runtime."
}
code
Debt watch items (do not make these worse):
[DEBT] agent-chat-rendering: removing the duplicate assistant turn may hide message_user text if the frontend only renders assistant-role turns as chat bubbles. (flagged 1 times across 1 plans)
[DEBT] bulk-panel-tabs: text clip multi-selections would miss the position tab under the plan's stated rule. (flagged 1 times across 1 plans)
[DEBT] conflict-resolution: silently reloading agent-originated timeline updates would discard dirty local edits. (flagged 1 times across 1 plans)
[DEBT] context-menu-scope: multi-clip copy is not included despite being mentioned in the original idea. (flagged 1 times across 1 plans)
[DEBT] issue-detection: mid-sentence-cut detection is not implementable without transcript/profile data that the current provider doesn't expose. (flagged 1 times across 1 plans)
[DEBT] optimistic-locking: plan only specifies version checking at the db write layer; the ui load/state/save path doesn't carry config_version yet. (flagged 1 times across 1 plans)
[DEBT] properties-panel-scope: crop and transition controls are not included in the bulk panel, narrowing the original idea's scope. (flagged 1 times across 1 plans)
[DEBT] realtime-subscriptions: the shared realtime system doesn't know about timeline_agent_sessions; step 7 hooks need their own channel subscription. (flagged 1 times across 1 plans)
[DEBT] selection-save-bridge: the plan specifies passing pruneselection into usetimelinesave but doesn't detail the hook-layer bridge needed because usetimelinesave is instantiated inside usetimelinedata before usetimelinestate runs. (flagged 1 times across 1 plans)
[DEBT] task-deduplication: server-generated idempotency keys would break retry deduplication because retried requests get fresh keys. (flagged 1 times across 1 plans)
[DEBT] task-system-integration: create_generation_task is underspecified against the actual task family system. (flagged 1 times across 1 plans)
[DEBT] tool-error-propagation: a blanket catch in executetool would silently downgrade db/persistence failures into ordinary tool results, changing the session error/http 500 behavior. (flagged 1 times across 1 plans)
code
Note: User explicitly approved this plan at the gate checkpoint.
Robustness level: standard.
Requirements:
- Execute only the actionable tasks in this batch.
- Treat completed tasks as dependency context, not new work.
- Return structured JSON only.
- Only produce `task_updates` for these tasks: [T9]
- Only produce `sense_check_acknowledgments` for these sense checks: [SC9]
- Do not include updates for tasks or sense checks outside this batch.
- Keep `executor_notes` verification-focused.
- Best-effort progress checkpointing: if `/Users/user_c042661f/Documents/reigh-workspace/reigh-app/.megaplan/plans/multi-select-feature-parity-20260326-0548/execution_batch_5.json` is writable, checkpoint task and sense-check updates there (not `finalize.json`). The harness owns `finalize.json`.
{
"id": "SC9",
"task_id": "T9",
"question": "When editing entrance effect type in bulk mode, does each clip retain its individual entrance.duration value (not reset to the 0.4 default)?",
"executor_note": "Code inspection confirms the bulk Entrance select uses onChangeDeep((meta) => ({ entrance: value === NO_EFFECT ? undefined : { type: value, duration: meta.entrance?.duration ?? 0.4 } })), so clips that already have an entrance.duration keep their own value; 0.4 is only used when a clip has no existing duration. This was verified from code, not by manual UI execution.",
"verdict": ""
}
]
code
Full execution tracking source of truth (`finalize.json`):
{
"tasks": [
{
"id": "T1",
"description": "Create src/tools/video-editor/lib/bulk-utils.ts with three exports: (1) getSharedValue<T> \u2014 moved from PropertiesPanel.tsx:12-19, compares by strict equality, returns shared value or null. (2) getSharedNestedValue<T>(clips, accessor) \u2014 compares nested objects by their type field (for effects) or JSON.stringify (for text), returns shared value or null. (3) getBulkVisibleTabs(clips, tracks): ClipTab[] \u2014 mirrors getVisibleClipTabs (ClipPanel.tsx:37-49): Effects always shown, Timing always shown, Position shown if ANY clip is on a visual track (including text clips \u2014 per DECISION-006 correcting the plan's original rule), Audio shown if ANY clip is non-text, Text shown only if ALL clips are text type. Replace the inline getSharedValue in PropertiesPanel.tsx with the import.",
"depends_on": [],
"status": "done",
"executor_notes": "Added shared bulk helpers in bulk-utils.ts, replaced the inline PropertiesPanel helper import, and verified the new tab helper keeps position visible for visual-track selections including text clips.",
"files_changed": [
"src/tools/video-editor/lib/bulk-utils.ts",
"src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx"
],
"commands_run": [
"sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T2",
"description": "Add handleUpdateClipsDeep(clipIds: string[], patchFn: (existing: ClipMeta) => Partial<ClipMeta>) to useClipEditing.ts. This takes a patch factory that receives each clip's current meta from dataRef.current.meta[id], builds per-clip patches preserving nested sub-fields, then calls applyTimelineEdit(current.rows, metaUpdates). Uses the existing getValidClipIds helper. Export from UseClipEditingResult interface. Wire through useTimelineState.ts (add to clipEditing usage at ~line 186, expose in editor useMemo at ~line 207) and useTimelineState.types.ts (add handleUpdateClipsDeep: ClipEditingHook['handleUpdateClipsDeep'] to TimelineEditorContextValue).",
"depends_on": [],
"status": "done",
"executor_notes": "Added handleUpdateClipsDeep with per-clip patch generation from current.meta[clipId], then exposed it through useTimelineState and useTimelineState.types so nested bulk patches are not shared across clips.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,380p' src/tools/video-editor/hooks/useTimelineState.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useTimelineState.types.ts",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T3",
"description": "Add handleResetClipsPosition(clipIds: string[]) to useClipEditing.ts. Loops over valid clip IDs, building per-clip patches that clear x/y/width/height/cropTop/cropBottom/cropLeft/cropRight (same fields as handleResetClipPosition at line 166-183, but using applyTimelineEdit with a metaUpdates record instead of applyResolvedConfigEdit). Export from UseClipEditingResult, wire through useTimelineState.ts and useTimelineState.types.ts same as T2.",
"depends_on": [],
"status": "done",
"executor_notes": "Added handleResetClipsPosition to clear the same eight position/crop fields as the single-clip reset path for every valid selected clip, and wired it through the editor context types/state.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,380p' src/tools/video-editor/hooks/useTimelineState.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useTimelineState.types.ts",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T4",
"description": "Rewrite BulkClipPanel in PropertiesPanel.tsx with tabbed structure matching ClipPanel. Props: clips (ResolvedTimelineClip[]), visibleTabs, compositionWidth/Height, onChange (scalar), onChangeDeep (patch factory), onResetPosition, onToggleMute, onClose, activeTab, setActiveTab. Tabs: Effects \u2014 entrance/exit/continuous selects using onChangeDeep so each clip preserves its own duration/intensity (pattern: onChangeDeep((meta) => ({ entrance: value === NO_EFFECT ? undefined : { type: value, duration: meta.entrance?.duration ?? 0.4 } }))). Custom effect editor shown only when all clips share the same custom effect slug. Timing \u2014 speed (scalar onChange), Source In/Out (scalar onChange). Start time excluded (DECISION-003). Position \u2014 X/Y/Width/Height inputs (scalar onChange), Opacity slider (scalar onChange), Reset Position button (onResetPosition). Audio \u2014 Volume slider (scalar onChange), Toggle Mute button (onToggleMute). Text (only when ALL clips are text) \u2014 fontSize and color using onChangeDeep to preserve each clip's content. Text content excluded (DECISION-004). Header shows '{N} clips selected' with close button. Tab bar uses visibleTabs for column count. Mixed values show 'Mixed' placeholder on inputs, disabled select option for selects.",
"depends_on": [
"T1",
"T2",
"T3"
],
"status": "done",
"executor_notes": "Rebuilt BulkClipPanel into a tabbed bulk editor matching the single-clip structure, with mixed-value placeholders, bulk timing/position/audio/text controls, shared custom-effect gating, and deep-patch handling for nested effect/text edits verified by TypeScript.",
"files_changed": [
"src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"src/tools/video-editor/components/PropertiesPanel/ClipPanel.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"sed -n '1,320p' src/tools/video-editor/components/PropertiesPanel/ClipPanel.tsx",
"rg -n "onChangeDeep|meta\.entrance\?\.duration|meta\.exit\?\.duration|meta\.continuous\?\.intensity|CustomEffectEditor|MIXED_SELECT_VALUE" src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T5",
"description": "Update PropertiesPanel component (PropertiesPanel.tsx:150-257) to compute and pass all bulk props. Expand shared-value computation (lines 188-191) for all fields needed by BulkClipPanel using getSharedValue for scalars and getSharedNestedValue for entrance/exit/continuous/text. Compute bulkVisibleTabs via getBulkVisibleTabs(bulkSelectedClips, data.resolvedConfig?.tracks ?? []). Wire: onChange \u2192 handleUpdateClips(selectedClipIdsList, patch), onChangeDeep \u2192 handleUpdateClipsDeep(selectedClipIdsList, patchFn), onResetPosition \u2192 handleResetClipsPosition(selectedClipIdsList), onToggleMute \u2192 handleToggleMuteClips(selectedClipIdsList). Pass activeTab, setActiveTab, compositionSize.width, compositionSize.height. Add handleUpdateClipsDeep and handleResetClipsPosition to the destructured context values from useTimelineEditorContext().",
"depends_on": [
"T1",
"T2",
"T3",
"T4"
],
"status": "done",
"executor_notes": "Moved bulk shared-value derivation into PropertiesPanel using getSharedValue for scalar fields and getSharedNestedValue for entrance/exit/continuous/text, then passed the resolved values and handlers into BulkClipPanel; TypeScript verification passes.",
"files_changed": [
"src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx"
],
"commands_run": [
"sed -n '1,260p' src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx",
"sed -n '1,320p' src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx",
"rg -n "handleUpdateClipsDeep|handleResetClipsPosition|onChangeDeep=|onResetPosition=|getSharedNestedValue|getSharedValue|getBulkVisibleTabs" src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx src/tools/video-editor/components/PropertiesPanel/BulkClipPanel.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T6",
"description": "Enable arrow-key track movement for multi-select. (1) In useTimelineTrackManagement.ts, add moveSelectedClipsToTrack(direction, selectedClipIds: ReadonlySet<string>): groups all selected clips by current row, for each group finds target track of same kind one step in direction (same traversal as moveSelectedClipToTrack at line 135-165), if ANY group can't find a valid target the entire operation is a no-op (atomic). If selection spans track kinds (visual + audio), each kind-group moves independently within its kind. Calls moveClipToRow for each clip. Export from result interface. (2) Wire through useTimelineState.ts and useTimelineState.types.ts. (3) In VideoEditorShell.tsx:50, change canMoveSelectedClipToTrack: editor.selectedClipIds.size === 1 to editor.selectedClipIds.size >= 1. (4) In useKeyboardShortcuts.ts, update moveSelectedClipToTrack call to use the new multi-clip function passing the full selection set.",
"depends_on": [],
"status": "done",
"executor_notes": "Implemented moveSelectedClipsToTrack with per-kind planning and blocking, exposed it through timeline state/context, and updated keyboard handling so arrow-key track moves operate on the full selection.",
"files_changed": [
"src/tools/video-editor/hooks/useTimelineTrackManagement.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts",
"src/tools/video-editor/hooks/useKeyboardShortcuts.ts",
"src/tools/video-editor/components/VideoEditorShell.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useTimelineTrackManagement.ts",
"sed -n '1,220p' src/tools/video-editor/hooks/useKeyboardShortcuts.ts",
"sed -n '1,220p' src/tools/video-editor/components/VideoEditorShell.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T7",
"description": "Add 'Split at Playhead' to batch context menu. (1) In useClipEditing.ts, add handleSplitClipsAtPlayhead(clipIds: string[]) \u2014 iterates over all clip IDs, for each clip that intersects the current playhead time (checked via finding the action in rows where action.start <= currentTime < action.end), calls splitClipAtPlayhead. Clips not intersecting are silently skipped. (2) Export from UseClipEditingResult, wire through useTimelineState.ts and useTimelineState.types.ts. (3) In ClipAction.tsx, add onSplitClipsAtPlayhead?: (clipIds: string[]) => void to ClipActionProps. Add a 'Split {N} clips at playhead' menu item with Scissors icon in the batch context menu section (after the mute item at line 156-168, before the delete item). (4) Wire the handler through wherever ClipAction is instantiated (TimelineEditor.tsx).",
"depends_on": [],
"status": "done",
"executor_notes": "Added handleSplitClipsAtPlayhead with silent skipping for non-intersecting clips, wired it through the editor context, and added the batch context-menu action in ClipAction/TimelineEditor.",
"files_changed": [
"src/tools/video-editor/hooks/useClipEditing.ts",
"src/tools/video-editor/hooks/useTimelineState.ts",
"src/tools/video-editor/hooks/useTimelineState.types.ts",
"src/tools/video-editor/components/TimelineEditor/ClipAction.tsx",
"src/tools/video-editor/components/TimelineEditor/TimelineEditor.tsx"
],
"commands_run": [
"sed -n '1,360p' src/tools/video-editor/hooks/useClipEditing.ts",
"sed -n '1,260p' src/tools/video-editor/components/TimelineEditor/ClipAction.tsx",
"sed -n '1,260p' src/tools/video-editor/components/TimelineEditor/TimelineEditor.tsx",
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T8",
"description": "TypeScript compilation check. Run npx tsc --noEmit and fix any type errors from the expanded interfaces and new handler signatures across all changed files.",
"depends_on": [
"T1",
"T2",
"T3",
"T4",
"T5",
"T6",
"T7"
],
"status": "done",
"executor_notes": "Ran a fresh TypeScript compilation check against the accumulated multi-select changes; npx tsc --noEmit completed with zero errors, so no follow-up code edits were required in this batch.",
"files_changed": [],
"commands_run": [
"npx tsc --noEmit"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T9",
"description": "Manual testing checklist. (1) Select 2+ video clips on visual tracks \u2192 verify Effects, Timing, Position, Audio tabs appear. Edit entrance effect \u2192 confirm each clip keeps its own duration. Edit opacity \u2192 confirm all update. (2) Select mixed types (video + text) \u2192 verify Text tab hidden, Position and Audio tabs shown. (3) Select 2+ text clips \u2192 verify Text tab shown, Position tab shown (DECISION-006), font size edit preserves each clip's content. (4) Arrow up/down with multi-select \u2192 verify all clips move together, no-op if any clip in a kind-group is blocked. (5) Right-click multi-select \u2192 verify 'Split at Playhead' appears and works (splits intersecting clips only). (6) Verify mixed-value display shows 'Mixed' placeholder correctly for all field types.",
"depends_on": [
"T8"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
}
],
"watch_items": [
"[CRITICAL] Shallow merge in applyTimelineEdit (useTimelineSave.ts:236-237): { ...existingMeta, ...patch } overwrites nested objects. All nested-field bulk edits (entrance, exit, continuous, text) MUST use handleUpdateClipsDeep with the patch factory pattern, never handleUpdateClips with a static patch containing nested objects.",
"[DECISION-006] Position tab must be shown for ALL visual-track clips including text. The plan's Step 1.4 incorrectly says 'non-text on a visual track' \u2014 this must be corrected to 'any clip on a visual track'. Reference: ClipPanel.tsx:41-42 returns position for text clips.",
"[DEBT] bulk-panel-tabs: Ensure text clip multi-selections get the Position tab. This was flagged as existing debt \u2014 the implementation must not make it worse.",
"[DEBT] properties-panel-scope: Crop and transition controls are deliberately out of scope (DECISION-001). Do not attempt to add them.",
"[DEBT] context-menu-scope: Copy/paste is deliberately out of scope (DECISION-002). No existing infrastructure to extend.",
"[SCOPE] Bulk Source In/Out: These are scalar fields that apply the same value to all clips. This is potentially useful (e.g., 'trim all to start at 2s') but could surprise users. Include them but note in the UI that the value applies to all clips.",
"[SCOPE] Arrow-key cross-kind movement: When selection spans track kinds (visual + audio), each kind-group should move independently. Block only if a kind-group has no valid target, not the entire operation.",
"[SCOPE] Undo criterion from success criteria is aspirational \u2014 this codebase has no undo/redo system. The patch factory approach preserves data correctly so undo would work if/when implemented, but cannot be tested now.",
"[WIRING] New handlers (handleUpdateClipsDeep, handleResetClipsPosition, handleSplitClipsAtPlayhead, moveSelectedClipsToTrack) must be wired through 3 layers: useClipEditing \u2192 useTimelineState \u2192 useTimelineState.types (TimelineEditorContextValue interface). Missing any layer causes a silent context value omission.",
"[PATTERN] BulkClipPanel should reuse the same shadcn components (Select, Input, Slider, Tabs, Button) and the same NO_EFFECT sentinel, TAB_COLUMNS_CLASS, and FieldLabel component from ClipPanel.tsx. Consider extracting shared pieces if duplication exceeds ~20 lines."
],
"sense_checks": [
{
"id": "SC1",
"task_id": "T1",
"question": "Does getBulkVisibleTabs show Position tab for an all-text multi-selection (matching getVisibleClipTabs which returns 'position' for text clips)?",
"executor_note": "getBulkVisibleTabs adds position whenever any selected clip is on a visual track, so an all-text visual multi-selection still shows the Position tab.",
"verdict": ""
},
{
"id": "SC2",
"task_id": "T2",
"question": "Does handleUpdateClipsDeep produce per-clip metaUpdates entries (not a single shared patch) so applyTimelineEdit's shallow merge doesn't destroy clip-specific nested data?",
"executor_note": "handleUpdateClipsDeep builds a distinct metaUpdates entry for each valid clip ID from current.meta[clipId] before calling applyTimelineEdit, so nested bulk patches are per clip rather than shared.",
"verdict": ""
},
{
"id": "SC3",
"task_id": "T3",
"question": "Does handleResetClipsPosition set all 8 position/crop fields to undefined for each clip, matching the single-clip handleResetClipPosition at useClipEditing.ts:171-181?",
"executor_note": "handleResetClipsPosition sets x, y, width, height, cropTop, cropBottom, cropLeft, and cropRight to undefined for each valid selected clip.",
"verdict": ""
},
{
"id": "SC4",
"task_id": "T4",
"question": "Do all effect selects (entrance/exit/continuous) in BulkClipPanel use onChangeDeep (not onChange), and does each patch factory reference meta.entrance?.duration / meta.exit?.duration / meta.continuous?.intensity to preserve per-clip sub-fields?",
"executor_note": "All bulk effect selects use onChangeDeep, and each patch factory preserves per-clip nested fields through meta.entrance?.duration, meta.exit?.duration, or meta.continuous?.intensity; the shared custom-effect editor uses the same deep-patch pattern.",
"verdict": ""
},
{
"id": "SC5",
"task_id": "T5",
"question": "Are handleUpdateClipsDeep and handleResetClipsPosition both destructured from useTimelineEditorContext() and wired to BulkClipPanel's onChangeDeep and onResetPosition props?",
"executor_note": "PropertiesPanel now destructures both handleUpdateClipsDeep and handleResetClipsPosition from useTimelineEditorContext() and wires them into BulkClipPanel as onChangeDeep and onResetPosition.",
"verdict": ""
},
{
"id": "SC6",
"task_id": "T6",
"question": "Is the multi-clip track movement atomic per kind-group (if any visual clip can't move up, no visual clips move, but audio clips can still move independently)?",
"executor_note": "moveSelectedClipsToTrack computes target rows per source-row group and only executes a kind-group when every group in that kind has a valid adjacent track; visual and audio selections are evaluated independently.",
"verdict": ""
},
{
"id": "SC7",
"task_id": "T7",
"question": "Does handleSplitClipsAtPlayhead correctly handle the case where some selected clips don't intersect the playhead (should skip silently, not error)?",
"executor_note": "handleSplitClipsAtPlayhead first checks which selected clips intersect the current playhead via the current row actions and silently skips any selected clips that do not intersect.",
"verdict": ""
},
{
"id": "SC8",
"task_id": "T8",
"question": "Does npx tsc --noEmit pass with zero errors after all changes?",
"executor_note": "npx tsc --noEmit passed with zero errors after the batch 1-3 multi-select changes.",
"verdict": ""
},
{
"id": "SC9",
"task_id": "T9",
"question": "When editing entrance effect type in bulk mode, does each clip retain its individual entrance.duration value (not reset to the 0.4 default)?",
"executor_note": "Code inspection confirms the bulk Entrance select uses onChangeDeep((meta) => ({ entrance: value === NO_EFFECT ? undefined : { type: value, duration: meta.entrance?.duration ?? 0.4 } })), so clips that already have an entrance.duration keep their own value; 0.4 is only used when a clip has no existing duration. This was verified from code, not by manual UI execution.",
"verdict": ""
}
],
"meta_commentary": "Execution guidance:\n\nParallelism: T1, T2, T3, T6, T7 are independent \u2014 execute in parallel. T4 depends on T1-T3 (needs the utility types and handler signatures). T5 depends on T4 (passes computed props to the new BulkClipPanel). T8-T9 are sequential validation after all code.\n\nThe shallow-merge bug is the #1 correctness risk. The entire plan's architecture revolves around the patch factory pattern in T2. When reviewing T4, verify that EVERY nested-field edit (entrance, exit, continuous, text fontSize, text color) goes through onChangeDeep, not onChange. Scalar fields (opacity, speed, volume, x, y, width, height, from, to) are safe to use onChange.\n\nTab visibility correction (DECISION-006): The plan's Step 1.4 says Position is shown "if ANY selected clip is non-text on a visual track." This is WRONG per the gate warning. ClipPanel.tsx:41-42 shows Position for text clips too. The correct rule for getBulkVisibleTabs is: Position shown if ANY clip is on a visual track (regardless of clipType). The executor MUST correct this.\n\nUnresolved design decisions made here:\n- Cross-kind arrow movement: Each kind-group moves independently (not all-or-nothing across kinds). This is more useful than blocking the entire operation when a mixed selection can't fully move.\n- Bulk Source In/Out: Included as scalar fields. Applying the same source trim to all clips is a valid use case (e.g., skip first 2 seconds of all clips).\n\nWhat NOT to build: Crop controls (in OverlayEditor), transition controls (don't exist anywhere), copy/paste (no infrastructure), undo/redo (no system), start time bulk edit (destructive stacking).\n\nExtracting shared code: FieldLabel and NO_EFFECT/TAB_COLUMNS_CLASS from ClipPanel.tsx will be needed by BulkClipPanel. Either extract to a shared file or co-locate in PropertiesPanel.tsx. Don't duplicate the effect type arrays \u2014 import from effects.ts.\n\nWiring checklist for new handlers: Each new handler must appear in: (1) useClipEditing.ts return object, (2) UseClipEditingResult interface, (3) useTimelineState.ts editor useMemo, (4) useTimelineState.ts useMemo deps array, (5) TimelineEditorContextValue in useTimelineState.types.ts. Missing any of these 5 causes a silent failure where the handler is undefined at runtime."
}
code
Debt watch items (do not make these worse):
[DEBT] agent-chat-rendering: removing the duplicate assistant turn may hide message_user text if the frontend only renders assistant-role turns as chat bubbles. (flagged 1 times across 1 plans)
[DEBT] bulk-panel-tabs: text clip multi-selections would miss the position tab under the plan's stated rule. (flagged 1 times across 1 plans)
[DEBT] conflict-resolution: silently reloading agent-originated timeline updates would discard dirty local edits. (flagged 1 times across 1 plans)
[DEBT] context-menu-scope: multi-clip copy is not included despite being mentioned in the original idea. (flagged 1 times across 1 plans)
[DEBT] issue-detection: mid-sentence-cut detection is not implementable without transcript/profile data that the current provider doesn't expose. (flagged 1 times across 1 plans)
[DEBT] optimistic-locking: plan only specifies version checking at the db write layer; the ui load/state/save path doesn't carry config_version yet. (flagged 1 times across 1 plans)
[DEBT] properties-panel-scope: crop and transition controls are not included in the bulk panel, narrowing the original idea's scope. (flagged 1 times across 1 plans)
[DEBT] realtime-subscriptions: the shared realtime system doesn't know about timeline_agent_sessions; step 7 hooks need their own channel subscription. (flagged 1 times across 1 plans)
[DEBT] selection-save-bridge: the plan specifies passing pruneselection into usetimelinesave but doesn't detail the hook-layer bridge needed because usetimelinesave is instantiated inside usetimelinedata before usetimelinestate runs. (flagged 1 times across 1 plans)
[DEBT] task-deduplication: server-generated idempotency keys would break retry deduplication because retried requests get fresh keys. (flagged 1 times across 1 plans)
[DEBT] task-system-integration: create_generation_task is underspecified against the actual task family system. (flagged 1 times across 1 plans)
[DEBT] tool-error-propagation: a blanket catch in executetool would silently downgrade db/persistence failures into ordinary tool results, changing the session error/http 500 behavior. (flagged 1 times across 1 plans)
code
Note: User explicitly approved this plan at the gate checkpoint.
Robustness level: standard.
Requirements:
- Execute only the actionable tasks in this batch.
- Treat completed tasks as dependency context, not new work.
- Return structured JSON only.
- Only produce `task_updates` for these tasks: [T9]
- Only produce `sense_check_acknowledgments` for these sense checks: [SC9]
- Do not include updates for tasks or sense checks outside this batch.
- Keep `executor_notes` verification-focused.
- Best-effort progress checkpointing: if `/Users/user_c042661f/Documents/reigh-workspace/reigh-app/.megaplan/plans/multi-select-feature-parity-20260326-0548/execution_batch_5.json` is writable, checkpoint task and sense-check updates there (not `finalize.json`). The harness owns `finalize.json`.