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.
The video editor's BulkClipPanel (PropertiesPanel.tsx:21-148) currently exposes only 3 fields (opacity, speed, mute) when multiple clips are selected. The single-clip ClipPanel (ClipPanel.tsx:56-309) exposes 5 tabs with ~20 fields: Effects (entrance/exit/continuous + custom), Timing (start/speed/from/to), Position (x/y/w/h/opacity/reset), Audio (volume slider + mute toggle), and Text (content/fontSize/color).
Additionally, arrow-key track movement is disabled for multi-select (VideoEditorShell.tsx:50 guards size === 1), and the context menu (ClipAction.tsx:137-198) only offers mute/delete for batch selections (no split, no copy).
Core constraint: The existing handleUpdateClips(clipIds, patch) in useClipEditing.ts:89-105 already applies the same Partial<ClipMeta> to all clips — so the mutation path works. The main work is (1) building a tabbed bulk panel with mixed-value handling, (2) deciding which fields are semantically meaningful in bulk, and (3) extending keyboard/context menu operations.
Phase 1: Foundation — Bulk Panel with Tabs
Step 1: Extract getSharedValue and add getSharedObjectValue helper
Scope: Small
MovegetSharedValue (PropertiesPanel.tsx:12-19) into a shared utility, e.g. src/tools/video-editor/lib/bulk-utils.ts.
AddgetSharedObjectValue<T>(values: T[], key) that handles nested objects (entrance, exit, continuous, text) — returns if the sub-object type fields differ across clips, or the shared value if all match.
Assistant
User
Assistant
{"flags":[{"id":"bulk-panel-tab-logic","concern":"Bulk panel tabs: the revised visibility logic still diverges from ClipPanel, so bulk text selections would lose Position controls that single-clip text editing already has.","category":"correctness","severity_hint":"likely-significant","evidence":" returns for text clips. But Step 1.4 says Position is shown only when any selected clip is non-text on a visual track, which would hide Position for an all-text multi-selection."},{"id":"properties-parity-crop-transition","concern":"Properties parity: the plan now documents crop and transition as out of scope, but that still narrows the user's requested outcome rather than solving it.","category":"completeness","severity_hint":"likely-significant","evidence":"The idea explicitly calls for and . The repository confirms those controls are not in the properties panel today (), with crop handled in the overlay editor instead (). Reclassifying them as out of scope leaves the original request unmet."},{"id":"context-menu-copy-omitted","concern":"Context menu: copy is still excluded even though the original idea explicitly requires copy to work for multi-selection.","category":"completeness","severity_hint":"likely-significant","evidence":"The current repo has no clip-copy action in , and the new plan keeps copy/paste out of scope instead of planning the missing capability. That is still a gap against the stated idea, not a resolved issue."},{"id":"validation-undo-scope","concern":"Validation: Scope creep: the plan still treats undo as an acceptance criterion even though this editor codebase does not currently implement undo/redo.","category":"maintainability","severity_hint":"likely-minor","evidence":" has no undo/redo handling, and returns no matches. Keeping undo in Step 9 and the success criteria makes the plan depend on functionality the repository does not have."}],"verified_flag_ids":["bulk-editing-nested-patches"],"disputed_flag_ids":[]}
null
Export both. Import back into PropertiesPanel.tsx.
Step 2: Replace BulkClipPanel with a tabbed BulkClipPanel matching ClipPanel's tab structure
Scope: Large — this is the core of the feature
RewriteBulkClipPanel (PropertiesPanel.tsx:21-148) to accept the full set of shared values computed in PropertiesPanel, and render the same tab structure as ClipPanel.
Compute shared values in PropertiesPanel for all ClipMeta fields: entrance type, exit type, continuous type, speed, from, to, x, y, width, height, opacity, volume, text content/fontSize/color. Use getSharedValue for scalars and getSharedObjectValue for nested objects.
Determine visible tabs based on the union of clip types in the selection:
If ALL clips are text → show text tab
If ANY clips are on audio tracks → show audio tab
If ANY clips are on visual tracks → show position tab
Effects and Timing always shown
Mixed-value UX: Each input shows placeholder "Mixed" when getSharedValue returns null. Editing a field applies that value to ALL selected clips (existing handleUpdateClips behavior). Leave empty fields alone (only dispatch the changed field).
Effects tab: Entrance/Exit/Continuous selects. When mixed, show "Mixed" as a disabled sentinel. Selecting a value applies to all. Custom effect editor: show when all clips share the same custom effect.
Timing tab: Speed, Source In, Source Out. Start time is intentionally EXCLUDED from bulk (each clip has its own start; bulk-setting start would stack all clips).
Position tab: X, Y, Width, Height, Opacity slider, Reset Position button (applies to all selected clips).
Audio tab: Volume slider, Toggle Mute button.
Text tab: Only visible when ALL selected clips are text. Font size, color (not content — mixed text content editing is confusing).
Wire the onChange callback to call handleUpdateClips(selectedClipIdsList, patch) — same as today, just with a wider patch surface.
AddhandleResetClipsPosition(clipIds) to useClipEditing.ts, analogous to handleResetClipPosition but looping over clipIds.
Step 3: Update PropertiesPanel to compute and pass all shared values
Scope: Medium
Expand the shared-value computation block (PropertiesPanel.tsx:188-191) to cover all ClipMeta fields needed by the new BulkClipPanel.
PasscompositionWidth, compositionHeight, and handleResetClipsPosition to BulkClipPanel.
PassactiveTab and setActiveTab to BulkClipPanel so tab state persists.
DeterminebulkVisibleTabs based on the union logic from Step 2.3 and pass it down.
Phase 2: Keyboard & Context Menu Multi-Select Operations
Step 4: Enable arrow-key track movement for multi-select
Scope: Medium
AddmoveSelectedClipsToTrack(direction) to useTimelineTrackManagement.ts that moves ALL selected clips in the same direction. Logic: group selected clips by current track, find each group's target track (same kind, one step in direction), move all clips in the group. Skip if any group can't move (same behavior as single: no-op if blocked).
Update VideoEditorShell.tsx:50 — change canMoveSelectedClipToTrack from size === 1 to size >= 1.
Wire the new moveSelectedClipsToTrack through useTimelineState to useKeyboardShortcuts.
Step 5: Expand context menu operations for multi-select
Scope: Medium
Add "Split at Playhead" for batch: In ClipAction.tsx context menu, when hasBatchSelection, add a "Split N clips at playhead" option that calls a new onSplitClipsAtPlayhead(selectedClipIds) handler.
AddhandleSplitSelectedClips() to useClipEditing.ts — iterates over all selected clip IDs and splits each at the current playhead time (using existing splitClipAtPlayhead utility). Clips not intersecting the playhead are skipped.
Add "Copy N clips" context menu item (if copy/paste exists or is planned — see assumptions).
Keep single-clip "Split Here" (cursor-position split) as single-only — it doesn't make sense for batch since each clip has a different cursor-relative position.
Step 6: Multi-drag visual feedback improvements
Scope: Small
Audit current multi-drag behavior in useClipDrag.ts. Based on research: multi-drag already preserves relative timing, shows count badge, and highlights all selected clips.
If missing: Add ghost outlines for all dragged clips (not just the anchor) during cross-track drag. Currently only the anchor gets a floating ghost (useClipDrag.ts:303).
If already sufficient: Skip — don't gold-plate working behavior.
Phase 3: Validation
Step 7: Manual testing checklist
Scope: Small
Select 2+ clips of same type → verify all tabs appear, all fields show shared or "Mixed" values, editing applies to all.
Select mixed types (video + audio, video + text) → verify only applicable tabs appear.
Arrow up/down with multi-select → verify all clips move together, blocked if any can't move.
Right-click multi-select → verify split-at-playhead, mute, delete all appear.
Visual inspection of mixed-value states with 2, 3, 5+ clips of varying types
code
Plan metadata:
{
"version": 1,
"timestamp": "2026-03-26T04:51:10Z",
"hash": "sha256:3458998e935020a58505b7455696ab0d64fff604f11199ce7dfea128d1a559e1",
"questions": [
"Should bulk 'Start time' editing be supported? Setting all clips to the same start time would stack them \u2014 likely undesirable. The plan excludes it, but relative offset adjustment ('shift all by +1s') could be useful. Which behavior do you want?",
"For the Text tab in bulk mode: should editing text content be supported (applying same text to all selected text clips), or only font size and color? Mixed content editing is confusing but 'set all captions to same font size' is clearly useful.",
"Copy/paste for clips: is this an existing feature? The context menu currently has no copy option even for single clips. Should this plan include implementing copy/paste, or just split/mute/delete for batch context menu?",
"For position fields in bulk mode: should editing X/Y apply the exact same value to all clips (stacking them), or should it apply a relative delta ('move all 50px right')? Delta mode is more useful but requires different UX (e.g., +/- buttons or a 'nudge' input)."
],
"success_criteria": [
"BulkClipPanel shows tabbed UI matching ClipPanel's structure (Effects, Timing, Position, Audio, Text tabs) when 2+ clips are selected",
"All applicable ClipMeta fields are editable in bulk: entrance/exit/continuous effects, speed, from/to, x/y/width/height, opacity, volume, text fontSize/color",
"Mixed values display 'Mixed' placeholder; editing a field applies the new value to all selected clips",
"Tab visibility is determined by the union of selected clip types (e.g., Audio tab only if any clip is on an audio track)",
"Arrow up/down keys move ALL selected clips to adjacent track of matching kind",
"Context menu shows 'Split at Playhead' for multi-select (splits each clip that intersects playhead)",
"TypeScript compiles without errors after all changes",
"Undo correctly reverts bulk edits for all affected clips"
],
"assumptions": [
"Bulk 'Start time' editing is excluded \u2014 too destructive (stacks clips). Only speed/from/to from the Timing tab are exposed in bulk mode.",
"Text content editing is excluded from bulk mode \u2014 only fontSize and color are bulk-editable. Content is too clip-specific.",
"Copy/paste is out of scope for this plan \u2014 the context menu expansion covers split-at-playhead, mute, and delete for batch.",
"Position fields apply absolute values (not deltas) in bulk mode, matching ClipPanel behavior. A delta/nudge mode can be added later.",
"The existing handleUpdateClips mutation path handles all ClipMeta fields including nested objects (entrance, exit, continuous, text) \u2014 no backend changes needed.",
"Custom effect editor is shown in bulk mode only when all selected clips share the same custom effect slug; otherwise hidden.",
"Reset Position in bulk mode clears x/y/width/height/crop for ALL selected clips.",
"Multi-drag ghost feedback (showing outlines for all dragged clips) is a nice-to-have \u2014 if the current count badge + highlight is sufficient, Step 6 can be skipped."
],
"structure_warnings": [
"Each step section should reference at least one file in backticks."
]
}
code
Plan structure warnings from validator:
[
"Each step section should reference at least one file in backticks."
]
code
Existing flags:
[]
Known accepted debt grouped by subsystem:
{
"agent-chat-rendering": [
{
"id": "DEBT-007",
"concern": "removing the duplicate assistant turn may hide message_user text if the frontend only renders assistant-role turns as chat bubbles.",
"occurrence_count": 1,
"plan_ids": [
"refactor-ai-timeline-agent-20260326-0157"
]
}
],
"conflict-resolution": [
{
"id": "DEBT-004",
"concern": "silently reloading agent-originated timeline updates would discard dirty local edits.",
"occurrence_count": 1,
"plan_ids": [
"build-a-turn-based-timeline-20260326-0005"
]
}
],
"issue-detection": [
{
"id": "DEBT-006",
"concern": "mid-sentence-cut detection is not implementable without transcript/profile data that the current provider doesn't expose.",
"occurrence_count": 1,
"plan_ids": [
"build-a-turn-based-timeline-20260326-0005"
]
}
],
"optimistic-locking": [
{
"id": "DEBT-002",
"concern": "plan only specifies version checking at the db write layer; the ui load/state/save path doesn't carry config_version yet.",
"occurrence_count": 1,
"plan_ids": [
"build-a-turn-based-timeline-20260326-0005"
]
}
],
"realtime-subscriptions": [
{
"id": "DEBT-003",
"concern": "the shared realtime system doesn't know about timeline_agent_sessions; step 7 hooks need their own channel subscription.",
"occurrence_count": 1,
"plan_ids": [
"build-a-turn-based-timeline-20260326-0005"
]
}
],
"selection-save-bridge": [
{
"id": "DEBT-009",
"concern": "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.",
"occurrence_count": 1,
"plan_ids": [
"multi-select-timeline-clips-20260326-0415"
]
}
],
"task-deduplication": [
{
"id": "DEBT-001",
"concern": "server-generated idempotency keys would break retry deduplication because retried requests get fresh keys.",
"occurrence_count": 1,
"plan_ids": [
"migrate-all-task-creation-20260325-2354"
]
}
],
"task-system-integration": [
{
"id": "DEBT-005",
"concern": "create_generation_task is underspecified against the actual task family system.",
"occurrence_count": 1,
"plan_ids": [
"build-a-turn-based-timeline-20260326-0005"
]
}
],
"tool-error-propagation": [
{
"id": "DEBT-008",
"concern": "a blanket catch in executetool would silently downgrade db/persistence failures into ordinary tool results, changing the session error/http 500 behavior.",
"occurrence_count": 1,
"plan_ids": [
"refactor-ai-timeline-agent-20260326-0157"
]
}
]
}
code
Escalated debt subsystems:
[]
Debt guidance:
- These are known accepted limitations. Do not re-flag them unless the current plan makes them worse, broadens them, or fails to contain them.
- Prefix every new concern with a subsystem tag followed by a colon, for example `Timeout recovery: retry backoff remains brittle`.
- When a concern is recurring debt that still needs to be flagged, prefix it with `Recurring debt:` after the subsystem tag, for example `Timeout recovery: Recurring debt: retry backoff remains brittle`.
Requirements:
- Consider whether the plan is at the right level of abstraction.
- Reuse existing flag IDs when the same concern is still open.
- `verified_flag_ids` should list previously addressed flags that now appear resolved.
- Focus on concrete issues that would cause real problems.
- Robustness level: standard. Use balanced judgment. Flag significant risks, but do not spend flags on minor polish or executor-obvious boilerplate.
- Verify that the plan remains aligned with the user's original intent.
- Verify that the plan follows the expected structure: one H1 title, `## Overview`, numbered step sections (`### Step N:` under `## Phase` headers, or flat `## Step N:`) with file references and numbered substeps, plus `## Execution Order` or `## Validation Order`.
- Missing required sections or step coverage (for example: no H1, no `## Overview`, or no step sections at all) should be flagged as category `completeness` with severity_hint `likely-significant`.
- Structural formatting within steps (for example: prose instead of numbered substeps, or a missing file reference inside an otherwise actionable step) should usually be category `completeness` with severity_hint `likely-minor` because the executor can still follow the instructions.
- Ask whether the plan is the simplest approach that solves the stated problem, whether it could use fewer steps or less machinery, and whether it introduces unnecessary complexity.
- Over-engineering concerns should use category `maintainability`, should usually prefix the concern with "Over-engineering:", and should scale severity_hint to the practical impact.
- Flag scope creep explicitly when the plan grows beyond the original idea or recorded user notes. Use the phrase "Scope creep:" in the concern.
- Assign severity_hint carefully. Implementation details the executor will naturally resolve should usually be `likely-minor`.
{"flags":[{"id":"bulk-editing-nested-patches","concern":"Bulk editing: nested ClipMeta patches are shallow-merged, so the plan's assumption that handleUpdateClips already supports bulk text/entrance/exit/continuous updates is incorrect.","category":"correctness","severity_hint":"likely-significant","evidence":"src/tools/video-editor/hooks/useClipEditing.ts:89-105 applies the exact same patch object to every selected clip, and src/tools/video-editor/hooks/useTimelineSave.ts:220-239 only does a top-level spread merge. In the existing single-clip UI, nested fields are preserved manually per clip (src/tools/video-editor/components/PropertiesPanel/ClipPanel.tsx:126-183 and :275-295). A bulk patch like { text: { fontSize: 48 } } would overwrite each clip's existing text content/color/alignment."},{"id":"bulk-panel-tab-logic","concern":"Bulk panel tabs: the proposed visibility rules diverge from the actual single-clip behavior, so the bulk panel would lose parity for common selections.","category":"correctness","severity_hint":"likely-significant","evidence":"The plan says to show Audio only when any selected clip is on an audio track, but getVisibleClipTabs in src/tools/video-editor/components/PropertiesPanel/ClipPanel.tsx:37-49 shows the Audio tab for non-text clips on visual tracks as well. A multi-selection of ordinary video clips on visual tracks would incorrectly lose bulk volume controls under the proposed rule."},{"id":"properties-parity-crop-transition","concern":"Properties parity: the plan equates parity with mirroring ClipPanel, but the repository's single-clip properties UI does not currently expose crop or transition controls, even though the idea explicitly calls those out.","category":"completeness","severity_hint":"likely-significant","evidence":"src/tools/video-editor/components/PropertiesPanel/ClipPanel.tsx:119-305 only renders effects, timing, position, audio, and text controls. Crop reset/fill lives in the overlay editor instead (src/tools/video-editor/components/PreviewPanel/OverlayEditor.tsx:700-741), and rg -n \"transition\" src/tools/video-editor/components/PropertiesPanel src/tools/video-editor/components/TimelineEditor src/tools/video-editor/hooks found no transition-editing UI. Mirroring ClipPanel will still miss requested crop/transition parity."},{"id":"context-menu-copy-omitted","concern":"Context menu: the plan drops requested multi-copy support even though the idea explicitly includes copy and the repository has no existing clip copy/paste workflow to fall back on.","category":"completeness","severity_hint":"likely-significant","evidence":"The idea calls out context-menu copy for multi-selection, but the plan's assumptions mark copy/paste out of scope. In the current implementation, src/tools/video-editor/components/TimelineEditor/ClipAction.tsx:143-195 only exposes split, mute/unmute, and delete, and rg -n \"copy|paste|clipboard\" src/tools/video-editor found no clip-level copy/paste flow to preserve parity with."},{"id":"validation-undo-scope","concern":"Validation: Scope creep: the plan makes undo behavior a success criterion even though this editor codebase does not currently implement undo/redo.","category":"maintainability","severity_hint":"likely-minor","evidence":"The success criteria and manual checklist require undoing bulk edits, but src/tools/video-editor/hooks/useKeyboardShortcuts.ts:35-96 has no undo/redo handling, and rg -n \"undo|redo\" src/tools/video-editor returned no matches. That acceptance bar is not grounded in the current repository unless undo becomes separate scope."}],"verified_flag_ids":[],"disputed_flag_ids":[]}
You are an independent reviewer. Critique the plan against the actual repository.
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.
The video editor's BulkClipPanel (PropertiesPanel.tsx:21-148) currently exposes only 3 fields (opacity, speed, mute) when multiple clips are selected. The single-clip ClipPanel (ClipPanel.tsx:56-309) exposes 5 tabs with ~20 fields: Effects (entrance/exit/continuous + custom), Timing (start/speed/from/to), Position (x/y/w/h/opacity/reset), Audio (volume slider + mute toggle), and Text (content/fontSize/color).
Additionally, arrow-key track movement is disabled for multi-select (VideoEditorShell.tsx:50 guards size === 1), and the context menu (ClipAction.tsx:137-198) only offers mute/delete for batch selections (no split).
Scope boundary: "Parity" means matching ClipPanel's current feature set. Crop editing lives in OverlayEditor.tsx, not ClipPanel. Transition controls don't exist anywhere in the UI. Copy/paste has no existing infrastructure. All three are out of scope — they'd be new features, not parity gaps.
Critical constraint — shallow merge:applyTimelineEdit (useTimelineSave.ts:236-237) does { ...existingMeta, ...patch } — a top-level spread. Nested objects (entrance, exit, continuous, text) would be overwritten, not merged. The single-clip ClipPanel works around this by always constructing complete nested objects per-clip (e.g., { entrance: { type: value, duration: clip.entrance?.duration ?? 0.4 } }). The bulk panel must do the same: build per-clip patches that preserve each clip's existing nested fields. A single shared patch object is only safe for scalar fields (opacity, speed, volume, x, y, width, height).
Phase 1: Foundation — Deep-Merge Bulk Handler and Utilities
MovegetSharedValue (PropertiesPanel.tsx:12-19) into it.
AddgetSharedNestedValue<T>(clips: ResolvedTimelineClip[], accessor: (clip) => T | undefined): T | null — compares by deep-equal on the nested object's "type" field (for effects) or all fields (for text). Returns the shared value or null if mixed.
AddgetBulkVisibleTabs(clips: ResolvedTimelineClip[], tracks: TrackDefinition[]): ClipTab[] that mirrors getVisibleClipTabs logic (ClipPanel.tsx:37-49) for multi-select:
Effects tab: always shown
Timing tab: always shown
Position tab: shown if ANY selected clip is non-text on a visual track
Audio tab: shown if ANY selected clip is non-text (matches getVisibleClipTabs which shows Audio for all non-text clips, including those on visual tracks)
Text tab: shown only if ALL selected clips are text type
Import into PropertiesPanel.tsx, replacing the inline getSharedValue.
Step 2: Add handleUpdateClipsDeep for nested-field-safe bulk edits (src/tools/video-editor/hooks/useClipEditing.ts)
Scope: Medium
AddhandleUpdateClipsDeep(clipIds: string[], patchFn: (clipMeta: ClipMeta) => Partial<ClipMeta>) to useClipEditing.ts. This takes a patch factory instead of a static patch, so each clip's existing nested fields are preserved:
Export from UseClipEditingResult interface (useClipEditing.ts:31-43).
Wire through useTimelineState.ts and TimelineEditorContext so it's available in PropertiesPanel.
The existing handleUpdateClips remains for scalar-only patches (opacity, speed, volume, x, y, w, h) — no changes needed.
Step 3: Add handleResetClipsPosition for bulk position reset (src/tools/video-editor/hooks/useClipEditing.ts)
Scope: Small
AddhandleResetClipsPosition(clipIds: string[]) — loops over clip IDs, building per-clip patches that clear x/y/width/height/cropTop/cropBottom/cropLeft/cropRight (same fields as handleResetClipPosition, useClipEditing.ts:166-183).
Export and wire through context, same as Step 2.3.
Phase 2: Bulk Panel UI — Tabbed with Mixed-Value Handling
Step 4: Rewrite BulkClipPanel with tabbed structure (src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx)
Scope: Large — core of the feature
RewriteBulkClipPanel to accept resolved clips, composition dimensions, and render the same tab structure as ClipPanel.
Position tab — X, Y, Width, Height (scalar, onChange), Opacity slider (scalar, onChange), Reset Position button (calls onResetPosition). Mixed values show placeholder "Mixed" on inputs, empty slider defaults to midpoint.
Text tab — (only visible when ALL clips are text) Font size and color only, using onChangeDeep to preserve each clip's content:
Font size: onChangeDeep((meta) => ({ text: { ...(meta.text ?? { content: '' }), fontSize: value } }))
Step 5: Update PropertiesPanel to compute and pass all bulk props (src/tools/video-editor/components/PropertiesPanel/PropertiesPanel.tsx)
Scope: Medium
Expand shared-value computation (PropertiesPanel.tsx:188-191) for all fields needed by BulkClipPanel. Use getSharedValue for scalars and getSharedNestedValue for entrance/exit/continuous/text.
ComputebulkVisibleTabs using getBulkVisibleTabs(bulkSelectedClips, tracks).
WireonChange to handleUpdateClips(selectedClipIdsList, patch) (scalar fields).
WireonChangeDeep to handleUpdateClipsDeep(selectedClipIdsList, patchFn) (nested fields).
WireonResetPosition to handleResetClipsPosition(selectedClipIdsList).
WireonToggleMute to handleToggleMuteClips(selectedClipIdsList).
Phase 3: Keyboard & Context Menu Multi-Select Operations
Step 6: Enable arrow-key track movement for multi-select (src/tools/video-editor/hooks/useTimelineTrackManagement.ts, src/tools/video-editor/components/VideoEditorShell.tsx)
Scope: Medium
AddmoveSelectedClipsToTrack(direction: 'up' | 'down') to useTimelineTrackManagement.ts. Logic:
Group all selected clips by their current row/track
For each group, find the target track (same kind, one step in direction) — same traversal logic as moveSelectedClipToTrack (useTimelineTrackManagement.ts:135-165)
If ANY group can't find a valid target track, abort entirely (no partial moves)
Move all clips in each group to their target track
Update VideoEditorShell.tsx:50 — change canMoveSelectedClipToTrack guard from editor.selectedClipIds.size === 1 to editor.selectedClipIds.size >= 1.
Wire through useTimelineState.ts and useKeyboardShortcuts.ts — rename to moveSelectedClipsToTrack (plural) or add the new function alongside the existing one.
Step 7: Add "Split at Playhead" to batch context menu (src/tools/video-editor/components/TimelineEditor/ClipAction.tsx, src/tools/video-editor/hooks/useClipEditing.ts)
Scope: Medium
AddhandleSplitClipsAtPlayhead(clipIds: string[]) to useClipEditing.ts — iterates over all clip IDs and calls splitClipAtPlayhead for each that intersects the current playhead time. Clips not intersecting are silently skipped.
Add "Split at Playhead" menu item to the batch context menu in ClipAction.tsx (after the existing mute item, before delete). Renders with Scissors icon: "Split {N} clips at playhead".
Keep single-clip "Split Here" (cursor-position split) as single-only — cursor position is per-clip-specific.
Wire the new handler through TimelineEditorContext to ClipAction's props.
Phase 4: Validation
Step 8: TypeScript compilation check
Scope: Small
Runnpx tsc --noEmit to catch type errors from the expanded interfaces and new handler signatures.
Fix any type mismatches.
Step 9: Manual testing checklist
Scope: Small
Select 2+ video clips on visual tracks → verify Effects, Timing, Position, Audio tabs all appear. Edit entrance effect → confirm each clip keeps its own duration. Edit opacity → confirm all update.
"version": 2,
"timestamp": "2026-03-26T04:58:25Z",
"hash": "sha256:51f5655441ac84d0bd0cb351f4e58f0dda5f506149b76d0900c104d311ffc850",
"changes_summary": "Key changes from v1:\n\n1. Fixed shallow-merge bug (flag bulk-editing-nested-patches): Added handleUpdateClipsDeep (Step 2) that takes a patch factory function instead of a static patch. Each clip's existing nested fields (entrance.duration, text.content, etc.) are preserved because the factory receives the clip's current meta. BulkClipPanel exposes two onChange callbacks: onChange for safe scalar fields and onChangeDeep for nested objects.\n\n2. Fixed tab visibility logic (flag bulk-panel-tab-logic): Step 1.4 now correctly mirrors getVisibleClipTabs: Audio tab shown when ANY selected clip is non-text (not just audio-track clips). This matches the single-clip behavior where video clips on visual tracks still get Audio tab.\n\n3. Acknowledged crop/transition scope boundary (flag properties-parity-crop-transition): Overview explicitly states parity means matching ClipPanel, not aspirational features. Crop lives in OverlayEditor, transitions don't exist in UI. Both are out of scope.\n\n4. Acknowledged copy/paste scope boundary (flag context-menu-copy-omitted): Per settled decision DECISION-002, copy/paste has no existing infrastructure and is additive scope.\n\n5. Removed Step 6 (multi-drag gold-plating): Current multi-drag already works (count badge, relative timing). Removed to avoid scope creep.\n\n6. Tightened Step 2 to show exact implementation of the patch factory pattern with code example.",
"flags_addressed": [
"bulk-editing-nested-patches",
"bulk-panel-tab-logic",
"properties-parity-crop-transition",
"context-menu-copy-omitted"
],
"questions": [
"For arrow-key multi-track movement: should clips on DIFFERENT track kinds (e.g., one visual + one audio clip selected) each move independently within their kind, or should the operation be blocked entirely when the selection spans track kinds?",
"For bulk Source In/Source Out editing: these are scalar fields so they'd apply the same value to all clips. Is this useful (e.g., 'trim all clips to start at 2s'), or should from/to be excluded like Start time since each clip has different source media?"
],
"success_criteria": [
"BulkClipPanel shows tabbed UI matching ClipPanel's structure (Effects, Timing, Position, Audio, Text tabs) when 2+ clips are selected",
"All applicable ClipMeta fields are editable in bulk: entrance/exit/continuous effects, speed, from/to, x/y/width/height, opacity, volume, text fontSize/color",
"Mixed values display 'Mixed' placeholder; editing a field applies the new value to all selected clips",
"Tab visibility uses correct logic: Audio shown for any non-text clip (not just audio-track clips), Text shown only when all clips are text",
"Nested-field bulk edits (effects, text) preserve each clip's existing sub-fields (e.g., changing entrance type keeps each clip's entrance duration)",
"Arrow up/down keys move ALL selected clips to adjacent track of matching kind, atomic no-op if any clip is blocked",
"Context menu shows 'Split at Playhead' for multi-select (splits each clip that intersects playhead)",
"TypeScript compiles without errors after all changes",
"Undo correctly reverts bulk edits for all affected clips including nested fields"
],
"assumptions": [
"Bulk 'Start time' editing is excluded \u2014 too destructive (stacks clips). Only speed/from/to from the Timing tab are exposed in bulk mode.",
"Text content editing is excluded from bulk mode \u2014 only fontSize and color are bulk-editable. Content is too clip-specific.",
"Copy/paste is out of scope \u2014 no existing infrastructure to extend (settled decision DECISION-002).",
"Crop and transition controls are out of scope \u2014 they don't exist in ClipPanel (settled decision DECISION-001).",
"Position fields apply absolute values (not deltas) in bulk mode, matching ClipPanel behavior.",
"Custom effect editor is shown in bulk mode only when all selected clips share the same custom effect slug; otherwise hidden.",
"Reset Position in bulk mode clears x/y/width/height/crop for ALL selected clips.",
"The patch factory approach is safe because receives complete nested objects per-clip, avoiding the shallow-merge issue.",
"For arrow-key multi-move, if ANY selected clip can't move in the direction (no valid target track of same kind), the entire operation is a no-op (atomic move-all-or-none)."
],
"structure_warnings": [
"Each step section should reference at least one file in backticks."
],
"delta_from_previous_percent": 74.24
}
code
Plan structure warnings from validator:
[
"Each step section should reference at least one file in backticks."
]
code
Existing flags:
[
{
"id": "bulk-editing-nested-patches",
"concern": "Bulk editing: nested ClipMeta patches are shallow-merged, so the plan's assumption that handleUpdateClips already supports bulk text/entrance/exit/continuous updates is incorrect.",
"status": "addressed",
"severity": "significant"
},
{
"id": "bulk-panel-tab-logic",
"concern": "Bulk panel tabs: the proposed visibility rules diverge from the actual single-clip behavior, so the bulk panel would lose parity for common selections.",
"status": "addressed",
"severity": "significant"
},
{
"id": "properties-parity-crop-transition",
"concern": "Properties parity: the plan equates parity with mirroring ClipPanel, but the repository's single-clip properties UI does not currently expose crop or transition controls, even though the idea explicitly calls those out.",
"status": "addressed",
"severity": "significant"
},
{
"id": "context-menu-copy-omitted",
"concern": "Context menu: the plan drops requested multi-copy support even though the idea explicitly includes copy and the repository has no existing clip copy/paste workflow to fall back on.",
"status": "addressed",
"severity": "significant"
},
{
"id": "validation-undo-scope",
"concern": "Validation: Scope creep: the plan makes undo behavior a success criterion even though this editor codebase does not currently implement undo/redo.",
"status": "open",
"severity": "minor"
}
]
code
Known accepted debt grouped by subsystem:
{
"agent-chat-rendering": [
{
"id": "DEBT-007",
"concern": "removing the duplicate assistant turn may hide message_user text if the frontend only renders assistant-role turns as chat bubbles.",
"occurrence_count": 1,
"plan_ids": [
"refactor-ai-timeline-agent-20260326-0157"
]
}
],
"conflict-resolution": [
{
"id": "DEBT-004",
"concern": "silently reloading agent-originated timeline updates would discard dirty local edits.",
"occurrence_count": 1,
"plan_ids": [
"build-a-turn-based-timeline-20260326-0005"
]
}
],
"issue-detection": [
{
"id": "DEBT-006",
"concern": "mid-sentence-cut detection is not implementable without transcript/profile data that the current provider doesn't expose.",
"occurrence_count": 1,
"plan_ids": [
"build-a-turn-based-timeline-20260326-0005"
]
}
],
"optimistic-locking": [
{
"id": "DEBT-002",
"concern": "plan only specifies version checking at the db write layer; the ui load/state/save path doesn't carry config_version yet.",
"occurrence_count": 1,
"plan_ids": [
"build-a-turn-based-timeline-20260326-0005"
]
}
],
"realtime-subscriptions": [
{
"id": "DEBT-003",
"concern": "the shared realtime system doesn't know about timeline_agent_sessions; step 7 hooks need their own channel subscription.",
"occurrence_count": 1,
"plan_ids": [
"build-a-turn-based-timeline-20260326-0005"
]
}
],
"selection-save-bridge": [
{
"id": "DEBT-009",
"concern": "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.",
"occurrence_count": 1,
"plan_ids": [
"multi-select-timeline-clips-20260326-0415"
]
}
],
"task-deduplication": [
{
"id": "DEBT-001",
"concern": "server-generated idempotency keys would break retry deduplication because retried requests get fresh keys.",
"occurrence_count": 1,
"plan_ids": [
"migrate-all-task-creation-20260325-2354"
]
}
],
"task-system-integration": [
{
"id": "DEBT-005",
"concern": "create_generation_task is underspecified against the actual task family system.",
"occurrence_count": 1,
"plan_ids": [
"build-a-turn-based-timeline-20260326-0005"
]
}
],
"tool-error-propagation": [
{
"id": "DEBT-008",
"concern": "a blanket catch in executetool would silently downgrade db/persistence failures into ordinary tool results, changing the session error/http 500 behavior.",
"occurrence_count": 1,
"plan_ids": [
"refactor-ai-timeline-agent-20260326-0157"
]
}
]
}
code
Escalated debt subsystems:
[]
Debt guidance:
- These are known accepted limitations. Do not re-flag them unless the current plan makes them worse, broadens them, or fails to contain them.
- Prefix every new concern with a subsystem tag followed by a colon, for example `Timeout recovery: retry backoff remains brittle`.
- When a concern is recurring debt that still needs to be flagged, prefix it with `Recurring debt:` after the subsystem tag, for example `Timeout recovery: Recurring debt: retry backoff remains brittle`.
Requirements:
- Consider whether the plan is at the right level of abstraction.
- Reuse existing flag IDs when the same concern is still open.
- `verified_flag_ids` should list previously addressed flags that now appear resolved.
- Focus on concrete issues that would cause real problems.
- Robustness level: standard. Use balanced judgment. Flag significant risks, but do not spend flags on minor polish or executor-obvious boilerplate.
- Verify that the plan remains aligned with the user's original intent.
- Verify that the plan follows the expected structure: one H1 title, `## Overview`, numbered step sections (`### Step N:` under `## Phase` headers, or flat `## Step N:`) with file references and numbered substeps, plus `## Execution Order` or `## Validation Order`.
- Missing required sections or step coverage (for example: no H1, no `## Overview`, or no step sections at all) should be flagged as category `completeness` with severity_hint `likely-significant`.
- Structural formatting within steps (for example: prose instead of numbered substeps, or a missing file reference inside an otherwise actionable step) should usually be category `completeness` with severity_hint `likely-minor` because the executor can still follow the instructions.
- Ask whether the plan is the simplest approach that solves the stated problem, whether it could use fewer steps or less machinery, and whether it introduces unnecessary complexity.
- Over-engineering concerns should use category `maintainability`, should usually prefix the concern with "Over-engineering:", and should scale severity_hint to the practical impact.
- Flag scope creep explicitly when the plan grows beyond the original idea or recorded user notes. Use the phrase "Scope creep:" in the concern.
- Assign severity_hint carefully. Implementation details the executor will naturally resolve should usually be `likely-minor`.