Conversation
🎩 PreviewA preview build has been created at: |
This was referenced Sep 22, 2026
Collaborator
Author
The agent edits the pipeline the user is watching, and its work lands wherever the graph grows — routinely outside the viewport, which is the whole point of watching. Every spec mutation the agent's bridge makes runs inside an undo group, so wrapping the undo store the bridge is handed catches all of them and nothing the user does on the canvas. Each one asks the editor store for a fit; the canvas coalesces a burst into one animated refit, and skips a workarea tab that is mounted but off screen. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
camielvs
force-pushed
the
09-22-feat_bring_tangent_onto_the_dashboard
branch
from
September 23, 2026 20:57
e1be4f8 to
fd3dda9
Compare
camielvs
force-pushed
the
09-22-feat_autofit_the_canvas_while_an_agent_edits
branch
from
September 23, 2026 20:57
a7d6d5d to
2284c78
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Why
The agent edits the pipeline the user is watching on the Tangent page, and its
work lands wherever the graph happens to grow. Past the first couple of tasks
that is routinely outside the viewport, so the user watches an empty canvas
while the agent works — which defeats the point of having the canvas open.
What
Every spec mutation the agent's bridge makes runs inside an undo group, so the
undo store the bridge is handed is the one seam that catches all of them — and
only them, since nothing the user does on the canvas goes through the bridge's
copy.
fitViewAfterEditswraps it and asks the editor store for a fit aftereach group;
useFitViewOnRequeston the canvas answers.for 250ms before a single animated
fitView({ maxZoom: 1, duration: 300 }).Separate tool calls are seconds apart, so each still reads as its own step.
size; fitting against nothing would leave it on a viewport nobody chose.
TangentEditorAgentProvider, which only renders for an embedded Tangentsession, so
/editor-v2never requests a fit.Deliberate trade-off: the viewport does move under the user while the agent
works. That is the ask — seeing what is going on beats holding a position.
Testing
useFitViewOnRequest.test.tsx— frames on request, stays put when nothingasks, one fit per burst, fits again for a later request, skips a zero-size
pane, nothing after unmount.
fitViewAfterEdits.test.ts— requests per edit, counts each one, stillgroups the edit and returns its result.
Not verified in the browser: the remote
editorsub-agent errors on spawn inmy local environment, so no agent edit reaches the canvas to watch. It fails
identically on a clean tree, so it is not this change — but the visible
behaviour is worth a look once that is back up.
🤖 Generated with Claude Code