Skip to content

Desktop: keep export actions tied to the current preview - #3834

Merged
ashhart merged 2 commits into
ashhart:mainfrom
AIflow-Labs:codex/fix-3829-export-preview
Nov 19, 2026
Merged

ashhart merged 2 commits into
ashhart:mainfrom
AIflow-Labs:codex/fix-3829-export-preview

Conversation

@AIFlowML

@AIFlowML AIFlowML commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

Changing the run, export mode or redaction choice starts a new preview. The panel clears the previous preview immediately and keeps Copy JSON and Save disabled until the current selection finishes successfully. Late completions cannot replace another selection's preview or update its action feedback.

  • Issue: Fixes Desktop Export Run can copy the previous preview while new options are building #3829
  • Stacked on: main at 8cbef9777b9a05dfaff99d5aa9c2ce52fe2b00f8
  • atc overlap --json: ATC reported no conflicts across 20 local worktrees at 2026-11-18T15:07:23Z and could not finish its PR scan. The paginated GitHub audit at 2026-11-18T15:10:01Z checked both paths, including rename origins, across 481 open PR heads, with zero overlaps. The head test-merges with main and the 43 open contributor heads used in the local integration check.

Checks on this head

  • Head commit: 629949db91a437e1ed87dfdbe8b5523203478ca2
  • Lean checker: 221 inherited findings on both base and head, zero new. python3 tools/pr_check.py --base upstream/main reported zero errors and zero warnings.
  • Focused regression: node node_modules/jiti/lib/jiti-cli.mjs src/components/ExportPanel.test.tsx failed on main because the old preview remained visible after an option change. It passed on this head. The fixture checks stale actions before the next render, a failed build, responses arriving out of order, closing and reopening the same run, and successful Copy and Save on the replacement preview.
  • Desktop on M5 Max, Node 22.23.3: npm run typecheck, npm run build, and npm run verify:mobile passed. npm test passed 861 of 862 files standalone, with the inherited sandbox-git-control.test.ts assertion that a Git commit succeeds. The local integration tree 95a9e5d589718a11829733354b4e4f3207d3848f passed all 889 test files in a full checkout with Desktop and mobile dependencies installed.
  • Native host on M5 Max, Zig 0.17.0: zig build test test-golden -Dcpu=apple_m1 passed 7,491 tests, skipped 92, and reported zero unexpected golden differences. The inherited macOS memcpy link guard still fails, tracked in macOS native binary links internal memcpy after the device profile reader landed #3760 and fixed in Restore libSystem memcpy when reading device profiles #3761. zig fmt --check build.zig zig and git diff --check passed.
  • CI: Pending at publication.
  • Not run: Packaged clipboard and native save-dialog checks on Windows and Linux. The regression uses a synthetic preview, fake clipboard and stubbed save IPC on macOS.

Receipt

N/A. This change is confined to the Desktop export panel and does not reach inference.

Checklist

  • The title and description match the head commit, including the receipt and the stack.
  • New tests fail before the change, pass after it, and skip cleanly without their dependency.
  • Comments and docstrings are one line. No measurements or history in the source.
  • No personal data, machine names, internal hosts or local paths in the diff or its commits. No AI attribution lines.

Igor Lessio - AIFLOW LABS

@ashhart

ashhart commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Thanks @AIFlowML. Starting a fresh preview when the run, mode or redaction changes and keeping Copy and Save disabled until it succeeds is the right shape, and the panel test fails on main and passes here. Nothing in inference changes.

The red pytest job is the benchmark TTFT test, which #3783 makes deterministic; this change doesn't touch it. Nothing to change.

  • Synthena

@ashhart
ashhart force-pushed the codex/fix-3829-export-preview branch from 629949d to d88e1c4 Compare November 19, 2026 03:31
@ashhart
ashhart merged commit 0466fd7 into ashhart:main Nov 19, 2026
2 of 16 checks passed
@ashhart

ashhart commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Thank you @AIFlowML. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Desktop Export Run can copy the previous preview while new options are building

2 participants