fix(14.1): pass force=true for re-analyze/retry actions from StorageBrowser rows
onAnalyzeFile stored analysisPending without force, so re-analyze and retry always hit the already_current check and silently skipped. Now derives force flag from the file's analysis_status (same logic as cloudRowActionKind). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
6ee48f188f
commit
5cc38d5e59
@@ -443,6 +443,10 @@ function onFileOpen(file) {
|
||||
*/
|
||||
async function onAnalyzeFile(file) {
|
||||
if (!file?.provider_item_id) return
|
||||
// Re-analyze and Retry actions must bypass the already_current check (D-11).
|
||||
const status = file.analysis_status
|
||||
const needsForce = status === 'indexed' || status === 'already_current' ||
|
||||
status === 'stale' || status === 'current' || status === 'failed' || status === 'partial'
|
||||
try {
|
||||
const estimate = await cloudStore.requestEstimate(connectionId.value, {
|
||||
scope: 'file',
|
||||
@@ -453,6 +457,7 @@ async function onAnalyzeFile(file) {
|
||||
scope: 'file',
|
||||
provider_item_ids: [file.provider_item_id],
|
||||
recursive: false,
|
||||
...(needsForce ? { force: true } : {}),
|
||||
}
|
||||
// Show estimate modal — confirmed via onAnalysisConfirmed
|
||||
analysisEstimate.value = estimate
|
||||
|
||||
Reference in New Issue
Block a user