[Bug Report] Completed Goal notice cannot be dismissed + Jump-to-Latest erratic scroll + Minimap jumps to wrong turns

Author: kingxiao630Created Aug 27, 2026Updated Sep 20, 2026
Labelshas-linked-pr

title: "[Bug Report] Completed Goal notice cannot be dismissed + Jump-to-Latest scrolls erratically + Minimap turn numbers jump to wrong turns" labels: bug, area:web-ui related: #1441

Environment

  • App: OpenSquilla Desktop (Electron) 0.5.4 win-x64 (OpenSquilla.exe FileVersion 0.5.4)
  • OS: Windows 11 x64
  • WebUI: bundled control-ui-dist (Vue 3 + Vite). Sources below were recovered from the shipped sourcemaps.

Bug 1 — Completed Goal notice is stuck on screen forever (cannot be dismissed)

Symptom

After a Goal reaches its completed state, the “目标已完成” banner plus the inline GoalOutcomeNotice row stay attached to the conversation permanently. Every later message keeps showing them; reopening the session restores them. There is no close/dismiss/clear control anywhere in that state.

Code evidence (from shipped sourcemap ChatView-DxGl_7E8.js.map)

GoalRibbon.vue — when status === 'complete', ALL actions disappear (primary action replaced by a passive “finalizing” label, and the menu trigger button is explicitly hidden):

xml
<span v-if="!editing" ref="actionsRef" class="goal-ribbon__actions">
  <span v-if="goal.status === 'complete'" class="goal-ribbon__finalizing" role="status">
    <Icon name="check" :size="13" aria-hidden="true" />
    {{ t('chat.goal.finalizing') }}
  </span>
  <button v-else ... > <!-- lifecycle action -->
  <button v-if="goal.status !== 'complete'" ...> <!-- ⚠️ menu (edit/clear…) hidden when complete -->

useChatGoals.ts — a backend/CLI cleanup RPC exists but nothing in the completed-state UI ever exposes it:

typescript
method: 'goals.edit' | 'goals.pause' | 'goals.resume' | 'goals.clear',
...
const clear = () => mutate('goals.clear')

ChatMessageList.vue — goalOutcomeFor() (L753) binds the inline outcome to the final assistant row of terminalTurnId with no tombstone/dismiss path, so it renders indefinitely.

Expected behavior

At minimum: the “⋯” menu (Edit / Clear) must remain reachable in complete state so users can call goals.clear; ideally the completed ribbon should collapse to a single dismissible line (X button) instead of staying expanded forever.


Bug 2 — “Jump to Latest” button makes the transcript bounce around before settling

Symptom

During (or right after) a streaming reply, clicking the bottom-right 「最新」 (chat-jump-latest) button often results in several up/down oscillations; sometimes it ends up mid-message instead of at the live edge. Repeated clicks make it worse.

Analysis (from bundle + ChatMessageList.vue)

The click handler (Hp() in the minified ChatView-DxGl_7E8.js) does roughly: cancelHistoryNav → cancelNavigation → followLiveEdge = true → scheduleScrollToBottom(). scheduleScrollToBottom (Sp()) guards on a fixed bottom-gap threshold (JM ≈ 80px) and otherwise defers via a double-rAF helper that assigns container.scrollTop = container.scrollHeight.

Meanwhile ChatMessageList uses a variable-layout virtualizer whose measured heights mutate as markdown/images render, and queues queueAnchorAdjustment(delta) corrections on those mutations. Two asynchronous systems both move scrollTop over consecutive frames (deferred jump target captured before re-measure vs. incremental anchor deltas):

  1. Sp() writes a target computed against pre-mutation layout;
  2. queueAnchorAdjustment then adds deltas for rows that grew/shrank;
  3. streaming inserts change bottomSpacer, invalidating step 1’s target.

Net effect: competing scroll writers produce the visible bouncing, and the final position can miss the live edge entirely.

Expected behavior

A single owner for programmatic “go to live edge”: after activation, suppress other correction writers until layout is quiescent (converged double-rAF), then snap exactly to bottom; queue a post-settle verification pass.


Bug 3 — Left minimap (“N跳”) navigates to the wrong turn and its numbering doesn’t match the transcript

Symptom

Clicking marker “N” on the left conversation minimap frequently lands on the wrong message; the shown totals don’t correspond to the actual number of user turns (especially in long sessions with paginated history).

Code evidence — ConversationMinimap.vue

  1. Numbering scope: turns are derived ONLY from currently loaded messages:
typescript
userMessages = props.messages.map((message, sourceIndex) => ({ message, sourceIndex }))
// filtered to displayRole === 'user'

and the tooltip shows

typescript
t(historyHasMore ? 'chat.historyTurnLoadedCount' : 'chat.historyTurnCount',
  { number: (previewIndex ?? 0) + 1, total: turns.length })

With historyHasMore === true, old turns aren’t included, so “#N of T” reflects the loaded window only — marker numbers shift meaning every time another history page loads.

  1. Navigation targeting: navigateTo() resolves the destination top either from the DOM anchor or an estimated offset for unmounted virtualized rows:
typescript
anchor.getBoundingClientRect().top - containerRect.top + container.scrollTop
  ?? props.messageOffset?.(turn.sourceIndex)
...
container.scrollTo({ top: targetTop, behavior: smooth ? 'smooth' : 'auto' })

Estimates go stale while rows remeasure during the smooth scroll (dynamic-height content), so the scroll lands offset; there is no convergence re-measure loop after armNavigationEnd.

Expected behavior

  • Map markers against the authoritative turn ledger including unloaded pages (and/or clearly badge partial-history mode);
  • After the smooth scroll finishes, verify the anchor position converged (re-measure within a short budget, e.g. ≤300ms) and correct residuals before emitting navigateEnd;
  • Only mark activeIndex on confirmed arrival.

Notes

  • Bug 1 is fully reproducible purely from code reading; Bugs 2–3 need the virtualizer + streaming state but reproduce reliably on sessions > ~2 screens of history.
  • Happy to provide additional captures/screen recordings if useful.

Thanks!