Skip to content

Scripts: Back from a directly opened execution resolves the script; ↗ opens in a new tab. CU-17tkuw5ty38 - #532

Merged
oleksandr-blip merged 1 commit into
mainfrom
fix/script-execution-back-link
Oct 2, 2026
Merged

oleksandr-blip merged 1 commit into
mainfrom
fix/script-execution-back-link

Conversation

@oleksandr-blip

@oleksandr-blip oleksandr-blip commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Fixes Back on Script Execution Details opened via direct link leads to "Couldn't load this script".

Back target. ScriptExecution.scriptId is the raw DB id, but Script Details resolves ?id= through node(id:), so Back from an execution opened by URL navigated to /scripts/details?id=<raw> and failed with expecting a valid global id. In-app it only worked because Back used browser history. The target is now ensureGlobalIdForType('Script', scriptId), which matches the id the in-app link uses.

↗ on Execution History / schedule runs. Both did a same-tab router.push, identical to clicking the row. They now use openInNewTab, like every other ↗ in the app.

Verified on localhost against a live backend: opened an execution by URL in a fresh tab, clicked Back, and Script Details → Execution History loaded. The ↗ on an Execution History row opened the execution in a new tab. Lint (eslint.ci.mjs), Prettier and tsc pass. Not browser-checked: the ↗ on schedule runs (same one-line change).

Change-Set: fix-script-execution-back-link

🤖 Generated with Claude Code

Change set flamingo-stack/fix-script-execution-back-link: this pull request is the only one in it so far. Another pull request joins by naming this one in a Depends-On line, or by carrying the same Change-Set line.

Linked work

  • …and 1 linked item not shown here

Linked by the Depends-On / Change-Set lines in these descriptions; this block is maintained by the hub.

… opens executions and runs in a new tab. CU-17tkuw5ty38

Script Execution Details built its Back target from `scriptId`, the raw DB id,
while Script Details resolves `?id=` through `node(id:)` — so Back from a page
opened by URL failed with "Couldn't load this script". Encode it as a Script
global id.

The ↗ on the Execution History and schedule-runs rows did a same-tab push
(identical to the row click); it now opens a new tab like every other ↗.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@oleksandr-blip
oleksandr-blip requested review from a team as code owners October 2, 2026 12:26
@github-actions

github-actions Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

🦩 Flamingo Code Review

No findings on the current head.

Mode: advisory


Need another pass? Commits pushed after this review are not reviewed automatically.

  • Review the new commits — the commits added since this review
  • Review the whole diff again — ignoring what was already reviewed

Prefer typing? Comment @flamingo-review, or @flamingo-review full. To review every push on this pull request, add the flamingo-review-always label.

React 👍/👎 on inline comments to teach the reviewer.

Started 2026-10-02 12:26 UTC · updated 2026-10-02 12:28 UTC · workflow run

@oleksandr-blip
oleksandr-blip enabled auto-merge (squash) October 2, 2026 12:28
@oleksandr-blip
oleksandr-blip merged commit f46655d into main Oct 2, 2026
17 checks passed
@oleksandr-blip
oleksandr-blip deleted the fix/script-execution-back-link branch October 2, 2026 12:35
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.

2 participants