fix: look up a script's head at its row path, and show flow and app version ids bare

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-09-14 16:22:56 +02:00
co-authored by Claude Opus 5
parent 7ac3aed2ef
commit a3cea5184f
2 changed files with 5 additions and 2 deletions
@@ -559,10 +559,13 @@
try {
if (initialPath && initialPath != '') {
// The row's path, not `initialPath`: that is the typed path, where a
// staged rename has nothing deployed, and a missing head would deploy
// on a base that already has a child.
actual_parent_hash = (
await ScriptService.getScriptLatestVersion({
workspace: opWorkspace!,
path: initialPath
path: userDraftPath || initialPath
})
)?.script_hash
}
@@ -58,7 +58,7 @@
// Scripts are versioned by hash, the other kinds by a numeric version id;
// the diff picker renders them the same way.
function formatVersion(v: string): string {
return itemKind === 'script' ? v.slice(0, 8) : `v${v}`
return itemKind === 'script' ? v.slice(0, 8) : v
}
async function loadLatestDeploy() {