fix(inspect): pass the inspection refresh to Choose prompt by reference

This commit is contained in:
Vito Sansevero
2026-11-19 18:27:48 -08:00
parent 66e6a652d7
commit 8cc7942425
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -359,7 +359,7 @@ export function mountImages(main, api, parentScope, {embedded = false, fetchPage
for (const video of details.querySelectorAll('video')) releaseVideo(video);
// #498: a removed file's panel offers Return to library and nothing that writes (Collections…, Delete…, tag chips).
const removedView = filters.removed;
detailInspector = mountFileInspector(details, {api, sender, parentScope:scope, variant:'panel', onReviewDecided:() => inspection.refresh(),
detailInspector = mountFileInspector(details, {api, sender, parentScope:scope, variant:'panel', onReviewDecided:inspection.refresh,
onTagFilter:embedded || removedView ? undefined : filterByTag, onRetry:() => inspection.retry(), onLoad:() => inspection.load(), onRefresh:refreshInspectionCollection,
collections:removedView ? null : inspectorCollections, onCollectionsChanged:collectionsChangedBy,
onDelete:embedded || removedView ? null : (target, button) => deleteOne(target, button),
+1 -1
View File
@@ -161,7 +161,7 @@ export function createMediaViewer({api,container,parentScope,inspectionControlle
body.append(left,details);dialog.append(header,body);container.append(dialog);
const localSender = {open(roles,trigger) {session.stop();sender.open(roles,trigger);}};
const inspector = mountFileInspector(details,{api,sender:localSender,parentScope:local,variant:'full',onInteraction:() => session.stop(),onRetry:() => inspectionController.retry(),
onLoad:() => inspectionController.load?.(),onReviewDecided:() => inspectionController.refresh?.(),
onLoad:() => inspectionController.load?.(),onReviewDecided:inspectionController.refresh,
onRefresh:onRefresh ? () => { closeViewer();onRefresh(); } : undefined,collections,
onCollectionsChanged:({added,removed}) => {
collectionChanges ??= {added:[],removed:[]};
+1 -1
View File
@@ -69,7 +69,7 @@ export function mountRecordedRun(container, {api, controller, sender, parentScop
const evidenceValues = new Map();
const blocks = mountPromptBlocks(prompts, {sender, parentScope:local});
const inspector = mountFileInspector(inspectorContainer, {api, sender, parentScope:local, inline:true, promptContext:'Current file', onRetry:() => inspection.retry(), onRefresh:refreshCurrent,
onReviewDecided:() => inspection.refresh()});
onReviewDecided:inspection.refresh});
function selectedReceipt() {
const selected = latest.selection.receipt;
return selected && latest.outputs.items.find(item => occurrenceKey(item.occurrence) === occurrenceKey(selected));