Skip to content

fix(chat): translate every conversation-file error and wire the file preview through the generated client (#21159, #20906) - #21214

Closed
mrveiss wants to merge 3 commits into
mainfrom
issue-21159-20906
Closed

mrveiss wants to merge 3 commits into
mainfrom
issue-21159-20906

Conversation

@mrveiss

@mrveiss mrveiss commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Thinking Path

  • fix(chat): useConversationFiles still shows English literals on read, rename and guard errors #21159: useConversationFiles.ts still set English literals on its read, delete, download, preview, rename and guard error paths. One defect class in one file, so every error.value and every extractApiErrorMessage fallback now goes through chat.conversationFiles.* keys (English only), via two small helpers (tr, failureText) so a server detail still wins over the translated fallback.
  • wire(chat): the conversation file preview route is built but has no caller; wire it to the chat file list #20906: GET /conversation-files/conversation/{session_id}/preview/{file_id} had no caller; only a hand-built preview_url string pointed at it. The same composable owns the panel's preview action, so the wiring lives there (same file, one PR).
  • The response type is read from the generated contract (paths[...]['get']['responses'][200]), not hand-written. The hand-built preview_url field is removed from ConversationFile and the list mapper.
  • Preview for a text/* attachment now calls the route and shows its preview_content in a pane in ChatFilePanel.vue. Types the route has no inline text for (images, PDF, audio, video) keep the existing authenticated blob-tab path unchanged.

What Changed

  • autobot-frontend/src/composables/useConversationFiles.ts: all error literals replaced by i18n keys; new preview state, openPreviewPane, closePreview; preview_url removed.
  • autobot-frontend/src/utils/conversationFilePreview.ts (new): ConversationFilePreview type from the generated paths.
  • autobot-frontend/src/utils/conversationFileList.ts: no hand-built preview_url.
  • autobot-frontend/src/components/chat/ChatFilePanel.vue: preview pane.
  • autobot-frontend/src/i18n/locales/en.json: new chat.conversationFiles.* error keys and chat.filePanel.previewEmpty / closePreview.
  • repo_tests/unconnected_code_baseline.txt: the route's entry removed.
  • Tests: useConversationFiles.errors.spec.ts (rename failure: translated fallback and kept server detail; missing-parameter and no-session guards), ChatFilePanel.preview.spec.ts (opening a preview calls the route and renders the response), conversationFileList.test.ts updated.
  • useConversationFiles.ts + ChatFilePanel.vue (fix(chat): useConversationFiles still shows English literals on read, rename and guard errors #21159): the composable takes a string, ref or getter and resolves the conversation id on every request and guard; the panel passes () => props.sessionId, so switching conversations with the panel open no longer shows or acts on the previous conversation's files, and a late list reply for a left conversation is dropped. Test: useConversationFiles.sessionReactivity.test.ts.

Not in scope: #20225 and #20195 stay in their own issues.

Verification

  • Scratch checkout of the branch before the last merge of main: vitest on src/composables/__tests__, src/components/chat, the list-mapper test and the locale-parity test: 126 files passed, 1522 tests passed, 1 skipped.
  • vue-tsc --noEmit -p tsconfig.app.json: exit 0. eslint on the touched files: exit 0.
  • repo_tests/unconnected_code_gate_20512_test.py with frontend_api_contract_ratchet_test.py: 57 passed (baseline entry removed, route now reached; the inline-generic ratchet holds).
  • No English literal remains: grep -nE "error.value = '|, '[A-Z]" useConversationFiles.ts returns nothing.

Model Used

Claude Sonnet 5.5

Closes #21159
Refs #20906

#20906 AC1 (a production caller reaches the route through the generated client, #20867) is not met: no generated operation client exists yet and #20867 is open. ACs 2 and 3 are delivered.

@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 49 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 6cd72da and 30ebc9d.

Files ignored due to path filters: 1

  • repo_tests/unconnected_code_baseline.txt is excluded by !**/*_baseline.txt
Files selected for processing: 17

  • autobot-frontend/src/components/chat/ChatFilePanel.vue
  • autobot-frontend/src/components/chat/FilePreviewPane.vue
  • autobot-frontend/src/components/chat/__tests__/ChatFilePanel.preview.spec.ts
  • autobot-frontend/src/composables/__tests__/useConversationFiles.errors.spec.ts
  • autobot-frontend/src/composables/__tests__/useConversationFiles.latestRequest.test.ts
  • autobot-frontend/src/composables/__tests__/useConversationFiles.preview.test.ts
  • autobot-frontend/src/composables/__tests__/useConversationFiles.previewPane.test.ts
  • autobot-frontend/src/composables/__tests__/useConversationFiles.sessionReactivity.test.ts
  • autobot-frontend/src/composables/__tests__/useLoadingState.test.ts
  • autobot-frontend/src/composables/useConversationFilePreview.ts
  • autobot-frontend/src/composables/useConversationFiles.ts
  • autobot-frontend/src/composables/useLatestRequest.ts
  • autobot-frontend/src/composables/useLoadingState.ts
  • autobot-frontend/src/i18n/locales/en.json
  • autobot-frontend/src/utils/__tests__/conversationFileList.test.ts
  • autobot-frontend/src/utils/conversationFileList.ts
  • autobot-frontend/src/utils/conversationFilePreview.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@mrveiss mrveiss added this to the M3 - Refined GUI complete milestone Nov 8, 2026
@mrveiss mrveiss added frontend phase:M3.9 Chat, Agents, Analytics and Settings screens labels Nov 8, 2026
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Notice: 29 open PRs — past the runaway threshold (25)

This is not a request to defer this PR. There is no cap on open PRs (#19397) -- nothing blocks opening or pushing a PR.

This notice only means the count is high enough to be worth a glance for a runaway — something opening PRs in a loop, or a merge pipeline that has stalled so nothing is draining.

Currently open:

If the queue is draining normally, ignore this. Otherwise:

  1. Check whether CI is dispatching at all — see the ci-dispatch-watchdog status on these PRs
  2. Approved PRs land through the merge train the coordinator sequences (merge commits, never squash) -- check the open chore(merge-train) PR is moving, not each PR on its own
  3. Look for a loop opening near-identical PRs

Warn-only runaway detector — .github/workflows/pr-queue-gate.yml. It never blocks a merge.

@mrveiss

mrveiss commented Nov 8, 2026

Copy link
Copy Markdown
Owner Author

Code review (code-reviewer pass) at 4e72036

Verdict: CHANGES NEEDED (one MEDIUM behaviour regression risk plus a11y and test gaps; no blockers in the i18n half).

Checked: no preview_url caller remains anywhere in autobot-frontend/src; non-text types (image, pdf, json) still take the blob path; the #21159 grep finds no English literal left; file sizes OK (composable 543, panel 578, both under 600); the generated type is real (ConversationFilePreviewResponse).

Severity File:line Finding Fix
MEDIUM useConversationFiles.ts:324 The cast (await api.get(...)) as ConversationFilePreview | null is applied to an untyped result, so it asserts the shape instead of checking it. The type is derived correctly from paths, but a drift cannot fail type-checking here as the doc comment claims. Call api.get<ConversationFilePreview>(...) so the contract is carried by the generic, and drop the as.
MEDIUM useConversationFiles.ts:294-310, 324 Any failure of the preview request (the route family has open defects, #20225) throws into the outer catch and shows "Preview failed". Text files used to open via the blob path; they now regress to an error whenever the preview route fails, rather than falling back as the docstring says. Catch inside openPreviewPane, log it, return false so the blob path still runs; add a test.
MEDIUM useConversationFiles.ts:324 (AC1 of #20906) The AC says the caller goes through the generated client (#20867). The call is still a hand-built URL string through api.get; only the response type is generated. Use the generated client's operation if #20867 provides one; otherwise state in the PR that AC1 is met in type only and leave it unticked.
MEDIUM ChatFilePanel.vue:308-309 A11y: role="dialog" without aria-modal="true", no Escape-to-close, no focus move into the pane or restore on close, no focus trap. Keyboard users cannot dismiss it. Add aria-modal, @keydown.esc, focus the close button on open and return focus to the trigger.
LOW useConversationFiles.ts:111, 330; ChatFilePanel.vue:523 Stale preview: nothing clears preview when the file is deleted or renamed, or when sessionId changes (the watcher only reloads files, and the composable is built once from props.sessionId). A second previewFile call is unguarded, so a slow earlier response can overwrite a later one. No loading state while the preview is fetched. Clear preview in the sessionId watcher and in delete/rename; keep a request token and ignore superseded responses.
LOW ChatFilePanel.vue:314 The server returns only the first part of the content, and the pane gives no truncation or preview_type hint, so a long file looks complete. Show a "preview truncated" note, or a download link, when the content is cut.
LOW ChatFilePanel.vue:314 <pre> scrolls but is not focusable, so keyboard users cannot scroll it. Add tabindex="0" and an aria-label.
LOW ChatFilePanel.preview.spec.ts Only the happy path is tested. Missing: close pane, empty content (previewEmpty), preview_available: false falling back to the blob path, a non-text type not calling the preview route, a failed preview request. Add those cases; the AC1/AC3 evidence rests on one test.
LOW useConversationFiles.ts:287-320 previewFile is about 33 lines, over the 30-line rule (it was 29-32 before; this PR adds one more branch). Extract the blob/download fallback into a helper.
LOW useConversationFiles.ts:17-37 Two styles coexist: tr('x') and describeFailure(err, 'chat.conversationFiles.x') with full keys. Use tr consistently, or pass the short key everywhere.
INFO useConversationFiles.errors.spec.ts Covers rename (fallback, server detail kept, success false), the missing-parameter guard and the no-session guard. This meets the #21159 AC2; read, delete, download and preview fallbacks are untested. Optional: a table-driven case for the remaining fallbacks.

Not run: tests and type-check (read-only review of the diff via git show).

@mrveiss

mrveiss commented Nov 8, 2026

Copy link
Copy Markdown
Owner Author

Code review follow-up at 92522f9

# Finding Fix Test
1, 3 Untyped api.get + as cast; AC1 wants the generated client No generated operation client exists in the frontend (the only generated artefact is the paths type map). The call now goes through the repo's canonical typed-call pattern: URL from getApiBase(), response typed by assignment to the generated ConversationFilePreview (no as, no inline generic, so the inline_generics ratchet is untouched) vue-tsc clean; useConversationFiles.previewPane.test.ts
2 Preview-route failure showed "Preview failed" fetchPreview catches, logs and returns null; previewFile falls through to the blob path "falls back to the blob tab, with no error, when the preview request fails"
4 Dialog a11y New FilePreviewPane.vue (keeps ChatFilePanel.vue under 600 lines): aria-modal, Escape and backdrop close, focus trap, focus moves in on open and returns to the trigger on close (kit useFocusTrap/useFocusRestore/useInitialFocus) ChatFilePanel.preview.spec.ts: modal attrs and focus-in, close button, Escape, focus restored
5 Stale preview, overlapping calls, no loading state Pane cleared on delete, bulk delete, rename and session change; request token (latest wins, close discards in-flight); previewLoading + loading text "latest request wins", "closePreview discards...", "clears the pane when its file is deleted or renamed", "keeps the pane when a different file is deleted", session-change and loading specs
6 Truncation hint, <pre> focus The schema has no truncated flag, so truncation is derived (listed size greater than the bytes shown) and a note is shown; <pre> has tabindex=0 and an aria-label truncation present/absent specs, content-label assertion
7 Missing tests close, empty content, preview_available: false, non-text type, failed request, session-change clear see above
8 previewFile over 30 lines Split into openBytesPreview, fetchPreview, openPreviewPane n/a
9 Two failure-text styles One helper failureText(err, tr('key')) everywhere (also keeps the 413 refusal text) existing + new error specs
10 Untested fallbacks Table-driven read, delete, download, preview cases in useConversationFiles.errors.spec.ts 4 new cases

New strings (previewLoading, previewTruncated, previewContentLabel) are in en.json only.

AC1 of #20906: NOT met in full. The response type is generated and checked; the call itself is a hand-built URL through the shared client because no generated operation client exists. Leave AC1 unticked until one does.

Evidence: vitest src/composables/__tests__ + src/components/chat 126 files / 1533 tests passed before the merge (one spec fixed after); touched specs after merge 5 files / 46 tests passed; locale-parity 11 passed; vue-tsc --noEmit -p tsconfig.app.json exit 0; eslint clean on touched files; unconnected_code_gate_20512_test.py + frontend_api_contract_ratchet_test.py 57 passed; the pre-push hook caught a fragmentation-ratchet rise from a scoped style block in the new component, fixed by using utility classes (frontend_fragmentation_ratchet_test.py 53 passed). Main merged in, no conflicts.

@mrveiss

mrveiss commented Nov 8, 2026

Copy link
Copy Markdown
Owner Author

Follow-up at b2c38fe: session reactivity

Defect: useConversationFiles(sessionId: string) captured the conversation id once, so with the file panel open (no :key on it) switching conversations left the list, upload, delete, preview and download calls on the previous conversation.

Fix: the composable takes a string, ref or getter (MaybeRefOrGetter<string>, resolved with toValue) and resolves the id at call time in every request URL and every guard. ChatFilePanel.vue passes () => props.sessionId. A list reply that arrives after the user left that conversation is dropped. A plain string still works.

Test: new useConversationFiles.sessionReactivity.test.ts, 4 tests (ref switch hits the new session for list, upload, delete, preview; getter and plain string; guards re-evaluate; stale list reply dropped), 4 passed. Before the merge with main: 131 files / 1578 passed in composables, chat components and i18n (locale parity included); after: 6 files / 50 passed on the conversation-file and file-panel specs. vue-tsc and eslint clean.

@mrveiss

mrveiss commented Nov 8, 2026

Copy link
Copy Markdown
Owner Author

Code review (code-reviewer pass) follow-up at b2c38fe

CHANGES NEEDED - all prior findings are resolved, but one new defect in the preview loading state (introduced by the latest-wins token) should be fixed first.

Prior findings: typed preview call (const data: ConversationFilePreview | null = await api.get(...), type read from generated paths, no cast) resolved; preview failure returns null and falls back to the bytes/blob tab resolved; FilePreviewPane.vue has role=dialog, aria-modal, Escape, useFocusTrap/useFocusRestore/useInitialFocus, and no scoped style resolved; clear on delete, bulk delete, rename, session change plus latest-wins token and previewLoading resolved; truncation note and focusable pre (tabindex=0, aria-label) resolved; helpers previewFile/openPreviewPane/fetchPreview are all under 30 lines resolved; failure text goes through one failureText/tr path with i18n keys resolved; error-fallback tests present. Sizes: useConversationFiles.ts 590 lines, ChatFilePanel.vue 573 (both under 600, but the composable has 10 lines of headroom, so the next change must split it).

Session reactivity: useConversationFiles resolves toValue through currentSessionId() in every request URL and guard; no captured id remains (conversationApi() is evaluated at call time).

Severity file:line finding fix
MEDIUM useConversationFiles.ts openPreviewPane / previewFile (token !== previewToken branch) Stuck loading pane: click a text file (previewLoading=true), then click a non-text file before the reply. previewFile bumps the token, openPreviewPane returns false early without touching previewLoading, the bytes open in a tab, and the first reply then hits token !== previewToken -> return true without resetting previewLoading. The pane stays on "Loading preview..." until the user closes it. In previewFile, set previewLoading.value = false when taking the non-pane path (or reset it at the start of every call), and add a test for text-then-image.
LOW useConversationFiles.ts loadFiles (stale-reply guard) The guard compares ids only, so A -> B -> A accepts a reply from the first A request; harmless (same conversation, merely older) but a slower older reply can overwrite a newer one. The catch is unguarded, so a stale failure writes error into the new conversation, and wrap shares one loading flag, so the stale request's finally clears it while the newer one is in flight. Use a monotonically increasing request token (as previewToken) for files, stats, error and loading; add an A -> B -> A test.
LOW ChatFilePanel.vue watch(() => props.sessionId) On a switch only closePreview() and loadFiles() run. files/stats/selection from the previous conversation stay visible until the reply (indefinitely if the new id is empty or the load fails), and previewFile/deleteSelectedFiles can then address old ids against the new session. Clear files, stats and the selection on id change before loading.
LOW useConversationFiles.ts uploadFiles Not abortable; onUploadProgress and the 2s reset timer keep writing the shared uploadProgress after a switch, and the post-upload loadFiles() reloads the new session's list while the file went to the old one (request URL is correctly the old session, so no data is misrouted). Capture the id once per upload and skip progress/reload when it no longer matches, or pass an AbortSignal on session change.

No hardcoded UI strings found in the new code (all $t/tr), no new scoped style, utility classes only. Fix the MEDIUM item (plus its test) and this is approvable; the LOWs may go to a follow-up issue if linked.

@mrveiss

mrveiss commented Nov 8, 2026

Copy link
Copy Markdown
Owner Author

Code review follow-up at eae5eb8

Sev Finding Fix Test
MEDIUM Stuck "Loading preview..." after text then non-text click previewLoading is now owned by the latest request: previewFile sets it per call (true only for text), a superseded reply returns without touching it, close/catch reset it only when current. Preview logic moved to useConversationFilePreview.ts latestRequest.test.ts text-then-image
LOW loadFiles id-only guard, unguarded catch, shared loading Monotonic token (useLatestRequest) covers success and error (plus the session-id check); loading is the latest list request OR the mutation counter A -> B -> A out of order; stale error ignored and loading stays true until the latest ends
LOW Panel kept old list on switch New resetForSession() clears files, stats, selection, preview and revokes in-flight list/upload; the session watch calls it first (also for an empty id) ChatFilePanel.preview.spec.ts switch and empty id; resetForSession composable test
LOW Upload progress, reset timer and reload crossed sessions API client has no abort signal, so ownership = upload token + captured session id: progress, error, 100%, 2s reset and loadFiles() run only while it still owns 3 upload tests (progress ignored after switch, no reload or error from old upload, current session still completes)

Counts: new useConversationFiles.latestRequest.test.ts 7 tests, ChatFilePanel.preview.spec.ts 10 (+1); vitest on composables/tests, components/chat, i18n: 1586 passed, 0 failed after the final guard fix (58/58 on the touched specs); vue-tsc clean; eslint clean.
Sizes: useConversationFiles.ts 590 -> 484, useConversationFilePreview.ts 160, useLatestRequest.ts 17, ChatFilePanel.vue 574.

@mrveiss

mrveiss commented Nov 8, 2026

Copy link
Copy Markdown
Owner Author

Correction to the test count in issuecomment-6728134140: the combined vitest run over src/composables/__tests__, src/components/chat and src/i18n gave 1581 passed and 5 failed, not 0 failed. The 5 failures were in useProviderFallbackChip, usePushNotifications, useThemeVariantRuntime, useThinkingMode and useUiMode, none touched by this PR; rerun alone, all 30 of their tests passed. The touched specs (58 tests) passed in the combined run. CI on this head is the authoritative full run.

@mrveiss

mrveiss commented Nov 8, 2026

Copy link
Copy Markdown
Owner Author

Code review (code-reviewer pass) follow-up at eae5eb8

APPROVE - all 4 prior findings are resolved in code and covered by tests; two LOW items below may go to a linked follow-up.

Prior findings

  • MEDIUM stuck preview loading: resolved. previewFile sets previewLoading = isText per call, a superseded reply returns true without touching it, closePreview and the catch reset it (catch only when still current). Test: text-then-image in useConversationFiles.latestRequest.test.ts.
  • LOW A -> B -> A / stale error: resolved. loadFiles takes a token from useLatestRequest and checks token plus session on both the success and the catch path; finally clears listLoading only for the current token. Tests: A -> B -> A, stale error.
  • LOW session switch kept old list: resolved. The watch calls resetForSession() first (files, stats, selection, preview, list/upload tokens revoked), then loads only for a non-empty id. Test: switch and empty id in ChatFilePanel.preview.spec.ts. Mount needs no reset (state is fresh; it loads when an id exists).
  • LOW upload crossing sessions: resolved. owns() (upload token and captured session) gates progress, reload, 100%, error and the 2s reset. 3 upload tests.

New pieces

  • useLatestRequest.ts: correct (monotonic, invalidate revokes, no shared module state, no leak).
  • Preview split: one implementation in useConversationFilePreview.ts; no preview logic left in useConversationFiles.ts. Re-exports: PreviewPane used by FilePreviewPane.vue; previewBlobType and PREVIEW_BLOB_REVOKE_MS are used only by useConversationFiles.preview.test.ts. Not dead, but test-only (see nit).
  • resetForSession: preview pane holds no blob URL; tab blob URLs are revoked by their own 60s timer, so nothing to revoke on reset.
  • loading = opLoading || listLoading: cannot stick true on an error path (finally for the current token; reset and the no-session branch clear it).
  • Sizes: useConversationFiles.ts 484, useConversationFilePreview.ts 160, ChatFilePanel.vue 574; all under 600. New helpers are each under 30 lines (sendUpload 29). No hardcoded UI strings (tr/$t only).
Severity file:line finding fix
LOW useConversationFiles.ts sendUpload (owns() includes the token) Two uploads in the same session: when the older finishes after the newer started, its success skips loadFiles() and its failure is silently dropped, so that file can be missing from the list (or fail unseen) until the next reload. Gate the reload and the error on the session only; keep the token for progress and the timer.
LOW useConversationFiles.ts wrap (opLoading) The mutation counter stays true for an upload/delete started in the old conversation, so loading shows in the new one until that request ends (it does end; not stuck). Optional: count only mutations whose session still matches, or accept and document.
NIT useConversationFiles.ts:33 Re-exports previewBlobType / PREVIEW_BLOB_REVOKE_MS exist only for one test. Import them from useConversationFilePreview in the test and drop the re-export.
NIT useConversationFiles.ts useConversationFiles The enclosing composable body is still ~390 lines (pre-existing shape; this PR reduced it by 100+). Track in the existing decomposition work.

@mrveiss

mrveiss commented Nov 8, 2026

Copy link
Copy Markdown
Owner Author

Code review follow-up at 7b6f078

Finding Fix Test
LOW: upload owns() included the per-upload token, so an older upload finishing last skipped the reload and dropped its error Reload and error are gated on the session only (inSession()); the token still gates only the shared progress display and the 2s reset 2 new tests in useConversationFiles.latestRequest.test.ts: two concurrent uploads in one session, older finishes last: its error is surfaced; its success reloads the list
LOW: mutation counter kept loading true in the new conversation useLoadingState replaced by a session-scoped counter (opCount + opEpoch); resetForSession bumps the epoch and zeroes the count; a stale mutation's completion does not decrement 1 new test: old-session upload in flight, switch, new upload, old completes (loading stays true), new completes (false)
NIT: test-only re-exports previewBlobType / PREVIEW_BLOB_REVOKE_MS re-export removed; useConversationFiles.preview.test.ts imports from useConversationFilePreview. PreviewPane type re-export kept (used by FilePreviewPane.vue) n/a

Verification: vitest src/composables/__tests__ src/components/chat src/i18n: 132 files passed, 1589 tests passed, 1 skipped, 0 failed. vue-tsc --noEmit -p tsconfig.app.json: exit 0. eslint on the 3 touched files: exit 0. The merge of main afterwards brought only backend files (0 frontend files changed), so no rerun was needed.

@mrveiss

mrveiss commented Nov 9, 2026

Copy link
Copy Markdown
Owner Author

Follow-up at 3d4e2f3: one loading-state implementation

The hand-rolled opCount/opEpoch/wrap copy in useConversationFiles.ts is gone. useLoadingState (canonical, ~59 callers) gains a backward-compatible reset(): it zeroes the pending count, sets isLoading to false and bumps an internal epoch, so a wrap started before the reset neither decrements nor flips state after it (errors still propagate). resetForSession now calls resetOps() from useLoadingState.

Checks: vitest on composables/tests, components/chat, i18n: 132 files passed, 1593 tests passed, 1 skipped (4 new reset tests in useLoadingState.test.ts; existing #21159 session tests unchanged). vue-tsc --noEmit -p tsconfig.app.json: exit 0. eslint on the 3 touched files: exit 0. Merge of origin/main was a no-op.

@mrveiss

mrveiss commented Nov 9, 2026

Copy link
Copy Markdown
Owner Author

Code review (code-reviewer pass) follow-up at 3d4e2f3

Verdict: APPROVE.

Item Check
Two LOWs from the pass at eae5eb8 (upload error/reload gated on the session only; loading scoped to the current conversation) Resolved in 7cdaa56, tests in useConversationFiles.latestRequest.test.ts
Hand-rolled loading counter added in 7cdaa56 duplicated useLoadingState Resolved: useLoadingState gains a backward-compatible reset() (epoch bump, pending 0, isLoading false; a wrap started before the reset no longer decrements). useConversationFiles uses it from resetForSession; the local copy is gone. Existing callers unaffected (only an added return member); 4 reset tests
Test-only re-exports Removed

Tests at 3d4e2f3: vitest on composables, chat components and i18n, 1593 passed, 1 skipped; vue-tsc and eslint clean.

@mrveiss

mrveiss commented Nov 11, 2026

Copy link
Copy Markdown
Owner Author

Landed in #21323 (merge commit a0cfcc1). Content on main: useConversationFilePreview.ts (useConversationFilePreview line 103), useConversationFiles.ts (failureText line 45), useLatestRequest.ts (line 8).

@mrveiss

mrveiss commented Nov 18, 2026

Copy link
Copy Markdown
Owner Author

Branch audit (zero-change deletion). This PR shows 0 changed files against main (head f384cb3315): every change it carried is already in main. Closing and deleting the branch through this PR; it can be restored with the Restore branch button below.

@mrveiss mrveiss closed this Nov 18, 2026
@mrveiss
mrveiss deleted the issue-21159-20906 branch November 18, 2026 09:00
This was referenced Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend phase:M3.9 Chat, Agents, Analytics and Settings screens

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(chat): useConversationFiles still shows English literals on read, rename and guard errors

1 participant