Beautiful, AI-native markdown IDE and LLM wiki
TypeScript 2nd-brainagent-skillsclaudecodexcompany-braindocsknowledge-knowledge-baseknowledge-managementllmllm-wikillm-wiki-karpathymarkdownmarkdown-editormdmdxnotespkmsecond-brainskills
comments v2 (#3416)
shagun-singh-inkeep175ed7cc115e
diff --git a/.changeset/comments-improvements.md b/.changeset/comments-improvements.mdnew file mode 100644index 000000000..cfe233398--- /dev/null+++ b/.changeset/comments-improvements.md@@ -0,0 +1,8 @@+---+'@inkeep/open-knowledge': patch+---+Clicking a commented property value now opens its thread, the way clicking a commented passage in the body always has. The body gets that from the editor — the highlight is a decoration the editor can hit-test — while a property value is a plain form control with no decorations and no positions, so the same gesture had to be assembled from the caret offset a click sets.++Each comment now carries when it was last revised, so an edited comment reads as edited instead of showing its creation time.++The passage a comment is on now renders as a quote in the agent transcript. Sending a batch composes each comment as its document, the selected text as a blockquote, and the note itself — but the transcript printed sent messages verbatim, so that structure arrived as flat text with the `>` markers showing and every line run together. Sent messages render as markdown now, so the passage reads as a quote under the file it came from and the note reads beneath it.diff --git a/packages/app/src/comments/CommentListPanel.tsx b/packages/app/src/comments/CommentListPanel.tsxindex a6c435204..3e447a216 100644--- a/packages/app/src/comments/CommentListPanel.tsx+++ b/packages/app/src/comments/CommentListPanel.tsx@@ -13,7 +13,7 @@import { Trans, useLingui } from '@lingui/react/macro';import {- Check,+ CheckCheck,ChevronRight,CircleDot,FileText,@@ -23,6 +23,7 @@ import {import { type ReactNode, useEffect, useRef, useState } from 'react';import { Badge } from '@/components/ui/badge';import { Button } from '@/components/ui/button';+import { Checkbox } from '@/components/ui/checkbox';import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '@/components/ui/collapsible';import {Panel,@@ -36,7 +37,7 @@ import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltipimport { CommentSendFooter } from './CommentSendFooter';import { docBasename } from './comment-chips';import { groupByDoc } from './queue-grouping';-import { subscribeFocusThread, useQueueSelection } from './store';+import { setSendingAll, subscribeFocusThread, usePinnedThread, useQueueSelection } from './store';import { ThreadCard } from './ThreadCard';import type { CommentThread } from './types';@@ -45,26 +46,39 @@ export function CommentListPanel({groupByDocument = false,empty,testIdPrefix,+ scopeSwitch,}: {threads: readonly CommentThread[];/** Project scope buckets under a filename; a single doc has nothing to bucket by. */groupByDocument?: boolean;empty: ReactNode;testIdPrefix: string;+ /**+ * The This-doc / This-project switch, rendered under this panel's own title.+ *+ * A slot rather than state: the scope lives in the tab, which is also what a+ * reveal retargets, while the title belongs to the panel. Passing the element+ * down is what lets the pair read title-then-switch — the order Problems uses+ * — without this component learning what a scope is.+ */+ scopeSwitch?: ReactNode;}) {const { t } = useLingui();const [showResolved, setShowResolved] = useState(false);const [focusedId, setFocusedId] = useState<string | null>(null);const cardRefs = useRef(new Map<string, HTMLElement>());- // Captured once on mount — relative timestamps don't need to tick live, and- // calling Date.now() during render violates the React Compiler purity rule.- const [now] = useState(() => Date.now());// Tracks what is CLOSED, not what is open, so groups mount expanded and stay// that way: comments are hand-written and few, and a file that appears while// you are reading — one posted from another window — arrives expanded like the// rest instead of silently landing folded because it was not in an opened-set.const [collapsed, setCollapsed] = useState<ReadonlySet<string>>(() => new Set());const sending = useQueueSelection();+ // The thread whose popover is OPEN in the document — mirrored onto its card+ // so the two sides of the screen point at each other. Popover-open only, not+ // hover: washing a card because the pointer touched it (or its highlight)+ // made every pass of the mouse a light show. One subscription for the whole+ // panel, like `sending`.+ const activeId = usePinnedThread();function toggleFile(docName: string, open: boolean) {setCollapsed((prev) => {@@ -108,14 +122,44 @@ export function CommentListPanel({// Scoped to what this panel lists: the This-doc footer must never ship a// comment on a file the reader is not looking at.const scopedSending = active.filter((thread) => sending.includes(thread.id)).map((t) => t.id);+ // What "all" means for THIS panel — This doc must not reach across the project.+ const selectableIds = active.map((thread) => thread.id);+ const allTicked = selectableIds.length > 0 && scopedSending.length === selectableIds.length;++ /**+ * The comments under a file heading its tick can act on.+ *+ * The same set the panel-level tick uses, for the same reason: a resolved+ * comment is out of the batch entirely — the queue drops it — so counting one+ * here would put a file permanently at "some", unreachable by any number of+ * clicks, from the moment resolved comments are shown. Ticking the heading+ * would also fire queue requests for threads that cannot be queued.+ */+ function sendableIn(group: { threads: readonly CommentThread[] }): string[] {+ return group.threads+ .filter((thread) => thread.status !== 'resolved')+ .map((thread) => thread.id);+ }++ /**+ * A file heading's tick: on when every comment under it is going, mixed when+ * only some are. Mixed rather than off for a partial file — off would offer to+ * "select all" a group that is already half in, and the click would look like+ * it had done nothing to the comments already ticked.+ */+ function fileTickState(sendable: readonly string[]): boolean | 'indeterminate' {+ const ticked = sendable.filter((id) => sending.includes(id)).length;+ if (ticked === 0) return false;+ return ticked === sendable.length ? true : 'indeterminate';+ }function card(thread: CommentThread) {return (<ThreadCardkey={thread.id}thread={thread}- now={now}sending={sending.includes(thread.id)}+ active={activeId === thread.id}focused={focusedId === thread.id}cardRef={(el) => {if (el) cardRefs.current.set(thread.id, el);@@ -131,38 +175,55 @@ export function CommentListPanel({<PanelTitle><Trans>Comments</Trans></PanelTitle>- {/* Icons, not labels, for both controls. Spelled out, "Show resolved- (93)" put a second number in a row that already ends in the count —- two figures side by side that look alike and mean different things- (how many are done vs how many are open). The resolved tally moves- into the tooltip, where it is read on purpose rather than compared by- accident, and the row keeps ONE number. */}+ {/* The resolved tally sits ON its toggle, not in the tooltip.+ It lived in the tooltip while the toggle wore a single check: two+ bare figures in one row, alike in shape and meaning different things+ (how many are done, how many are open), and the reader had no way to+ tell which was which without hovering. The doubled check settles+ that — the number is attached to the done glyph, the count badge at+ the end of the row is the open one, and neither has to be guessed. */}<div className="flex items-center gap-1">{resolved.length > 0 && (<Tooltip><TooltipTrigger asChild><Button- size="icon"+ size="sm"variant="ghost"- className="size-6 shrink-0 text-muted-foreground"- aria-label={showResolved ? t`Hide resolved comments` : t`Show resolved comments`}+ className="h-6 shrink-0 gap-1 px-1.5 text-muted-foreground"+ // The count is INSIDE the accessible name, not just beside the+ // glyph: an aria-label replaces a button's contents outright,+ // so a number rendered as a child would be read by nobody.+ aria-label={+ showResolved+ ? t`Hide resolved comments (${resolved.length})`+ : t`Show resolved comments (${resolved.length})`+ }aria-pressed={showResolved}data-testid={`${testIdPrefix}-resolved-toggle`}onClick={() => setShowResolved((v) => !v)}>+ {/* A DOUBLE check for resolved. A single one is the mark this+ panel already uses for "ticked to send" — on every card and+ on the select-all — so wearing it here made the one control+ that has nothing to do with the batch look like the control+ that governs it. The doubled form is the settled/done glyph+ wherever read receipts and issue trackers use it, and it+ cannot be mistaken for a tick. `CircleDot` stays: an open+ thread is not a tick of any kind. */}{showResolved ? (<CircleDot aria-hidden="true" className="size-3.5" />) : (- <Check aria-hidden="true" className="size-3.5" />+ <CheckCheck aria-hidden="true" className="size-3.5" />)}+ <span aria-hidden="true" className="text-[11px] tabular-nums">+ {resolved.length}+ </span></Button></TooltipTrigger>+ {/* Words only. The number is on the button now, so repeating it+ here would print it twice a few pixels apart. */}<TooltipContent>- {showResolved ? (- <Trans>Hide resolved</Trans>- ) : (- <Trans>Show resolved ({resolved.length})</Trans>- )}+ {showResolved ? <Trans>Hide resolved</Trans> : <Trans>Show resolved</Trans>}</TooltipContent></Tooltip>)}@@ -204,53 +265,113 @@ export function CommentListPanel({<PanelCount>{active.length}</PanelCount></div></PanelHeader>+ {scopeSwitch}+ {/* The bulk tick, at the head of the list rather than down in the footer+ beside the send.+ Flush to the panel's own `px-4`, which lines it up with the title above+ and the file headings below — the rows it actually sits among. Inset to+ match the per-card ticks instead, it cleared the text on both sides and+ read as indented under nothing.+ The count rides beside it, not across the row: how many are going and+ the control that changes it are one thought, and pinned to opposite+ ends they read as unrelated.+ No visible label, and no explanatory line above it either. The tick,+ the count and the Send button are one sentence read left to right; the+ aria-label carries the name for anyone not reading the layout. */}+ {active.length > 0 && (+ // No bottom padding of its own: PanelBody's `py-3` is the gap to the+ // first card, and adding one here stacked two.+ <div className="flex shrink-0 items-center gap-2 px-4">+ <Checkbox+ checked={allTicked}+ onCheckedChange={() => setSendingAll(selectableIds, !allTicked)}+ aria-label={allTicked ? t`Unmark every comment` : t`Mark every comment to send`}+ data-testid={`${testIdPrefix}-select-all`}+ />+ <span className="text-[11px] text-muted-foreground tabular-nums">+ {scopedSending.length}/{selectableIds.length}+ </span>+ </div>+ )}<PanelBody className="flex flex-col gap-3">{visible.length === 0 ? (<PanelEmpty>{empty}</PanelEmpty>) : groupByDocument ? (- groups.map((group) => (- <section key={group.docName} aria-label={group.docName}>- <Collapsible- open={!collapsed.has(group.docName)}- onOpenChange={(open) => toggleFile(group.docName, open)}- className="flex flex-col gap-2"- >- {/* The file names the group once instead of riding every card.+ groups.map((group) => {+ const sendable = sendableIn(group);+ const tick = fileTickState(sendable);+ return (+ <section key={group.docName} aria-label={group.docName}>+ <Collapsible+ open={!collapsed.has(group.docName)}+ onOpenChange={(open) => toggleFile(group.docName, open)}+ className="flex flex-col gap-2"+ >+ {/* The file names the group once instead of riding every card.Basename, not the full path: the rail is narrow and anested path pushes the row past the panel edge; the fullpath stays reachable as the tooltip. Not sticky —PanelBody's scroll-fade mask fades whatever sits at its topedge, so a pinned header would sit there half-faded.- No file-level tick. Selection lives on the cards and, for- everything at once, in the footer; a third one here- duplicates the card's own whenever a file holds a single- comment, and sits higher and further left than the control- it duplicates — so it reads as the primary one. */}- <div className="flex items-center gap-1.5">- <CollapsibleTrigger- title={group.docName}- className="group flex min-w-0 flex-1 cursor-pointer items-center gap-1.5 rounded text-left text-[11px] text-muted-foreground hover:text-foreground"- >- <FileText className="size-3 shrink-0" />- <span className="truncate">{docBasename(group.docName)}</span>- <Badge- variant="outline"- className="shrink-0 px-1 py-0 text-[10px] tabular-nums"- >- {group.threads.length}- </Badge>- <ChevronRight- aria-hidden="true"- className="size-3 shrink-0 transition-transform group-data-[state=open]:rotate-90 motion-reduce:transition-none"+ The file-level tick is REVEALED, not resident. Drawn at+ rest it sat higher and further left than the card ticks it+ summarizes, which read as the primary control; a column of+ them also put a checkbox on every heading of a panel whose+ headings are otherwise just labels. On hover (and on+ keyboard focus, which is why this is `opacity-0` rather+ than unmounted or `hidden` — both take it out of the tab+ order) it is there for the reader who wants a whole file at+ once, and gone for the one who does not.+ OUTSIDE the trigger, not inside it: a tick nested in the+ fold control would fold the group on its way to changing+ the batch. */}+ <div className="group/file flex items-center gap-1.5">+ <Checkbox+ checked={tick}+ // Rendered but inert for a file whose comments are all+ // resolved — reachable only with resolved ones shown. Kept+ // in the row rather than dropped so its heading still lines+ // up with every other heading in the list.+ disabled={sendable.length === 0}+ onCheckedChange={() => setSendingAll(sendable, tick !== true)}+ aria-label={+ tick === true+ ? t`Unmark every comment in ${docBasename(group.docName)}`+ : t`Mark every comment in ${docBasename(group.docName)} to send`+ }+ data-testid={`${testIdPrefix}-file-select-${group.docName}`}+ // `focus-visible`, NOT `focus-within`: a mouse click leaves+ // the box focused, so focus-within kept it revealed after the+ // pointer had gone — one heading stuck showing a control the+ // others were hiding. focus-visible only matches the keyboard+ // route, which is the one that actually needs it drawn.+ className="opacity-0 transition-opacity focus-visible:opacity-100 group-hover/file:opacity-100"/>- </CollapsibleTrigger>- </div>- <CollapsibleContent className="flex flex-col gap-2 overflow-hidden data-[state=open]:animate-[collapsible-down_150ms_ease-out] data-[state=closed]:animate-[collapsible-up_150ms_ease-in] motion-reduce:animate-none">- {group.threads.map(card)}- </CollapsibleContent>- </Collapsible>- </section>- ))+ <CollapsibleTrigger+ title={group.docName}+ className="group flex min-w-0 flex-1 cursor-pointer items-center gap-1.5 rounded text-left text-[11px] text-muted-foreground hover:text-foreground"+ >+ <FileText className="size-3 shrink-0" />+ <span className="truncate">{docBasename(group.docName)}</span>+ <Badge+ variant="outline"+ className="shrink-0 px-1 py-0 text-[10px] tabular-nums"+ >+ {group.threads.length}+ </Badge>+ <ChevronRight+ aria-hidden="true"+ className="size-3 shrink-0 transition-transform group-data-[state=open]:rotate-90 motion-reduce:transition-none"+ />+ </CollapsibleTrigger>+ </div>+ <CollapsibleContent className="flex flex-col gap-2 overflow-hidden data-[state=open]:animate-[collapsible-down_150ms_ease-out] data-[state=closed]:animate-[collapsible-up_150ms_ease-in] motion-reduce:animate-none">+ {group.threads.map(card)}+ </CollapsibleContent>+ </Collapsible>+ </section>+ );+ })) : (visible.map(card))}@@ -258,11 +379,7 @@ export function CommentListPanel({{/* Outside PanelBody so a long list scrolls UNDER the actions rather thanpushing them off the bottom. */}{active.length > 0 && (- <CommentSendFooter- threadIds={scopedSending}- selectableIds={active.map((thread) => thread.id)}- testIdPrefix={testIdPrefix}- />+ <CommentSendFooter threadIds={scopedSending} testIdPrefix={testIdPrefix} />)}</Panel>);diff --git a/packages/app/src/comments/CommentMarginRail.tsx b/packages/app/src/comments/CommentMarginRail.tsxindex cf1f2f54a..3005c4d7b 100644--- a/packages/app/src/comments/CommentMarginRail.tsx+++ b/packages/app/src/comments/CommentMarginRail.tsx@@ -83,6 +83,50 @@ export function railBand(return { top: rect.top + insetTop, height: Math.max(0, rect.height - insetTop) };}+/**+ * Narrower than this and the rail is covering the text instead of sitting beside+ * it, so it does not draw at all. Roughly the width below which the editor's own+ * measure has collapsed to a few words a line.+ */+const MIN_PANE_WIDTH = 260;++/**+ * Where the rail's left edge goes, or null when the pane is too narrow to host+ * one.+ *+ * The rail is a FIXED portal on `document.body`, so no ancestor's overflow can+ * clip it — it has to sit over the scroll area without scrolling with it, and+ * the cost of that is that whatever `left` it computes is where it paints, over+ * whatever happens to be there. The scroll container's own right edge is not a+ * safe answer: squeezed past its minimum the container keeps its width and+ * overflows the pane clipping it, and the rail followed it into the next panel.+ *+ * So the edge comes from the nearest thing that actually clips, and the rail+ * declines rather than shrinking — a 34px rail inside a 200px pane is on top of+ * the prose either way, and half a marker peeking out reads as breakage.+ */+export function railLeft(rect: { left: number; right: number }, clipRight: number): number | null {+ const right = Math.min(rect.right, clipRight);+ if (right - rect.left < MIN_PANE_WIDTH) return null;+ return right - RAIL_WIDTH;+}++/**+ * The viewport x of the nearest ancestor that clips horizontally — the pane's+ * real right edge, whatever the scroll container believes about its own width.+ * Falls back to the viewport, which clips everything.+ */+function horizontalClipRight(el: HTMLElement): number {+ let node: HTMLElement | null = el.parentElement;+ while (node) {+ if (getComputedStyle(node).overflowX !== 'visible') {+ return node.getBoundingClientRect().right;+ }+ node = node.parentElement;+ }+ return window.innerWidth;+}+/*** Place each marker beside its line, in viewport coordinates.*@@ -164,8 +208,16 @@ export function CommentMarginRail({ editor, docName }: { editor: Editor; docNametargets.push({ id: thread.id, y });}}+ const left = railLeft(rect, horizontalClipRight(container));+ if (left === null) {+ // Both, not just the rail: the markers are absolutely positioned inside+ // it, so leaving them behind would strand a list with nothing to hang on.+ setRail(null);+ setPositions([]);+ return;+ }const band = railBand(rect, scrollportInsetTop(container));- setRail({ top: band.top, height: band.height, left: rect.right - RAIL_WIDTH });+ setRail({ top: band.top, height: band.height, left });setPositions(layoutMarkers(targets, band.top, band.height));};@@ -218,7 +270,7 @@ export function CommentMarginRail({ editor, docName }: { editor: Editor; docNameif (!revealed) scrollPropertyRowIntoView(thread.target.key);} else if (thread && thread.anchor !== null) {const range = findQuoteRange(editor.state.doc, thread.anchor.quote, thread.anchor);- if (range) scrollAnchorIntoView(editor, range);+ if (range) scrollAnchorIntoView(editor, range, thread.docName);}emitOpenThreadPopover(threadId);}diff --git a/packages/app/src/comments/CommentProjectPanel.tsx b/packages/app/src/comments/CommentProjectPanel.tsxindex 25c5ba9da..71cda3a9b 100644--- a/packages/app/src/comments/CommentProjectPanel.tsx+++ b/packages/app/src/comments/CommentProjectPanel.tsx@@ -10,10 +10,11 @@*/import { Trans } from '@lingui/react/macro';+import type { ReactNode } from 'react';import { CommentListPanel } from './CommentListPanel';import { useAllThreads } from './store';-export function CommentProjectPanel() {+export function CommentProjectPanel({ scopeSwitch }: { scopeSwitch?: ReactNode }) {const threads = useAllThreads();return (<CommentListPanel@@ -21,6 +22,7 @@ export function CommentProjectPanel() {groupByDocumentempty={<Trans>No comments in this project yet. Comment on a passage to start one.</Trans>}testIdPrefix="comment-queue"+ scopeSwitch={scopeSwitch}/>);}diff --git a/packages/app/src/comments/CommentSelectionAffordance.tsx b/packages/app/src/comments/CommentSelectionAffordance.tsxindex dd269834e..4f0342a4d 100644--- a/packages/app/src/comments/CommentSelectionAffordance.tsx+++ b/packages/app/src/comments/CommentSelectionAffordance.tsx@@ -25,7 +25,6 @@ import { commentQuoteText } from '@inkeep/open-knowledge-core';import { Trans, useLingui } from '@lingui/react/macro';import { posToDOMRect } from '@tiptap/core';import type { Editor } from '@tiptap/react';-import { MessageSquare, X } from 'lucide-react';import { useEffect, useRef, useState } from 'react';import { createPortal } from 'react-dom';import { requestDocPanelTab } from '@/components/doc-panel-events';@@ -36,8 +35,10 @@ import {} from '@/editor/ComposerMentionInput';import { getEditorView } from '@/editor/utils/get-editor-view';import { matchesKeyboardShortcut } from '@/lib/keyboard-shortcuts';+import { cn } from '@/lib/utils';import { setCommentDraftRange } from './anchor-decorations';import { captureSelectionContext } from './anchor-search';+import { useCommentsPanelOnScreen } from './comments-panel-visibility';import { selectedSpan } from './selected-span';import { createThread, emitStartComment, subscribeStartComment } from './store';@@ -63,6 +64,9 @@ export function CommentSelectionAffordance({const { t } = useLingui();const [captured, setCaptured] = useState<Captured | null>(null);const [empty, setEmpty] = useState(true);+ // Drives whether this card offers a route to the queue at all (see the row+ // below the field).+ const commentsOnScreen = useCommentsPanelOnScreen();const inputRef = useRef<ComposerMentionInputHandle>(null);const floatingRef = useRef<HTMLDivElement>(null);@@ -227,31 +231,15 @@ export function CommentSelectionAffordance({return createPortal(<divref={floatingRef}- className="z-[60] flex w-80 flex-col gap-2 rounded-lg border bg-popover p-3 shadow-lg"+ // Same borrowed `PopoverContent` chrome as the thread popover, and for the+ // same reason — a virtual anchor Radix cannot take.+ className="z-[60] flex w-80 flex-col gap-2 rounded-lg border bg-popover p-3 text-popover-foreground shadow-md"style={{ position: 'fixed', top: 0, left: 0 }}data-testid="comment-composer">- {/* Dismiss sits in the corner rather than the action row: the row is for- filing the comment, and a button beside that one made discarding look- like a peer of it.-- Its own row rather than absolute positioning — overlaying the card- floated it on top of the textarea's rounded corner, and any offset that- clears the corner is a magic number that breaks the moment the field's- radius or padding changes. A row cannot overlap by construction; the- negative margins only pull it tight into the corner. */}- <div className="-mt-1 -mr-1 -mb-1 flex justify-end">- <Button- type="button"- size="sm"- variant="ghost"- aria-label={t`Discard this comment`}- onClick={reset}- className="size-6 shrink-0 p-0 text-muted-foreground hover:text-foreground"- >- <X className="size-3.5" />- </Button>- </div>+ {/* No dismiss button: Escape and a click anywhere outside both discard+ the draft (see `reset`'s two callers above), and a card this small+ spent a whole row saying so. */}{/* The chat composer's field, not a plain textarea — so `@` mentions afile here exactly as it does there, and the comment an agent receivescarries real paths rather than a name it has to go find.@@ -280,16 +268,29 @@ export function CommentSelectionAffordance({it annotates. `normal-case tracking-normal` undoes the button'suppercase treatment for the glyph alone; the aria-label keeps it out ofthe accessible name. */}- <div className="flex items-center justify-between gap-1.5">- <Button- size="sm"- variant="ghost"- onClick={() => requestDocPanelTab('comments')}- className="gap-1 px-2 text-muted-foreground hover:text-foreground"- >- <MessageSquare className="size-3.5" aria-hidden="true" />- <Trans>Open Comments</Trans>- </Button>+ {/* `justify-end` when the route out is withheld, so the post button keeps+ the far end of the row it already sits at rather than sliding left into+ the space the missing button leaves. */}+ <div+ className={cn(+ 'flex items-center gap-1.5',+ commentsOnScreen ? 'justify-end' : 'justify-between',+ )}+ >+ {/* Withheld while the queue is already on screen: the button's whole job+ is to take you there, and pressing it from in front of an open+ Comments tab changes nothing the eye can see. Dropping it also leaves+ the card with a single action while the panel is up. */}+ {commentsOnScreen ? null : (+ <Button+ size="sm"+ variant="ghost"+ onClick={() => requestDocPanelTab('comments')}+ className="px-2 text-muted-foreground hover:text-foreground"+ >+ <Trans>View comments</Trans>+ </Button>+ )}<Button size="sm" onClick={post} disabled={empty} aria-label={t`Add Comment (Enter)`}><Trans>Add Comment</Trans><span className="ml-0.5 text-[11px] tracking-normal normal-case text-primary-foreground/75">diff --git a/packages/app/src/comments/CommentSendFooter.tsx b/packages/app/src/comments/CommentSendFooter.tsxindex 6227915d1..97e1bb0b5 100644--- a/packages/app/src/comments/CommentSendFooter.tsx+++ b/packages/app/src/comments/CommentSendFooter.tsx@@ -16,25 +16,21 @@ import { Trans, useLingui } from '@lingui/react/macro';import { RegisteredAgentIcon } from '@/components/acp/RegisteredAgentIcon';import { AgentSplitButton } from '@/components/handoff/AgentSplitButton';import { useReusableSession } from '@/components/reusable-session-store';-import { Checkbox } from '@/components/ui/checkbox';import { PanelFooter } from '@/components/ui/panel';import { formatShortcut, formatShortcutLabel } from '@/lib/keyboard-shortcuts';import { openAgentSettings } from '@/lib/use-settings-route';import { QueueNewChatRow } from './QueueNewChatRow';-import { dispatchComments, setSendingAll } from './store';+import { dispatchComments } from './store';import { useCommentAgentPicker } from './use-comment-agent-picker';import { useCommentDispatch } from './use-comment-delivery';import { useSendQueue } from './use-send-queue';export function CommentSendFooter({threadIds,- selectableIds,testIdPrefix,}: {/** Ticked, and therefore going out — the batch this button hands over. */threadIds: readonly string[];- /** Everything the panel lists, ticked or not: what "all" means for this scope. */- selectableIds: readonly string[];testIdPrefix: string;}) {const { t } = useLingui();@@ -73,26 +69,10 @@ export function CommentSendFooter({/>);- const allTicked = selectableIds.length > 0 && threadIds.length === selectableIds.length;-return (- <PanelFooter className="justify-between">- {/* The bulk tick lives beside the button it feeds rather than in the- header: "how many are going" and "send them" are one thought, and the- count doubles as the answer to what the button is about to carry.- The count is a sibling, not a `<label>` wrapper — this Checkbox renders- a `role="checkbox"` button rather than an `<input>`, which `htmlFor`- cannot address; the aria-label carries the name instead. */}- <div className="flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground">- <Checkbox- checked={allTicked}- onCheckedChange={() => setSendingAll(selectableIds, !allTicked)}- aria-label={allTicked ? t`Unmark every comment` : t`Mark every comment to send`}- />- <span className="truncate tabular-nums">- {threadIds.length}/{selectableIds.length}- </span>- </div>+ // The footer is the send alone now. The bulk tick and its count moved to the+ // head of the list, where they line up with the per-card ticks they act on.+ <PanelFooter className="justify-end">{/* Both scopes carry it, because the chord reads the visible scope(`visible-scope.ts`) and therefore sends exactly what this buttonsends. Showing it on only one scope would put a glyph beside a button@@ -108,9 +88,17 @@ export function CommentSendFooter({stays reachable for screen readers through Settings → Hotkeys, whichrenders the same registry row. */}<div className="flex min-w-0 items-center gap-2">+ {/* `font-sans`, the same face `Kbd` uses and for the same reason: ⇧ and+ ⌘ have no glyph in the mono face, so they fell back to a symbol font+ whose metrics do not match the "Enter" typeset beside them — the+ marks sat off the baseline of their own string. `leading-none` so the+ row's `items-center` centres the glyphs rather than a box padded out+ by line-height. Still a bare span, not `Kbd`: its pill carries a+ height, min-width, padding and background, and would reshape the row+ it annotates. */}<spanaria-hidden="true"- className="shrink-0 font-mono text-[13px] text-muted-foreground"+ className="shrink-0 font-sans text-xs leading-none text-muted-foreground"title={t`Send to chat (${formatShortcutLabel('send-comment-queue')})`}>{formatShortcut('send-comment-queue')}diff --git a/packages/app/src/comments/CommentThreadPopover.tsx b/packages/app/src/comments/CommentThreadPopover.tsxindex e9810fc2b..b471dd430 100644--- a/packages/app/src/comments/CommentThreadPopover.tsx+++ b/packages/app/src/comments/CommentThreadPopover.tsx@@ -22,6 +22,7 @@ import { propertyRowRect } from './property-row-rect';import {emitOpenThreadPopover,subscribeOpenThreadPopover,+ useAllThreads,useCommentThreads,useQueueSelection,} from './store';@@ -29,7 +30,6 @@ import { ThreadCard } from './ThreadCard';export function CommentThreadPopover({ editor, docName }: { editor: Editor; docName: string }) {const [threadId, setThreadId] = useState<string | null>(null);- const [now] = useState(() => Date.now());const floatingRef = useRef<HTMLDivElement>(null);const threads = useCommentThreads(docName);const thread = threadId ? (threads.find((t) => t.id === threadId) ?? null) : null;@@ -45,14 +45,31 @@ export function CommentThreadPopover({ editor, docName }: { editor: Editor; docNreturn subscribeOpenThreadPopover((id) => setThreadId(id));}, []);+ // Another document's thread — that document's own instance is showing it.+ //+ // The editor pool keeps recently visited docs mounted, so several of these+ // exist at once and the open signal is a single project-wide bus that reaches+ // all of them. An instance that answered a thread it does not own by+ // BROADCASTING a close slammed the popover shut for the instance that had just+ // opened it, and which one spoke last was down to tree order — so clicking a+ // passage worked or did nothing depending on how many tabs were open.+ //+ // Looked up across every doc rather than inferred from this one's miss: "not+ // in my list" alone cannot tell a thread that belongs elsewhere from one that+ // was deleted, and only the second is this instance's business.+ const allThreads = useAllThreads();+ const ownedElsewhere =+ threadId !== null && thread === null && allThreads.some((t) => t.id === threadId);+// Auto-close when the thread is gone or no longer anchored (resolved/orphaned).// Announced rather than set locally: the margin rail mirrors this state and// would otherwise keep the marker lit for a popover that closed itself.useEffect(() => {+ if (ownedElsewhere) return;if (threadId !== null && (thread === null || thread.status !== 'open')) {emitOpenThreadPopover(null);}- }, [threadId, thread]);+ }, [threadId, thread, ownedElsewhere]);// Pin the card to the anchored text.useEffect(() => {@@ -107,6 +124,11 @@ export function CommentThreadPopover({ editor, docName }: { editor: Editor; docNconst target = event.target as HTMLElement | null;if (floatingRef.current?.contains(target)) return;if (target?.closest('[data-comment-thread]')) return;+ // The card's edit field is the `@`-mention composer, whose results portal+ // to `document.body` — outside this card by DOM, inside it by intent.+ // Picking a file must not read as clicking away. Same guard the selection+ // composer carries, for the same popup.+ if (target?.closest('[data-suggestion-popup]')) return;emitOpenThreadPopover(null);};const onKey = (event: KeyboardEvent) => {@@ -125,16 +147,31 @@ export function CommentThreadPopover({ editor, docName }: { editor: Editor; docNreturn createPortal(<divref={floatingRef}- className="z-50 w-80 rounded-lg bg-popover shadow-lg"+ // Chrome borrowed from `PopoverContent`, since this cannot BE one: the+ // card follows a ProseMirror text range through a floating-ui virtual+ // element, and Radix's anchor takes a DOM node. Its border and padding are+ // deliberately left off — `ThreadCard` brings both, and doubling them+ // draws two outlines a couple of pixels apart.+ className="z-50 w-80 rounded-lg bg-popover text-popover-foreground shadow-md"style={{ position: 'fixed', top: 0, left: 0 }}>+ {/* No quote and no close button: the card is pinned to the passage it is+ about, with that passage highlighted underneath, and Escape or a click+ outside dismisses it (see the effect above). */}<ThreadCard+ // Keyed, so retargeting this popover REMOUNTS the card rather than+ // handing the next thread the last one's state. Clicking a second+ // highlight while the first is open swaps `thread` in place — no null+ // in between — and an unkeyed card kept its open edit field, its seeded+ // draft and its settled flag across the swap, which filed one comment's+ // words as a revision of another. The remount also lets the outgoing+ // card's click-away commit save its own edit, against its own id.+ key={thread.id}thread={thread}- now={now}focused={false}+ showQuote={false}sending={sending.includes(thread.id)}cardRef={() => {}}- onClose={() => emitOpenThreadPopover(null)}/></div>,document.body,diff --git a/packages/app/src/comments/CommentsPanel.tsx b/packages/app/src/comments/CommentsPanel.tsxindex c356a5cf1..0941c28e1 100644--- a/packages/app/src/comments/CommentsPanel.tsx+++ b/packages/app/src/comments/CommentsPanel.tsx@@ -7,12 +7,19 @@*/import { Trans } from '@lingui/react/macro';+import type { ReactNode } from 'react';import { useEffect } from 'react';import { ProfilerBoundary } from '@/lib/perf';import { CommentListPanel } from './CommentListPanel';import { refresh, useCommentThreads } from './store';-function CommentsPanelInner({ docName }: { docName: string }) {+function CommentsPanelInner({+ docName,+ scopeSwitch,+}: {+ docName: string;+ scopeSwitch?: ReactNode;+}) {const threads = useCommentThreads(docName);// Load this doc's threads when the panel opens — it can open before (or@@ -26,14 +33,21 @@ function CommentsPanelInner({ docName }: { docName: string }) {threads={threads}empty={<Trans>No comments yet. Select text in the document to add one.</Trans>}testIdPrefix="comment-doc"+ scopeSwitch={scopeSwitch}/>);}-export function CommentsPanel({ docName }: { docName: string }) {+export function CommentsPanel({+ docName,+ scopeSwitch,+}: {+ docName: string;+ scopeSwitch?: ReactNode;+}) {return (<ProfilerBoundary name="comments-panel">- <CommentsPanelInner docName={docName} />+ <CommentsPanelInner docName={docName} scopeSwitch={scopeSwitch} /></ProfilerBoundary>);}diff --git a/packages/app/src/comments/CommentsTab.tsx b/packages/app/src/comments/CommentsTab.tsxindex 4d0116a6f..309e55217 100644--- a/packages/app/src/comments/CommentsTab.tsx+++ b/packages/app/src/comments/CommentsTab.tsx@@ -3,26 +3,30 @@* reusing the header Problems uses for per-doc vs. project scope* (PanelScopeHeader). Both sides render the same list; the scope only widens the* set from the open document to every file.+ *+ * The tab owns the scope but not where the switch is DRAWN: it hands the element+ * to the panel, which renders it under its own title.*/-import { useLingui } from '@lingui/react/macro';import { useEffect, useState } from 'react';import { type PanelScope, PanelScopeHeader } from '@/components/PanelScopeHeader';import { CommentProjectPanel } from './CommentProjectPanel';import { CommentsPanel } from './CommentsPanel';-import { consumePendingQueueScope, subscribeQueueScopeRequests } from './reveal-queue';+import { consumePendingCommentScope, subscribeCommentScopeRequests } from './reveal-queue';import { setVisibleCommentScope } from './visible-scope';export function CommentsTab({ docName }: { docName: string }) {- const { t } = useLingui();const [scope, setScope] = useState<PanelScope>('doc');- // Posting a comment flips this tab to the queue — the scope lives here, so the- // reveal has to reach it through an event rather than a prop. The pending- // check covers the mount the reveal itself caused, which fires its event- // before this component exists to hear it.+ // Reveals set this tab's scope from outside — posting a comment lands on+ // "This doc" (the comment you just made, beside its passage), the composer+ // chip on "This project" (its batch spans documents). The scope lives here, so+ // a reveal reaches it through an event rather than a prop; the pending check+ // covers the mount the reveal itself caused, which fires its event before+ // this component exists to hear it.useEffect(() => {- if (consumePendingQueueScope()) setScope('project');- return subscribeQueueScopeRequests(() => setScope('project'));+ const pending = consumePendingCommentScope();+ if (pending !== null) setScope(pending);+ return subscribeCommentScopeRequests(setScope);}, []);// Publish what is on screen so ⇧⌘Enter sends the batch the visible button// would. Cleared on unmount — this tab is conditionally rendered, so leaving a@@ -31,14 +35,26 @@ export function CommentsTab({ docName }: { docName: string }) {setVisibleCommentScope({ scope, docName });return () => setVisibleCommentScope(null);}, [scope, docName]);- return (- <div className="flex h-full min-h-0 flex-col pt-2">- {/* "This project" rather than Problems' bare "Project", so the two sides- read as one pair — the same list, this file or all of them. */}- <PanelScopeHeader scope={scope} onScopeChange={setScope} projectLabel={t`This project`} />- <div className="min-h-0 flex-1">- {scope === 'doc' ? <CommentsPanel docName={docName} /> : <CommentProjectPanel />}- </div>- </div>+ // The panel is returned bare, with no wrapper of its own: every sibling tab+ // (Outline, Links, Problems) hands its `Panel` straight to the tab-panel+ // container, and a wrapper that added even a few pixels of top padding here+ // shifted the whole Comments panel down and made it that much shorter than+ // the others — visible as a jump when switching tabs.+ //+ // The scope switch is handed DOWN into the panel rather than rendered here,+ // so it lands under the panel's own "Comments" title — the order Problems+ // already uses. Rendered above it, the switch read as tab-strip chrome and+ // the title looked like a heading for the list alone.+ // No `projectLabel`: "This project" is the shared default now, so both+ // panels say it without either one restating it.+ return scope === 'doc' ? (+ <CommentsPanel+ docName={docName}+ scopeSwitch={<PanelScopeHeader scope={scope} onScopeChange={setScope} />}+ />+ ) : (+ <CommentProjectPanel+ scopeSwitch={<PanelScopeHeader scope={scope} onScopeChange={setScope} />}+ />);}diff --git a/packages/app/src/comments/ThreadCard.tsx b/packages/app/src/comments/ThreadCard.tsxindex f98c93210..868cd4ee5 100644--- a/packages/app/src/comments/ThreadCard.tsx+++ b/packages/app/src/comments/ThreadCard.tsx@@ -15,19 +15,18 @@// biome-ignore-all lint/plugin/no-physical-direction-utility: pre-rule backlog — physical margin/padding/inset utilities predate the rule; drain by swapping ml/mr → ms/me, pl/pr → ps/pe, left/right → start/end, then deleting this line. See https://github.com/inkeep/open-knowledge/blob/main/biome-plugins/README.md#no-physical-direction-utilitygrit-// Two macro imports, deliberately: `relativeTime` is a plain module function-// with no React context to read, so its units come from the core macro, while-// the component's own copy uses the hook. The component-local `t` shadows this-// one inside it, which is why the stamp lives outside.-import { t } from '@lingui/core/macro';import { Trans, useLingui } from '@lingui/react/macro';-import { Check, MapPin, Pencil, RotateCcw, Trash2, Unlink, X } from 'lucide-react';+import { CheckCheck, MapPin, Pencil, RotateCcw, Trash2 } from 'lucide-react';import { useEffect, useRef, useState } from 'react';import { Badge } from '@/components/ui/badge';import { Button } from '@/components/ui/button';import { Checkbox } from '@/components/ui/checkbox';-import { Textarea } from '@/components/ui/textarea';-import { getEditorForDoc } from '@/editor/active-editor';+import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip';+import { getVisibleEditorForDoc } from '@/editor/active-editor';+import {+ ComposerMentionInput,+ type ComposerMentionInputHandle,+} from '@/editor/ComposerMentionInput';import { cn } from '@/lib/utils';import { captureSelectionContext, findQuoteRange } from './anchor-search';import { propertyAddress, revealThread } from './comment-chips';@@ -37,6 +36,7 @@ import {clearActiveThread,deleteThread,editComment,+ emitOpenThreadPopover,reopenThread,replaceOrphan,setActiveThread,@@ -45,41 +45,71 @@ import {import type { CommentThread } from './types';/**- * The card's age stamp, in the largest unit that still reads as an age.+ * When the comment was last written, as a clock time rather than an age.+ *+ * An age ("20m") answers how long ago and nothing else: two comments written in+ * the same sitting both read "20m", and coming back to a document the next day+ * every stamp has silently changed. A time is the same string every time you+ * look at it, which is what makes it something you can refer to.*- * Rolls over rather than running the smallest unit up forever: hours alone gave- * a week-old comment "174h", a number nobody converts in their head. Past a week- * even days stop meaning anything, so it hands over to a date — the same- * rollover point the Timeline panel uses, so two views of the same week-old- * thing agree.+ * Only as much date as the reader doesn't already have. Today's comments show+ * the time alone — "today" is what the reader is in, and stamping it on every+ * card in a session's worth of comments says nothing while pushing the ones that+ * DO carry a date out of alignment. The year appears only outside this one.*- * `floor`, not `round`: rounding UP promoted 23.6 hours to "24h" and 6.7 days to- * "7d", both of which are ages the branch below was supposed to have taken.+ * Rendered in the machine's own locale and timezone (`Intl` defaults), like+ * every other stamp in the app.*/-function relativeTime(at: number, now: number): string {- const secs = Math.max(1, Math.floor((now - at) / 1000));- if (secs < 60) return t`${secs}s`;- const mins = Math.floor(secs / 60);- if (mins < 60) return t`${mins}m`;- const hours = Math.floor(mins / 60);- if (hours < 24) return t`${hours}h`;- const days = Math.floor(hours / 24);- if (days < 7) return t`${days}d`;- return new Date(at).toLocaleDateString();+function editedAt(at: number, now: number): string {+ const date = new Date(at);+ const today = new Date(now);+ const sameDay =+ date.getFullYear() === today.getFullYear() &&+ date.getMonth() === today.getMonth() &&+ date.getDate() === today.getDate();+ const time = { hour: 'numeric', minute: '2-digit' } as const;+ if (sameDay) return date.toLocaleTimeString(undefined, time);+ if (date.getFullYear() === today.getFullYear()) {+ return date.toLocaleString(undefined, { month: 'short', day: 'numeric', ...time });+ }+ return date.toLocaleString(undefined, {+ year: 'numeric',+ month: 'short',+ day: 'numeric',+ ...time,+ });}export function ThreadCard({thread,- now,cardRef,focused,+ active = false,sending,- onClose,+ showQuote = true,}: {thread: CommentThread;- now: number;cardRef: (el: HTMLElement | null) => void;focused: boolean;+ /**+ * This thread's in-doc popover is OPEN. The card answers with the same amber+ * WASH the passage carries — background only, no border (a border reads as a+ * statement about selection, which the tick owns). Popover-open specifically,+ * not hover: hosts used to pass the pointer-following active thread, and every+ * card lit itself as the mouse crossed it. Optional because the popover host+ * renders exactly one card and pinning it as active would just tint the card+ * the reader is already inside.+ */+ active?: boolean;+ /**+ * Render the quoted passage the comment is anchored to.+ *+ * On in the panels, which sit away from the text and have to say what each+ * comment is on. Off in the in-document popover, which is already pinned to+ * that passage with the passage itself highlighted underneath — quoting it+ * there prints the same words twice, inches apart.+ */+ showQuote?: boolean;/*** Ticked for the next send. Passed in rather than read here so one* subscription serves a whole panel of cards.@@ -90,37 +120,112 @@ export function ThreadCard({* silently disagrees with the state behind it.*/sending: boolean;- /** When set, renders a close button in the header (used by the popover). */- onClose?: () => void;}) {const { t } = useLingui();- // The edit field opens on demand from the icon in the action row, seeded with- // the current text — this revises the comment rather than adding to it.- const [draft, setDraft] = useState(thread.body);+ // Captured once on mount: only the today-or-not branch reads it, that answer+ // does not change while a card is on screen, and calling Date.now() during+ // render violates the React Compiler purity rule.+ const [renderedAt] = useState(() => Date.now());+ // The edit field opens on demand from the icon in the header, seeded with the+ // current text — this revises the comment rather than adding to it.const [editing, setEditing] = useState(false);- const editFieldRef = useRef<HTMLTextAreaElement>(null);+ // Pushed up by the field on every keystroke; the Save button reads it so a+ // revision emptied down to nothing can't be filed.+ const [draftEmpty, setDraftEmpty] = useState(false);+ const editFieldRef = useRef<ComposerMentionInputHandle>(null);const isOrphaned = thread.status === 'orphaned';const isResolved = thread.status === 'resolved';- // Focus the edit field with the caret AFTER the existing text. `autoFocus`- // alone lands it at offset 0, so you open an edit standing in front of your- // own sentence and have to travel to the end before typing.+ // Read by the seed effect below, which must not re-run when the body changes:+ // a comment revised elsewhere while you have this field open would otherwise+ // overwrite what you are typing.+ const bodyRef = useRef(thread.body);+ useEffect(() => {+ bodyRef.current = thread.body;+ });++ // The field's current text, mirrored on every keystroke. The unmount commit+ // below cannot read the field directly — by the time the cleanup runs, the+ // field's own editor may already be destroyed — so the words ride a ref the+ // whole time the edit is open.+ const liveDraftRef = useRef<string | null>(null);+ /** An explicit save or discard already settled this edit — later signals stand down. */+ const settledRef = useRef(false);++ // Seed the field and put the caret AFTER the existing text. Focus alone lands+ // it at offset 0, so you would open an edit standing in front of your own+ // sentence and have to travel to the end before typing.useEffect(() => {if (!editing) return;- const field = editFieldRef.current;- if (field === null) return;- field.focus();- const end = field.value.length;- field.setSelectionRange(end, end);+ settledRef.current = false;+ liveDraftRef.current = null;+ editFieldRef.current?.setText(bodyRef.current);+ editFieldRef.current?.focusEnd();+ }, [editing]);++ /**+ * Settle the edit with `raw` as the revision. Idempotent — Enter, Escape, and+ * the unmount commit can all fire around one edit, and only the first counts.+ */+ function settleEdit(raw: string | null) {+ if (settledRef.current) return;+ settledRef.current = true;+ setEditing(false);+ const next = (raw ?? '').trim();+ if (next.length === 0 || next === bodyRef.current) return;+ editComment(thread.id, next);+ }++ /** Save the revision, or close on a no-op. Enter and the `@`-popup's own keys+ * are the field's concern; this only decides what a submit means. */+ function commitEdit() {+ settleEdit(editFieldRef.current?.getContent().instruction ?? null);+ }++ /** The one explicit DISCARD — Escape and the Cancel button. Settling with no+ * text saves nothing and, crucially, stands the unmount commit down. */+ function cancelEdit() {+ settleEdit(null);+ }++ /**+ * Delete the thread, discarding any revision in flight.+ *+ * Deleting is not clicking away. The card unmounts either way, but only one of+ * them means "file what I typed" — left to the unmount commit, deleting a+ * comment mid-edit filed the revision against a thread that no longer exists,+ * and the reader got a "couldn't save that edit" on top of a delete that+ * worked perfectly.+ */+ function deleteComment() {+ cancelEdit();+ deleteThread(thread.id);+ }++ // Click-away SAVES, like Notion — not silently discards. The popover host+ // closes on any outside click, unmounting this card mid-edit; before this,+ // that threw the revision away with nothing saying so, which read as "my+ // edit didn't reflect". Escape remains the explicit discard, and it settles+ // the edit first so this cleanup stands down.+ //+ // The commit must fire exactly when the edit session ends, not when the+ // thread re-renders mid-edit.+ // biome-ignore lint/correctness/useExhaustiveDependencies: settleEdit is deliberately read at cleanup time; keying the effect on it would re-arm the commit on every render.+ useEffect(() => {+ if (!editing) return;+ return () => {+ settleEdit(liveDraftRef.current);+ };}, [editing]);function jumpToQuote(quote: string) {if (thread.anchor === null) return;- // A comment on a file that is not open: the project scope lists every- // document, so the editor this jump needs may not exist yet. `revealThread`- // navigates first and waits for that editor to mount; the local paths below- // would find nothing and silently do nothing.- if (getEditorForDoc(thread.docName) === null) {+ // A comment on a document that is not IN FRONT OF THE READER: the project+ // scope lists every file, and the pool keeps the last few visited ones+ // mounted but hidden — so "an editor exists" is not "you can see it". Either+ // way `revealThread` navigates first and waits; the local paths below would+ // measure a pane with no layout and silently do nothing.+ if (getVisibleEditorForDoc(thread.docName) === null) {revealThread(thread);return;}@@ -134,35 +239,30 @@ export function ThreadCard({start: thread.anchor.start,end: thread.anchor.end,});+ emitOpenThreadPopover(thread.id);return;}- const editor = getEditorForDoc(thread.docName);+ const editor = getVisibleEditorForDoc(thread.docName);if (!editor) return;const range = findQuoteRange(editor.state.doc, quote, thread.anchor);if (!range) return;- // Select without ProseMirror's own scroll, then place it ourselves — its- // minimal scroll lands the passage under the floating toolbar.- editor.chain().focus().setTextSelection(range).run();- scrollAnchorIntoView(editor, range);- }-- function cancelEdit() {- setDraft(thread.body);- setEditing(false);- }-- function saveEdit() {- const next = draft.trim();- if (next.length === 0 || next === thread.body) {- setEditing(false);- return;- }- editComment(thread.id, next);- setEditing(false);+ // Scrolled to and pointed at, never selected. Focusing the editor and+ // setting a text selection put a live selection on the passage — blue, with+ // the formatting bubble menu over it — so following a comment from the panel+ // read as picking the words up to edit them. Opening the thread is what the+ // margin marker does, and it deepens the highlight the same way, which is+ // the "here it is" this needed all along.+ //+ // Our own scroll, not ProseMirror's: its minimal scroll lands the passage+ // under the floating toolbar.+ scrollAnchorIntoView(editor, range, thread.docName);+ emitOpenThreadPopover(thread.id);}function rePlaceOnSelection() {- const editor = getEditorForDoc(thread.docName);+ // Visible, like the jump: re-placing reads the reader's CURRENT selection,+ // and a hidden pane's selection is whatever was left there last time.+ const editor = getVisibleEditorForDoc(thread.docName);if (!editor) return;const { from, to, empty } = editor.state.selection;if (empty) return;@@ -174,7 +274,15 @@ export function ThreadCard({}}+ // Clicking the card SELECTS ONLY this comment, or clears it when it is+ // already the only one; the checkbox stays additive, and the quote row keeps+ // the jump. Panel cards only (`showQuote` is the proxy — the popover's card+ // has no batch column beside it), never while editing, and a resolved card+ // has no tick to narrow.+ const cardSelects = showQuote && !editing && !isResolved;+return (+ // biome-ignore lint/a11y/useKeyWithClickEvents: pointer-only affordance — clicking the card's whitespace solos its tick; keyboard/AT users compose the same state from the real controls (the card's checkbox + the footer's master tick). See focus-composer-on-card-pointer.ts for the sibling pattern.<articleref={cardRef}// Reading a card deepens its passage in the document. With two comments@@ -184,10 +292,49 @@ export function ThreadCard({onPointerLeave={() => clearActiveThread(thread.id)}onFocusCapture={() => setActiveThread(thread.id)}onBlurCapture={() => clearActiveThread(thread.id)}+ // The card body is a bigger target for the tick it contains, and nothing+ // more. It used to mean "send only this one" — narrowing the batch and+ // clearing every other comment — which is a reasonable shortcut and the+ // wrong one to hang on a bare click: a column of rows with checkboxes, a+ // select-all above them and a count reads as a checklist, and in a+ // checklist clicking a row toggles that row. Readers reached for the+ // additive meaning and got the destructive one.+ // The jump stays on the quote row, and a click that started on any+ // interactive descendant is that control's alone.+ onClick={(event) => {+ if (!cardSelects) return;+ const target = event.target as HTMLElement | null;+ if (target?.closest('button, [role="checkbox"], [role="textbox"], a, input, textarea')) {+ return;+ }+ // A drag that SELECTED this card's words still ends in a click on the+ // card, so copying a sentence out of a comment silently toggled whether+ // it was going to be sent. Anchored inside this card specifically:+ // selecting a passage in the document and then clicking a card here is+ // an ordinary click, and reading the selection alone would swallow it.+ const selection = window.getSelection();+ if (+ selection !== null &&+ !selection.isCollapsed &&+ selection.anchorNode !== null &&+ event.currentTarget.contains(selection.anchorNode)+ ) {+ return;+ }+ toggleSending(thread.id);+ }}className={cn(- 'flex flex-col gap-1.5 rounded-lg border p-2.5 transition-shadow',+ 'flex flex-col gap-1.5 rounded-lg border p-2.5 transition-[box-shadow,border-color,background-color]',+ cardSelects && 'cursor-pointer',isResolved && 'opacity-70',- isOrphaned && 'border-amber-500/40 bg-amber-500/5',+ // No card treatment for a lost passage. Amber in this component means+ // the passage highlight — the wash a card takes while it is being read,+ // matching the mark on its text in the document. A card tinted for its+ // STATE spent that hue on something the document never echoes, and left+ // every orphan looking permanently hovered.+ // The same hue as the passage's highlight — and like it, a wash with no+ // outline, so being-read never masquerades as being-selected.+ active && 'bg-amber-500/10',focused && 'ring-2 ring-primary',)}>@@ -208,8 +355,13 @@ export function ThreadCard({aria-label={sending ? t`Don't send this comment` : t`Send this comment`}/>)}- <span className="shrink-0 text-[10px] text-muted-foreground">- {relativeTime(thread.createdAt, now)}+ {/* `title` carries the full date and time, including the year and the+ seconds the stamp drops. */}+ <span+ className="shrink-0 text-[10px] text-muted-foreground"+ title={new Date(thread.updatedAt).toLocaleString()}+ >+ {editedAt(thread.updatedAt, renderedAt)}</span></div><div className="flex min-w-0 items-center gap-1.5">@@ -218,106 +370,192 @@ export function ThreadCard({variant="outline"className="gap-1 border-green-600/40 text-green-700 dark:text-green-500">- <Check className="size-2.5" />+ {/* The doubled check, matching the panel's show-resolved toggle.+ A single one is this panel's "ticked to send" mark, and the two+ meanings cannot share a glyph on the same card. */}+ <CheckCheck className="size-2.5" /><Trans>Resolved</Trans></Badge>)}- {isOrphaned && (- <Badge- variant="outline"- className="gap-1 border-amber-500/50 text-amber-600 dark:text-amber-500"- >- <Unlink className="size-2.5" />- <Trans>Orphaned</Trans>- </Badge>- )}+ {/* No badge for the lost-passage state. The block below already says+ it in a full sentence, right under the words it is about, and the+ card carries the amber treatment either way — a badge saying the+ same thing two lines up was the state announced twice. Resolved+ keeps its badge because nothing else on that card says so. */}{/* Edit rides beside Delete rather than in a row of its own: the twoare peers, both acting on this comment as an object rather than onwhere it goes. A row for one icon also costs a line of card heighton every card, for the least-taken action. */}{!isResolved && (- <Button- size="sm"- variant="ghost"- aria-label={t`Edit this comment`}- title={t`Edit this comment`}- aria-expanded={editing}- className={cn(- 'size-6 p-0',- editing ? 'text-foreground' : 'text-muted-foreground hover:text-foreground',- )}- onClick={() => {- setDraft(thread.body);- setEditing((open) => !open);- }}- >- <Pencil className="size-3.5" />- </Button>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ size="sm"+ variant="ghost"+ aria-label={t`Edit this comment`}+ aria-expanded={editing}+ className={cn(+ 'size-6 p-0',+ editing ? 'text-foreground' : 'text-muted-foreground hover:text-foreground',+ )}+ onClick={() => setEditing((open) => !open)}+ >+ <Pencil className="size-3.5" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <Trans>Edit this comment</Trans>+ </TooltipContent>+ </Tooltip>)}{/* No confirm step: a comment is one line of your own text, it hasgone nowhere but the queue, and re-adding it costs a selection anda sentence. An interstitial would cost more than the mistake. */}- <Button- size="sm"- variant="ghost"- className="size-6 p-0 text-muted-foreground hover:text-destructive"- aria-label={t`Delete this comment`}- title={t`Delete this comment`}- onClick={() => deleteThread(thread.id)}- >- <Trash2 className="size-3.5" />- </Button>- {onClose && (- <Button- size="sm"- variant="ghost"- className="-mr-1 size-6 p-0 text-muted-foreground hover:text-foreground"- aria-label={t`Close`}- onClick={onClose}- >- <X className="size-3.5" />- </Button>- )}+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ size="sm"+ variant="ghost"+ className="size-6 p-0 text-muted-foreground hover:text-destructive"+ aria-label={t`Delete this comment`}+ onClick={deleteComment}+ >+ <Trash2 className="size-3.5" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <Trans>Delete this comment</Trans>+ </TooltipContent>+ </Tooltip></div></div>- {/* Anchor quote */}+ {/* Anchor quote. The orphaned block is the card's state rather than a+ quote row — a thread that lost its passage has to say so wherever it is+ rendered — so `showQuote` does not gate it. It still SHOWS the quote:+ orphaning mutates state alone, so the stored words survive as the last+ thing the comment was on, and they are what tells a reader which of+ several comments this is. The popover has no passage underneath to+ duplicate, that being the whole problem.++ Same chrome as the live quote row it stands in for — a lost passage is+ still the passage this comment is on, so it reads as that row struck+ through rather than as a different kind of object. */}{isOrphaned ? (- <p className="rounded border-l-2 border-amber-500/60 bg-amber-500/10 px-2 py-1 text-xs text-amber-700 dark:text-amber-400">- <Trans>The anchored text is gone. You can re-place it on selected text.</Trans>- </p>- ) : (- <Button- type="button"- variant="ghost"- // Inert only when there are no words to reveal — a comment on a whole- // field. The row still renders, so the thread keeps saying what it is- // on rather than showing nothing.- disabled={thread.anchor === null}- onClick={() => jumpToQuote(thread.anchor?.quote ?? '')}- title={- thread.anchor === null- ? t`This comment is on the whole property`- : thread.target.kind === 'property'- ? t`Select this text in the property`- : t`Jump to the anchored text`- }- className="h-auto w-full justify-start truncate rounded border-l-2 border-muted-foreground/40 bg-muted/40 px-2 py-1 text-left text-xs font-normal text-muted-foreground hover:bg-muted/70 disabled:opacity-100"- >- <span className="truncate">- {thread.target.kind === 'property' ? (- <span className="font-mono">- {propertyAddress(thread.target.key, thread.target.path)}:- {thread.anchor === null ? '' : ` “${thread.anchor.quote}”`}- </span>+ <div className="flex flex-col gap-0.5 rounded border-l-2 border-muted-foreground/40 bg-muted/40 px-2 py-1">+ {thread.anchor !== null && (+ <p+ className="truncate text-xs text-muted-foreground line-through"+ title={thread.anchor.quote}+ >+ {/* Struck through, but never ONLY struck through — the sentence+ below carries the same fact in words, which is what a screen+ reader and a monochrome display get. */}+ “{thread.anchor.quote}”+ </p>+ )}+ <p className="text-xs text-muted-foreground">+ <Trans>+ The original text was deleted. You can re-place this comment on selected text.+ </Trans>+ </p>+ </div>+ ) : showQuote ? (+ <Tooltip>+ {/* `asChild` onto a DISABLED button would lose the hint — a disabled+ element fires no pointer events, so Radix never sees the hover.+ The span is what carries it for the inert case. */}+ <TooltipTrigger asChild>+ <span className="w-full">+ <Button+ type="button"+ variant="ghost"+ // Inert only when there are no words to reveal — a comment on a whole+ // field. The row still renders, so the thread keeps saying what it is+ // on rather than showing nothing.+ disabled={thread.anchor === null}+ onClick={() => jumpToQuote(thread.anchor?.quote ?? '')}+ className="h-auto w-full justify-start truncate rounded border-l-2 border-muted-foreground/40 bg-muted/40 px-2 py-1 text-left text-xs font-normal text-muted-foreground hover:bg-muted/70 disabled:opacity-100"+ >+ <span className="truncate">+ {thread.target.kind === 'property' ? (+ <span className="font-mono">+ {propertyAddress(thread.target.key, thread.target.path)}:+ {thread.anchor === null ? '' : ` “${thread.anchor.quote}”`}+ </span>+ ) : (+ <>“{thread.anchor?.quote ?? ''}”</>+ )}+ </span>+ </Button>+ </span>+ </TooltipTrigger>+ <TooltipContent>+ {thread.anchor === null ? (+ <Trans>This comment is on the whole property</Trans>+ ) : thread.target.kind === 'property' ? (+ <Trans>Jump to selected text in property</Trans>) : (- <>“{thread.anchor?.quote ?? ''}”</>+ <Trans>Jump to the anchored text</Trans>)}- </span>- </Button>- )}+ </TooltipContent>+ </Tooltip>+ ) : null}++ {/* The comment, or the field that revises it — one slot, never both. The+ field used to open BENEATH the text it was seeded from, so a card in+ edit mode printed the same sentence twice, inches apart, and the card+ grew by a row for it. Editing something means editing it where it is.- <p className="text-sm text-foreground/90">{thread.body}</p>+ The SAME field the comment was written in, not a plain textarea: `@` a+ file while writing a comment and you could not `@` one while revising+ it, which made the revision a lesser thing than the original for no+ reason a reader could see. Enter saves, Shift+Enter is a newline, and+ Escape closes — all three belong to the field, which is also the only+ side that knows whether the `@`-popup just consumed the key. */}+ {editing ? (+ <div className="flex flex-col gap-1.5">+ <ComposerMentionInput+ ref={editFieldRef}+ ariaLabel={t`Edit this comment`}+ placeholder={t`Edit this comment`}+ // Drives the Save button's disabled state — an empty field has no+ // revision to file, and the keyboard path declines the same case.+ onEmptyChange={setDraftEmpty}+ // Mirrored per keystroke for the unmount commit, which runs after+ // the field's editor is already gone.+ onContentChange={() => {+ liveDraftRef.current = editFieldRef.current?.getContent().instruction ?? null;+ }}+ onSubmit={commitEdit}+ // The one explicit DISCARD. Settling with the original text saves+ // nothing and, crucially, stands the unmount commit down.+ onEscape={cancelEdit}+ className="max-h-40 overflow-y-auto rounded-md border px-2 py-1 text-sm"+ />+ {/* The keys alone are not the affordance. Enter/Escape stay the fast+ path, but a field with no visible way out leaves a reader who+ never learned them stuck in it — and click-away saving is a+ guess unless something on screen says which way the exit goes. */}+ <div className="flex items-center justify-end gap-1.5">+ <Button size="sm" variant="ghost" onClick={cancelEdit}>+ <Trans>Cancel</Trans>+ </Button>+ <Button+ size="sm"+ onClick={commitEdit}+ disabled={draftEmpty}+ aria-label={t`Save this comment (Enter)`}+ >+ <Trans>Save</Trans>+ </Button>+ </div>+ </div>+ ) : (+ <p data-testid="thread-comment-body" className="text-sm text-foreground/90">+ {thread.body}+ </p>+ )}{/* Actions */}{isOrphaned ? (@@ -329,46 +567,6 @@ export function ThreadCard({</Button>) : (<>- {/* The field appears only once you ask for it — most cards are being- read, not revised, so an always-present box costs every card height- for an action taken on few of them. Enter saves, Shift+Enter is a- newline, Escape discards the revision. */}- {editing && (- <div className="flex flex-col gap-1.5">- <Textarea- ref={editFieldRef}- rows={1}- value={draft}- onChange={(e) => setDraft(e.target.value)}- onKeyDown={(e) => {- if (e.key === 'Escape') {- cancelEdit();- return;- }- if (e.key !== 'Enter' || e.shiftKey) return;- // Mid-composition Enter belongs to the IME, not to saving.- if (e.nativeEvent.isComposing) return;- e.preventDefault();- saveEdit();- }}- placeholder={t`Edit this comment`}- className="min-h-0 resize-none px-2 py-1 text-sm leading-5"- />- <div className="flex items-center justify-end gap-1.5">- <Button size="sm" variant="ghost" onClick={cancelEdit}>- <Trans>Cancel</Trans>- </Button>- <Button- size="sm"- onClick={saveEdit}- disabled={draft.trim().length === 0}- aria-label={t`Save this comment (Enter)`}- >- <Trans>Save</Trans>- </Button>- </div>- </div>- )}{/* Only a resolved thread still needs a row down here. Resolving issomething a SEND does, not something you declare, so there is nomanual Resolve — but Reopen has to stay, and stay one click: it isdiff --git a/packages/app/src/comments/anchor-decorations.tsx b/packages/app/src/comments/anchor-decorations.tsxindex b3f3418e1..8bfe37b4f 100644--- a/packages/app/src/comments/anchor-decorations.tsx+++ b/packages/app/src/comments/anchor-decorations.tsx@@ -187,8 +187,17 @@ function createCommentAnchorPlugin(docName: string): Plugin<AnchorPluginState> {if (hit === null || anchor.to - anchor.from < hit.to - hit.from) hit = anchor;}if (hit?.id == null) return false;+ // One click, both meanings — the Google Docs gesture. The thread opens+ // beside the passage AND the click falls through to ProseMirror as an+ // ordinary caret placement, so a commented passage stays editable text+ // rather than a button. The two never conflicted: a plain caret paints+ // no selection and opens no bubble menu, and the popover takes no+ // focus, so reading and typing coexist. (An earlier cut captured the+ // click and blurred the editor, which made editing inside a highlight+ // impossible — the popover's dismisser ignores highlight clicks, so+ // the card also stays up while you type.)openThread(hit.id);- return true;+ return false;},},});diff --git a/packages/app/src/comments/anchor-nearby-edit.test.ts b/packages/app/src/comments/anchor-nearby-edit.test.tsnew file mode 100644index 000000000..05d6b202b--- /dev/null+++ b/packages/app/src/comments/anchor-nearby-edit.test.ts@@ -0,0 +1,93 @@+/**+ * Field repro: editing a NEIGHBOUR of a commented passage made the highlight+ * vanish, though the commented words were untouched.+ *+ * A recipe's step 1 carried a comment; deleting most of step 2 dropped the+ * highlight off step 1. The passage itself still matched literally and was the+ * document's only hit, so nothing about the quote explained it — the loss was+ * in the context gate. A stored anchor's `prefix`/`suffix` are sliced out of+ * the markdown body, so a 32-character window around a list item picks up its+ * `1. ` and its neighbour's `2. `; scoring them against rendered text without+ * treating those as syntax put a marker at the seam and took the common run to+ * zero. Every candidate scored 0, the evidence floor was never met, and+ * resolution fell through to bracket recovery, which needs the surroundings+ * intact — so any edit inside the context window orphaned the thread.+ *+ * The invariant these hold: a comment survives edits to text NEAR it, and only+ * an edit to the passage (or its disappearance) may take the highlight away.+ */++import { MarkdownManager, sharedExtensions } from '@inkeep/open-knowledge-core';+import { getSchema } from '@tiptap/core';+import { describe, expect, test } from 'vitest';+import { createAnchorResolver } from './anchor-search';++const mdManager = new MarkdownManager({ extensions: sharedExtensions });++const BODY = [+ '## Equipment',+ '',+ '- Grill pan or skillet',+ '- Skewers (optional)',+ '- Small bowl for the sauce',+ '',+ '## Steps',+ '',+ '1. Toss the chicken with the coconut milk, curry powder, turmeric, sugar, and fish sauce. Rest 15 minutes.',+ '2. Thread onto skewers if using.',+ '3. Sear in a hot grill pan until charred and cooked, about 10-12 minutes.',+ '4. Whisk the peanut sauce, loosening with water to a dip-able consistency, and serve alongside.',+].join('\n');++const QUOTE =+ 'Toss the chicken with the coconut milk, curry powder, turmeric, sugar, and fish sauce. Rest 15 minutes.';++/** What `createAnchor` stores: 32 chars of the markdown BODY either side. */+const at = BODY.indexOf(QUOTE);+const CONTEXT = {+ prefix: BODY.slice(Math.max(0, at - 32), at),+ suffix: BODY.slice(at + QUOTE.length, at + QUOTE.length + 32),+};++function resolve(markdown: string) {+ const doc = getSchema(sharedExtensions).nodeFromJSON(mdManager.parse(markdown));+ return createAnchorResolver(doc)(QUOTE, CONTEXT);+}++describe('a comment survives edits around it', () => {+ test('resolves against the document it was made on', () => {+ expect(resolve(BODY)).not.toBeNull();+ });++ test('survives the next list item being truncated', () => {+ // The reported gesture: half of step 2 deleted. Step 2 sits inside step 1's+ // stored suffix, so this is what the context gate has to tolerate.+ expect(+ resolve(BODY.replace('2. Thread onto skewers if using.', '2. Thread onto ske')),+ ).not.toBeNull();+ });++ test('survives the next list item being replaced outright', () => {+ expect(+ resolve(BODY.replace('2. Thread onto skewers if using.', '2. Skip the skewers.')),+ ).not.toBeNull();+ });++ test('survives an edit to the heading above it', () => {+ expect(resolve(BODY.replace('## Steps', '## Method'))).not.toBeNull();+ });++ test('survives an edit on both sides at once', () => {+ const edited = BODY.replace('- Small bowl for the sauce', '- A bowl').replace(+ '2. Thread onto skewers if using.',+ '2. Thread onto ske',+ );+ expect(resolve(edited)).not.toBeNull();+ });++ test('still orphans when the passage itself is deleted', () => {+ // The gate exists to stop a deleted passage re-anchoring elsewhere; making+ // it reachable must not make it toothless.+ expect(resolve(BODY.replace(`1. ${QUOTE}`, '1.'))).toBeNull();+ });+});diff --git a/packages/app/src/comments/anchor-repro.test.ts b/packages/app/src/comments/anchor-repro.test.tsnew file mode 100644index 000000000..8d20b52e7--- /dev/null+++ b/packages/app/src/comments/anchor-repro.test.ts@@ -0,0 +1,64 @@+/**+ * Field repro: the check-in doc where deleting "e agents pan" slid the+ * highlight onto the "Decided:" paragraph's copy.+ *+ * Reconstructed from the report, with the properties that make it hard kept+ * intact: the surviving twin renders the same words but carries `**bold**`+ * markup in the body (so the quote is not literally present there in markdown,+ * only in rendered text), and a third stray occurrence sits at the end of the+ * document with unrelated context. Real markdown pipeline, real index — not a+ * hand-built fixture.+ */++import { MarkdownManager, sharedExtensions } from '@inkeep/open-knowledge-core';+import { getSchema } from '@tiptap/core';+import { describe, expect, test } from 'vitest';+import { createAnchorResolver } from './anchor-search';++const mdManager = new MarkdownManager({ extensions: sharedExtensions });+// The schema import keeps parity with anchor-search.test.ts's setup; parsing+// alone is what this suite needs.+void getSchema(sharedExtensions);++const BODY = [+ '## Decisions',+ '',+ '1. **⌘L arbitration — decided.** ⌘L stages into the agents panel specifically. A name its target.',+ '2. **Rail bare-letters — deferred** to a separate story.',+ '',+ '**Decided:** ⌘L stages into the **agents panel** specifically. The principle is that a chord should name its target.',+ '',+ 'Worth confirming before anyone builds.e agents panel',+].join('\n');++const QUOTE = 'e agents pan';++/** Server-style context: 32 chars of the markdown body either side. */+function bodyContext(body: string, at: number): { prefix: string; suffix: string } {+ return {+ prefix: body.slice(Math.max(0, at - 32), at),+ suffix: body.slice(at + QUOTE.length, at + QUOTE.length + 32),+ };+}++function docFor(markdown: string) {+ return getSchema(sharedExtensions).nodeFromJSON(mdManager.parse(markdown));+}++describe('the check-in repro', () => {+ test('the commented occurrence resolves while it exists', () => {+ const at = BODY.indexOf(QUOTE);+ const context = bodyContext(BODY, at);+ const range = createAnchorResolver(docFor(BODY))(QUOTE, context);+ expect(range).not.toBeNull();+ });++ test('deleting the selection orphans instead of sliding to the bold twin', () => {+ const at = BODY.indexOf(QUOTE);+ const context = bodyContext(BODY, at);+ // Exactly the reported gesture: the selected text removed where it stood.+ const afterDelete = BODY.slice(0, at) + BODY.slice(at + QUOTE.length);+ const range = createAnchorResolver(docFor(afterDelete))(QUOTE, context);+ expect(range).toBeNull();+ });+});diff --git a/packages/app/src/comments/anchor-search.test.ts b/packages/app/src/comments/anchor-search.test.tsindex 31aee2092..f5ea8538e 100644--- a/packages/app/src/comments/anchor-search.test.ts+++ b/packages/app/src/comments/anchor-search.test.ts@@ -33,6 +33,52 @@ const DOC = 'Add the garlic and cook 1 min. Stir the sauce. Add the garlic and sconst FIRST = DOC.indexOf('Add the garlic');const SECOND = DOC.indexOf('Add the garlic', FIRST + 1);+describe('findRangeInIndex — deleting the selection leaves a seam', () => {+ test('declines the twin even when its neighbourhood matches honestly', () => {+ // The sentence was duplicated after the comment was made, so the twin's+ // surroundings match the stored context well past any evidence floor —+ // only the seam at the old spot (prefix and suffix now touching) says the+ // original was deleted. The stored context reaches BEYOND the duplicated+ // sentence, as a real 32-char capture does; a context falling entirely+ // inside the duplication is the documented indistinguishable case.+ const sentence = 'The chord stages into the agents panel specifically, naming its target.';+ const afterDelete =+ `Intro first. The chord stages into specifically, naming its target. ` ++ `Later, restated: ${sentence}`;+ const range = findRangeInIndex(indexOf(afterDelete), 'the agents panel', {+ prefix: 'Intro first. The chord stages into ',+ suffix: ' specifically, naming its target. Later,',+ });+ expect(range).toBeNull();+ });+});++describe('findRangeInIndex — a deleted passage with an identical twin', () => {+ // The reported bug: delete the commented occurrence while the same words+ // survive elsewhere. The survivor is a lone hit, and a lone hit was accepted+ // without consulting the stored context — the highlight slid onto words+ // nobody commented on, prefix and suffix in open disagreement.+ test('declines the surviving twin instead of highlighting it', () => {+ const afterDelete = 'Closing notes mention Add the garlic near the archive vault.';+ const range = findRangeInIndex(indexOf(afterDelete), 'Add the garlic', {+ prefix: 'The northern site reports that you should ',+ suffix: ' and cook until fragrant, one minute.',+ });+ expect(range).toBeNull();+ });++ test('still accepts a lone hit whose surroundings carry a trace of the context', () => {+ // Edited around, not moved: the floor asks for a fragment, not preservation.+ const edited = 'Stir the sauce. Add the garlic and serve immediately, garnished.';+ const at = edited.indexOf('Add the garlic');+ const range = findRangeInIndex(indexOf(edited), 'Add the garlic', {+ prefix: 'Stir the sauce. ',+ suffix: ' and serve.',+ });+ expect(range).toEqual({ from: at + 1, to: at + 1 + 'Add the garlic'.length });+ });+});+describe('findRangeInIndex — repeated quote', () => {test('the fixture really does repeat (guards the guard)', () => {expect(FIRST).toBeGreaterThanOrEqual(0);diff --git a/packages/app/src/comments/anchor-search.ts b/packages/app/src/comments/anchor-search.tsindex 071d79893..8df3c0647 100644--- a/packages/app/src/comments/anchor-search.ts+++ b/packages/app/src/comments/anchor-search.ts@@ -26,6 +26,7 @@import {commentLeafText,commentQuoteText,+ contextEvidenceFloor,contextMatchScore,findAllPassages,type PassageMatch,@@ -180,18 +181,72 @@ export function findRangeInIndex(const recovered = findBetweenBrackets(index.text, quote, context);return recovered === null ? null : toRange(index, recovered);}- if (hits.length === 1) return toRange(index, hits[0]);+ const prefix = context?.prefix ?? '';+ const suffix = context?.suffix ?? '';+ // Deletion probe, mirroring the server's: deleting exactly the selected text+ // leaves the stored prefix and suffix CONCATENATED at the old spot, and that+ // seam is positive evidence of an in-place deletion — it outranks any+ // surviving occurrence of the quote, including a twin whose whole+ // neighbourhood was duplicated and therefore matches the context honestly.+ // Same two qualifiers as the server's: both context sides must exist (one+ // side alone is a document edge), and the full prefix+quote+suffix triple+ // must be GONE — neighbours that repeat the quote ("hi hi hi") contain the+ // seam string even with the passage intact. Literal checks first; the+ // elastic pass covers a context window that carries markdown syntax this+ // rendered index does not show.+ const present = (needle: string): boolean =>+ index.text.includes(needle) ||+ findAllPassages(index.text, needle, { syntaxIn: 'needle' }).length > 0;+ if (+ prefix !== '' &&+ suffix !== '' &&+ !present(prefix + quote + suffix) &&+ present(prefix + suffix)+ ) {+ return null;+ }+ // Any accepted hit must show a trace of the stored surroundings. Without+ // this, deleting the commented passage slid the highlight onto an identical+ // phrase elsewhere in the document (the survivor is a lone hit, and a lone+ // hit was accepted unexamined). The bracket recovery runs before giving up:+ // the true passage may have been edited while an untouched twin still+ // matches, and its intact surroundings can still name it. Same gate the+ // server's `refind` applies, so highlight and stored state cannot disagree+ // about a survivor.+ // The context is a slice of the markdown BODY (the server captures it there),+ // while `index.text` is rendered — so syntax is elastic on the context side+ // here even though the text being scored has none.+ const floor = contextEvidenceFloor({ prefix, suffix }, { syntaxInContext: true });+ const evidence = (hit: PassageMatch): boolean =>+ floor === 0 ||+ contextMatchScore(+ index.text,+ hit,+ { prefix, suffix },+ { syntaxIn: 'none', syntaxInContext: true },+ ) >= floor;+ if (hits.length === 1) {+ if (!evidence(hits[0])) {+ const recovered = findBetweenBrackets(index.text, quote, context);+ return recovered === null ? null : toRange(index, recovered);+ }+ return toRange(index, hits[0]);+ }// Repeated quote: prefer the hit whose surrounding text best matches the// context captured when the comment was written.- const prefix = context?.prefix ?? '';- const suffix = context?.suffix ?? '';let best: PassageMatch[] = [];let bestScore = -1;for (const hit of hits) {// `index.text` is rendered text, so there is no markdown syntax to be- // elastic about — only whitespace. Same function the server ranks with.- const score = contextMatchScore(index.text, hit, { prefix, suffix }, { syntaxIn: 'none' });+ // elastic about on THAT side — only whitespace. Same function the server+ // ranks with.+ const score = contextMatchScore(+ index.text,+ hit,+ { prefix, suffix },+ { syntaxIn: 'none', syntaxInContext: true },+ );if (score > bestScore) {bestScore = score;best = [hit];@@ -199,6 +254,13 @@ export function findRangeInIndex(best.push(hit);}}+ // Ranking orders the candidates; only the gate says whether the winner is+ // any good. With the commented occurrence gone, every surviving twin scores+ // near zero and the "best" is an arbitrary wrong answer.+ if (!evidence(best[0])) {+ const recovered = findBetweenBrackets(index.text, quote, context);+ return recovered === null ? null : toRange(index, recovered);+ }// Context could not separate them — the earliest hit, which is exactly what// the server's `bestByContext` caller does with the same tied set. There was// once a nearest-known-position tie-break here; it took the offset off adiff --git a/packages/app/src/comments/comment-chips.dom.test.tsx b/packages/app/src/comments/comment-chips.dom.test.tsxindex c54755196..5cb1023fe 100644--- a/packages/app/src/comments/comment-chips.dom.test.tsx+++ b/packages/app/src/comments/comment-chips.dom.test.tsx@@ -4,8 +4,14 @@* It used to call `clearQueue()` — a server round-trip that unqueued every* thread in the project, with no confirmation and no undo — while wearing the* same affordance as the file chip's ✕ and the selection pill's ✕, both of which- * only stop carrying context. Destroying the batch belongs to the All-comments panel's- * labelled Clear. These pin the three controls apart.+ * only stop carrying context. Destroying the batch belongs to the All-comments+ * panel's labelled Clear. These pin the two controls apart.+ *+ * The chip is a read-out of what the Comments panel has ticked, not a second+ * picker: it carries no expandable list, so the panel stays the one place a+ * batch is chosen — and the count is the way there, since a chip naming a batch+ * you cannot reach is a dead end. It rides every message by default; the ✕ takes+ * it off this one and leaves the chip as the way back.*/import * as actualLinguiMacro from '@lingui/react/macro';@@ -13,59 +19,71 @@ import { cleanup, fireEvent, render, screen } from '@testing-library/react';import type { ReactNode } from 'react';import { afterEach, describe, expect, test, vi } from 'vitest';+let revealed = 0;+vi.doMock('./reveal-queue', () => ({+ revealQueue: () => {+ revealed += 1;+ },+}));+vi.doMock('@lingui/react/macro', () => ({...actualLinguiMacro,Trans: ({ children }: { children: ReactNode }) => <>{children}</>,- Plural: ({ value }: { value: number }) => <>{value}</>,+ // Renders the real plural FORM, not just the number: the chip's label is the+ // subject of the tests below, and a mock that dropped "comments"/"files" would+ // let them pass on a label that said neither.+ Plural: ({ value, one, other }: { value: number; one: string; other: string }) => (+ <>{(value === 1 ? one : other).replace('#', String(value))}</>+ ),useLingui: () => ({t: (strings: TemplateStringsArray, ...values: unknown[]) =>strings.reduce((acc, part, index) => `${acc}${part}${values[index] ?? ''}`, ''),}),}));-afterEach(() => cleanup());+afterEach(() => {+ cleanup();+ revealed = 0;+});async function renderChip(props: Partial<{count: number;+ docs: readonly { docName: string; count: number }[];attached: boolean;- expanded: boolean;onAttach: () => void;- onToggleExpanded: () => void;onDismiss: () => void;}> = {},) {const { QueuedCommentsChip } = await import('./comment-chips');+ const { TooltipProvider } = await import('@/components/ui/tooltip');+ // Production wraps the app in one provider (main.tsx); the chip's per-file+ // breakdown is a Radix Tooltip, which throws without one.return render(- <QueuedCommentsChip- count={props.count ?? 3}- // Attached by default: the ✕/peek distinction these pin down only exists- // in that state.- attached={props.attached ?? true}- expanded={props.expanded ?? false}- onAttach={props.onAttach ?? (() => {})}- onToggleExpanded={props.onToggleExpanded ?? (() => {})}- onDismiss={props.onDismiss ?? (() => {})}- />,+ <TooltipProvider>+ <QueuedCommentsChip+ count={props.count ?? 3}+ {...(props.docs !== undefined ? { docs: props.docs } : {})}+ // Attached by default, as the composers mount it.+ attached={props.attached ?? true}+ onAttach={props.onAttach ?? (() => {})}+ onDismiss={props.onDismiss ?? (() => {})}+ />+ </TooltipProvider>,);}describe('the queued-comments chip', () => {- test('the ✕ dismisses and does nothing else', async () => {+ test('the ✕ dismisses', async () => {let dismissed = 0;- let expanded = 0;await renderChip({onDismiss: () => {dismissed += 1;},- onToggleExpanded: () => {- expanded += 1;- },});fireEvent.click(screen.getByRole('button', { name: /leave these comments out/i }));expect(dismissed).toBe(1);- expect(expanded).toBe(0);});test('its name says it affects the message, not the queue', async () => {@@ -78,72 +96,91 @@ describe('the queued-comments chip', () => {expect(screen.queryByRole('button', { name: /clear/i })).toBeNull();});- test('peeking is a separate control from dismissing', async () => {- let dismissed = 0;- let expanded = 0;- await renderChip({- onDismiss: () => {- dismissed += 1;- },- onToggleExpanded: () => {- expanded += 1;- },- });-- fireEvent.click(screen.getByTestId('composer-comments-peek'));- expect(expanded).toBe(1);- expect(dismissed).toBe(0);- });-- test('an empty queue renders no chip', async () => {+ test('nothing ticked renders no chip', async () => {await renderChip({ count: 0 });expect(screen.queryByTestId('composer-context-chip-comments')).toBeNull();});- test('attached, the chip drops the add affordance', async () => {- await renderChip({ attached: true });- // A `+` on a chip that is already carried would read as "add another".- expect(- screen.getByTestId('composer-context-chip-comments').querySelector('svg.lucide-plus'),- ).toBeNull();+ test('the count opens the panel that owns the batch', async () => {+ await renderChip({ count: 3 });+ const chip = screen.getByTestId('composer-context-chip-comments');+ expect(chip.textContent).toContain('3');++ fireEvent.click(screen.getByTestId('composer-comments-open-panel'));+ // The panel opens on the whole queue — the batch spans documents, so the+ // open doc's own comments are not what this chip counted.+ expect(revealed).toBe(1);+ });++ test('it offers no way to re-pick in place', async () => {+ await renderChip({ count: 3 });+ const chip = screen.getByTestId('composer-context-chip-comments');+ // Attached, no `+` (it already rides this message) and no inline peek — the+ // count goes to the panel instead of growing a second list here.+ expect(chip.querySelector('svg.lucide-plus')).toBeNull();+ expect(screen.queryByTestId('composer-comments-list')).toBeNull();+ expect(screen.getAllByRole('button')).toHaveLength(2);});- test('detached, the chip is the attach control', async () => {+ test('dismissed, it becomes the way back rather than disappearing', async () => {let attached = 0;- let expanded = 0;await renderChip({attached: false,onAttach: () => {attached += 1;},- onToggleExpanded: () => {- expanded += 1;- },});- // Attaching is opt-in, so something has to say a batch exists before you opt- // in — the chip's presence is that signal, and it names the source it would- // pull from rather than the count it would carry.+ // Detached it names the SOURCE and carries no count: the number is a fact+ // about the message, and this batch is not on it.const chip = screen.getByTestId('composer-context-chip-comments');expect(chip.textContent).toContain('Comments');- expect(chip.getAttribute('aria-pressed')).toBe('false');- // The two states occupy the same slot at different times, so the icon is what- // distinguishes them — there is never a second chip to compare a fill against.+ expect(chip.textContent).not.toContain('3');expect(chip.querySelector('svg.lucide-plus')).not.toBeNull();fireEvent.click(chip);expect(attached).toBe(1);- // One control, one bit: the detached chip neither peeks nor dismisses.- expect(expanded).toBe(0);+ // One control, one bit — detached, there is nothing to dismiss.expect(screen.queryByRole('button', { name: /leave these comments out/i })).toBeNull();- expect(screen.queryByTestId('composer-comments-peek')).toBeNull();+ });+});++/**+ * What the chip says when the batch crosses documents.+ *+ * A bare "5 comments" is honest and unreadable in that case: the reader is+ * looking at one file, the number counts comments they cannot see, and the send+ * goes on to edit documents they were not looking at. The chip says how far it+ * reaches; the names go in the tooltip, where a row shared with file chips+ * cannot grow by a path per document.+ */+describe('the chip across documents', () => {+ test('one file keeps the bare count', async () => {+ await renderChip({ count: 3, docs: [{ docName: 'recipes/a', count: 3 }] });+ const label = screen.getByTestId('composer-comments-open-panel').textContent;+ expect(label).toContain('3 comments');+ expect(label).not.toContain('file');+ });++ test('several files say how many', async () => {+ await renderChip({+ count: 5,+ docs: [+ { docName: 'recipes/a', count: 3 },+ { docName: 'recipes/b', count: 2 },+ ],+ });+ const label = screen.getByTestId('composer-comments-open-panel').textContent;+ expect(label).toContain('5 comments');+ expect(label).toContain('2 files');});- test('attaching is not sending — the chip only says what rides the message', async () => {- await renderChip({ attached: false });- // A name like "Send comments" would promise dispatch; this puts the batch on- // the message and leaves the send to the send button.- expect(screen.getByRole('button', { name: /add your comments to this message/i })).toBeTruthy();- expect(screen.queryByRole('button', { name: /send/i })).toBeNull();+ test('told nothing, it degrades to the bare count rather than guessing', async () => {+ // A host that has not been updated to pass the tally must not make the chip+ // claim a span it does not know.+ await renderChip({ count: 4 });+ const label = screen.getByTestId('composer-comments-open-panel').textContent;+ expect(label).toContain('4 comments');+ expect(label).not.toContain('file');});});diff --git a/packages/app/src/comments/comment-chips.tsx b/packages/app/src/comments/comment-chips.tsxindex 5d0c9339d..82e64ce19 100644--- a/packages/app/src/comments/comment-chips.tsx+++ b/packages/app/src/comments/comment-chips.tsx@@ -15,33 +15,17 @@// biome-ignore-all lint/plugin/no-physical-direction-utility: pre-rule backlog — physical margin/padding/inset utilities predate the rule; drain by swapping ml/mr → ms/me, pl/pr → ps/pe, left/right → start/end, then deleting this line. See https://github.com/inkeep/open-knowledge/blob/main/biome-plugins/README.md#no-physical-direction-utilitygritimport { Plural, Trans, useLingui } from '@lingui/react/macro';-import { ChevronDown, FileText, MessageSquare, Plus, Unlink, X } from 'lucide-react';+import { MessageSquare, Plus, X } from 'lucide-react';import { Button } from '@/components/ui/button';-import { Checkbox } from '@/components/ui/checkbox';+import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip';import { cn } from '@/lib/utils';import type { DispatchPayload } from './comments-client';import { revealPropertyValueRange } from './property-row-rect';import { revealComment } from './reveal-comment';-import {- getThreadById,- removeFromQueue,- toggleQueueSelection,- useQueue,- useQueueSelection,-} from './store';+import { revealQueue } from './reveal-queue';+import { getThreadById, useQueueSelection } from './store';import type { CommentThread } from './types';-/** The queued comments backing the composer chip, in queue order. */-export function useQueuedComments(): CommentThread[] {- const ids = useQueue();- const threads: CommentThread[] = [];- for (const id of ids) {- const thread = getThreadById(id);- if (thread !== null) threads.push(thread);- }- return threads;-}-/*** How many queued comments are actually checked — what a send would carry.*@@ -53,40 +37,77 @@ export function useSelectedCommentCount(): number {return useQueueSelection().length;}+/** A file the batch draws from, and how many of its comments are in it. */+export interface CommentDocTally {+ docName: string;+ count: number;+}+/**- * One chip standing for the whole batch (`3 comments`), matching how the- * selection pill reads — a count plus a remove control, never raw content.+ * The batch broken down by the files it spans, in queue order.*- * The chip is also the ATTACH control, which is why it renders whenever- * anything is queued rather than only once the batch is riding the message.- * Attaching is opt-in, so something has to say a queue exists — and the count- * is that something. Behind a `+` menu it was one click deep and invisible until- * you went looking, which made a queue you had just built read as lost.+ * A bare "5 comments" is honest but unreadable the moment the batch crosses+ * documents: the reader is looking at ONE file and the number counts comments+ * they cannot see, with nothing saying so. The tally is what lets the chip say+ * how far the send reaches.+ */+export function useSelectedCommentDocs(): readonly CommentDocTally[] {+ const selected = useQueueSelection();+ const byDoc = new Map<string, number>();+ for (const id of selected) {+ const docName = getThreadById(id)?.docName;+ if (docName === undefined) continue;+ byDoc.set(docName, (byDoc.get(docName) ?? 0) + 1);+ }+ return [...byDoc].map(([docName, count]) => ({ docName, count }));+}++/**+ * One chip standing for the whole batch, matching how the selection pill reads —+ * a count plus a remove control, never raw content.*- * Unattached it is a single toggle: click to put the batch on this message.- * Attached it grows the two controls the other context chips carry — a peek- * (what am I about to send) and a ✕ (stop carrying it).+ * It says how many FILES the batch spans as soon as there is more than one. A+ * bare "5 comments" is honest and unreadable in that case: the reader is looking+ * at one file, the number counts comments they cannot see, and the send goes on+ * to edit documents they were not looking at. The names go in the tooltip —+ * this row is shared with the file chips and cannot grow by a path per document.+ *+ * ATTACHED IS THE DEFAULT. What is ticked in the Comments panel rides the next+ * message, and the chip states that rather than gating it: as an opt-in toggle+ * the panel's ticks meant nothing until a second, differently-shaped act in a+ * different corner of the screen, and a batch you had just built read as lost.+ * The panel is the picker; this is its read-out.+ *+ * Attached, it carries two controls, both pointing back at that picker. The+ * count opens the panel — with the peek gone, a chip naming a batch you could+ * not get to was a dead end. The ✕ takes the batch off THIS message and leaves+ * the chip as the way back; it does not touch the ticks, because "not on this+ * message" and "not a comment I want to send" are different statements and only+ * one of them is being made.*/export function QueuedCommentsChip({count,+ docs = [],attached,- expanded,onAttach,- onToggleExpanded,onDismiss,}: {count: number;- /** The batch is riding this message. Unattached, the chip is an add button. */+ /**+ * The files the batch spans. Empty is treated as "not told", which reads the+ * same as a single file — the chip degrades to the bare count rather than+ * claiming a span it has not been given.+ */+ docs?: readonly CommentDocTally[];+ /** The batch is riding this message. Detached, the chip is the way back. */attached: boolean;- expanded: boolean;- /** Put the queue ON this message. The queue itself is untouched either way. */+ /** Put the batch back on this message. The ticks were never disturbed. */onAttach: () => void;- onToggleExpanded: () => void;/**- * Take the queue OUT of this message — it does not touch the queue itself.+ * Take the batch OUT of this message — it unticks nothing and deletes nothing.** The sibling controls in this row (a file chip's ✕, the selection pill's ✕)- * all mean "stop carrying this", so an ✕ here that emptied the batch would be+ * all mean "stop carrying this", so an ✕ here that emptied the queue would be* the one destructive button wearing a dismiss affordance. Destroying the* batch is the All-comments panel's labelled Clear.*/@@ -97,18 +118,14 @@ export function QueuedCommentsChip({if (!attached) {return (// The leading `+` carries the state, not the border. The two chips sit in- // the same row at different times rather than side by side, so a fill or+ // the same slot at different times rather than side by side, so a fill or// outline difference has nothing to be read against — `+` vs. the comment- // mark is legible with no second chip to compare to, and says which way the- // click goes. Dashed border reinforces it for anyone who reads the shape- // before the icon.+ // mark is legible with no second chip to compare to, and says which way+ // the click goes. Dashed border reinforces it for anyone who reads the+ // shape before the icon.//- // Detached it names the SOURCE ("Comments"), attached the CONTENT ("2- // comments"): one is what you are about to pick up, the other what this- // message carries, and the sibling chips already name content that way.- // No count while detached — the chip's presence is the signal that a batch- // is waiting, and the number only becomes a fact about this message once- // the batch is on it.+ // No count here: detached, the number is not a fact about this message,+ // and the chip's presence is already the signal that a batch is waiting.<Buttontype="button"size="sm"@@ -135,20 +152,54 @@ export function QueuedCommentsChip({'text-xs text-muted-foreground',)}>- <Button- type="button"- size="sm"- variant="ghost"- aria-expanded={expanded}- aria-label={expanded ? t`Hide these comments` : t`Show these comments`}- onClick={onToggleExpanded}- data-testid="composer-comments-peek"- className="h-auto min-h-0 gap-1 px-0.5 py-0 text-xs font-normal text-muted-foreground hover:text-foreground"- >- <MessageSquare className="size-3" />- <Plural value={count} one="# comment" other="# comments" />- <ChevronDown className={cn('size-3 transition-transform', expanded && 'rotate-180')} />- </Button>+ {/* `revealQueue`, not a plain tab request: the batch spans documents, so+ the panel has to open on the whole queue rather than on whichever file+ happens to be in front. */}+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ type="button"+ size="sm"+ variant="ghost"+ aria-label={t`Show these comments in the Comments panel`}+ onClick={() => revealQueue()}+ data-testid="composer-comments-open-panel"+ className="h-auto min-h-0 gap-1 px-0.5 py-0 text-xs font-normal text-muted-foreground hover:text-foreground"+ >+ <MessageSquare className="size-3" />+ {/* The file count comes with the comment count whenever the batch+ crosses documents. Reading one file, "5 comments" counts things+ the reader cannot see and nothing says so — the send then edits+ documents they were not looking at. One file needs no such+ warning, so the bare count stays for the common case. */}+ {docs.length > 1 ? (+ <Trans>+ <Plural value={count} one="# comment" other="# comments" /> across{' '}+ <Plural value={docs.length} one="# file" other="# files" />+ </Trans>+ ) : (+ <Plural value={count} one="# comment" other="# comments" />+ )}+ </Button>+ </TooltipTrigger>+ {/* The per-file breakdown, in the one place with room for it. One line+ per file, so it stays readable at ten files where a comma-joined+ sentence would not. */}+ <TooltipContent className="max-w-64">+ {docs.length > 1 ? (+ <ul className="flex flex-col gap-0.5">+ {docs.map((doc) => (+ <li key={doc.docName} className="flex items-baseline gap-1.5">+ <span className="tabular-nums">{doc.count}</span>+ <span className="truncate">{docBasename(doc.docName)}</span>+ </li>+ ))}+ </ul>+ ) : (+ <Trans>Show these comments in the Comments panel</Trans>+ )}+ </TooltipContent>+ </Tooltip><Buttontype="button"size="sm"@@ -183,34 +234,6 @@ export function propertyAddress(key: string, path: readonly (string | number)[])return out;}-/**- * The one line that says what a thread is ON, for the composer chip's expanded- * list. Local to this file — the panels' own cards render the target themselves,- * with room for a jump target and a badge this compact line has no space for.- *- * A whole property renders as `tags:` in the same monospace the quote uses. That- * reads as the YAML it is, which distinguishes it from a passage without needing- * a label saying "property" — and the trailing colon is the whole difference,- * because a bare key and a short quote otherwise look identical.- *- * A passage inside a value shows BOTH — `description: “ships in Q3”` — because- * neither half identifies it alone: several comments can sit on one field, and- * the same words can appear in more than one.- */-function ThreadTargetLine({ thread, className }: { thread: CommentThread; className?: string }) {- const base = 'w-full truncate font-mono text-[11px] text-muted-foreground';- const quote = thread.anchor?.quote ?? '';- if (thread.target.kind === 'property') {- const address = propertyAddress(thread.target.key, thread.target.path);- return (- <span className={cn(base, className)}>- {address}:{quote === '' ? '' : ` “${quote}”`}- </span>- );- }- return <span className={cn(base, className)}>“{quote}”</span>;-}-/*** Reveal a thread wherever it lives. A passage scrolls the body to its words; a* property has no body range, so it opens the document and lets the properties@@ -251,105 +274,6 @@ export function revealThread(thread: CommentThread): void {/** ~half a second of frames — long enough for a doc switch, short enough to stop. */const REVEAL_FRAME_BUDGET = 30;-/**- * The expanded queue: one row per comment — check to include it in the next- * send, ✕ to drop it entirely. Shows the file, the quoted passage, and what the- * reviewer wrote, so the batch can be reviewed without leaving the composer.- *- * Carries `basis-full` so it drops onto its own line beneath the chip row (the- * same mechanism the expanded selection preview uses).- */-export function QueuedCommentsList({ threads }: { threads: readonly CommentThread[] }) {- const { t } = useLingui();- // USE the subscription's value — do not just call it for the side effect.- //- // React Compiler memoizes this component's rows on the dependencies it can- // see. An imperative store read is not one, and a hook whose result is- // discarded contributes no dependency — so toggling a checkbox updated the- // store, re-ran this function, and handed back the previous rows. The checkbox- // looked dead. Reading through `selectedIds` is what puts the selection inside- // React's data flow, and is what the queue panel already did.- const selectedIds = useQueueSelection();- if (threads.length === 0) return null;- return (- <ul- data-testid="composer-comments-list"- className="mt-1 flex max-h-64 basis-full list-none flex-col gap-1 overflow-y-auto subtle-scrollbar"- >- {threads.map((thread) => {- const orphaned = thread.status === 'orphaned';- const selected = selectedIds.includes(thread.id);- return (- <li- key={thread.id}- className={cn(- 'flex items-start gap-2 rounded-md border bg-background/60 px-2 py-1.5',- // Unchecked = not going in this send. Dim it so the row's state is- // legible at a glance, not only from the checkbox.- !selected && 'opacity-50',- )}- >- <Checkbox- checked={selected}- onCheckedChange={() => toggleQueueSelection(thread.id)}- aria-label={t`Include this comment in the next send`}- className="mt-0.5"- />- <div className="flex min-w-0 flex-1 flex-col gap-1">- <div className="flex min-w-0 items-center gap-1.5">- {/* `min-w-0` on both the row and the chip — a flex child won't- compress below its content without it, so `truncate` alone- would still overflow. */}- <span- className="inline-flex min-w-0 items-center gap-1 rounded border px-1 py-px text-[10px] text-muted-foreground"- title={thread.docName}- >- <FileText className="size-2.5 shrink-0" />- <span className="truncate">{docBasename(thread.docName)}</span>- </span>- {orphaned && (- <span- className="inline-flex shrink-0 items-center gap-1 text-[10px] text-amber-600 dark:text-amber-500"- title={t`The quoted text is no longer in the document — the agent will be told.`}- >- <Unlink className="size-2.5" />- <Trans>gone</Trans>- </span>- )}- </div>- {/* Click the quote/body to open that document and scroll to the- passage — the queue spans files, so this is how you check what- you're about to send. */}- <Button- type="button"- variant="ghost"- aria-label={t`Go to this comment in ${docBasename(thread.docName)}`}- onClick={() => revealThread(thread)}- className="h-auto min-h-0 w-full min-w-0 flex-col items-start gap-1 px-0 py-0 text-left font-normal hover:bg-transparent"- >- <ThreadTargetLine thread={thread} />- <span className="line-clamp-2 w-full text-xs whitespace-normal text-foreground/90">- {thread.body}- </span>- </Button>- </div>- <Button- type="button"- size="sm"- variant="ghost"- aria-label={t`Don't send this comment`}- onClick={() => removeFromQueue(thread.id)}- className="size-5 shrink-0 p-0 text-muted-foreground hover:text-foreground"- >- <X className="size-3" />- </Button>- </li>- );- })}- </ul>- );-}-/** One queued comment, as the composer hands it to an agent. */export interface CommentBatchItem {docName: string;diff --git a/packages/app/src/comments/comment-composer-submit.dom.test.tsx b/packages/app/src/comments/comment-composer-submit.dom.test.tsxindex ad49fcec4..cfb4c4336 100644--- a/packages/app/src/comments/comment-composer-submit.dom.test.tsx+++ b/packages/app/src/comments/comment-composer-submit.dom.test.tsx@@ -13,7 +13,7 @@*/import * as actualLinguiMacro from '@lingui/react/macro';-import { cleanup, fireEvent, render, screen } from '@testing-library/react';+import { act, cleanup, fireEvent, render, screen } from '@testing-library/react';import type { ReactNode } from 'react';import { afterEach, describe, expect, test, vi } from 'vitest';@@ -155,12 +155,16 @@ function fakeEditor() {};}-afterEach(() => {+afterEach(async () => {cleanup();captured.created.length = 0;captured.collapsedTo.length = 0;captured.panelTabs.length = 0;captured.startComment = null;+ // Module-level store, so a test that puts the panel on screen would leave it+ // there for the next one.+ const { setCommentsPanelOnScreen } = await import('./comments-panel-visibility');+ setCommentsPanelOnScreen(false);});async function openComposer() {@@ -217,7 +221,7 @@ describe('the comment composer', () => {test('the card routes to the Comments tab instead of dispatching', async () => {const field = await openComposer();fireEvent.change(field, { target: { value: 'press it?' } });- fireEvent.click(screen.getByRole('button', { name: /open comments/i }));+ fireEvent.click(screen.getByRole('button', { name: /view comments/i }));expect(captured.panelTabs).toEqual(['comments']);// Leaving is not filing: the draft survives the trip so nothing is lost.@@ -225,6 +229,33 @@ describe('the comment composer', () => {expect(screen.queryByPlaceholderText('Add a comment')).not.toBeNull();});+ // The route out is the only thing on the card that is not the primary action,+ // and it earns its place only while there is somewhere to go.+ test('the route to the queue is withheld while the Comments tab is on screen', async () => {+ const { setCommentsPanelOnScreen } = await import('./comments-panel-visibility');+ setCommentsPanelOnScreen(true);+ await openComposer();++ expect(screen.queryByRole('button', { name: /view comments/i })).toBeNull();+ // Filing still works — withholding the exit must not touch the action the+ // card exists for.+ expect(screen.queryByRole('button', { name: /add comment/i })).not.toBeNull();+ });++ // The store is subscribed to, not sampled at mount: opening the tab from+ // behind an already-open composer has to take the button away.+ test('the route disappears when the tab opens under an open composer', async () => {+ const { setCommentsPanelOnScreen } = await import('./comments-panel-visibility');+ await openComposer();+ expect(screen.queryByRole('button', { name: /view comments/i })).not.toBeNull();++ await act(async () => {+ setCommentsPanelOnScreen(true);+ });++ expect(screen.queryByRole('button', { name: /view comments/i })).toBeNull();+ });+test('posting collapses the selection — the passage has been filed', async () => {// The composer PINS a selection so it survives clicking away into the// input. Filing a comment is the one case where that is wrong: the passagediff --git a/packages/app/src/comments/comments-panel-visibility.ts b/packages/app/src/comments/comments-panel-visibility.tsnew file mode 100644index 000000000..e3b30c827--- /dev/null+++ b/packages/app/src/comments/comments-panel-visibility.ts@@ -0,0 +1,49 @@+/**+ * Whether the Comments tab is genuinely ON SCREEN — its tab selected in the doc+ * panel AND the right rail expanded.+ *+ * Read by surfaces that offer a route TO the queue, so the offer can be dropped+ * when the reader is already looking at it. The selection composer is the first:+ * a "View comments" button beside "Add comment" is a second control competing+ * with the primary one, and pressing it while the panel is open does nothing+ * visible at all.+ *+ * Mount lifetime is NOT the answer, which is why this is not folded into+ * `visible-scope`: a collapsed rail keeps the whole doc-panel subtree mounted at+ * zero width, so "the tab is rendered" reports true while nothing is visible.+ * The publisher composes the expanded state in, and the panel is the publisher+ * because it is what resolves the EFFECTIVE tab (single-file mode drops+ * Comments, so a persisted selection can name a tab that is not there).+ *+ * Subscribable, unlike `visible-scope`'s plain slot, because this reader is a+ * rendered control that has to appear and disappear with the answer rather than+ * a keydown handler asking once at the moment of the press.+ */++import { useSyncExternalStore } from 'react';++let onScreen = false;+const listeners = new Set<() => void>();++export function setCommentsPanelOnScreen(next: boolean): void {+ if (next === onScreen) return;+ onScreen = next;+ for (const listener of listeners) listener();+}++function subscribe(listener: () => void): () => void {+ listeners.add(listener);+ return () => {+ listeners.delete(listener);+ };+}++function getSnapshot(): boolean {+ return onScreen;+}++export function useCommentsPanelOnScreen(): boolean {+ // Server snapshot is `false`: with no panel rendered there is nothing on+ // screen, so a route to it is the right thing to offer.+ return useSyncExternalStore(subscribe, getSnapshot, () => false);+}diff --git a/packages/app/src/comments/edit-propagation.dom.test.tsx b/packages/app/src/comments/edit-propagation.dom.test.tsxnew file mode 100644index 000000000..483e6d068--- /dev/null+++ b/packages/app/src/comments/edit-propagation.dom.test.tsx@@ -0,0 +1,105 @@+/**+ * A saved edit reaches every surface rendering the thread.+ *+ * The popover and the panel show the same comment through two `ThreadCard`+ * instances over one store, so revising it in one must update the other the+ * moment the server accepts — not on the next CC1 push, and not never. Real+ * store, real cards; only the network client is doubled.+ */++import { cleanup, fireEvent, render, screen, waitFor } from '@testing-library/react';+import { afterEach, describe, expect, test, vi } from 'vitest';+import { TooltipProvider } from '@/components/ui/tooltip';+import type { CommentThreadMeta } from './comments-client';++let serverBody = 'first draft';++function meta(): CommentThreadMeta {+ return {+ threadId: 't1',+ docName: 'notes/rollout',+ target: { kind: 'body' },+ anchor: { exact: 'the tofu', prefix: '', suffix: '', start: 0, end: 8 },+ state: 'anchored',+ queued: true,+ latestComment: serverBody,+ createdBy: 'principal-abc',+ createdAt: 1000,+ };+}++vi.doMock('sonner', () => ({ toast: { error: vi.fn(), info: vi.fn(), success: vi.fn() } }));++vi.doMock('./comments-client', () => ({+ listThreads: vi.fn(async () => [meta()]),+ editComment: vi.fn(async (_threadId: string, body: string) => {+ serverBody = body;+ return meta();+ }),+ createThread: vi.fn(),+ reply: vi.fn(),+ reopenThread: vi.fn(),+ replaceAnchor: vi.fn(),+ queueThread: vi.fn(),+ unqueueThread: vi.fn(),+ deleteThread: vi.fn(),+ prepareDispatchBatch: vi.fn(),+ completeDispatchBatch: vi.fn(),+}));++const store = await import('./store');+const { ThreadCard } = await import('./ThreadCard');++/** Two live instances of the same thread — the popover's card and the panel's. */+function Surfaces() {+ const threads = store.useCommentThreads('notes/rollout');+ const thread = threads[0];+ if (!thread) return null;+ return (+ <TooltipProvider>+ <div data-testid="popover-side">+ <ThreadCard+ thread={thread}+ cardRef={() => {}}+ focused={false}+ sending={false}+ showQuote={false}+ />+ </div>+ <div data-testid="panel-side">+ <ThreadCard thread={thread} cardRef={() => {}} focused={false} sending={false} />+ </div>+ </TooltipProvider>+ );+}++afterEach(() => cleanup());++describe('editing a comment', () => {+ test("saving in one card updates the other card's text", async () => {+ render(<Surfaces />);+ await waitFor(() => expect(screen.getAllByText('first draft')).toHaveLength(2));++ // Open the edit in the FIRST card (the popover's), revise, save.+ const popover = screen.getByTestId('popover-side');+ fireEvent.click(+ // eslint-style queries scoped by container: the two cards are identical.+ // biome-ignore lint/style/noNonNullAssertion: the card renders its edit button or the earlier waitFor failed+ popover.querySelector('button[aria-label="Edit this comment"]')!,+ );+ const field = await screen.findByRole('textbox', { name: /edit this comment/i });+ const editor = (+ field as unknown as { editor: { commands: { setContent: (t: string) => void } } }+ ).editor;+ editor.commands.setContent('second thoughts');+ fireEvent.keyDown(field, { key: 'Enter' });++ // BOTH surfaces converge on the revision once the server accepts.+ await waitFor(() => {+ const panel = screen.getByTestId('panel-side');+ expect(panel.textContent).toContain('second thoughts');+ });+ expect(screen.getByTestId('popover-side').textContent).toContain('second thoughts');+ expect(screen.queryByText('first draft')).toBeNull();+ });+});diff --git a/packages/app/src/comments/jump-scroll-ownership.dom.test.ts b/packages/app/src/comments/jump-scroll-ownership.dom.test.tsnew file mode 100644index 000000000..5baf1a128--- /dev/null+++ b/packages/app/src/comments/jump-scroll-ownership.dom.test.ts@@ -0,0 +1,102 @@+/**+ * A comment jump has to be the document's single scroll writer while it lands.+ *+ * The regression: the pool's scroll-restore loop only treats a scrollTop+ * INCREASE as someone else taking over. A decrease is indistinguishable from the+ * browser's shrink-clamp, so it re-applies its own target over one — and a jump+ * to a comment ABOVE the current view is exactly a decrease. Click after click+ * did nothing until the loop's ten-second backstop expired, which reads as+ * "it works after five or six taps".+ *+ * `acquireScrollRestoreSuppression` is the channel the loop actually watches+ * (it exits with `reason: 'landing'` on the next frame), so what this pins is+ * that the jump holds it ACROSS the write and lets go afterwards.+ */++import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';+import {+ __resetScrollRestoreCoordination,+ isScrollRestoreSuppressed,+ registerLandingScrollOwner,+} from '@/editor/scroll-restore-coordination';+import { scrollAnchorIntoView } from './scroll-to-anchor';++const DOC = 'recipes/stir-fry';++/**+ * An editor whose scroll container reports the passage far ABOVE the viewport —+ * the direction the restore loop refuses to yield to on its own.+ */+function editorWithAnchorAbove() {+ const container = document.createElement('div');+ Object.defineProperty(container, 'scrollHeight', { value: 10_000 });+ Object.defineProperty(container, 'clientHeight', { value: 800 });+ container.style.overflowY = 'auto';+ container.scrollTop = 5_000;+ container.getBoundingClientRect = () => ({ top: 0, bottom: 800 }) as DOMRect;+ container.scrollTo = (options?: ScrollToOptions | number) => {+ if (typeof options === 'object' && options?.top !== undefined)+ container.scrollTop = options.top;+ };++ const dom = document.createElement('div');+ container.appendChild(dom);+ document.body.appendChild(container);++ const view = {+ dom,+ // Above the scrollport: a jump here DECREASES scrollTop.+ coordsAtPos: () => ({ top: -400, bottom: -380 }),+ };+ return { editor: { editorView: view } as never, container };+}++beforeEach(() => {+ __resetScrollRestoreCoordination();+ vi.useFakeTimers();+});++afterEach(() => {+ vi.clearAllTimers();+ vi.useRealTimers();+ document.body.innerHTML = '';+ __resetScrollRestoreCoordination();+});++describe('a comment jump', () => {+ test('owns the scroller across the write, then lets go', () => {+ const { editor, container } = editorWithAnchorAbove();+ let suppressedAtWriteTime = false;+ const scrollTo = container.scrollTo.bind(container);+ container.scrollTo = (options?: ScrollToOptions | number) => {+ // The flag has to be up BEFORE the scroller moves — the restore loop+ // measures on the same frame, and a move it sees first reads as drift.+ suppressedAtWriteTime = isScrollRestoreSuppressed(DOC);+ scrollTo(options as ScrollToOptions);+ };++ expect(scrollAnchorIntoView(editor, { from: 1, to: 5 }, DOC)).toBe(true);+ expect(suppressedAtWriteTime).toBe(true);+ // Held past the write so the loop gets a frame to see it.+ expect(isScrollRestoreSuppressed(DOC)).toBe(true);++ vi.advanceTimersByTime(1_000);+ // Released: the flag also gates the agent-follow scroll and the composer's+ // bottom pin, so a jump must not hold it indefinitely.+ expect(isScrollRestoreSuppressed(DOC)).toBe(false);+ });++ test('declines rather than fighting a landing that does not yield', () => {+ const { editor, container } = editorWithAnchorAbove();+ const before = container.scrollTop;+ registerLandingScrollOwner(DOC, {+ yieldsToNavigation: false,+ supersede: () => {},+ });++ expect(scrollAnchorIntoView(editor, { from: 1, to: 5 }, DOC)).toBe(false);+ expect(container.scrollTop).toBe(before);+ // Nothing acquired for a scroll that never happened.+ expect(isScrollRestoreSuppressed(DOC)).toBe(false);+ });+});diff --git a/packages/app/src/comments/margin-rail-layout.test.ts b/packages/app/src/comments/margin-rail-layout.test.tsindex 36b0ec57e..048be7428 100644--- a/packages/app/src/comments/margin-rail-layout.test.ts+++ b/packages/app/src/comments/margin-rail-layout.test.ts@@ -10,7 +10,7 @@*/import { describe, expect, test } from 'vitest';-import { layoutMarkers, railBand } from './CommentMarginRail';+import { layoutMarkers, railBand, railLeft } from './CommentMarginRail';const RAIL_TOP = 100;const RAIL_HEIGHT = 600; // visible band: 100 → 700@@ -116,3 +116,43 @@ describe('railBand', () => {expect(railBand({ top: 100, height: 20 }, TOOLBAR).height).toBe(0);});});++/**+ * Keeping the rail inside the pane.+ *+ * It is a fixed portal on `document.body`, so nothing clips it — the `left` it+ * computes is where it paints. Taking that straight from the scroll container's+ * right edge sent it over the neighbouring panel whenever the container+ * outgrew the pane clipping it.+ */+describe('railLeft', () => {+ const RAIL_WIDTH = 34;++ test('sits inside the container when the container fits its pane', () => {+ expect(railLeft({ left: 0, right: 800 }, 900)).toBe(800 - RAIL_WIDTH);+ });++ test('follows the clipping edge when the container overflows the pane', () => {+ // The container still measures 800 wide; only 500 of it is visible. The rail+ // belongs at the visible edge, not the measured one.+ expect(railLeft({ left: 0, right: 800 }, 500)).toBe(500 - RAIL_WIDTH);+ });++ test('declines rather than shrinking once the pane is too narrow', () => {+ expect(railLeft({ left: 0, right: 200 }, 900)).toBeNull();+ });++ test('measures the visible width, not the measured one, when deciding', () => {+ // Wide by its own reckoning, narrow on screen — the second is what a reader+ // sees, so it is what the threshold reads.+ expect(railLeft({ left: 0, right: 900 }, 200)).toBeNull();+ });++ test('never reports a left that would put the rail past the visible edge', () => {+ for (const clipRight of [300, 400, 640, 1200]) {+ const left = railLeft({ left: 0, right: 1000 }, clipRight);+ if (left === null) continue;+ expect(left + RAIL_WIDTH).toBeLessThanOrEqual(clipRight);+ }+ });+});diff --git a/packages/app/src/comments/orphan-deleted-quote.dom.test.tsx b/packages/app/src/comments/orphan-deleted-quote.dom.test.tsxnew file mode 100644index 000000000..d8c0b56cc--- /dev/null+++ b/packages/app/src/comments/orphan-deleted-quote.dom.test.tsx@@ -0,0 +1,100 @@+/**+ * What an orphaned card says, and what it still shows.+ *+ * Losing the passage used to print a bare "the anchored text is gone" and drop+ * the quote with it, so a panel of orphans was a column of identical amber+ * notices with no way to tell which comment had been on what. Orphaning mutates+ * state alone — the stored words survive — so the card shows them as the last+ * thing the comment was on.+ */++import { cleanup, render, screen } from '@testing-library/react';+import { afterEach, describe, expect, test } from 'vitest';+import { TooltipProvider } from '@/components/ui/tooltip';+import { ThreadCard } from './ThreadCard';+import type { CommentThread } from './types';++const QUOTE = 'add pepitas for crunch.';++function renderCard(overrides: Partial<CommentThread> = {}, showQuote = true) {+ const thread: CommentThread = {+ id: 't1',+ docName: 'recipes/vegetarian/bowls',+ target: { kind: 'body' },+ anchor: { quote: QUOTE, prefix: '', suffix: '', start: 0, end: QUOTE.length },+ status: 'orphaned',+ body: 'test',+ createdAt: 0,+ updatedAt: 0,+ queued: true,+ ...overrides,+ };+ return render(+ <TooltipProvider>+ <ThreadCard+ thread={thread}+ cardRef={() => {}}+ focused={false}+ sending={false}+ showQuote={showQuote}+ />+ </TooltipProvider>,+ );+}++afterEach(cleanup);++describe('an orphaned card', () => {+ test('names the text that was deleted', () => {+ renderCard();+ expect(screen.getByText(`“${QUOTE}”`)).toBeTruthy();+ });++ test('says the original text was deleted, in words', () => {+ // The strikethrough is reinforcement, not the message — a screen reader and+ // a monochrome display both get the fact from the sentence.+ renderCard();+ expect(screen.getByText(/The original text was deleted/)).toBeTruthy();+ });++ test('shows the deleted text in the popover too, where showQuote is off', () => {+ // The popover suppresses the quote row because the passage sits highlighted+ // underneath it. For an orphan there is no passage underneath — that being+ // the whole problem — so the words have nowhere else to come from.+ renderCard({}, false);+ expect(screen.getByText(`“${QUOTE}”`)).toBeTruthy();+ });++ test('still offers the one-click recovery', () => {+ renderCard();+ expect(screen.getByText('Re-place on selected text')).toBeTruthy();+ });++ test('carries no status badge — the block below is the only statement', () => {+ // The state used to be announced twice: a badge in the header and the+ // sentence two lines under it. The sentence sits next to the words it is+ // about, so it is the one that stays. The wire state is still `orphaned`.+ renderCard();+ expect(screen.queryByText(/[Oo]rphan/)).toBeNull();+ expect(screen.queryByText('Text deleted')).toBeNull();+ expect(screen.getByText(/The original text was deleted/)).toBeTruthy();+ });++ test('a resolved card keeps its badge, which nothing else replaces', () => {+ renderCard({ status: 'resolved' });+ expect(screen.getByText('Resolved')).toBeTruthy();+ });++ test('an orphan with no stored passage says so without inventing a quote', () => {+ // A whole-property comment carries no quote. The sentence still has to run.+ renderCard({ anchor: null });+ expect(screen.getByText(/The original text was deleted/)).toBeTruthy();+ expect(screen.queryByText(/“/)).toBeNull();+ });++ test('an open card shows the live quote row, not the deleted-text block', () => {+ renderCard({ status: 'open' });+ expect(screen.queryByText(/The original text was deleted/)).toBeNull();+ expect(screen.getByText(`“${QUOTE}”`)).toBeTruthy();+ });+});diff --git a/packages/app/src/comments/popover-bus.test.ts b/packages/app/src/comments/popover-bus.test.tsindex 6768bc2dd..3e50ffbb1 100644--- a/packages/app/src/comments/popover-bus.test.ts+++ b/packages/app/src/comments/popover-bus.test.ts@@ -8,9 +8,15 @@* as an id, which is what these pin.*/-import { describe, expect, test } from 'vitest';+import { afterEach, describe, expect, test, vi } from 'vitest';+import { consumePendingDocPanelTabRequest } from '@/components/doc-panel-events';import { emitOpenThreadPopover, subscribeOpenThreadPopover } from './store';+afterEach(() => {+ vi.restoreAllMocks();+ consumePendingDocPanelTabRequest();+});+/** Collect everything the bus publishes for the life of one subscription. */function record(): { seen: (string | null)[]; stop: () => void } {const seen: (string | null)[] = [];@@ -62,3 +68,17 @@ describe('the thread-popover bus', () => {b.stop();});});++describe('opening a thread opens the Comments tab beside it', () => {+ test('an id requests the tab; a close leaves the panel alone', () => {+ consumePendingDocPanelTabRequest();+ emitOpenThreadPopover('t1');+ // The pending-tab latch is how the panel host learns of the request even+ // when it has not mounted yet — the same channel every open path lands on.+ expect(consumePendingDocPanelTabRequest()).toBe('comments');++ emitOpenThreadPopover(null);+ // Dismissing a popover is not a statement about the panel.+ expect(consumePendingDocPanelTabRequest()).toBeNull();+ });+});diff --git a/packages/app/src/comments/popover-cross-doc.dom.test.tsx b/packages/app/src/comments/popover-cross-doc.dom.test.tsxnew file mode 100644index 000000000..86ccb26d8--- /dev/null+++ b/packages/app/src/comments/popover-cross-doc.dom.test.tsx@@ -0,0 +1,144 @@+/**+ * Several popovers, one bus.+ *+ * The editor pool keeps recently visited documents mounted, and each one hosts+ * its own `CommentThreadPopover` — but "open thread X" is a single project-wide+ * signal that reaches all of them. Only one owns X. The others used to answer by+ * BROADCASTING a close, which shut the popover the owner had just opened, and+ * which instance spoke last came down to render order: clicking a commented+ * passage worked or silently did nothing depending on how many tabs were open.+ *+ * The rule these pin: an instance may close a thread it owns and must stay+ * silent about one it does not.+ */++import * as actualLinguiMacro from '@lingui/react/macro';+import { cleanup, render, screen } from '@testing-library/react';+import type { ReactNode } from 'react';+import { afterEach, describe, expect, test, vi } from 'vitest';+import { TooltipProvider } from '@/components/ui/tooltip';+import type { CommentThread } from './types';++vi.doMock('@lingui/react/macro', () => ({+ ...actualLinguiMacro,+ Trans: ({ children }: { children: ReactNode }) => <>{children}</>,+ useLingui: () => ({+ t: (strings: TemplateStringsArray, ...values: unknown[]) =>+ strings.reduce((acc, part, index) => `${acc}${part}${values[index] ?? ''}`, ''),+ }),+}));++function thread(id: string, docName: string): CommentThread {+ return {+ id,+ docName,+ target: { kind: 'body' },+ anchor: { quote: 'the tofu', prefix: '', suffix: '', start: 0, end: 8 },+ status: 'open',+ body: 'press it?',+ createdAt: 1000,+ updatedAt: 1000,+ queued: false,+ };+}++const ALFREDO = thread('t-alfredo', 'recipes/chicken-alfredo-pasta');+const SATAY = thread('t-satay', 'recipes/chicken-satay');+const ALL = [ALFREDO, SATAY];++let openPopover: ((id: string | null) => void) | null = null;+const emitted: (string | null)[] = [];++vi.doMock('./store', () => ({+ useCommentThreads: (docName: string) => ALL.filter((t) => t.docName === docName),+ useAllThreads: () => ALL,+ useQueueSelection: () => [],+ subscribeOpenThreadPopover: (cb: (id: string | null) => void) => {+ // Every mounted instance subscribes; the real bus fans out to all of them,+ // which is the whole point of this file.+ const previous = openPopover;+ openPopover = (id) => {+ previous?.(id);+ cb(id);+ };+ return () => {+ openPopover = previous;+ };+ },+ emitOpenThreadPopover: (id: string | null) => {+ emitted.push(id);+ },+ toggleSending: () => {},+ deleteThread: () => {},+ editComment: () => {},+ reopenThread: () => {},+ replaceOrphan: () => {},+ setActiveThread: () => {},+ clearActiveThread: () => {},+}));++vi.doMock('@/editor/utils/get-editor-view', () => ({ getEditorView: () => null }));+vi.doMock('./anchor-search', () => ({+ findQuoteRange: () => ({ from: 0, to: 8 }),+ captureSelectionContext: () => ({ prefix: '', suffix: '' }),+}));+vi.doMock('./property-row-rect', () => ({+ propertyRowRect: () => null,+ revealPropertyValueRange: () => true,+}));++const { CommentThreadPopover } = await import('./CommentThreadPopover');++/** Two docs in the pool, each with its own popover — the real arrangement. */+function Pool() {+ return (+ <TooltipProvider>+ {/* biome-ignore lint/suspicious/noExplicitAny: structural editor double */}+ <CommentThreadPopover editor={{ state: {} } as any} docName="recipes/chicken-satay" />+ {/* biome-ignore lint/suspicious/noExplicitAny: structural editor double */}+ <CommentThreadPopover editor={{ state: {} } as any} docName="recipes/chicken-alfredo-pasta" />+ </TooltipProvider>+ );+}++afterEach(() => {+ cleanup();+ openPopover = null;+ emitted.length = 0;+});++describe('a pool of thread popovers', () => {+ test('a thread opens even with another document mounted beside it', async () => {+ render(<Pool />);+ openPopover?.('t-alfredo');++ expect(await screen.findByText('press it?')).toBeTruthy();+ });++ test('the non-owning instance does not broadcast a close', async () => {+ render(<Pool />);+ openPopover?.('t-alfredo');+ await screen.findByText('press it?');++ // Silence is the assertion. A `null` here is the sibling shutting the+ // popover its neighbour just opened.+ expect(emitted).toEqual([]);+ });++ test('exactly one instance renders the thread', async () => {+ render(<Pool />);+ openPopover?.('t-alfredo');+ await screen.findByText('press it?');++ expect(screen.getAllByText('press it?')).toHaveLength(1);+ });++ test('a thread that exists nowhere still closes', async () => {+ render(<Pool />);+ openPopover?.('t-deleted');++ // Nobody owns it and nobody can show it, so the close is right — this is the+ // case the silence rule must not swallow.+ await vi.waitFor(() => expect(emitted).toContain(null));+ });+});diff --git a/packages/app/src/comments/popover-retarget.dom.test.tsx b/packages/app/src/comments/popover-retarget.dom.test.tsxnew file mode 100644index 000000000..158046de7--- /dev/null+++ b/packages/app/src/comments/popover-retarget.dom.test.tsx@@ -0,0 +1,158 @@+/**+ * Clicking a second highlight while the popover is open.+ *+ * The popover swaps its thread IN PLACE — the bus hands it the next id and+ * there is no null in between — so the card underneath is at the same position+ * in the tree with the same type across the swap. Unkeyed, React keeps that+ * instance: its open edit field, the draft seeded from the FIRST comment, and+ * the flag saying the edit had not settled yet all carried over to the second+ * thread, and the next settle filed one comment's words as a revision of+ * another. What pins the fix is that the card is a different card afterwards.+ */++import * as actualLinguiMacro from '@lingui/react/macro';+import { act, cleanup, fireEvent, render, screen } from '@testing-library/react';+import type { ReactNode } from 'react';+import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';+import { MockComposerMentionInput } from '@/components/acp/composer-mention-input.test-helper';+import { TooltipProvider } from '@/components/ui/tooltip';+import type { CommentThread } from './types';++vi.doMock('@lingui/react/macro', () => ({+ ...actualLinguiMacro,+ Trans: ({ children }: { children: ReactNode }) => <>{children}</>,+ useLingui: () => ({+ t: (strings: TemplateStringsArray, ...values: unknown[]) =>+ strings.reduce((acc, part, index) => `${acc}${part}${values[index] ?? ''}`, ''),+ }),+}));++// The real field is a ProseMirror contentEditable that jsdom cannot type into.+vi.doMock('@/editor/ComposerMentionInput', () => ({+ ComposerMentionInput: MockComposerMentionInput,+}));++function thread(id: string, body: string): CommentThread {+ return {+ id,+ docName: 'recipes/wiki',+ target: { kind: 'body' },+ anchor: { quote: 'the tofu', prefix: '', suffix: '', start: 0, end: 8 },+ status: 'open',+ body,+ createdAt: 1000,+ updatedAt: 1000,+ queued: true,+ };+}++const THREADS = [thread('t1', 'press it?'), thread('t2', 'drain it?')];+const editComment = vi.fn();++vi.doMock('./store', () => ({+ useCommentThreads: () => THREADS,+ useAllThreads: () => THREADS,+ useQueueSelection: () => [],+ subscribeOpenThreadPopover: (cb: (id: string | null) => void) => {+ openPopover = cb;+ return () => {+ openPopover = null;+ };+ },+ editComment,+ emitOpenThreadPopover: () => {},+ toggleSending: () => {},+ deleteThread: () => {},+ reopenThread: () => {},+ replaceOrphan: () => {},+ setActiveThread: () => {},+ clearActiveThread: () => {},+}));++// Positioning reads a live ProseMirror view; nothing here is about where the+// card lands.+vi.doMock('@/editor/utils/get-editor-view', () => ({ getEditorView: () => null }));+vi.doMock('@/editor/active-editor', () => ({ getVisibleEditorForDoc: () => null }));+vi.doMock('./anchor-search', () => ({+ findQuoteRange: () => null,+ captureSelectionContext: () => ({ prefix: '', suffix: '' }),+}));+vi.doMock('./property-row-rect', () => ({+ propertyRowRect: () => null,+ revealPropertyValueRange: () => true,+}));+vi.doMock('./comment-chips', () => ({+ propertyAddress: (key: string) => key,+ revealThread: () => {},+}));++let openPopover: ((id: string | null) => void) | null = null;++async function renderPopover() {+ const { CommentThreadPopover } = await import('./CommentThreadPopover');+ return render(+ <TooltipProvider>+ {/* biome-ignore lint/suspicious/noExplicitAny: structural editor double */}+ <CommentThreadPopover editor={{ state: {} } as any} docName="recipes/wiki" />+ </TooltipProvider>,+ );+}++beforeEach(() => editComment.mockClear());++afterEach(() => {+ cleanup();+ openPopover = null;+});++describe('retargeting the popover mid-edit', () => {+ test('the outgoing edit is filed against the comment it was typed on', async () => {+ await renderPopover();+ act(() => openPopover?.('t1'));+ fireEvent.click(await screen.findByRole('button', { name: /edit this comment/i }));+ fireEvent.change(screen.getByRole('textbox', { name: /edit this comment/i }), {+ target: { value: 'press it overnight' },+ });++ // The reader clicks another highlight without dismissing this one first.+ // Wrapped, because the bus is not a React event — without flushing the+ // re-render the assertions would read the pre-swap tree and pass either way.+ act(() => openPopover?.('t2'));++ // Click-away saves, and the words belong to t1 — the card that held them.+ expect(editComment).toHaveBeenCalledWith('t1', 'press it overnight');+ expect(editComment).toHaveBeenCalledTimes(1);+ });++ test('the next thread arrives as a fresh card, not mid-edit', async () => {+ await renderPopover();+ act(() => openPopover?.('t1'));+ fireEvent.click(await screen.findByRole('button', { name: /edit this comment/i }));+ fireEvent.change(screen.getByRole('textbox', { name: /edit this comment/i }), {+ target: { value: 'press it overnight' },+ });++ act(() => openPopover?.('t2'));++ // No field open, and the second comment's own text on screen — the field+ // used to survive the swap still holding the first comment's draft.+ expect(screen.queryByRole('textbox', { name: /edit this comment/i })).toBeNull();+ expect(screen.getByTestId('thread-comment-body').textContent).toBe('drain it?');+ });++ test('editing the second comment writes against the second id', async () => {+ await renderPopover();+ act(() => openPopover?.('t1'));+ act(() => openPopover?.('t2'));++ fireEvent.click(await screen.findByRole('button', { name: /edit this comment/i }));+ const field = screen.getByRole('textbox', { name: /edit this comment/i });+ // Seeded from t2, so the swap re-ran the seed rather than keeping t1's.+ expect((field as HTMLTextAreaElement).value).toBe('drain it?');++ fireEvent.change(field, { target: { value: 'drain it twice' } });+ fireEvent.click(screen.getByRole('button', { name: /save this comment/i }));++ expect(editComment).toHaveBeenCalledWith('t2', 'drain it twice');+ });+});diff --git a/packages/app/src/comments/popover-send-tick.dom.test.tsx b/packages/app/src/comments/popover-send-tick.dom.test.tsxindex 51f7dce4a..95dc2430f 100644--- a/packages/app/src/comments/popover-send-tick.dom.test.tsx+++ b/packages/app/src/comments/popover-send-tick.dom.test.tsx@@ -13,6 +13,7 @@ import * as actualLinguiMacro from '@lingui/react/macro';import { cleanup, render, screen } from '@testing-library/react';import type { ReactNode } from 'react';import { afterEach, describe, expect, test, vi } from 'vitest';+import { TooltipProvider } from '@/components/ui/tooltip';import type { CommentThread } from './types';vi.doMock('@lingui/react/macro', () => ({@@ -32,12 +33,14 @@ const THREAD: CommentThread = {status: 'open',body: 'hi',createdAt: 1000,+ updatedAt: 1000,queued: true,};// `t1` is in the send list — the state the popover used to draw as unchecked.vi.doMock('./store', () => ({useCommentThreads: () => [THREAD],+ useAllThreads: () => [THREAD],useQueueSelection: () => ['t1'],subscribeOpenThreadPopover: (cb: (id: string | null) => void) => {openPopover = cb;@@ -77,8 +80,12 @@ afterEach(() => {describe('the thread popover', () => {test('draws its tick from the send list, not from nothing', async () => {const { CommentThreadPopover } = await import('./CommentThreadPopover');- // biome-ignore lint/suspicious/noExplicitAny: structural editor double- render(<CommentThreadPopover editor={{ state: {} } as any} docName="recipes/wiki" />);+ render(+ <TooltipProvider>+ {/* biome-ignore lint/suspicious/noExplicitAny: structural editor double */}+ <CommentThreadPopover editor={{ state: {} } as any} docName="recipes/wiki" />+ </TooltipProvider>,+ );openPopover?.('t1');const tick = await screen.findByRole('checkbox');diff --git a/packages/app/src/comments/project-file-groups.dom.test.tsx b/packages/app/src/comments/project-file-groups.dom.test.tsxindex f3ad4a4f8..7a36e59ae 100644--- a/packages/app/src/comments/project-file-groups.dom.test.tsx+++ b/packages/app/src/comments/project-file-groups.dom.test.tsx@@ -4,15 +4,15 @@* Properties that are easy to lose in a restyle: groups arrive OPEN — comments* are hand-written and few, so folding them by default would hide the panel* behind a click — folding is reachable both per-file and for all of them at- * once, and the file header folds WITHOUT carrying a selection control.- * Selection lives on the cards and in the footer; a file-level tick duplicated- * the card's own the moment a file held a single comment.+ * once, and the file header carries a tick that is REVEALED on hover rather than+ * resident. Selection otherwise lives on the cards and, for all of them at once,+ * at the head of the list.*/import * as actualLinguiMacro from '@lingui/react/macro';import { cleanup, fireEvent, render, screen } from '@testing-library/react';import type { ReactNode } from 'react';-import { afterEach, describe, expect, test, vi } from 'vitest';+import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';import type { CommentThread } from './types';vi.doMock('@lingui/react/macro', () => ({@@ -24,10 +24,17 @@ vi.doMock('@lingui/react/macro', () => ({}),}));-// The send list, doubled: everything on the first file is ticked, nothing on-// the second — so a header that had grown a tick would have both states to show.+// The send list, doubled and mutable: everything on the first file is ticked,+// nothing on the second — so the file ticks have both states to show, and a test+// can narrow it to exercise the mixed one.+let selected: string[] = ['t1', 't2'];+vi.doMock('./store', () => ({- useQueueSelection: () => ['t1', 't2'],+ useQueueSelection: () => selected,+ setSendingAll: (ids: readonly string[], sending: boolean) => {+ bulkCalls.push({ ids: [...ids], sending });+ },+ usePinnedThread: () => null,subscribeFocusThread: () => () => {},toggleSending: () => {},deleteThread: () => {},@@ -51,17 +58,20 @@ function thread(id: string, docName: string): CommentThread {status: 'open',body: `comment ${id}`,createdAt: 1000,+ updatedAt: 1000,queued: true,};}+const bulkCalls: { ids: string[]; sending: boolean }[] = [];+const THREADS = [thread('t1', 'recipes/stir-fry'),thread('t2', 'recipes/stir-fry'),thread('t3', 'recipes/soup'),];-async function renderPanel() {+async function renderPanel(threads: readonly CommentThread[] = THREADS) {const { CommentListPanel } = await import('./CommentListPanel');const { TooltipProvider } = await import('@/components/ui/tooltip');// Production wraps the whole app in one provider (main.tsx); the collapse-all@@ -69,7 +79,7 @@ async function renderPanel() {return render(<TooltipProvider><CommentListPanel- threads={THREADS}+ threads={threads}groupByDocumentempty="none"testIdPrefix="comment-queue"@@ -78,6 +88,11 @@ async function renderPanel() {);}+beforeEach(() => {+ selected = ['t1', 't2'];+ bulkCalls.length = 0;+});+afterEach(cleanup);describe('the project scope grouped by file', () => {@@ -92,12 +107,10 @@ describe('the project scope grouped by file', () => {}});- test('the file header carries no selection control of its own', async () => {+ test('no tick lives inside the fold control', async () => {+ // A tick nested in the trigger would fold the group on its way to changing+ // the batch. The file's own tick is a sibling of it, not a child.await renderPanel();- // One tick per comment and one in the footer (stubbed out here), never a- // third on the heading — with a single comment in a file that third was the- // same click as the card's, one row higher and further left.- expect(screen.getAllByRole('checkbox')).toHaveLength(3);for (const tick of screen.getAllByRole('checkbox')) {expect(tick.closest('[data-slot="collapsible-trigger"]')).toBeNull();}@@ -128,3 +141,156 @@ describe('the project scope grouped by file', () => {expect(screen.getByText('comment t1')).toBeTruthy();});});++/**+ * The bulk tick moved out of the footer to the head of the list.+ *+ * Down beside the send it was a second, differently-placed control over the same+ * column; at the top it lines up with the per-card ticks it toggles. The count+ * came with it — it answers what the send is about to carry, which is the one+ * thing the row has to keep saying wherever it lives.+ */+describe('the list-level select all', () => {+ test('carries no visible label — the hint above already says what checked means', async () => {+ await renderPanel();+ expect(screen.queryByText(/select all/i)).toBeNull();+ // The name lives on the control itself, so nothing is lost to a reader who+ // cannot see the tick's alignment with the cards below it.+ expect(screen.getByTestId('comment-queue-select-all').getAttribute('aria-label')).toBeTruthy();+ });++ test('reads how many of the listed comments are going out', async () => {+ await renderPanel();+ // Two of the three are ticked, which is the state the count exists for — a+ // row that only ever read n/n would say nothing the tick did not.+ expect(screen.getByText('2/3')).toBeTruthy();+ });++ test('a partly-ticked list offers the tick, not the un-tick', async () => {+ await renderPanel();+ // The label names the click AHEAD. With one comment still out, that click+ // completes the set rather than clearing it.+ const selectAll = screen.getByTestId('comment-queue-select-all');+ expect(selectAll.getAttribute('aria-label')).toMatch(/mark every comment to send/i);+ expect(selectAll.getAttribute('aria-checked')).toBe('false');+ });+});++/**+ * The per-file tick, revealed rather than resident.+ *+ * Drawn at rest it sat higher and further left than the card ticks it+ * summarizes, reading as the primary control, and put a checkbox on every+ * heading in a panel whose headings are otherwise labels. Hidden by OPACITY, not+ * unmounted: a control that leaves the tab order is one a keyboard reader cannot+ * reach at all.+ */+describe('the per-file tick', () => {+ test('there is one per file, beside the heading', async () => {+ await renderPanel();+ expect(screen.getByTestId('comment-queue-file-select-recipes/stir-fry')).toBeTruthy();+ expect(screen.getByTestId('comment-queue-file-select-recipes/soup')).toBeTruthy();+ });++ test('is transparent at rest but still focusable', async () => {+ await renderPanel();+ const tick = screen.getByTestId('comment-queue-file-select-recipes/stir-fry');+ expect(tick.className).toContain('opacity-0');+ // The reveal is hover or KEYBOARD focus, so the element must stay in the+ // tree and in the tab order — `hidden` or an unmounted node would take both+ // away.+ expect(tick.className).toContain('focus-visible:opacity-100');+ // Not `focus-within`: a mouse click leaves the box focused, which kept the+ // tick revealed after the pointer left.+ expect(tick.className).not.toContain('focus-within');+ expect(tick.getAttribute('disabled')).toBeNull();+ });++ test('reads checked when every comment in the file is going', async () => {+ // t1 + t2 are the whole of stir-fry, and both are ticked.+ await renderPanel();+ expect(+ screen.getByTestId('comment-queue-file-select-recipes/stir-fry').getAttribute('data-state'),+ ).toBe('checked');+ });++ test('reads mixed when only some of the file is going', async () => {+ // Mixed rather than off: off would offer to "select all" a file already half+ // in, and the click would look like it had done nothing to the ticked ones.+ selected = ['t1'];+ await renderPanel();+ expect(+ screen.getByTestId('comment-queue-file-select-recipes/stir-fry').getAttribute('data-state'),+ ).toBe('indeterminate');+ });++ test('reads unchecked when none of the file is going', async () => {+ await renderPanel();+ expect(+ screen.getByTestId('comment-queue-file-select-recipes/soup').getAttribute('data-state'),+ ).toBe('unchecked');+ });++ test('ticks the whole file, and only that file', async () => {+ await renderPanel();+ fireEvent.click(screen.getByTestId('comment-queue-file-select-recipes/soup'));+ expect(bulkCalls).toEqual([{ ids: ['t3'], sending: true }]);+ });++ test('a fully-ticked file offers the un-tick', async () => {+ await renderPanel();+ fireEvent.click(screen.getByTestId('comment-queue-file-select-recipes/stir-fry'));+ expect(bulkCalls).toEqual([{ ids: ['t1', 't2'], sending: false }]);+ });+});++/**+ * The per-file tick once resolved comments are on screen.+ *+ * A resolved comment is out of the batch entirely — the queue drops it, so it+ * can never be among the ticked. Counted as part of its file anyway, the file+ * could never reach "all", and the click meant to tick the file fired queue+ * requests for threads that cannot be queued.+ */+describe('the per-file tick with resolved comments shown', () => {+ const RESOLVED = [+ thread('t1', 'recipes/stir-fry'),+ { ...thread('t2', 'recipes/stir-fry'), status: 'resolved' as const },+ { ...thread('t3', 'recipes/soup'), status: 'resolved' as const },+ ];++ async function renderWithResolvedShown(threads: readonly CommentThread[]) {+ const view = await renderPanel(threads);+ fireEvent.click(screen.getByTestId('comment-queue-resolved-toggle'));+ return view;+ }++ test('reads checked when every SENDABLE comment in the file is going', async () => {+ // t1 is the only comment on stir-fry that a send could carry, and it is+ // ticked — so the file is fully ticked, resolved neighbour or not.+ selected = ['t1'];+ await renderWithResolvedShown(RESOLVED);+ expect(+ screen.getByTestId('comment-queue-file-select-recipes/stir-fry').getAttribute('data-state'),+ ).toBe('checked');+ });++ test('ticking a file leaves its resolved comments out of the request', async () => {+ selected = [];+ await renderWithResolvedShown(RESOLVED);+ fireEvent.click(screen.getByTestId('comment-queue-file-select-recipes/stir-fry'));+ expect(bulkCalls).toEqual([{ ids: ['t1'], sending: true }]);+ });++ test('a file with nothing left to send offers an inert tick', async () => {+ // Every comment on soup is resolved. The tick stays in the row so the+ // heading lines up with the others, but there is nothing for it to do.+ selected = [];+ await renderWithResolvedShown(RESOLVED);+ const tick = screen.getByTestId('comment-queue-file-select-recipes/soup');+ expect(tick.getAttribute('disabled')).not.toBeNull();++ fireEvent.click(tick);+ expect(bulkCalls).toEqual([]);+ });+});diff --git a/packages/app/src/comments/property-anchor-click.dom.test.tsx b/packages/app/src/comments/property-anchor-click.dom.test.tsxnew file mode 100644index 000000000..cb0ad0e0f--- /dev/null+++ b/packages/app/src/comments/property-anchor-click.dom.test.tsx@@ -0,0 +1,167 @@+/**+ * The wiring around {@link threadAtValueOffset}: a real click on a real+ * `<textarea>` in a real property row.+ *+ * The matcher's own rules are pinned in `property-anchor-click.test.ts`. What+ * needs a DOM is everything the matcher cannot see — that the listener finds the+ * row, reads the caret the browser placed, leaves the click otherwise alone, and+ * stamps the attribute the popover's dismisser looks for BEFORE that dismisser+ * runs.+ */++import { cleanup, render } from '@testing-library/react';+import { useRef } from 'react';+import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';+import { Textarea } from '@/components/ui/textarea';+import type { CommentThread } from './types';++const opened: (string | null)[] = [];+let threads: CommentThread[] = [];++vi.doMock('./store', () => ({+ emitOpenThreadPopover: (id: string | null) => {+ opened.push(id);+ },+ getThreads: () => threads,+}));++const { usePropertyAnchorClick } = await import('./property-anchor-click');++function thread(overrides: Partial<CommentThread> = {}): CommentThread {+ return {+ id: 't1',+ docName: 'recipes/chicken-alfredo-pasta',+ target: { kind: 'property', key: 'cuisine', path: [] },+ anchor: { quote: 'ian-American', prefix: '', suffix: '', start: 4, end: 16 },+ status: 'open',+ body: 'is this right?',+ createdAt: 1000,+ updatedAt: 1000,+ queued: false,+ ...overrides,+ };+}++function Panel() {+ const ref = useRef<HTMLDivElement>(null);+ usePropertyAnchorClick(ref, 'recipes/chicken-alfredo-pasta');+ return (+ <div ref={ref}>+ {/* The real row markup this listener keys off — `FrontmatterRow`'s testid+ and key attribute, around the value widget it renders. */}+ <div data-testid="property-row" data-key="cuisine">+ <Textarea aria-label="cuisine" defaultValue="Italian-American" />+ </div>+ <div data-testid="property-row" data-key="protein">+ <Textarea aria-label="protein" defaultValue="chicken" />+ </div>+ </div>+ );+}++/** Click at a caret offset, the way a pointer would: mousedown, then click. */+function clickAt(field: HTMLTextAreaElement, offset: number) {+ field.setSelectionRange(offset, offset);+ field.dispatchEvent(new MouseEvent('mousedown', { bubbles: true }));+ field.dispatchEvent(new MouseEvent('click', { bubbles: true }));+}++beforeEach(() => {+ opened.length = 0;+ threads = [thread()];+});++afterEach(() => cleanup());++describe('clicking a commented property value', () => {+ test('a click on the passage opens its thread', () => {+ const { getByLabelText } = render(<Panel />);+ clickAt(getByLabelText('cuisine') as HTMLTextAreaElement, 8);+ expect(opened).toEqual(['t1']);+ });++ test('a click elsewhere in the same value opens nothing', () => {+ const { getByLabelText } = render(<Panel />);+ clickAt(getByLabelText('cuisine') as HTMLTextAreaElement, 1);+ expect(opened).toEqual([]);+ });++ test('a click in an uncommented row opens nothing', () => {+ const { getByLabelText } = render(<Panel />);+ clickAt(getByLabelText('protein') as HTMLTextAreaElement, 3);+ expect(opened).toEqual([]);+ });++ test('the click is not consumed — the caret the reader aimed at stands', () => {+ const { getByLabelText } = render(<Panel />);+ const field = getByLabelText('cuisine') as HTMLTextAreaElement;+ const event = new MouseEvent('click', { bubbles: true, cancelable: true });+ field.setSelectionRange(8, 8);+ field.dispatchEvent(new MouseEvent('mousedown', { bubbles: true }));+ field.dispatchEvent(event);+ expect(event.defaultPrevented).toBe(false);+ expect(field.selectionStart).toBe(8);+ });++ test('mousedown stamps the attribute the popover dismisser exempts', () => {+ const { getByLabelText } = render(<Panel />);+ const field = getByLabelText('cuisine') as HTMLTextAreaElement;+ field.setSelectionRange(8, 8);+ // Read during the dismisser's own phase: it listens on `document` in the+ // bubble phase, which is strictly after this hook's capture listener.+ let seenDuringBubble: string | null = null;+ const spy = (event: Event) => {+ seenDuringBubble =+ (event.target as HTMLElement)+ .closest('[data-comment-thread]')+ ?.getAttribute('data-comment-thread') ?? null;+ };+ document.addEventListener('mousedown', spy);+ field.dispatchEvent(new MouseEvent('mousedown', { bubbles: true }));+ document.removeEventListener('mousedown', spy);++ expect(seenDuringBubble).toBe('t1');+ });++ test('clicking the same passage twice keeps the thread open', () => {+ // The field report: the first click opened the thread and the second put it+ // back. Reproduced against a stand-in for the real dismisser, because the+ // second click is the FIRST one it is registered for — `CommentThreadPopover`+ // only binds `mousedown` while a thread is showing, so click one never meets+ // it and click two always does.+ const { getByLabelText } = render(<Panel />);+ const field = getByLabelText('cuisine') as HTMLTextAreaElement;+ clickAt(field, 8);++ const dismisser = (event: Event) => {+ const target = event.target as HTMLElement | null;+ if (target?.closest('[data-comment-thread]')) return;+ opened.push(null);+ };+ document.addEventListener('mousedown', dismisser);+ clickAt(field, 8);+ document.removeEventListener('mousedown', dismisser);++ // No `null` in the middle: the dismisser has to see the attribute and stand+ // down, or the popover closes and reopens on one gesture.+ expect(opened).toEqual(['t1', 't1']);+ });++ test('an uncommented value carries no such attribute', () => {+ const { getByLabelText } = render(<Panel />);+ const field = getByLabelText('protein') as HTMLTextAreaElement;+ field.dispatchEvent(new MouseEvent('mousedown', { bubbles: true }));+ expect(field.hasAttribute('data-comment-thread')).toBe(false);+ });++ test('the attribute clears once the thread is gone', () => {+ const { getByLabelText } = render(<Panel />);+ const field = getByLabelText('cuisine') as HTMLTextAreaElement;+ field.dispatchEvent(new MouseEvent('mousedown', { bubbles: true }));+ expect(field.getAttribute('data-comment-thread')).toBe('t1');++ threads = [];+ field.dispatchEvent(new MouseEvent('mousedown', { bubbles: true }));+ expect(field.hasAttribute('data-comment-thread')).toBe(false);+ });+});diff --git a/packages/app/src/comments/property-anchor-click.test.ts b/packages/app/src/comments/property-anchor-click.test.tsnew file mode 100644index 000000000..0bbfeb0d0--- /dev/null+++ b/packages/app/src/comments/property-anchor-click.test.ts@@ -0,0 +1,109 @@+/**+ * Which thread a caret in a property value lands on.+ *+ * The body answers this with ProseMirror positions; a `<textarea>` has only an+ * offset into its own string, so the matching is done here and this is where it+ * is pinned. Same two rules the body's `handleClick` follows: a hit has to be+ * inside the range, and the narrowest covering thread wins.+ */++import { describe, expect, test } from 'vitest';+import { placeValueThreads, threadAtValueOffset } from './property-anchor-click';+import type { CommentThread } from './types';++const VALUE = 'Italian-American';++function thread(overrides: Partial<CommentThread> = {}): CommentThread {+ return {+ id: 't1',+ docName: 'recipes/chicken-alfredo-pasta',+ target: { kind: 'property', key: 'cuisine', path: [] },+ anchor: { quote: 'ian-American', prefix: '', suffix: '', start: 4, end: 16 },+ status: 'open',+ body: 'is this right?',+ createdAt: 1000,+ updatedAt: 1000,+ queued: false,+ ...overrides,+ };+}++describe('threadAtValueOffset', () => {+ test('a caret inside the passage opens its thread', () => {+ expect(threadAtValueOffset([thread()], 'cuisine', VALUE, 8)).toBe('t1');+ });++ test('a caret before the passage opens nothing', () => {+ expect(threadAtValueOffset([thread()], 'cuisine', VALUE, 2)).toBeNull();+ });++ test('both edges count as on the passage', () => {+ expect(threadAtValueOffset([thread()], 'cuisine', VALUE, 4)).toBe('t1');+ expect(threadAtValueOffset([thread()], 'cuisine', VALUE, 16)).toBe('t1');+ });++ test('a thread on a different row is not offered', () => {+ expect(threadAtValueOffset([thread()], 'protein', VALUE, 8)).toBeNull();+ });++ test('a resolved thread is not offered', () => {+ expect(threadAtValueOffset([thread({ status: 'resolved' })], 'cuisine', VALUE, 8)).toBeNull();+ });++ test('a whole-field thread covers the whole value', () => {+ const whole = thread({ id: 'whole', anchor: null });+ expect(threadAtValueOffset([whole], 'cuisine', VALUE, 0)).toBe('whole');+ expect(threadAtValueOffset([whole], 'cuisine', VALUE, VALUE.length)).toBe('whole');+ });++ test('the narrowest covering thread wins', () => {+ const threads = [thread({ id: 'whole', anchor: null }), thread({ id: 'passage' })];+ // Inside the passage: the specific thread, not the field-wide one.+ expect(threadAtValueOffset(threads, 'cuisine', VALUE, 8)).toBe('passage');+ // Outside it: only the field-wide one is left.+ expect(threadAtValueOffset(threads, 'cuisine', VALUE, 1)).toBe('whole');+ });++ test('a nested row is addressed by its own last step', () => {+ const nested = thread({+ id: 'nested',+ target: { kind: 'property', key: 'author', path: ['name'] },+ anchor: { quote: 'Italian', prefix: '', suffix: '', start: 0, end: 7 },+ });+ expect(threadAtValueOffset([nested], 'name', VALUE, 3)).toBe('nested');+ expect(threadAtValueOffset([nested], 'author', VALUE, 3)).toBeNull();+ });+});++describe('placeValueThreads', () => {+ test('stale offsets fall back to searching the value', () => {+ // The reader edited ahead of the passage, so the stored offsets no longer+ // point at it — the same "position is a hint" rule the reveal path follows.+ const shifted = thread({+ anchor: { quote: 'American', prefix: '', suffix: '', start: 99, end: 107 },+ });+ expect(placeValueThreads([shifted], 'cuisine', VALUE)).toEqual([+ { threadId: 't1', start: 8, end: 16 },+ ]);+ });++ test('a passage that is no longer in the value has no range', () => {+ const gone = thread({+ anchor: { quote: 'Sichuanese', prefix: '', suffix: '', start: 0, end: 10 },+ });+ expect(placeValueThreads([gone], 'cuisine', VALUE)).toEqual([]);+ expect(threadAtValueOffset([gone], 'cuisine', VALUE, 3)).toBeNull();+ });++ test('two rows sharing a key are separated by their values', () => {+ // `revealPropertyValueRange` walks candidate rows and lets the value settle+ // which one it meant; this is the same rule read from the other direction.+ const onName = thread({+ id: 'onName',+ target: { kind: 'property', key: 'author', path: ['name'] },+ anchor: { quote: 'Ada', prefix: '', suffix: '', start: 0, end: 3 },+ });+ expect(placeValueThreads([onName], 'name', 'Ada Lovelace')).toHaveLength(1);+ expect(placeValueThreads([onName], 'name', 'Grace Hopper')).toEqual([]);+ });+});diff --git a/packages/app/src/comments/property-anchor-click.ts b/packages/app/src/comments/property-anchor-click.tsnew file mode 100644index 000000000..99f579484--- /dev/null+++ b/packages/app/src/comments/property-anchor-click.ts@@ -0,0 +1,214 @@+/**+ * Clicking a commented property value opens its thread — the property twin of+ * the body's highlight click.+ *+ * The body gets this from ProseMirror: the highlight IS a decoration, so the+ * plugin hangs a `handleClick` on it and asks the view which position was hit.+ * A property value is a `<textarea>`, which has no decorations and no positions+ * — so the same gesture has to be assembled from what a form control does+ * offer: the caret offset it sets on click, matched against each thread's+ * passage in that control's value.+ *+ * The asymmetry this closes was not cosmetic. A commented passage in the body+ * says "there is a comment here, click it" and answers when you do; a commented+ * property value said nothing and ignored the click, so the only ways into the+ * thread were the margin marker and the panel card. Clicking the words is the+ * gesture people try first, and it was the one that did nothing.+ *+ * What still differs, and cannot be made to match here: the body's highlight+ * RESTS on the passage, while a value's can only be painted as the field's own+ * `::selection` (see `revealPropertyValueRange`) and clears the moment focus or+ * the caret moves. So a value carries no at-rest mark saying which words the+ * comment is on — the click works, but it is a click into text that does not+ * look clickable. Fixing that needs the control replaced, not this listener.+ */++import { type RefObject, useEffect } from 'react';+import { locateInValue } from './property-row-rect';+import { emitOpenThreadPopover, getThreads } from './store';+import type { CommentThread } from './types';++const ROW_SELECTOR = '[data-testid="property-row"]';++/**+ * Marks a value control as belonging to a thread, so the popover's outside-click+ * dismisser lets the click through the way it already does for a body highlight+ * and a rail marker.+ *+ * Without it, clicking a commented value while its own popover is open closes it+ * on `mousedown` and this listener reopens it on `click` — one gesture, two+ * renders, a visible flash. The body never had that problem because its+ * decoration carries the same attribute.+ *+ * Stamped just-in-time on `mousedown` rather than kept in sync with the store:+ * the answer depends on the control's CURRENT value (a passage the reader has+ * since typed over is no longer there), and the only moment it has to be right+ * is the one between the click starting and the dismisser reading it. An+ * attribute maintained ahead of time would be a second copy of a fact that+ * changes on every keystroke.+ *+ * Set from here rather than rendered by `FrontmatterRow`: that row is shared by+ * templates, skills, and folder cards, none of which have threads, and it is+ * kept free of this subsystem for the same reason the comment BUTTON arrives as+ * a slot.+ */+const THREAD_ATTR = 'data-comment-thread';++/** The row's own key — its last path step, which is what the DOM carries. */+function rowKeyOf(thread: CommentThread): string | null {+ if (thread.target.kind !== 'property') return null;+ const { key, path } = thread.target;+ return path.length === 0 ? key : String(path[path.length - 1]);+}++interface PlacedRange {+ threadId: string;+ start: number;+ end: number;+}++/**+ * Every open thread that has a range in this control's value.+ *+ * Rows are addressed by their own key, not the full path, so two objects can+ * each have a `name` row and both match here. The VALUE settles it: a thread+ * whose passage is not in this control's text has no range and drops out —+ * the same "let the value decide" rule `revealPropertyValueRange` follows when+ * it walks candidate rows.+ *+ * A whole-field thread (no anchor) covers the whole value, because the field IS+ * what it is about. That is the property analogue of a body comment spanning+ * its passage, not a special case.+ */+export function placeValueThreads(+ threads: readonly CommentThread[],+ rowKey: string,+ value: string,+): PlacedRange[] {+ const placed: PlacedRange[] = [];+ for (const thread of threads) {+ if (thread.status !== 'open') continue;+ if (rowKeyOf(thread) !== rowKey) continue;+ if (thread.anchor === null) {+ placed.push({ threadId: thread.id, start: 0, end: value.length });+ continue;+ }+ const range = locateInValue(value, thread.anchor.quote, thread.anchor.start, thread.anchor.end);+ if (range === null) continue;+ placed.push({ threadId: thread.id, start: range.start, end: range.end });+ }+ return placed;+}++/**+ * Which thread a caret at `offset` is inside. Narrowest wins, so clicking where+ * a passage comment sits inside a whole-field one opens the specific thread —+ * the same tie-break the body's `handleClick` applies to overlapping+ * decorations.+ *+ * Inclusive of both edges, like the body: a caret resting at the end of a+ * passage is still on it.+ */+export function threadAtValueOffset(+ threads: readonly CommentThread[],+ rowKey: string,+ value: string,+ offset: number,+): string | null {+ let hit: PlacedRange | null = null;+ for (const range of placeValueThreads(threads, rowKey, value)) {+ if (offset < range.start || offset > range.end) continue;+ if (hit === null || range.end - range.start < hit.end - hit.start) hit = range;+ }+ return hit?.threadId ?? null;+}++function valueControl(target: EventTarget | null): HTMLTextAreaElement | HTMLInputElement | null {+ if (!(target instanceof HTMLElement)) return null;+ if (!(target instanceof HTMLTextAreaElement) && !(target instanceof HTMLInputElement))+ return null;+ return target.closest(ROW_SELECTOR) === null ? null : target;+}++function rowKeyFor(control: HTMLElement): string | null {+ return control.closest(ROW_SELECTOR)?.getAttribute('data-key') ?? null;+}++/**+ * The caret, or null when this control has no notion of one.+ *+ * `selectionStart` is spec'd to throw on input types that do not support+ * selection (`number`, `date`, `color`), and a numeric property row renders+ * exactly those — so this is a real path, not defensive noise.+ */+function caretOffset(control: HTMLTextAreaElement | HTMLInputElement): number | null {+ try {+ return control.selectionStart;+ } catch {+ return null;+ }+}++/** Every thread with a range in this control's value, or `[]`. */+function threadsOn(+ control: HTMLTextAreaElement | HTMLInputElement,+ docName: string,+): PlacedRange[] {+ const rowKey = rowKeyFor(control);+ if (rowKey === null) return [];+ return placeValueThreads(getThreads(docName), rowKey, control.value);+}++/**+ * Wire click-to-open for every commented value in one property panel.+ *+ * Scoped to the panel's own container, not `document`: hidden entries in the+ * editor pool keep their panels mounted, so a document-level listener would+ * answer clicks in a pane belonging to another doc's threads.+ */+export function usePropertyAnchorClick(+ containerRef: RefObject<HTMLElement | null>,+ docName: string,+): void {+ useEffect(() => {+ if (docName === '') return;+ const container = containerRef.current;+ if (container === null) return;++ // Capture phase, so this runs before the popover's own document-level+ // `mousedown` dismisser — capture descends to the target before bubbling+ // climbs back to `document`, and that ordering is the whole point.+ const onMouseDownCapture = (event: MouseEvent) => {+ const control = valueControl(event.target);+ if (control === null) return;+ const placed = threadsOn(control, docName);+ if (placed.length === 0) control.removeAttribute(THREAD_ATTR);+ else control.setAttribute(THREAD_ATTR, placed[0].threadId);+ };++ // The click itself is NOT consumed — no `preventDefault`, no `focus` call.+ // The caret lands where the reader aimed it and the popover opens beside+ // it, which is the body's bargain too: a commented passage stays ordinary+ // editable text rather than becoming a button.+ const onClick = (event: MouseEvent) => {+ const control = valueControl(event.target);+ if (control === null) return;+ const rowKey = rowKeyFor(control);+ if (rowKey === null) return;+ // Read after the browser has placed the caret — which is why this rides+ // `click` and not `mousedown`. A drag-select reports its anchor end, and+ // that is the character the reader started from.+ const offset = caretOffset(control);+ if (offset === null) return;+ const threadId = threadAtValueOffset(getThreads(docName), rowKey, control.value, offset);+ if (threadId !== null) emitOpenThreadPopover(threadId);+ };++ container.addEventListener('mousedown', onMouseDownCapture, true);+ container.addEventListener('click', onClick);+ return () => {+ container.removeEventListener('mousedown', onMouseDownCapture, true);+ container.removeEventListener('click', onClick);+ };+ }, [containerRef, docName]);+}diff --git a/packages/app/src/comments/property-row-rect.ts b/packages/app/src/comments/property-row-rect.tsindex 5d5fe3517..0cc099493 100644--- a/packages/app/src/comments/property-row-rect.ts+++ b/packages/app/src/comments/property-row-rect.ts@@ -101,8 +101,12 @@ export function revealPropertyValueRange(args: {* The stored offsets first, verified against the words; a search only if they no* longer hold. Same order the server's re-find uses, and for the same reason —* the position is a hint that is usually right and never trusted on its own.+ *+ * Exported because the click side has to agree with the reveal side about where+ * a passage sits: a click that opened a thread whose reveal then selected+ * different characters would be two answers to one question.*/-function locateInValue(+export function locateInValue(value: string,quote: string,start?: number,diff --git a/packages/app/src/comments/queue-grouping.test.ts b/packages/app/src/comments/queue-grouping.test.tsindex c8124adea..5a610feae 100644--- a/packages/app/src/comments/queue-grouping.test.ts+++ b/packages/app/src/comments/queue-grouping.test.ts@@ -20,6 +20,7 @@ function thread(id: string, docName: string): CommentThread {status: 'open',body: `body ${id}`,createdAt: 1000,+ updatedAt: 1000,queued: true,};}diff --git a/packages/app/src/comments/queued-toggle.dom.test.tsx b/packages/app/src/comments/queued-toggle.dom.test.tsxindex 71423cefc..f165f22ee 100644--- a/packages/app/src/comments/queued-toggle.dom.test.tsx+++ b/packages/app/src/comments/queued-toggle.dom.test.tsx@@ -10,7 +10,9 @@*/import { cleanup, fireEvent, render, screen, waitFor } from '@testing-library/react';+import type { Editor } from '@tiptap/react';import { afterEach, describe, expect, test } from 'vitest';+import { TooltipProvider } from '@/components/ui/tooltip';import { ThreadCard } from './ThreadCard';import type { CommentThread } from './types';@@ -23,14 +25,19 @@ function thread(overrides: Partial<CommentThread> = {}): CommentThread {status: 'open',body: 'press it?',createdAt: 1000,+ updatedAt: 1000,queued: true,...overrides,};}function renderCard(t: CommentThread, sending = true) {+ // The card's hints are shadcn Tooltips, which Radix requires a provider for.+ // The app has one at its root; a standalone render has to bring its own.return render(- <ThreadCard thread={t} now={2000} cardRef={() => {}} focused={false} sending={sending} />,+ <TooltipProvider>+ <ThreadCard thread={t} cardRef={() => {}} focused={false} sending={sending} />+ </TooltipProvider>,);}@@ -62,23 +69,77 @@ describe('the send tick', () => {});});+/**+ * The revision field is the SAME composer a comment is written in — a mention+ * editor, not a textarea — so `@`-ing a file works in both. These reach the live+ * TipTap instance the way `ComposerMentionInput.dom.test.tsx` does: the textbox+ * node carries it.+ */+function openEdit(body: string) {+ renderCard(thread({ body }));+ fireEvent.click(screen.getByRole('button', { name: /edit this comment/i }));+ return screen.getByRole('textbox', { name: /edit this comment/i });+}++function editorOf(box: HTMLElement): Editor {+ return (box as unknown as { editor: Editor }).editor;+}+describe('opening an edit', () => {test('puts the caret after the existing text, not in front of it', async () => {- renderCard(thread({ body: 'press it?' }));- fireEvent.click(screen.getByRole('button', { name: /edit this comment/i }));-- const field = await screen.findByDisplayValue('press it?');- await waitFor(() => expect(document.activeElement).toBe(field));- // `autoFocus` alone would leave both at 0 — you would be typing in front of- // your own sentence.- expect((field as HTMLTextAreaElement).selectionStart).toBe('press it?'.length);- expect((field as HTMLTextAreaElement).selectionEnd).toBe('press it?'.length);+ const box = openEdit('press it?');+ await waitFor(() => expect(document.activeElement).toBe(box));++ // Focus alone would leave the caret at the document start — you would be+ // typing in front of your own sentence. The last position inside the+ // paragraph is `size - 1` (the paragraph's own close token is the last).+ const editor = editorOf(box);+ expect(editor.state.selection.from).toBe(editor.state.doc.content.size - 1);+ });++ test('seeds the field with the comment as it stands', () => {+ const box = openEdit('these quantities disagree');+ expect(box.textContent).toContain('these quantities disagree');+ });++ test('the field REPLACES the comment rather than opening under it', () => {+ openEdit('these quantities disagree');+ // One slot, never both: a field seeded from the text it sits under printed+ // the same sentence twice, inches apart. By test id, because the field's own+ // ProseMirror content is a `<p>` carrying the same words.+ expect(screen.queryByTestId('thread-comment-body')).toBeNull();+ });+});++describe('the active-thread tint', () => {+ test('the card being read in the document carries the highlight amber', () => {+ render(+ <TooltipProvider>+ <ThreadCard+ thread={thread()}+ cardRef={() => {}}+ focused={false}+ active={true}+ sending={false}+ />+ </TooltipProvider>,+ );+ // The same statement the document already makes in the other direction —+ // touching a card deepens its passage; an open popover tints its card.+ // A WASH, deliberately not a border: an outline reads as "this comment is+ // picked", and being read is not being selected — the tick owns that.+ const card = screen.getByRole('article');+ expect(card.className).toContain('bg-amber-500/10');+ expect(card.className).not.toContain('border-amber-500/60');});- test('seeds the field with the comment as it stands', async () => {- renderCard(thread({ body: 'these quantities disagree' }));- fireEvent.click(screen.getByRole('button', { name: /edit this comment/i }));- expect(await screen.findByDisplayValue('these quantities disagree')).toBeTruthy();+ test('an inactive card carries none', () => {+ render(+ <TooltipProvider>+ <ThreadCard thread={thread()} cardRef={() => {}} focused={false} sending={false} />+ </TooltipProvider>,+ );+ expect(screen.getByRole('article').className).not.toContain('bg-amber-500/10');});});@@ -91,7 +152,9 @@ describe('a property thread in the panel', () => {// A whole-field comment has no words to reveal, so the control is inert// rather than scrolling the reader somewhere arbitrary. (A comment on a// passage INSIDE a value is clickable — it selects those words.)- const target = screen.getByTitle(/on the whole property/i);- expect(target.hasAttribute('disabled')).toBe(true);+ // Found by what it shows: the hint is a shadcn Tooltip now, which renders+ // nothing until it opens — and a disabled control never opens one.+ const target = screen.getByText('tags:').closest('button');+ expect(target?.hasAttribute('disabled')).toBe(true);});});diff --git a/packages/app/src/comments/reopen-requeue.test.ts b/packages/app/src/comments/reopen-requeue.test.tsnew file mode 100644index 000000000..f16641e3c--- /dev/null+++ b/packages/app/src/comments/reopen-requeue.test.ts@@ -0,0 +1,118 @@+/**+ * Reopening puts a comment back in the batch.+ *+ * A send clears `queued` on its way to `resolved`, and reopening is the+ * correction for a send that did not settle the thing — so the server reopens it+ * queued and the next send carries it without a second click.+ *+ * The case worth pinning is the one the server cannot see. "Checked" is `queued`+ * minus a LOCAL unticked set, so a comment the reviewer unticked before it went+ * out still has its veto recorded here. Left in place, the server would report+ * queued while the panel rendered unchecked — exactly the second click reopening+ * exists to avoid, and with nothing on screen explaining it.+ */++import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';+import type { CommentThreadMeta } from './comments-client';++function meta(threadId: string, queued: boolean, state: CommentThreadMeta['state']) {+ return {+ threadId,+ docName: 'notes/rollout',+ target: { kind: 'body' } as const,+ anchor: { exact: `quote ${threadId}`, prefix: '', suffix: '', start: 0, end: 5 },+ state,+ queued,+ latestComment: 'still true?',+ createdBy: 'principal-abc',+ createdAt: 1000,+ } satisfies CommentThreadMeta;+}++let corpus: CommentThreadMeta[];++vi.mock('sonner', () => ({ toast: { error: vi.fn(), info: vi.fn(), success: vi.fn() } }));++vi.mock('./comments-client', () => ({+ listThreads: vi.fn(async () => corpus),+ queueThread: vi.fn(async (threadId: string) => {+ const found = corpus.find((m) => m.threadId === threadId);+ if (found) found.queued = true;+ return { meta: found, orphaned: false };+ }),+ unqueueThread: vi.fn(async (threadId: string) => {+ const found = corpus.find((m) => m.threadId === threadId);+ if (found) found.queued = false;+ return found;+ }),+ // The server's contract: reopening comes back anchored AND queued.+ reopenThread: vi.fn(async (threadId: string) => {+ const found = corpus.find((m) => m.threadId === threadId);+ if (found) {+ found.state = 'anchored';+ found.queued = true;+ }+ return found;+ }),+ createThread: vi.fn(),+ reply: vi.fn(),+ replaceAnchor: vi.fn(),+ deleteThread: vi.fn(),+ editComment: vi.fn(),+ prepareDispatchBatch: vi.fn(),+ completeDispatchBatch: vi.fn(),+}));++const settle = () => new Promise((resolve) => setTimeout(resolve, 0));++beforeEach(() => {+ vi.resetModules();+ corpus = [meta('t1', true, 'anchored'), meta('t2', false, 'resolved')];+});++afterEach(() => {+ vi.clearAllMocks();+});++describe('reopenThread', () => {+ test('a reopened comment lands checked', async () => {+ const store = await import('./store');+ await store.refresh();+ expect(store.getSelectedQueue()).toEqual(['t1']);++ store.reopenThread('t2');+ await settle();++ expect(store.getSelectedQueue()).toContain('t2');+ });++ test('an untick recorded before the send does not survive the reopen', async () => {+ const store = await import('./store');+ await store.refresh();++ // Untick it while it is still open, then send it and reopen it. The local+ // veto is what would otherwise outlive the round trip.+ store.toggleSending('t1');+ await settle();+ expect(store.getSelectedQueue()).not.toContain('t1');++ const found = corpus.find((m) => m.threadId === 't1');+ if (found) found.state = 'resolved';+ await store.refresh();++ store.reopenThread('t1');+ await settle();++ expect(store.getSelectedQueue()).toContain('t1');+ });++ test('reopening one comment leaves the rest of the batch alone', async () => {+ const store = await import('./store');+ await store.refresh();++ store.reopenThread('t2');+ await settle();++ expect([...store.getSelectedQueue()].sort()).toEqual(['t1', 't2']);+ });+});diff --git a/packages/app/src/comments/reveal-comment.dom.test.ts b/packages/app/src/comments/reveal-comment.dom.test.tsnew file mode 100644index 000000000..a35b88ab7--- /dev/null+++ b/packages/app/src/comments/reveal-comment.dom.test.ts@@ -0,0 +1,337 @@+/**+ * Following a comment into a document that is still arriving.+ *+ * The regression this pins: an editor registers itself when it MOUNTS and its+ * content lands afterwards over the CRDT, so a reveal that treated the mount as+ * arrival searched an empty document, found no passage, and stopped. The click+ * landed on the right page and never scrolled; clicking the same comment again+ * — now against a loaded doc — worked. Hence the "click it twice" report.+ */++import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';++const RETRY_MS = 80;+const REVEAL_WAIT_MS = 10_000;+const SETTLE_MS = 1_500;++/**+ * A stand-in editor whose "document" is a string the fake resolver searches.+ * `content.size` tracks that string — the reveal uses it to decide when a+ * re-FIND is worth running; the scroll double below owns the geometry.+ */+interface FakeEditor {+ state: { doc: { text: string; content: { size: number } } };+ isDestroyed: boolean;+}++function makeEditor(text: string): FakeEditor {+ const doc = {+ text,+ content: {+ get size() {+ return doc.text.length;+ },+ },+ };+ return { state: { doc }, isDestroyed: false };+}++let editor: FakeEditor | null = null;+/** Whether that editor is on screen — false models a hidden pooled pane. */+let editorVisible = true;+let registryListeners: Set<() => void>;+const captured = {+ scrolled: 0,+ opened: [] as string[],+ focused: [] as string[],+};++vi.doMock('@/components/doc-panel-events', () => ({ requestDocPanelTab: () => {} }));++vi.doMock('@/lib/doc-hash', () => ({+ hashFromDocName: (docName: string) => `#/${docName}`,+}));++/** False models a scroller owned by a landing that does not yield. */+let scrollAllowed = true;+/**+ * True models the passage sitting outside the comfortable band — the real+ * function measures and scrolls only then, so the double scrolls once per+ * displacement and is a no-op while the passage stays put.+ */+let displaced = true;+vi.doMock('./scroll-to-anchor', () => ({+ scrollAnchorIntoView: () => {+ if (!scrollAllowed) return false;+ if (displaced) {+ captured.scrolled += 1;+ displaced = false;+ }+ return true;+ },+}));++vi.doMock('./anchor-search', () => ({+ findQuoteRange: (doc: { text: string }, quote: string) => {+ // The real one declines an empty quote outright. `indexOf('')` answers 0,+ // so a double without this guard "finds" a zero-width range at the top of+ // every document — and the no-passage case then passes whatever the code+ // under test does with it.+ if (quote.length === 0) return null;+ const at = doc.text.indexOf(quote);+ return at === -1 ? null : { from: at, to: at + quote.length };+ },+}));++vi.doMock('@/editor/active-editor', () => ({+ getVisibleEditorForDoc: () => (editorVisible ? editor : null),+ subscribeEditorRegistry: (listener: () => void) => {+ registryListeners.add(listener);+ return () => registryListeners.delete(listener);+ },+}));++vi.doMock('./store', () => ({+ emitFocusThread: (id: string) => captured.focused.push(id),+ emitOpenThreadPopover: (id: string) => captured.opened.push(id),+}));++const toasted: string[] = [];+vi.doMock('sonner', () => ({+ toast: { error: (message: string) => toasted.push(message) },+}));++const { revealComment } = await import('./reveal-comment');++function reveal() {+ revealComment({ docName: 'recipes/stir-fry', quote: 'the tofu', threadId: 't1' });+}++/** Content lands over the CRDT — a mounted editor filling in after the fact. */+function contentArrives() {+ if (editor) editor.state.doc.text = 'press the tofu first';+}++beforeEach(() => {+ vi.useFakeTimers();+ registryListeners = new Set();+ editor = null;+ editorVisible = true;+ scrollAllowed = true;+ displaced = true;+ captured.scrolled = 0;+ captured.opened = [];+ captured.focused = [];+ toasted.length = 0;+});++afterEach(() => {+ vi.clearAllTimers();+ vi.useRealTimers();+});++describe('revealing a comment', () => {+ test('keeps looking until the passage lands, not just until the editor mounts', () => {+ // Mounted, empty: exactly the state a freshly navigated-to document is in.+ editor = makeEditor('');++ reveal();+ // The document is open, so its card lights up in the panel right away —+ // but there is nothing to scroll to yet.+ expect(captured.focused).toEqual(['t1']);+ expect(captured.scrolled).toBe(0);++ contentArrives();+ vi.advanceTimersByTime(RETRY_MS);++ expect(captured.scrolled).toBe(1);+ expect(captured.opened).toEqual(['t1']);+ // The panel is told once, on arrival — not on every tick of the wait.+ expect(captured.focused).toEqual(['t1']);+ });++ test('scrolls once and then stops, for a document that stops changing', () => {+ editor = makeEditor('press the tofu first');++ reveal();+ expect(captured.scrolled).toBe(1);++ // The settle window watches, but an unchanged document gives it nothing to+ // correct — and once it closes nothing is left running, so a reader who+ // scrolls away is not dragged back.+ vi.advanceTimersByTime(REVEAL_WAIT_MS * 2);+ expect(captured.scrolled).toBe(1);+ expect(captured.opened).toEqual(['t1']);+ });++ test('re-scrolls when the passage slides after landing', () => {+ editor = makeEditor('press the tofu first');+ reveal();+ expect(captured.scrolled).toBe(1);++ // Content arriving above, a late layout shift — anything that moves the+ // passage without the reader asking. This is the "took me there, but past+ // it" case: the words were right and the position went stale.+ displaced = true;+ vi.advanceTimersByTime(RETRY_MS);+ expect(captured.scrolled).toBe(2);+ // Corrected, not re-announced: the thread is already open.+ expect(captured.opened).toEqual(['t1']);++ // Past the settle window the document is left alone.+ vi.advanceTimersByTime(SETTLE_MS);+ displaced = true;+ vi.advanceTimersByTime(RETRY_MS * 4);+ expect(captured.scrolled).toBe(2);+ });++ test("the reader's own scroll ends the settle window immediately", () => {+ editor = makeEditor('press the tofu first');+ reveal();+ expect(captured.scrolled).toBe(1);++ // The reader scrolls away mid-window...+ window.dispatchEvent(new Event('wheel'));++ // ...so a later displacement is THEIR position now, not drift to correct.+ displaced = true;+ vi.advanceTimersByTime(RETRY_MS * 4);+ expect(captured.scrolled).toBe(1);+ });++ test('waits for a scroller a non-yielding landing still owns', () => {+ editor = makeEditor('press the tofu first');+ scrollAllowed = false;++ reveal();+ // Declined, so nothing has landed — the thread must not read as revealed.+ expect(captured.scrolled).toBe(0);+ expect(captured.opened).toEqual([]);++ scrollAllowed = true;+ vi.advanceTimersByTime(RETRY_MS);+ expect(captured.scrolled).toBe(1);+ expect(captured.opened).toEqual(['t1']);+ });++ test('gives up at the deadline rather than waiting forever', () => {+ editor = makeEditor('');++ reveal();+ vi.advanceTimersByTime(REVEAL_WAIT_MS + RETRY_MS);++ // The words never came (an orphaned anchor, or a document that failed to+ // sync). Landing on it later must not yank a reader who has moved on.+ contentArrives();+ vi.advanceTimersByTime(RETRY_MS * 4);+ expect(captured.scrolled).toBe(0);+ expect(captured.opened).toEqual([]);+ });++ test('says so when it gives up, rather than failing silently', () => {+ // The document is up — its card even lit — so what failed is the passage.+ editor = makeEditor('');++ reveal();+ expect(captured.focused).toEqual(['t1']);+ // Nothing yet: giving up early would toast over a document still arriving.+ expect(toasted).toEqual([]);++ vi.advanceTimersByTime(REVEAL_WAIT_MS + RETRY_MS);+ expect(toasted).toHaveLength(1);+ expect(toasted[0]).toMatch(/passage/i);+ });++ test('names the document, not the passage, when the document never came up', () => {+ // Never visible, so the passage was never even looked for — telling this+ // reader their text has changed would send them after the wrong problem.+ editor = makeEditor('press the tofu first');+ editorVisible = false;++ reveal();+ vi.advanceTimersByTime(REVEAL_WAIT_MS + RETRY_MS);++ expect(toasted).toHaveLength(1);+ expect(toasted[0]).toMatch(/didn't open in time/i);+ });++ test('stays quiet when the reveal succeeded', () => {+ editor = makeEditor('press the tofu first');++ reveal();+ expect(captured.scrolled).toBe(1);++ // Well past the deadline: a landing cancels it, so nothing fires later.+ vi.advanceTimersByTime(REVEAL_WAIT_MS * 2);+ expect(toasted).toEqual([]);+ });++ test('a thread with no body passage lands on the document itself', () => {+ // A property thread: its words are in the frontmatter value, which the+ // properties panel reveals. `revealThread` passes an empty quote, and this+ // used to search for it, never find it, and then blame the passage.+ editor = makeEditor('press the tofu first');+ revealComment({ docName: 'recipes/stir-fry', quote: '', threadId: 't1' });++ expect(captured.focused).toEqual(['t1']);+ expect(captured.opened).toEqual(['t1']);++ vi.advanceTimersByTime(REVEAL_WAIT_MS + RETRY_MS);+ expect(toasted).toEqual([]);+ });++ test('an empty quote still waits for the document to arrive', () => {+ // The landing is "the right document is on screen" — which is exactly what+ // is not true yet while a cross-document jump is still navigating.+ editor = makeEditor('press the tofu first');+ editorVisible = false;+ revealComment({ docName: 'recipes/stir-fry', quote: '', threadId: 't1' });+ expect(captured.opened).toEqual([]);++ editorVisible = true;+ vi.advanceTimersByTime(RETRY_MS);+ expect(captured.opened).toEqual(['t1']);+ expect(toasted).toEqual([]);+ });++ test('stays quiet when the reader scrolled away instead', () => {+ editor = makeEditor('');++ reveal();+ // Their intent ended the jump — that is not a failure to report.+ window.dispatchEvent(new Event('wheel'));+ vi.advanceTimersByTime(REVEAL_WAIT_MS * 2);++ expect(toasted).toEqual([]);+ });++ test('waits for a pooled document to be shown, not merely mounted', () => {+ // Mounted, loaded, and hidden behind `<Activity mode="hidden">` — the state+ // every recently-visited document is in. Measuring it would scroll a pane+ // with no layout, so this counts as not-there.+ editor = makeEditor('press the tofu first');+ editorVisible = false;++ reveal();+ expect(captured.scrolled).toBe(0);+ expect(captured.focused).toEqual([]);++ // Navigation brings it to the front.+ editorVisible = true;+ vi.advanceTimersByTime(RETRY_MS);++ expect(captured.scrolled).toBe(1);+ expect(captured.opened).toEqual(['t1']);+ });++ test('picks the document up the moment it registers, without waiting out a tick', () => {+ reveal();+ expect(captured.focused).toEqual([]);++ editor = makeEditor('press the tofu first');+ for (const listener of registryListeners) listener();++ expect(captured.scrolled).toBe(1);+ expect(captured.focused).toEqual(['t1']);+ });+});diff --git a/packages/app/src/comments/reveal-comment.ts b/packages/app/src/comments/reveal-comment.tsindex 6571da461..334e73154 100644--- a/packages/app/src/comments/reveal-comment.ts+++ b/packages/app/src/comments/reveal-comment.ts@@ -3,28 +3,70 @@** The queue is project-wide, so the target doc is often NOT the one on screen.* That makes this two steps rather than one: navigate if needed, then wait for- * that document's editor to actually mount before selecting the passage — a- * jump issued during navigation would land on an editor that doesn't exist yet- * and silently do nothing.+ * that document to actually be there before scrolling to the passage — a jump+ * issued during navigation would land on an editor that doesn't exist yet and+ * silently do nothing.+ *+ * "There" means on screen and loaded, neither of which registration implies.+ * An editor registers when it MOUNTS: its content arrives afterwards over the+ * CRDT, and `EditorActivityPool` keeps the last few visited documents mounted+ * but hidden. Reading registration as arrival therefore failed two ways — it+ * searched an empty document and gave up (the click landed on the right page and+ * never scrolled, while clicking again, now against a loaded doc, worked), and+ * for a recently-visited document it skipped the navigation entirely and+ * scrolled a pane nobody could see. So the wait is for the PASSAGE, in a VISIBLE+ * editor, and it keeps looking until both hold or the deadline passes.** The passage is located by its quoted text, the same durable record the anchor* itself is built on, so this keeps working after the text has moved.*/+import { t } from '@lingui/core/macro';+import { toast } from 'sonner';import { requestDocPanelTab } from '@/components/doc-panel-events';-import { getEditorForDoc, subscribeEditorRegistry } from '@/editor/active-editor';+import { getVisibleEditorForDoc, subscribeEditorRegistry } from '@/editor/active-editor';import { hashFromDocName } from '@/lib/doc-hash';import { type AnchorContext, findQuoteRange } from './anchor-search';import { scrollAnchorIntoView } from './scroll-to-anchor';-import { emitFocusThread } from './store';+import { emitFocusThread, emitOpenThreadPopover } from './store';-/** Give up waiting for an editor that never mounts (bad docName, failed load). */-const EDITOR_WAIT_MS = 10_000;+/** Give up on a document that never arrives (bad docName, failed load, dead sync). */+const REVEAL_WAIT_MS = 10_000;/**- * Select + scroll to a comment's passage, navigating to its document first when- * it isn't the one open. Also opens the Comments tab so the thread is visible- * beside the passage it belongs to.+ * How often to re-ask while the document is still arriving.+ *+ * A poll rather than an event: the registry announces a MOUNT, and what this+ * waits for is content, which lands through the CRDT afterwards — and even with+ * the text in place, ProseMirror can still be a frame away from being able to+ * give coordinates for it. One clock covers all three.+ */+const RETRY_MS = 80;++/**+ * How long to keep watching AFTER the passage has been scrolled to.+ *+ * A freshly-opened document is not done moving when the words are in place:+ * content can still be arriving above the passage, and layout above it settles+ * for a while after that (hydration, decorations, fonts) — either one slides the+ * passage away from where it was put, without any further scroll of ours. During+ * this window the passage's on-screen position is re-verified and corrected —+ * geometry, not document size, because a layout shift moves the passage without+ * changing a single character.+ *+ * The reader outranks the window: any scroll intent of theirs (wheel, touch,+ * scrollbar, keys) ends it immediately, so nobody is dragged back to a passage+ * they chose to leave.+ */+const SETTLE_MS = 1_500;++/** The reader took the scroller — end corrections instantly. */+const INTENT_EVENTS = ['wheel', 'touchstart', 'mousedown', 'keydown'] as const;++/**+ * Scroll to a comment's passage and open its thread there, navigating to the+ * document first when it isn't the one open. Also opens the Comments tab so the+ * thread is visible beside the passage it belongs to.*/export function revealComment(input: {docName: string;@@ -33,38 +75,121 @@ export function revealComment(input: {/** Stored context — disambiguates a quote that appears more than once. */context?: AnchorContext;}): void {- const focusInEditor = (): boolean => {- const editor = getEditorForDoc(input.docName);+ let announced = false;+ /** When the passage was first scrolled to — the start of the settle window. */+ let landedAt: number | null = null;+ /** The resolved passage, re-found only when the document's content changes. */+ let range: { from: number; to: number } | null = null;+ let sizeAtLastFind = -1;++ const attempt = (): boolean => {+ const editor = getVisibleEditorForDoc(input.docName);if (!editor || editor.isDestroyed) return false;- const range = findQuoteRange(editor.state.doc, input.quote, input.context);- // The doc is open but the words are gone (an orphaned anchor). Still count- // it as handled — navigation succeeded; there is simply nothing to select.- if (range) {- editor.chain().focus().setTextSelection(range).run();- scrollAnchorIntoView(editor, range);+ // The document is on screen, which is worth saying even if the passage never+ // resolves — an orphaned anchor has nothing to scroll to, and its card+ // still has to light up in the panel. Once only: this runs on every tick.+ if (!announced) {+ announced = true;+ emitFocusThread(input.threadId);+ }+ // Nothing to look for in the body. A property thread's words live in the+ // frontmatter value, which the properties panel owns and reveals itself, so+ // getting the right document on screen IS the whole job here — and a+ // comment on a whole field has no words at all. Searching for an empty+ // quote finds nothing by definition, so without this the jump never landed:+ // it sat out the full wait and then reported the passage as lost, on a+ // navigation that had worked.+ if (input.quote === '') {+ if (landedAt === null) {+ landedAt = Date.now();+ emitOpenThreadPopover(input.threadId);+ }+ return true;+ }+ // Re-locate the quote only when content has changed — the find is a+ // full-document scan, far too heavy to run on every tick of the settle+ // window. The GEOMETRY check below runs every tick regardless: layout can+ // move a passage without changing a single character of content.+ const size = editor.state.doc.content.size;+ if (range === null || size !== sizeAtLastFind) {+ range = findQuoteRange(editor.state.doc, input.quote, input.context);+ sizeAtLastFind = size;+ }+ if (!range) return false;+ // Pointed at, not selected. Focusing the editor and selecting the passage+ // put a live text selection on it — blue, with the formatting bubble menu+ // over it — so arriving at a comment read as picking its words up to edit.+ // Opening the thread deepens the highlight instead, which is what the margin+ // marker does and what "here it is" should mean.+ //+ // A no-op when the passage is already comfortably placed, so the settle+ // window's re-verifications cost a measurement, not a scroll. Instant, not+ // smooth: corrections against a still-settling layout must not race their+ // own animation. Declined means a landing that does not yield owns the+ // scroller — another explicit jump. Leave it alone and retry next tick.+ if (!scrollAnchorIntoView(editor, range, input.docName, { instant: true })) return false;+ if (landedAt === null) {+ landedAt = Date.now();+ emitOpenThreadPopover(input.threadId);}- emitFocusThread(input.threadId);return true;};requestDocPanelTab('comments');- if (focusInEditor()) return;+ // Scroll now if everything is already in place, but do NOT stop there: the+ // settle window below is what catches a passage that moves afterwards.+ attempt();- window.location.assign(hashFromDocName(input.docName));+ // Only when the document isn't on screen — which includes one sitting mounted+ // but hidden in the pool, the case that used to skip navigation and scroll+ // nothing. Re-assigning the hash of a document already in front of the reader+ // is a no-op in the browser, but it says the wrong thing here: what is being+ // waited for in that case is the content, not the navigation.+ if (getVisibleEditorForDoc(input.docName) === null) {+ window.location.assign(hashFromDocName(input.docName));+ }- // The editor registers itself once mounted; retry on each registry change- // rather than guessing at a fixed delay.let settled = false;const stop = (): void => {if (settled) return;settled = true;unsubscribe();- window.clearTimeout(timer);+ window.clearInterval(ticker);+ window.clearTimeout(deadline);+ for (const event of INTENT_EVENTS) window.removeEventListener(event, onIntent, true);};- const unsubscribe = subscribeEditorRegistry(() => {- if (focusInEditor()) stop();- });- const timer = window.setTimeout(stop, EDITOR_WAIT_MS);- // The editor may already have been registered between the two calls above.- if (focusInEditor()) stop();+ // Window-level and capture-phase: the container the reader scrolls could be+ // the editor's, but intent anywhere — the panel, another pane — equally means+ // they have moved on from this jump.+ const onIntent = (): void => stop();+ const tick = (): void => {+ // A successful attempt is not the end: the settle window keeps re-verifying+ // the passage's position while the arriving document moves under it.+ if (attempt() && landedAt !== null && Date.now() - landedAt >= SETTLE_MS) stop();+ };+ // The registry fires the moment the editor mounts, which is the earliest this+ // can possibly succeed — worth taking rather than waiting out a tick for it.+ const unsubscribe = subscribeEditorRegistry(tick);+ const ticker = window.setInterval(tick, RETRY_MS);+ // Giving up is a fact worth reporting. Ten seconds of a comment card that+ // does nothing when clicked reads as a missed click, so the reader clicks it+ // again and waits out another ten. Which of the two things went wrong is+ // knowable here — the document never came up, or it did and the words were+ // not in it — and they call for different next moves, so say which.+ //+ // Only on the deadline path: `stop` also runs on a landing and on the reader+ // scrolling away, and both of those clear this timer first.+ const deadline = window.setTimeout(() => {+ if (landedAt === null) {+ toast.error(+ announced+ ? t`Couldn't find that passage — the text it was on may have changed.`+ : t`That document didn't open in time. Try again once it has synced.`,+ );+ }+ stop();+ }, REVEAL_WAIT_MS);+ for (const event of INTENT_EVENTS) window.addEventListener(event, onIntent, true);+ // The editor may have registered between the attempt above and this line.+ tick();}diff --git a/packages/app/src/comments/reveal-queue.test.ts b/packages/app/src/comments/reveal-queue.test.tsindex 8ff3463c1..a8537fd95 100644--- a/packages/app/src/comments/reveal-queue.test.ts+++ b/packages/app/src/comments/reveal-queue.test.ts@@ -1,11 +1,12 @@/**- * Posting a comment reveals the queue — but only once the server has taken it.+ * Posting a comment reveals the Comments tab — but only once the server has+ * taken it, and on THIS DOC's scope: the thing to show is the comment just+ * made, beside its passage, not the project-wide queue.*- * The reveal is what tells a first-time reviewer the queue exists and where the+ * The reveal is what tells a first-time reviewer the panel exists and where the* send lives, so it has to fire on a real post. Equally, it must NOT fire on a- * rejected one: opening the queue for a comment that failed to anchor shows an- * empty batch and reads as "your comment went somewhere", which is worse than- * no reveal at all.+ * rejected one: opening the panel for a comment that failed to anchor reads as+ * "your comment went somewhere", which is worse than no reveal at all.*/import { describe, expect, test, vi } from 'vitest';@@ -44,17 +45,23 @@ const settle = () => new Promise((resolve) => setTimeout(resolve, 0));* module state — a statically imported subscriber would listen on the previous* instance's bus and never hear a thing.*/-async function watchReveals(): Promise<{ count: () => number; stop: () => void }> {- const { subscribeQueueScopeRequests } = await import('./reveal-queue');+async function watchReveals(): Promise<{+ count: () => number;+ scopes: string[];+ stop: () => void;+}> {+ const { subscribeCommentScopeRequests } = await import('./reveal-queue');let seen = 0;- const stop = subscribeQueueScopeRequests(() => {+ const scopes: string[] = [];+ const stop = subscribeCommentScopeRequests((scope) => {seen += 1;+ scopes.push(scope);});- return { count: () => seen, stop };+ return { count: () => seen, scopes, stop };}-describe('createThread reveals the queue', () => {- test('fires once the server accepts the comment', async () => {+describe('createThread reveals the Comments tab', () => {+ test('fires once the server accepts the comment, on doc scope', async () => {vi.resetModules();const store = await import('./store');const reveals = await watchReveals();@@ -63,6 +70,9 @@ describe('createThread reveals the queue', () => {await settle();expect(reveals.count()).toBe(1);+ // This doc, not the project queue: the thing to show is the comment just+ // made, beside the passage it is on.+ expect(reveals.scopes).toEqual(['doc']);reveals.stop();});@@ -85,43 +95,40 @@ describe('createThread reveals the queue', () => {});describe('a reveal nobody was listening for', () => {- // The reported bug: posting a comment opened the Comments tab but left it on- // "This doc". Opening the tab only SCHEDULES a mount, so when the tab wasn't- // already showing there was no subscriber when the scope event fired — the- // request was simply dropped. The earlier tests missed it by always- // subscribing first, which is the one case that already worked.- test('is latched for the component the reveal is about to mount', async () => {+ // The reported bug: a reveal opened the Comments tab but its scope request+ // was dropped. Opening the tab only SCHEDULES a mount, so when the tab wasn't+ // already showing there was no subscriber when the scope event fired. The+ // earlier tests missed it by always subscribing first, which is the one case+ // that already worked.+ test('is latched, with its scope, for the component about to mount', async () => {vi.resetModules();- const { revealQueue, consumePendingQueueScope } = await import('./reveal-queue');+ const { revealQueue, consumePendingCommentScope } = await import('./reveal-queue');revealQueue(); // nothing subscribed — exactly the tab-was-closed case- expect(consumePendingQueueScope()).toBe(true);- // and only once: a later mount must not re-jump to the queue- expect(consumePendingQueueScope()).toBe(false);+ expect(consumePendingCommentScope()).toBe('project');+ // and only once: a later mount must not re-jump the scope+ expect(consumePendingCommentScope()).toBeNull();});test('a live subscriber clears the latch instead of leaving it armed', async () => {vi.resetModules();- const { revealQueue, consumePendingQueueScope, subscribeQueueScopeRequests } = await import(- './reveal-queue'- );- let handled = 0;- const stop = subscribeQueueScopeRequests(() => {- handled += 1;- });-- revealQueue();-- expect(handled).toBe(1);- // Already delivered — a tab mounted later must NOT be yanked to the queue.- expect(consumePendingQueueScope()).toBe(false);+ const { revealComments, consumePendingCommentScope, subscribeCommentScopeRequests } =+ await import('./reveal-queue');+ const heard: string[] = [];+ const stop = subscribeCommentScopeRequests((scope) => heard.push(scope));++ revealComments('doc');++ expect(heard).toEqual(['doc']);+ // Already delivered — a tab mounted later must NOT have its scope yanked.+ expect(consumePendingCommentScope()).toBeNull();stop();});- test('nothing is latched until a comment is actually posted', async () => {+ test('nothing is latched until a reveal actually fires', async () => {vi.resetModules();- const { consumePendingQueueScope } = await import('./reveal-queue');- expect(consumePendingQueueScope()).toBe(false);+ const { consumePendingCommentScope } = await import('./reveal-queue');+ expect(consumePendingCommentScope()).toBeNull();});});diff --git a/packages/app/src/comments/reveal-queue.ts b/packages/app/src/comments/reveal-queue.tsindex dbb9a1cc4..aa956ef39 100644--- a/packages/app/src/comments/reveal-queue.ts+++ b/packages/app/src/comments/reveal-queue.ts@@ -1,22 +1,28 @@/**- * Bring the dispatch queue on screen.+ * Bring the Comments tab on screen, at a named scope.*- * Posting a comment is the moment the queue becomes relevant, and it is also- * the moment the send control is easiest to miss: the composer's comments chip+ * Posting a comment is the moment the panel becomes relevant, and it is also+ * the moment its controls are easiest to miss: the composer's comments chip* only exists while the Ask AI bar is showing, and the bar is hidden whenever* the sessions dock is open. Without this, a reviewer can queue five comments* and never find the thing that sends them.*+ * The scope names what the caller is showing: a fresh post reveals "This doc" —+ * the comment you just made, beside the passage it is on — while the composer+ * chip reveals the project-wide queue, because the batch it counts spans+ * documents.+ ** Two steps, because the tab and the scope are owned by different components:* `requestDocPanelTab` opens the doc panel and selects the Comments tab- * (`EditorArea` subscribes), and the scope event flips that tab from "This doc"- * to "All comments" (`CommentsTab` subscribes, since it owns the toggle's+ * (`EditorArea` subscribes), and the scope event sets that tab's "This doc /+ * This project" toggle (`CommentsTab` subscribes, since it owns the toggle's* state).*/import { requestDocPanelTab } from '@/components/doc-panel-events';+import type { PanelScope } from '@/components/PanelScopeHeader';-const QUEUE_SCOPE_EVENT = 'open-knowledge:comments-queue-scope';+const COMMENT_SCOPE_EVENT = 'open-knowledge:comments-scope';// `createThread` reaches this from the store, which the node-env unit tier// imports — where there is no `window`. One module-level stand-in (rather than@@ -30,32 +36,37 @@ const bus: EventTarget = typeof window === 'undefined' ? new EventTarget() : win* Opening the Comments tab only SCHEDULES a React state change, so when the* tab wasn't already open `CommentsTab` has not mounted — and has not* subscribed — by the time the scope event goes out. The event lands on an- * empty room and the tab opens on "This doc". Mirrors the pending-tab latch in+ * empty room and the tab opens on its default. Mirrors the pending-tab latch in* `doc-panel-events.ts`, which exists for the same reason: a live subscriber* clears it, and a component mounting afterwards consumes it instead.*/-let pendingQueueScope = false;+let pendingScope: PanelScope | null = null;-/** True once per reveal that no live subscriber handled. */-export function consumePendingQueueScope(): boolean {- const pending = pendingQueueScope;- pendingQueueScope = false;+/** The scope of a reveal no live subscriber handled, once; null when none. */+export function consumePendingCommentScope(): PanelScope | null {+ const pending = pendingScope;+ pendingScope = null;return pending;}-export function subscribeQueueScopeRequests(onRequest: () => void): () => void {- const handler = (): void => {+export function subscribeCommentScopeRequests(onRequest: (scope: PanelScope) => void): () => void {+ const handler = (event: Event): void => {// Handled live — don't also leave a latch for the next mount to trip on.- pendingQueueScope = false;- onRequest();+ pendingScope = null;+ onRequest((event as CustomEvent<PanelScope>).detail);};- bus.addEventListener(QUEUE_SCOPE_EVENT, handler);- return () => bus.removeEventListener(QUEUE_SCOPE_EVENT, handler);+ bus.addEventListener(COMMENT_SCOPE_EVENT, handler);+ return () => bus.removeEventListener(COMMENT_SCOPE_EVENT, handler);}-/** Open the doc panel on the Comments tab, scoped to the queue. */-export function revealQueue(): void {- pendingQueueScope = true;+/** Open the doc panel on the Comments tab, set to `scope`. */+export function revealComments(scope: PanelScope): void {+ pendingScope = scope;requestDocPanelTab('comments');- bus.dispatchEvent(new Event(QUEUE_SCOPE_EVENT));+ bus.dispatchEvent(new CustomEvent<PanelScope>(COMMENT_SCOPE_EVENT, { detail: scope }));+}++/** The project-wide queue — what the composer chip counts, spanning documents. */+export function revealQueue(): void {+ revealComments('project');}diff --git a/packages/app/src/comments/scroll-to-anchor.ts b/packages/app/src/comments/scroll-to-anchor.tsindex 27e26118f..6a83183ad 100644--- a/packages/app/src/comments/scroll-to-anchor.ts+++ b/packages/app/src/comments/scroll-to-anchor.ts@@ -16,6 +16,10 @@*/import type { Editor } from '@tiptap/react';+import {+ acquireScrollRestoreSuppression,+ runScrollNavigation,+} from '@/editor/scroll-restore-coordination';import { getEditorView } from '@/editor/utils/get-editor-view';/**@@ -28,6 +32,44 @@ const CARD_ROOM_PX = 220;/** Breathing room below the toolbar when we do move, so it isn't flush. */const LEAD_PX = 24;+/**+ * How long a jump holds the document's scroller after writing to it.+ *+ * Long enough for the scroll-restore loop to see the flag on its next frame and+ * stand down (it exits for good at that point), short enough that the other+ * readers of this flag — the agent-follow scroll, the composer's bottom pin —+ * are barely affected.+ */+const JUMP_OWNERSHIP_MS = 600;++/**+ * Perform a jump's scroll as the document's single scroll writer, or decline.+ *+ * TWO writers have to be told, and they take different signals:+ *+ * - Mode-switch landings register as scroll owners; `runScrollNavigation`+ * pre-empts the ones that yield and refuses for one that does not.+ * - The pool's scroll-restore loop watches `isScrollRestoreSuppressed`. Left+ * untold it does NOT yield to a jump toward the top of the document: its+ * takeover test is directional, and a scrollTop DECREASE is indistinguishable+ * from the browser's shrink-clamp, so it re-applies its own target over ours,+ * frame after frame, until its 10-second backstop expires. That is why a+ * comment above the current view did nothing for click after click and then+ * suddenly worked — the clicks were not accumulating, the backstop was+ * running out.+ *+ * Returns whether the scroll ran.+ */+function applyJumpScroll(docName: string, write: () => void): boolean {+ return runScrollNavigation(docName, () => {+ // Acquired BEFORE the write: the restore loop reads the flag on the frame it+ // measures, and a write it sees first is measured as drift to correct.+ const suppression = acquireScrollRestoreSuppression(docName);+ write();+ window.setTimeout(() => suppression.release(), JUMP_OWNERSHIP_MS);+ });+}+export interface AnchorViewport {/** The passage, in viewport coordinates. */anchorTop: number;@@ -76,16 +118,37 @@ export function scrollportInsetTop(container: HTMLElement): number {return Number.isFinite(value) ? value : 0;}-/** Bring a comment's passage into a readable position, with room for its card. */-export function scrollAnchorIntoView(editor: Editor, range: { from: number; to: number }): void {+/**+ * Bring a comment's passage into a readable position, with room for its card.+ *+ * Returns whether the navigation RAN — see {@link applyJumpScroll} for what can+ * decline it and for the two scroll writers a jump has to out-rank. `docName` is+ * required so that contract is enforced by this producer rather than by each+ * call site remembering to ask.+ */+export function scrollAnchorIntoView(+ editor: Editor,+ range: { from: number; to: number },+ docName: string,+ opts?: {+ /**+ * Land in one write instead of animating. A cross-document reveal corrects+ * itself while the arriving layout settles, and a correction issued while a+ * previous smooth ride is still in flight measures the world mid-animation —+ * every number it computes is stale by the frame it lands. Same-document+ * jumps (card, margin rail) keep the animation: their layout is settled, so+ * there is nothing to race.+ */+ instant?: boolean;+ },+): boolean {const view = getEditorView(editor);- if (!view) return;+ if (!view) return false;const container = findScrollContainer(view.dom);// No scrollport of our own to drive (an embedded or content-sized editor):// ProseMirror's minimal scroll is still better than not moving at all.if (!container) {- editor.commands.scrollIntoView();- return;+ return applyJumpScroll(docName, () => editor.commands.scrollIntoView());}let start: { top: number; bottom: number };let end: { top: number; bottom: number };@@ -94,7 +157,7 @@ export function scrollAnchorIntoView(editor: Editor, range: { from: number; to:start = view.coordsAtPos(range.from);end = view.coordsAtPos(range.to);} catch {- return;+ return false;}const box = container.getBoundingClientRect();const delta = scrollDeltaForAnchor({@@ -104,10 +167,15 @@ export function scrollAnchorIntoView(editor: Editor, range: { from: number; to:viewBottom: box.bottom,insetTop: scrollportInsetTop(container),});- if (delta === 0) return;+ // Already comfortably placed. Reported as RAN: there is nothing a caller+ // should retry, and clicking through several comments on one paragraph must+ // not jolt the page for each.+ if (delta === 0) return true;const reduceMotion = window.matchMedia?.('(prefers-reduced-motion: reduce)').matches;- container.scrollTo({- top: container.scrollTop + delta,- behavior: reduceMotion ? 'auto' : 'smooth',- });+ return applyJumpScroll(docName, () =>+ container.scrollTo({+ top: container.scrollTop + delta,+ behavior: opts?.instant || reduceMotion ? 'auto' : 'smooth',+ }),+ );}diff --git a/packages/app/src/comments/store.settle-reporting.test.ts b/packages/app/src/comments/store.settle-reporting.test.tsnew file mode 100644index 000000000..20c60a6dc--- /dev/null+++ b/packages/app/src/comments/store.settle-reporting.test.ts@@ -0,0 +1,82 @@+/**+ * What a mutation reports, and what it must not.+ *+ * Every edit, delete, reopen and re-place ends in the same tail: refresh on+ * success, say so on failure. The failure message is the whole point of that+ * tail — a rejected edit used to look exactly like an accepted one — which+ * makes a FALSE failure the expensive bug here. The re-sync that follows a+ * successful mutation is a separate round trip over the same network, and+ * chained into the mutation's own rejection handler it made the edit that DID+ * land report itself as refused.+ */++import { beforeEach, describe, expect, test, vi } from 'vitest';++const toasted: string[] = [];+vi.mock('sonner', () => ({+ toast: { error: (message: string) => toasted.push(message) },+}));++vi.mock('./comments-client', () => ({+ listThreads: vi.fn(async () => []),+ createThread: vi.fn(),+ editComment: vi.fn(),+ reopenThread: vi.fn(),+ replaceAnchor: vi.fn(),+ queueThread: vi.fn(),+ unqueueThread: vi.fn(),+ deleteThread: vi.fn(),+ prepareDispatchBatch: vi.fn(async () => ({ results: [] })),+ completeDispatchBatch: vi.fn(async () => ({ results: [] })),+}));++describe('mutation reporting', () => {+ beforeEach(() => {+ vi.resetModules();+ vi.clearAllMocks();+ toasted.length = 0;+ });++ test('a refresh that fails after an accepted edit reports nothing', async () => {+ const api = await import('./comments-client');+ const store = await import('./store');+ vi.mocked(api.editComment).mockResolvedValue(undefined as never);+ // The mutation landed; it is the re-sync behind it that cannot reach the+ // server. The panel is briefly stale, which the next CC1 signal corrects —+ // the one thing that must not happen is telling the reviewer their saved+ // edit was refused.+ vi.mocked(api.listThreads).mockRejectedValue(new Error('network down'));++ store.editComment('t1', 'still true?');++ await vi.waitFor(() => expect(api.listThreads).toHaveBeenCalled());+ expect(toasted).toEqual([]);+ });++ test('a refused edit says so, in the server’s own words', async () => {+ const api = await import('./comments-client');+ const store = await import('./store');+ vi.mocked(api.editComment).mockRejectedValue(+ new Error('The quoted passage is not in the document'),+ );++ store.editComment('t1', 'still true?');++ await vi.waitFor(() => expect(toasted).toHaveLength(1));+ expect(toasted[0]).toContain('The quoted passage is not in the document');+ // Re-synced anyway: a rejection can still have changed server state, and+ // leaving the stale row on screen would be a second, quieter lie.+ expect(api.listThreads).toHaveBeenCalled();+ });++ test('a rejection with no message still reports the failure', async () => {+ const api = await import('./comments-client');+ const store = await import('./store');+ vi.mocked(api.deleteThread).mockRejectedValue(new Error(''));++ store.deleteThread('t1');++ await vi.waitFor(() => expect(toasted).toHaveLength(1));+ expect(toasted[0]).toMatch(/delete/i);+ });+});diff --git a/packages/app/src/comments/store.ts b/packages/app/src/comments/store.tsindex 95b51490a..70621003b 100644--- a/packages/app/src/comments/store.ts+++ b/packages/app/src/comments/store.ts@@ -20,10 +20,11 @@import { t } from '@lingui/core/macro';import { useSyncExternalStore } from 'react';import { toast } from 'sonner';+import { requestDocPanelTab } from '@/components/doc-panel-events';import { subscribeToDocumentsChanged } from '@/lib/documents-events';import type { DispatchPayload } from './comments-client';import * as api from './comments-client';-import { revealQueue } from './reveal-queue';+import { revealComments } from './reveal-queue';import type { CommentThread } from './types';const EMPTY: readonly CommentThread[] = Object.freeze([]);@@ -110,6 +111,9 @@ function toThread(meta: api.CommentThreadMeta): CommentThread {// request, and there is no history behind it to render.body: meta.latestComment,createdAt: meta.createdAt,+ // Collapsed to one field for rendering: the card states when this text was+ // last written, and an unedited thread's answer is when it was written.+ updatedAt: meta.updatedAt ?? meta.createdAt,// "Queued for the next batch" is what the UI shows as in-flight; the server// deliberately does not persist "an agent is working right now".queued: meta.queued,@@ -290,8 +294,9 @@ export function createThread(args: {return;}// Only after the server accepted it. Revealing optimistically would open- // the queue on a comment that then failed to anchor.- revealQueue();+ // the panel on a comment that then failed to anchor. Doc scope: the thing+ // to show is the comment just made, beside the passage it is on.+ revealComments('doc');emitCommentPosted();}).catch((err: unknown) => {@@ -335,7 +340,7 @@ export function createPropertyThread(args: {// Same as the passage path above: not chained into the outer `.catch`, so// it has to carry its own.void refresh(args.docName).catch(() => undefined);- revealQueue();+ revealComments('doc');emitCommentPosted();}).catch((err: unknown) => {@@ -357,15 +362,23 @@ export function createPropertyThread(args: {* API puts its reasons ("The quoted passage is not in the document").*/function settle(promise: Promise<unknown>, docName: string | undefined, failed: string): void {- void promise- .then(() => refresh(docName))- .catch((err: unknown) => {+ // Two handlers on one `.then`, NOT `.then(...).catch(...)`. Chained, the+ // success branch's refetch runs INSIDE the mutation's own catch: a network+ // blip on the re-sync then reports an edit that the server accepted as one it+ // refused, which is the exact lie this function exists to stop telling. The+ // re-sync is background on both branches — the mutation is what reports.+ void promise.then(+ () => {+ void refresh(docName).catch(() => undefined);+ },+ (err: unknown) => {toast.error(err instanceof Error && err.message ? `${failed} ${err.message}` : failed);// Re-sync anyway: a rejection can still have changed server state (a// thread deleted by another window), and leaving the stale row on screen// would be a second, quieter lie.void refresh(docName).catch(() => undefined);- });+ },+ );}export function editComment(threadId: string, body: string): void {@@ -380,6 +393,11 @@ export function editComment(threadId: string, body: string): void {*/export function reopenThread(threadId: string): void {const docName = getThreadById(threadId)?.docName;+ // The server reopens it QUEUED. An untick recorded before the send is still+ // sitting in the local set, and left there it would veto that — the comment+ // would come back open and unchecked, which is the second click reopening+ // exists to avoid.+ clearDeselection(threadId);settle(api.reopenThread(threadId), docName, t`Couldn't reopen that comment.`);}@@ -448,10 +466,6 @@ export function getQueue(): readonly string[] {return queueSnapshot;}-export function useQueue(): readonly string[] {- return useSyncExternalStore(subscribe, getQueue, () => EMPTY_QUEUE);-}-/** Queued minus whatever the reviewer unchecked — what a batch send actually ships. */export function getSelectedQueue(): readonly string[] {const queued = getQueue();@@ -481,15 +495,26 @@ export function getSelectedQueueForDoc(docName: string): readonly string[] {return getSelectedQueue().filter((id) => getThreadById(id)?.docName === docName);}+/**+ * Drop a thread from the local unticked set.+ *+ * `queued` is server state and this is the client's veto over it, so anything+ * that puts a comment back in the batch has to lift the veto too — otherwise the+ * server reports queued, the panel renders unchecked, and the two disagree with+ * nothing on screen explaining why.+ */+function clearDeselection(threadId: string): void {+ if (!deselected.has(threadId)) return;+ const next = new Set(deselected);+ next.delete(threadId);+ deselected = next;+ bumpSelection();+}+function addToQueue(threadId: string): void {const docName = getThreadById(threadId)?.docName;// Re-queuing clears any earlier deselection.- if (deselected.has(threadId)) {- const next = new Set(deselected);- next.delete(threadId);- deselected = next;- bumpSelection();- }+ clearDeselection(threadId);settle(api.queueThread(threadId), docName, t`Couldn't mark that comment to send.`);}@@ -547,20 +572,6 @@ export function setSendingAll(threadIds: readonly string[], sending: boolean): v});}-/**- * Re-check everything in the queue.- *- * Deselection is sticky — it lives in `deselected` until something clears it —- * so "put the queue on this message" has to mean the WHOLE queue. Without this,- * re-attaching after unchecking every item would attach a batch that carries- * nothing, and the control would look broken twice over.- */-export function selectAllQueued(): void {- if (deselected.size === 0) return;- deselected = new Set();- bumpSelection();-}-/** Check / uncheck a queued item without removing it from the queue. */export function toggleQueueSelection(threadId: string): void {const next = new Set(deselected);@@ -713,10 +724,10 @@ async function runDispatch(// UI-only signals (no server state)// ----------------------------------------------------------------------------const FOCUS_EVENT = 'ok:comment-focus-thread';-const POPOVER_EVENT = 'ok:comment-open-popover';-const START_EVENT = 'ok:comment-start';-const POSTED_EVENT = 'ok:comment-posted';+const FOCUS_EVENT = 'open-knowledge:comment-focus-thread';+const POPOVER_EVENT = 'open-knowledge:comment-open-popover';+const START_EVENT = 'open-knowledge:comment-start';+const POSTED_EVENT = 'open-knowledge:comment-posted';// The node-env unit tier imports this module and has no `window`, so touching// these emitters there would throw. One module-level stand-in (not a per-call@@ -785,6 +796,29 @@ export function subscribeActiveThread(listener: () => void): () => void {};}+/**+ * The thread whose in-doc popover is OPEN, for React — deliberately narrower+ * than the active thread, which also follows the pointer. The panel's card+ * wash keys on this: hover-driven washing meant every card lit itself up as+ * the pointer crossed it, noise with no information. A popover being open is+ * a fact worth mirroring; a pointer passing through is not.+ */+export function usePinnedThread(): string | null {+ return useSyncExternalStore(subscribePinnedThread, getPinnedThread, () => null);+}++// Module-level, like every other binding here: `useSyncExternalStore` tears the+// subscription down and rebuilds it whenever the subscribe function's identity+// changes, so an inline lambda re-subscribes on every render of every panel+// reading this.+function subscribePinnedThread(listener: () => void): () => void {+ return subscribeOpenThreadPopover(() => listener());+}++function getPinnedThread(): string | null {+ return pinnedThreadId;+}+/*** Which thread's in-doc popover is open — `null` for none.*@@ -796,6 +830,13 @@ export function subscribeActiveThread(listener: () => void): () => void {export function emitOpenThreadPopover(threadId: string | null): void {pinnedThreadId = threadId;recomputeActive();+ // Opening a thread also opens the Comments tab beside it — the popover shows+ // ONE comment, and the panel is where its neighbours, its checkbox column,+ // and the send all live. Here rather than at each open site (highlight click,+ // margin marker, jump) so no path can forget; a no-op when the tab is already+ // showing, and closing (null) deliberately leaves the panel as it is — the+ // reader opened it, dismissing a popover is not a statement about it.+ if (threadId !== null) requestDocPanelTab('comments');bus.dispatchEvent(new CustomEvent(POPOVER_EVENT, { detail: threadId }));}diff --git a/packages/app/src/comments/thread-age-stamp.dom.test.tsx b/packages/app/src/comments/thread-age-stamp.dom.test.tsxdeleted file mode 100644index d2a021364..000000000--- a/packages/app/src/comments/thread-age-stamp.dom.test.tsx+++ /dev/null@@ -1,80 +0,0 @@-/**- * The card's age stamp, at each rollover boundary.- *- * Every one of these was reachable before: the stamp ran hours up forever, so a- * week-old comment read "174h". The boundaries are the whole point — a unit that- * never hands over produces a number nobody converts in their head.- */--import { cleanup, render, screen } from '@testing-library/react';-import { afterEach, describe, expect, test } from 'vitest';-import { ThreadCard } from './ThreadCard';-import type { CommentThread } from './types';--const NOW = Date.UTC(2026, 7, 5, 12, 0, 0);-const SECOND = 1000;-const MINUTE = 60 * SECOND;-const HOUR = 60 * MINUTE;-const DAY = 24 * HOUR;--function renderAged(ageMs: number) {- const thread: CommentThread = {- id: 't1',- docName: 'recipes/radishes',- target: { kind: 'body' },- anchor: { quote: '2 bunches radishes', prefix: '', suffix: '', start: 0, end: 18 },- status: 'open',- body: 'sfcs',- createdAt: NOW - ageMs,- queued: true,- };- return render(- <ThreadCard thread={thread} now={NOW} cardRef={() => {}} focused={false} sending={false} />,- );-}--afterEach(cleanup);--describe('the age stamp', () => {- test('counts seconds, then minutes, then hours', () => {- renderAged(5 * SECOND);- expect(screen.getByText('5s')).toBeTruthy();- cleanup();-- renderAged(5 * MINUTE);- expect(screen.getByText('5m')).toBeTruthy();- cleanup();-- renderAged(5 * HOUR);- expect(screen.getByText('5h')).toBeTruthy();- });-- test('hands over to days at 24 hours', () => {- // The regression case: this used to render "174h".- renderAged(174 * HOUR);- expect(screen.queryByText('174h')).toBeNull();- cleanup();-- renderAged(2 * DAY);- expect(screen.getByText('2d')).toBeTruthy();- });-- test('does not round up into a unit it should have rolled over to', () => {- // 23.6 hours is not a day, and 6.7 days is not a week — `round` promoted- // both, producing "24h" and "7d", ages neither branch is meant to print.- renderAged(23.6 * HOUR);- expect(screen.getByText('23h')).toBeTruthy();- cleanup();-- renderAged(6.7 * DAY);- expect(screen.getByText('6d')).toBeTruthy();- });-- test('past a week it becomes a date', () => {- // Days stop meaning anything at that distance, so the stamp says WHEN- // instead of how long — the same handover the Timeline panel makes.- renderAged(30 * DAY);- expect(screen.queryByText('30d')).toBeNull();- expect(screen.getByText(new Date(NOW - 30 * DAY).toLocaleDateString())).toBeTruthy();- });-});diff --git a/packages/app/src/comments/thread-card-click.dom.test.tsx b/packages/app/src/comments/thread-card-click.dom.test.tsxnew file mode 100644index 000000000..e598f0ef3--- /dev/null+++ b/packages/app/src/comments/thread-card-click.dom.test.tsx@@ -0,0 +1,189 @@+/**+ * One card, two click meanings — and neither may bleed into the other.+ *+ * The card's whitespace and body are a bigger target for its own TICK; the+ * quote row keeps the JUMP. They used to differ: the body meant "send only this+ * one", clearing every other comment, which readers reached for expecting the+ * additive meaning they get from a checklist. What these pin is the split —+ * each gesture fires its own action and never also the other.+ */++import { cleanup, fireEvent, render, screen } from '@testing-library/react';+import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';+import { TooltipProvider } from '@/components/ui/tooltip';+import type { CommentThread } from './types';++const captured = { revealed: [] as string[], toggled: [] as string[], deleted: 0 };++// No visible editor: the jump routes through `revealThread`, which is the one+// observable seam shared by the local and cross-document paths.+vi.doMock('@/editor/active-editor', () => ({+ getVisibleEditorForDoc: () => null,+}));++vi.doMock('./comment-chips', () => ({+ propertyAddress: (key: string) => key,+ revealThread: (thread: CommentThread) => {+ captured.revealed.push(thread.id);+ },+}));++vi.doMock('./store', () => ({+ clearActiveThread: () => {},+ deleteThread: () => {+ captured.deleted += 1;+ },+ editComment: () => {},+ emitOpenThreadPopover: () => {},+ reopenThread: () => {},+ replaceOrphan: () => {},+ setActiveThread: () => {},+ toggleSending: (threadId: string) => {+ captured.toggled.push(threadId);+ },+}));++const { ThreadCard } = await import('./ThreadCard');++function thread(overrides: Partial<CommentThread> = {}): CommentThread {+ return {+ id: 't1',+ docName: 'recipes/stir-fry',+ target: { kind: 'body' },+ anchor: { quote: 'the tofu', prefix: '', suffix: '', start: 0, end: 8 },+ status: 'open',+ body: 'press it?',+ createdAt: 1000,+ updatedAt: 1000,+ queued: true,+ ...overrides,+ };+}++function renderCard(overrides: Partial<CommentThread> = {}, showQuote = true) {+ return render(+ <TooltipProvider>+ <ThreadCard+ thread={thread(overrides)}+ cardRef={() => {}}+ focused={false}+ sending={false}+ showQuote={showQuote}+ />+ </TooltipProvider>,+ );+}++beforeEach(() => {+ captured.revealed = [];+ captured.toggled = [];+ captured.deleted = 0;+ // A selection left behind by one test would change what a click means in the+ // next — the card now reads it.+ window.getSelection()?.removeAllRanges();+});++afterEach(() => cleanup());++describe('clicking a card', () => {+ test('the body text ticks this comment', () => {+ renderCard();+ fireEvent.click(screen.getByTestId('thread-comment-body'));+ expect(captured.toggled).toEqual(['t1']);+ expect(captured.revealed).toEqual([]);+ });++ test("the card's whitespace ticks this comment", () => {+ renderCard();+ fireEvent.click(screen.getByRole('article'));+ expect(captured.toggled).toEqual(['t1']);+ });++ test('the checkbox does the same thing, once', () => {+ // The card body is a bigger target for this control, not a second one, so+ // a click on the box itself must not also run the card handler.+ renderCard();+ fireEvent.click(screen.getByRole('checkbox'));+ expect(captured.toggled).toEqual(['t1']);+ });++ test('the quote row keeps the jump, and a jump is not a tick', () => {+ renderCard();+ // Found by the quote it shows — the row's hint is a Tooltip, which renders+ // nothing until it opens, so the quote is the button's accessible name.+ const row = screen.getByText(/the tofu/).closest('button');+ expect(row).not.toBeNull();+ if (row) fireEvent.click(row);+ expect(captured.revealed).toEqual(['t1']);+ expect(captured.toggled).toEqual([]);+ });++ test('delete stays delete', () => {+ renderCard();+ fireEvent.click(screen.getByRole('button', { name: /delete this comment/i }));+ expect(captured.deleted).toBe(1);+ expect(captured.toggled).toEqual([]);+ });++ test('a resolved card has no tick, so its body does nothing', () => {+ renderCard({ status: 'resolved' });+ fireEvent.click(screen.getByRole('article'));+ expect(captured.toggled).toEqual([]);+ });++ test('the popover card has no batch column beside it, so its body does nothing', () => {+ renderCard({}, false);+ fireEvent.click(screen.getByRole('article'));+ expect(captured.toggled).toEqual([]);+ });+});++/**+ * Selecting a card's words is reading, not ticking.+ *+ * A drag that ends inside the element it started in still fires a click on it,+ * so copying a sentence out of a comment also flipped whether that comment was+ * going to be sent — the batch changed under a gesture that never touched a+ * control.+ */+describe('selecting text in a card', () => {+ /** Put a real selection across `node`'s text, the way a drag leaves one. */+ function selectTextIn(node: Node) {+ const range = document.createRange();+ range.selectNodeContents(node);+ const selection = window.getSelection();+ selection?.removeAllRanges();+ selection?.addRange(range);+ }++ test('a drag across the comment body does not tick the card', () => {+ renderCard();+ selectTextIn(screen.getByTestId('thread-comment-body'));+ fireEvent.click(screen.getByRole('article'));++ expect(captured.toggled).toEqual([]);+ });++ test('a selection somewhere else on the page leaves the click alone', () => {+ // The panel sits beside a document whose text readers select constantly.+ // Reading the selection without asking WHERE it is would swallow every+ // click on a card made while a passage was highlighted.+ renderCard();+ const elsewhere = document.createElement('p');+ elsewhere.textContent = 'a passage in the document';+ document.body.append(elsewhere);+ selectTextIn(elsewhere);++ fireEvent.click(screen.getByRole('article'));+ expect(captured.toggled).toEqual(['t1']);+ elsewhere.remove();+ });++ test('an ordinary click with nothing selected still ticks', () => {+ renderCard();+ window.getSelection()?.removeAllRanges();+ fireEvent.click(screen.getByRole('article'));++ expect(captured.toggled).toEqual(['t1']);+ });+});diff --git a/packages/app/src/comments/thread-edit-save.dom.test.tsx b/packages/app/src/comments/thread-edit-save.dom.test.tsxindex 08c0765bd..c538f5156 100644--- a/packages/app/src/comments/thread-edit-save.dom.test.tsx+++ b/packages/app/src/comments/thread-edit-save.dom.test.tsx@@ -3,28 +3,53 @@** The field used to be Enter-only. For an IME user the commit Enter belongs to* the composition — the keydown guard eats it, correctly — and with no visible- * way to save, the revision sat in the field until the card closed and was- * silently gone. The row is the fix, so what is worth pinning is that Save- * actually writes the revision through, that Cancel actually discards it, and- * that the no-op cases (unchanged, emptied) do not write at all.+ * way to save, the revision sat in the field until the card closed. The row is+ * the fix, so what is worth pinning is that Save actually writes the revision+ * through, that Cancel actually discards it, and that the no-op cases+ * (unchanged, emptied) do not write at all.+ *+ * Cancel carries a second job the button did not have when the field was a+ * plain textarea: the card now SAVES on click-away, so a discard has to settle+ * the edit itself or the unmount commit would file the words Cancel just threw+ * out.*/import { cleanup, fireEvent, render, screen } from '@testing-library/react';import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';+import { MockComposerMentionInput } from '@/components/acp/composer-mention-input.test-helper';+import { TooltipProvider } from '@/components/ui/tooltip';import type { CommentThread } from './types';const editComment = vi.fn();+const deleteThread = vi.fn();++// The real field is a ProseMirror contentEditable that jsdom cannot type into.+vi.doMock('@/editor/ComposerMentionInput', () => ({+ ComposerMentionInput: MockComposerMentionInput,+}));++vi.doMock('@/editor/active-editor', () => ({+ getVisibleEditorForDoc: () => null,+}));++vi.doMock('./comment-chips', () => ({+ propertyAddress: (key: string) => key,+ revealThread: () => {},+}));vi.doMock('./store', () => ({editComment,- toggleSending: () => {},- deleteThread: () => {},+ clearActiveThread: () => {},+ deleteThread,+ emitOpenThreadPopover: () => {},reopenThread: () => {},replaceOrphan: () => {},setActiveThread: () => {},- clearActiveThread: () => {},+ toggleSending: () => {},}));+const { ThreadCard } = await import('./ThreadCard');+function thread(overrides: Partial<CommentThread> = {}): CommentThread {return {id: 't1',@@ -34,45 +59,59 @@ function thread(overrides: Partial<CommentThread> = {}): CommentThread {status: 'open',body: 'press it?',createdAt: 1000,+ updatedAt: 1000,queued: true,...overrides,};}-async function renderEditing(t: CommentThread = thread()) {- const { ThreadCard } = await import('./ThreadCard');+function renderEditing(t: CommentThread = thread()) {const view = render(- <ThreadCard thread={t} now={2000} cardRef={() => {}} focused={false} sending={false} />,+ <TooltipProvider>+ <ThreadCard thread={t} cardRef={() => {}} focused={false} sending={false} />+ </TooltipProvider>,);fireEvent.click(screen.getByRole('button', { name: /edit this comment/i }));- const field = (await screen.findByDisplayValue(t.body)) as HTMLTextAreaElement;+ // Seeded with the current text by the card's own effect, so this is also the+ // check that the field opens holding the comment rather than empty.+ const field = screen.getByRole('textbox', { name: /edit this comment/i });+ expect((field as HTMLTextAreaElement).value).toBe(t.body);return { view, field };}-beforeEach(() => editComment.mockClear());+/** Type into the field the way the user would — every keystroke, so the card's+ * emptiness tracking and its live-draft mirror both see it. */+function type(field: HTMLElement, value: string) {+ fireEvent.change(field, { target: { value } });+}++beforeEach(() => {+ editComment.mockClear();+ deleteThread.mockClear();+});afterEach(() => cleanup());describe('saving an edit', () => {- test('the Save button writes the revision through and closes the field', async () => {- const { field } = await renderEditing();- fireEvent.change(field, { target: { value: 'press it overnight' } });+ test('the Save button writes the revision through and closes the field', () => {+ const { field } = renderEditing();+ type(field, 'press it overnight');fireEvent.click(screen.getByRole('button', { name: /save this comment/i }));expect(editComment).toHaveBeenCalledWith('t1', 'press it overnight');- expect(screen.queryByRole('textbox')).toBeNull();+ expect(screen.queryByRole('textbox', { name: /edit this comment/i })).toBeNull();});- test('an unchanged comment closes without a write', async () => {- await renderEditing();+ test('an unchanged comment closes without a write', () => {+ renderEditing();fireEvent.click(screen.getByRole('button', { name: /save this comment/i }));expect(editComment).not.toHaveBeenCalled();- expect(screen.queryByRole('textbox')).toBeNull();+ expect(screen.queryByRole('textbox', { name: /edit this comment/i })).toBeNull();});- test('an emptied field cannot be saved', async () => {- const { field } = await renderEditing();- fireEvent.change(field, { target: { value: ' ' } });+ test('an emptied field cannot be saved', () => {+ const { field } = renderEditing();+ type(field, ' ');const save = screen.getByRole('button', { name: /save this comment/i });expect(save.hasAttribute('disabled')).toBe(true);@@ -80,16 +119,66 @@ describe('saving an edit', () => {});describe('cancelling an edit', () => {- test('Cancel discards the revision and the next open seeds the original', async () => {- const { field } = await renderEditing();- fireEvent.change(field, { target: { value: 'something else entirely' } });- fireEvent.click(screen.getByRole('button', { name: /cancel/i }));+ test('Cancel discards the revision and the next open seeds the original', () => {+ const { field } = renderEditing();+ type(field, 'something else entirely');+ fireEvent.click(screen.getByRole('button', { name: /^cancel$/i }));expect(editComment).not.toHaveBeenCalled();- expect(screen.queryByRole('textbox')).toBeNull();+ expect(screen.queryByRole('textbox', { name: /edit this comment/i })).toBeNull();// The discarded draft must not leak into the next edit.fireEvent.click(screen.getByRole('button', { name: /edit this comment/i }));- expect(await screen.findByDisplayValue('press it?')).toBeTruthy();+ const reopened = screen.getByRole('textbox', { name: /edit this comment/i });+ expect((reopened as HTMLTextAreaElement).value).toBe('press it?');+ });++ test('Cancel stands the click-away commit down — an unmount after it writes nothing', () => {+ const { view, field } = renderEditing();+ type(field, 'something else entirely');+ fireEvent.click(screen.getByRole('button', { name: /^cancel$/i }));+ view.unmount();++ expect(editComment).not.toHaveBeenCalled();+ });+});++/**+ * The click-away save itself.+ *+ * The guard above only means something if an unmount with a live draft DOES+ * write — otherwise it passes against a card that never saves anything, which+ * is exactly what it did while the field double dropped `onContentChange` on+ * the floor and left the live draft permanently null.+ */+describe('the click-away commit', () => {+ test('an unmount mid-edit files what was typed', () => {+ const { view, field } = renderEditing();+ type(field, 'press it overnight');+ // The popover host closes on any outside click, unmounting the card with+ // the field still open — Notion's behaviour is that this SAVES.+ view.unmount();++ expect(editComment).toHaveBeenCalledWith('t1', 'press it overnight');+ });++ test('an unmount with the text untouched writes nothing', () => {+ const { view } = renderEditing();+ view.unmount();++ expect(editComment).not.toHaveBeenCalled();+ });++ test('deleting mid-edit discards the revision instead of filing it', () => {+ // The card unmounts either way, but only one of them means "file what I+ // typed". Filed against a deleted thread, the write is refused and the+ // reader gets a failure toast on top of a delete that worked.+ const { view, field } = renderEditing();+ type(field, 'press it overnight');+ fireEvent.click(screen.getByRole('button', { name: /delete this comment/i }));+ view.unmount();++ expect(deleteThread).toHaveBeenCalledWith('t1');+ expect(editComment).not.toHaveBeenCalled();});});diff --git a/packages/app/src/comments/thread-edited-stamp.dom.test.tsx b/packages/app/src/comments/thread-edited-stamp.dom.test.tsxnew file mode 100644index 000000000..319f821c9--- /dev/null+++ b/packages/app/src/comments/thread-edited-stamp.dom.test.tsx@@ -0,0 +1,80 @@+/**+ * The card's last-edited stamp.+ *+ * A clock time, not an age. Two things it has to get right: how much date to+ * print (none today, no year this year), and WHICH time it prints — the stamp+ * follows the comment's newest revision, so an edited comment stops reading as+ * the moment it was first written.+ */++import { cleanup, render, screen } from '@testing-library/react';+import { afterEach, describe, expect, test, vi } from 'vitest';+import { TooltipProvider } from '@/components/ui/tooltip';+import { ThreadCard } from './ThreadCard';+import type { CommentThread } from './types';++/** Local time on purpose: the stamp's today-or-not branch is a local-day test. */+const NOW = new Date(2026, 7, 5, 12, 0, 0).getTime();+const MINUTE = 60 * 1000;+const HOUR = 60 * MINUTE;+const DAY = 24 * HOUR;++function renderEdited(updatedAt: number) {+ vi.spyOn(Date, 'now').mockReturnValue(NOW);+ const thread: CommentThread = {+ id: 't1',+ docName: 'recipes/radishes',+ target: { kind: 'body' },+ anchor: { quote: '2 bunches radishes', prefix: '', suffix: '', start: 0, end: 18 },+ status: 'open',+ body: 'sfcs',+ createdAt: NOW - 400 * DAY,+ updatedAt,+ queued: true,+ };+ // The card's hints are shadcn Tooltips, which Radix requires a provider for.+ return render(+ <TooltipProvider>+ <ThreadCard thread={thread} cardRef={() => {}} focused={false} sending={false} />+ </TooltipProvider>,+ );+}++function timeOf(at: number): string {+ return new Date(at).toLocaleTimeString(undefined, { hour: 'numeric', minute: '2-digit' });+}++afterEach(() => {+ cleanup();+ vi.restoreAllMocks();+});++describe('the last-edited stamp', () => {+ test('prints the time alone for a comment edited today', () => {+ const at = NOW - 3 * HOUR;+ renderEdited(at);+ expect(screen.getByText(timeOf(at))).toBeTruthy();+ });++ test('adds the date once it is not today', () => {+ const at = NOW - 3 * DAY;+ renderEdited(at);+ // The time alone would be ambiguous across days, so it must not stand alone.+ expect(screen.queryByText(timeOf(at))).toBeNull();+ expect(screen.getByText(/Aug 2/)).toBeTruthy();+ });++ test('adds the year only outside this one', () => {+ renderEdited(NOW - 400 * DAY);+ expect(screen.getByText(/2025/)).toBeTruthy();+ });++ test('follows the revision, not the creation', () => {+ // The whole reason `updatedAt` exists: this thread was written over a year+ // ago (see `createdAt` above) and revised an hour ago.+ const at = NOW - HOUR;+ renderEdited(at);+ expect(screen.getByText(timeOf(at))).toBeTruthy();+ expect(screen.queryByText(/2025/)).toBeNull();+ });+});diff --git a/packages/app/src/comments/types.ts b/packages/app/src/comments/types.tsindex 892eea55e..a36087ba2 100644--- a/packages/app/src/comments/types.ts+++ b/packages/app/src/comments/types.ts@@ -67,6 +67,13 @@ export interface CommentThread {/** The comment's current text — its newest revision. */body: string;createdAt: number;+ /**+ * When `body` was last written — the comment's own creation time until someone+ * revises it. Always set here, unlike the server's optional field: every card+ * shows this, so the fallback belongs at the one place the projection is built+ * rather than at each render site.+ */+ updatedAt: number;/*** The comment is in the dispatch queue, waiting to be sent in the next batch.*diff --git a/packages/app/src/components/BottomComposer.dom.test.tsx b/packages/app/src/components/BottomComposer.dom.test.tsxindex ed9f6dc96..f22b01ffa 100644--- a/packages/app/src/components/BottomComposer.dom.test.tsx+++ b/packages/app/src/components/BottomComposer.dom.test.tsx@@ -261,6 +261,41 @@ vi.doMock('sonner', () => ({},}));+/**+ * The comments batch, doubled.+ *+ * Zero by default, which is what the real store reports here — nothing has+ * loaded — so every test that predates this sees the composer it always saw. The+ * comment-chip tests set a count and fire `commentPosted` themselves.+ */+let selectedCommentCount = 0;+let selectedCommentDocs: readonly { docName: string; count: number }[] = [];+const commentPostedListeners = new Set<() => void>();+function emitCommentPostedForTest() {+ for (const listener of commentPostedListeners) listener();+}++vi.doMock('@/comments/store', () => ({+ dispatchComments: vi.fn(async () => []),+ subscribeCommentPosted: (listener: () => void) => {+ commentPostedListeners.add(listener);+ return () => commentPostedListeners.delete(listener);+ },+}));++vi.doMock('@/comments/comment-chips', async () => {+ // Only the count is doubled. The chip itself is the real component, so what+ // these assert is what a reader sees rather than a stand-in for it.+ const actual = await vi.importActual<typeof import('@/comments/comment-chips')>(+ '@/comments/comment-chips',+ );+ return {+ ...actual,+ useSelectedCommentCount: () => selectedCommentCount,+ useSelectedCommentDocs: () => selectedCommentDocs,+ };+});+const FIRST_SUGGESTION = /Research the extinction of flightless birds/i;const DEFAULT_AGENT_NAME = VISIBLE_TARGETS[0]?.displayName;@@ -285,7 +320,17 @@ async function renderComposer() {enableInstalledDesktopTargets();const { BottomComposer } = await import('./BottomComposer');- return render(<BottomComposer docName={docName} surface="wysiwyg" {...extra} />);+ const { TooltipProvider } = await import('@/components/ui/tooltip');+ // Production wraps the app in one provider (main.tsx); the comments chip's+ // per-file breakdown is a Radix Tooltip, which throws without one.+ //+ // As RTL's `wrapper`, NOT a wrapping element: `rerender` reuses the wrapper+ // but replaces the element it is given, so a provider written into the tree+ // here would vanish on the first rerender — remounting the composer and+ // dropping the draft state half these tests are about.+ return render(<BottomComposer docName={docName} surface="wysiwyg" {...extra} />, {+ wrapper: TooltipProvider,+ });}// Variant that supplies a docked-terminal launcher so the picker offers the@@ -297,6 +342,7 @@ async function renderComposerWithTerminal(enableInstalledDesktopTargets();const { BottomComposer } = await import('./BottomComposer');const { TerminalLaunchProvider } = await import('./handoff/TerminalLaunchContext');+ const { TooltipProvider } = await import('@/components/ui/tooltip');return render(<TerminalLaunchProvidervalue={{@@ -312,6 +358,7 @@ async function renderComposerWithTerminal(><BottomComposer docName={docName} surface="wysiwyg" /></TerminalLaunchProvider>,+ { wrapper: TooltipProvider },);}@@ -428,6 +475,9 @@ beforeEach(() => {buildArgs.length = 0;terminalLaunchCalls.length = 0;toastErrors.length = 0;+ selectedCommentCount = 0;+ selectedCommentDocs = [];+ commentPostedListeners.clear();try {window.localStorage.clear();} catch {@@ -1430,3 +1480,55 @@ describe('BottomComposer ⇧⌘L — overlay gate', () => {expect(document.activeElement).not.toBe(composerInput);});});++/**+ * The comments chip's attached bit belongs to the DRAFT, not to the queue.+ *+ * The ✕ says "not this message" about the batch as it stood. Writing another+ * comment is a fresh statement of intent about the same message — the same+ * reason posting a comment queues it rather than asking twice — so the batch+ * comes back. Without that, the comment you had just written sat outside the+ * send with a dismissed chip as the only clue.+ */+describe('BottomComposer (queued-comments chip lifecycle)', () => {+ /** Attached: the ✕ that takes the batch off this message. */+ const DETACH = /leave these comments out of this message/i;+ /** Detached: the chip has become the way back. */+ const REATTACH = /add your comments to this message/i;++ test('a ticked batch rides the message by default', async () => {+ selectedCommentCount = 2;+ await renderComposer();+ expect(screen.getByRole('button', { name: DETACH })).toBeTruthy();+ });++ test('the ✕ takes the batch off this message and leaves the way back', async () => {+ selectedCommentCount = 2;+ await renderComposer();+ fireEvent.click(screen.getByRole('button', { name: DETACH }));+ expect(screen.queryByRole('button', { name: DETACH })).toBeNull();+ expect(screen.getByRole('button', { name: REATTACH })).toBeTruthy();+ });++ test('posting a new comment re-attaches a dismissed batch', async () => {+ selectedCommentCount = 2;+ await renderComposer();+ fireEvent.click(screen.getByRole('button', { name: DETACH }));+ expect(screen.queryByRole('button', { name: DETACH })).toBeNull();++ // What `createThread` fires once the server has accepted the comment.+ selectedCommentCount = 3;+ act(() => emitCommentPostedForTest());++ expect(screen.getByRole('button', { name: DETACH })).toBeTruthy();+ expect(screen.queryByRole('button', { name: REATTACH })).toBeNull();+ });++ test('a post while the batch is already attached changes nothing', async () => {+ selectedCommentCount = 1;+ await renderComposer();+ selectedCommentCount = 2;+ act(() => emitCommentPostedForTest());+ expect(screen.getByRole('button', { name: DETACH })).toBeTruthy();+ });+});diff --git a/packages/app/src/components/BottomComposer.tsx b/packages/app/src/components/BottomComposer.tsxindex 4225d93cc..c2e81bb2a 100644--- a/packages/app/src/components/BottomComposer.tsx+++ b/packages/app/src/components/BottomComposer.tsx@@ -35,17 +35,11 @@ import { toast } from 'sonner';import {composeCommentBatchInstruction,QueuedCommentsChip,- QueuedCommentsList,toCommentBatchItem,- useQueuedComments,useSelectedCommentCount,+ useSelectedCommentDocs,} from '@/comments/comment-chips';-import {- type BatchPreparedItem,- dispatchComments,- selectAllQueued,- subscribeCommentPosted,-} from '@/comments/store';+import { type BatchPreparedItem, dispatchComments, subscribeCommentPosted } from '@/comments/store';import { RegisteredAgentIcon } from '@/components/acp/RegisteredAgentIcon';import { ComposerContextChips } from '@/components/ComposerContextChips';import { AgentSplitButton } from '@/components/handoff/AgentSplitButton';@@ -436,22 +430,22 @@ export function BottomComposer({// the top row never duplicates an inline reference. Reset on dispatch/clear.const [touchedFiles, setTouchedFiles] = useState<readonly string[]>([]);const [dismissedFiles, setDismissedFiles] = useState<ReadonlySet<string>>(() => new Set());- // Comments queued from the selection composer — they ride this composer's- // chip row and its send button.- const queuedComments = useQueuedComments();// The count that matters is what a send would carry — the CHECKED subset.// Unchecking every item leaves the queue non-empty but the send empty, so// gate the send button on this too rather than on the raw queue length.const selectedCommentCount = useSelectedCommentCount();- const [commentsExpanded, setCommentsExpanded] = useState(false);- // Attached = "part of THIS message", and OFF until asked for. An attached queue- // takes over the send button and the placeholder, so attaching by itself would- // let a comment left anywhere in the project repoint a composer the user opened- // for an unrelated question. The `+` menu's toggle is the way in, and queueing- // another comment does not flip it — a default that re-asserts itself is not a- // default. Dispatching the batch is what the Queue panel's own send is for.- const [commentsAttached, setCommentsAttached] = useState(false);- const queueSize = queuedComments.length;+ // The files the batch draws from — the chip says so when there is more than one.+ const selectedCommentDocs = useSelectedCommentDocs();+ // Ticked in the Comments panel = riding this message, so this starts ON.+ // There is no attach step to find: the panel's checkboxes were already a+ // picker, and a second opt-in here meant a batch you had just built sat one+ // differently-shaped click away from the send meant to carry it.+ //+ // The chip's ✕ turns it off for THIS draft and nothing else — a composer+ // opened for an unrelated question is a statement about the message, not+ // about which comments you meant to send, so the ticks stay as they were and+ // the chip is the way back.+ const [commentsAttached, setCommentsAttached] = useState(true);const hasQueuedComments = selectedCommentCount > 0 && commentsAttached;// The current inline-mention `@path` set, pushed up from the editor — used to// dedup the top row against inline mentions (the live invariant).@@ -527,6 +521,12 @@ export function BottomComposer({subscribeCommentPosted(() => {setPinnedSelection(null);setSelectionExpanded(false);+ // A NEW comment re-attaches the batch. The ✕ says "not this message",+ // about the batch as it stood; writing another one is a fresh statement+ // of intent about the same message, and the same reason posting queues a+ // comment rather than asking twice. Without this the comment you just+ // wrote sat outside the send, with a dismissed chip as the only clue.+ setCommentsAttached(true);}),[],);@@ -666,11 +666,11 @@ export function BottomComposer({// sticky-dismissed tracking (and `inlineMentions` follows the cleared editor).setTouchedFiles([]);setDismissedFiles(new Set());- // The queue detaches with the rest of the draft's context. Left on, the next- // message would silently carry whatever had been queued since — the same- // surprise as attaching by default, just deferred a send.- setCommentsAttached(false);- setCommentsExpanded(false);+ // Back to the default for the next message. The TICKS are the panel's state+ // and deliberately survive — this only resets the one bit that belongs to+ // the draft, so a batch dismissed from one message is not silently dismissed+ // from every message after it.+ setCommentsAttached(true);// Clear the SHARED draft too so a sent prompt does not reappear in the// create-screen hero (or on the next navigation back to a doc).clearComposerDraft();@@ -1070,44 +1070,23 @@ export function BottomComposer({) : null}{/* Queued comments ride the same chip row as files + the selection pill:the queue lives in the composer you already use, not a separate- dispatch surface. The chip is the attach control too, so it renders on- the RAW queue rather than on what a send would carry — nothing else- would say a queue exists while the batch is still detached. */}- {/* Gated here as well as inside the chip: `ComposerContextChips` decides- whether to render its row at all by counting children, and an element- that returns null still counts as one. An empty queue has to- contribute NO child, or the chip row appears as an empty strip. */}- {queueSize > 0 && (- <>- <QueuedCommentsChip- // Attached, the count is what a SEND carries, so unchecking an item- // moves it. Detached the chip shows no number, so the raw queue is- // what decides it renders at all.- count={hasQueuedComments ? selectedCommentCount : queueSize}- // `hasQueuedComments`, not `commentsAttached`: unchecking the LAST- // item means nothing rides this message, which is the detached- // state however it was reached. Keying on the flag alone left a- // countless chip above a list of unchecked rows — attached in name,- // carrying nothing.- attached={hasQueuedComments}- expanded={commentsExpanded}- onAttach={() => {- setCommentsAttached(true);- // Deselection is sticky, so re-attaching has to re-check the- // queue — otherwise this puts an empty batch on the message and- // the chip bounces straight back to detached.- selectAllQueued();- }}- onToggleExpanded={() => setCommentsExpanded((open) => !open)}- onDismiss={() => {- setCommentsAttached(false);- setCommentsExpanded(false);- }}- />- {hasQueuedComments && commentsExpanded && (- <QueuedCommentsList threads={queuedComments} />- )}- </>+ dispatch surface. What is ticked in the Comments panel is what this+ counts — the panel is the picker, and the chip is its read-out.++ Gated on the TICKED count, not on `hasQueuedComments`: detached, the+ chip is the way back and has to still be there. Gated here as well as+ inside the chip because `ComposerContextChips` decides whether to+ render its row at all by counting children, and an element that+ returns null still counts as one — nothing ticked has to contribute+ NO child, or the chip row appears as an empty strip. */}+ {selectedCommentCount > 0 && (+ <QueuedCommentsChip+ count={selectedCommentCount}+ docs={selectedCommentDocs}+ attached={commentsAttached}+ onAttach={() => setCommentsAttached(true)}+ onDismiss={() => setCommentsAttached(false)}+ />)}</ComposerContextChips><div className="flex items-end gap-2">diff --git a/packages/app/src/components/DocPanel.tsx b/packages/app/src/components/DocPanel.tsxindex 9cfc78802..b5d2654e5 100644--- a/packages/app/src/components/DocPanel.tsx+++ b/packages/app/src/components/DocPanel.tsx@@ -5,6 +5,7 @@ import { Trans, useLingui } from '@lingui/react/macro';import { AlertTriangle, Clock, Link2, ListTree, MessageSquare, Network } from 'lucide-react';import { lazy, Suspense, useEffect } from 'react';import { CommentsTab } from '@/comments/CommentsTab';+import { setCommentsPanelOnScreen } from '@/comments/comments-panel-visibility';import {composeFixAllProblemsTerminalPaste,composeLintFixTerminalPaste,@@ -95,6 +96,11 @@ interface DocPanelProps {onActiveTabChange: (tab: PanelTab) => void;/** Active mode — controlled by presence-bar avatar clicks + the back arrow. */mode: DocPanelMode;+ /** Whether the right rail is collapsed. The panel stays MOUNTED at zero width+ * when it is, so this is the half of "on screen" the tree cannot see. Only+ * published outward (see `setCommentsPanelOnScreen`), never rendered — the+ * collapsed rail's own `inert` already handles focus and the a11y tree. */+ isCollapsed?: boolean;}export function DocPanel({@@ -103,6 +109,7 @@ export function DocPanel({activeTab,onActiveTabChange,mode,+ isCollapsed = false,}: DocPanelProps) {const { t } = useLingui();// Live, mode-agnostic lint diagnostics for the active doc — drives both the@@ -189,6 +196,15 @@ export function DocPanel({const tabs = singleFile ? baseTabs : [...baseTabs, ...COMMENT_TABS];const effectiveTab: PanelTab = tabs.some((tab) => tab.id === activeTab) ? activeTab : 'outline';const showTabStrip = mode === 'doc' && tabs.length > 1;+ // Published for surfaces that offer a route TO the queue — the selection+ // composer withholds its "View comments" button while the reader is already+ // looking at one. The effective tab rather than `activeTab`: a persisted+ // 'comments' selection is coerced away in single-file mode, and the button+ // must stay on offer when the tab it points at is not the one showing.+ useEffect(() => {+ setCommentsPanelOnScreen(!isCollapsed && mode === 'doc' && effectiveTab === 'comments');+ return () => setCommentsPanelOnScreen(false);+ }, [isCollapsed, mode, effectiveTab]);return (<>{/* In `'doc'` mode: the info sub-tabs render as the panel header.diff --git a/packages/app/src/components/EditorArea.tsx b/packages/app/src/components/EditorArea.tsxindex a80e35e93..54ac920c6 100644--- a/packages/app/src/components/EditorArea.tsx+++ b/packages/app/src/components/EditorArea.tsx@@ -1772,6 +1772,7 @@ function EditorAreaInner({activeTab={activeTab}onActiveTabChange={onActiveTabChange}mode={docPanelMode}+ isCollapsed={isCollapsed}/></ResizablePanel></>diff --git a/packages/app/src/components/EditorTabs.dom.test.tsx b/packages/app/src/components/EditorTabs.dom.test.tsxindex b5aa61e87..1588c9556 100644--- a/packages/app/src/components/EditorTabs.dom.test.tsx+++ b/packages/app/src/components/EditorTabs.dom.test.tsx@@ -1316,7 +1316,9 @@ describe('EditorTabs runtime behavior', () => {const unpinButton = screen.getByRole('button', { name: 'Unpin docs/team/readme.txt' });expect(unpinButton.getAttribute('title')).toBeNull();- expectVisualClassTokens(unpinButton.className, ['text-primary']);+ // `text-primary!` — the important modifier is part of the token, and the+ // pinned tint only holds because it outranks the button variant's own color.+ expectVisualClassTokens(unpinButton.className, ['text-primary!']);fireEvent.click(unpinButton);expect(unpinTab).toHaveBeenCalledWith('docs/team/readme');diff --git a/packages/app/src/components/PanelScopeHeader.tsx b/packages/app/src/components/PanelScopeHeader.tsxindex 66b795cde..b7f308acf 100644--- a/packages/app/src/components/PanelScopeHeader.tsx+++ b/packages/app/src/components/PanelScopeHeader.tsx@@ -4,9 +4,13 @@ import { ToggleGroup, ToggleGroupItem } from '@/components/ui/toggle-group';export type PanelScope = 'doc' | 'project';/**- * Doc/Project scope switch for right-rail panels. Problems uses it today;- * other per-doc panels (Timeline) can adopt the same header when they grow a- * project-wide view, so the two scopes stay one non-diverging experience.+ * Doc/Project scope switch for right-rail panels. Problems and Comments use it+ * today; other per-doc panels (Timeline) can adopt the same header when they+ * grow a project-wide view, so the two scopes stay one non-diverging experience.+ *+ * Panels render it BELOW their own `PanelHeader`: the title says what the panel+ * is, the switch narrows it, and a switch that sits above the title reads as+ * chrome belonging to the tab strip instead.*/export function PanelScopeHeader({scope,@@ -16,10 +20,11 @@ export function PanelScopeHeader({scope: PanelScope;onScopeChange: (scope: PanelScope) => void;/**- * Label for the project-scope side. Defaults to "Project". Comments override- * it with "All comments" — the project view there is the batch waiting to be- * sent, gathered across files, and calling it Project sent people looking for- * a list they weren't going to find.+ * Label for the project-scope side. Defaults to "This project", which is what+ * every panel using this header says today — the two sides read as a pair+ * ("This doc" / "This project") rather than as a place and a scope. Kept as an+ * override for a panel whose project view is a different KIND of thing rather+ * than the same list widened.*/projectLabel?: string;}) {@@ -42,7 +47,7 @@ export function PanelScopeHeader({<Trans>This doc</Trans></ToggleGroupItem><ToggleGroupItem value="project" className="flex-1" data-testid="panel-scope-project">- {projectLabel ?? <Trans>Project</Trans>}+ {projectLabel ?? <Trans>This project</Trans>}</ToggleGroupItem></ToggleGroup></div>diff --git a/packages/app/src/components/PropertyPanel.tsx b/packages/app/src/components/PropertyPanel.tsxindex cc69c0a44..2d5d5f551 100644--- a/packages/app/src/components/PropertyPanel.tsx+++ b/packages/app/src/components/PropertyPanel.tsx@@ -32,6 +32,7 @@ import { AlertTriangle, Plus } from 'lucide-react';import { type ReactNode, useEffect, useRef, useState } from 'react';import { CommentedDocProvider } from '@/comments/CommentedDocContext';import { PropertyCommentButton } from '@/comments/PropertyCommentButton';+import { usePropertyAnchorClick } from '@/comments/property-anchor-click';import type { AddPropertyFieldSuggestion } from '@/components/AddPropertyNameField';import { FrontmatterBindingProvider } from '@/components/FrontmatterBindingContext';import {@@ -182,6 +183,10 @@ export function PropertyPanel({ provider, reservedKeys, identitySlot }: Property// context" button.const panelRef = useRef<HTMLDivElement>(null);usePublishFrontmatterSelection(panelRef, docName);+ // Clicking a commented value opens its thread, the way clicking a commented+ // passage does in the body. Panel-scoped for the same reason the selection+ // hook is: hidden entries in the editor pool keep their panels mounted.+ usePropertyAnchorClick(panelRef, docName);// A doc's property panel shows the doc's OWN frontmatter only. Folder// frontmatter is descriptive (about the folder) and does not cascade intodiff --git a/packages/app/src/components/acp/AgentMarkdown.dom.test.tsx b/packages/app/src/components/acp/AgentMarkdown.dom.test.tsxindex 9c5e498be..d9c8d1966 100644--- a/packages/app/src/components/acp/AgentMarkdown.dom.test.tsx+++ b/packages/app/src/components/acp/AgentMarkdown.dom.test.tsx@@ -71,3 +71,35 @@ describe('AgentMarkdown', () => {expect(anchor?.getAttribute('rel')).toContain('noreferrer');});});++/**+ * A lone newline ends the line.+ *+ * Markdown collapses one into a space; only a blank line starts a block. That is+ * right for prose and wrong for a chat transcript, where people press Enter once+ * — and it started mattering when sent messages began rendering as markdown+ * instead of printing verbatim under `whitespace-pre-wrap`.+ */+describe('single newlines', () => {+ test('become a line break', () => {+ const { container } = render(<AgentMarkdown text={'first line\nsecond line'} />);+ expect(container.querySelector('br')).not.toBeNull();+ });++ test('leave fenced code alone — its newlines are the code renderer’s', () => {+ const { container } = render(<AgentMarkdown text={'```ts\nconst a = 1;\nconst b = 2;\n```'} />);+ expect(container.querySelector('pre br')).toBeNull();+ });++ test('do not cost the renderer its GFM defaults', () => {+ // The break rule arrives via `remarkPlugins`, which REPLACES Streamdown's+ // own set rather than extending it. Passing the plugin alone dropped+ // remark-gfm with it, and the damage showed up in agent output far from the+ // line that caused it — so both of these are the regression guard.+ const table = render(<AgentMarkdown text={'| a | b |\n| - | - |\n| 1 | 2 |'} />);+ expect(table.container.querySelector('table')).not.toBeNull();++ const strike = render(<AgentMarkdown text={'~~gone~~'} />);+ expect(strike.container.querySelector('del')).not.toBeNull();+ });+});diff --git a/packages/app/src/components/acp/AgentMarkdown.tsx b/packages/app/src/components/acp/AgentMarkdown.tsxindex c0167bbc0..3f36ad5f6 100644--- a/packages/app/src/components/acp/AgentMarkdown.tsx+++ b/packages/app/src/components/acp/AgentMarkdown.tsx@@ -9,8 +9,9 @@import type { ReactNode } from 'react';import { ErrorBoundary } from 'react-error-boundary';-import { Streamdown } from 'streamdown';+import { defaultRemarkPlugins, Streamdown } from 'streamdown';import { codeHighlighter } from '@/lib/acp/code-highlighter';+import { remarkHardBreaks } from '@/lib/acp/remark-hard-breaks';export function AgentMarkdown({ text }: { text: string }): ReactNode {return (@@ -46,6 +47,17 @@ export function AgentMarkdown({ text }: { text: string }): ReactNode {// cap tall blocks at max-h-80 with internal scroll, targeting the// stable `data-streamdown` hooks rather than its Tailwind classes.className="[&>*:first-child]:mt-0 [&>*:last-child]:mb-0 [&_pre_code>span]:block [&_ol]:list-outside [&_ul]:list-outside [&_ol]:ps-6 [&_ul]:ps-6 [&_code]:text-1sm [&_pre]:text-1sm [&_[data-streamdown=code-block-body]]:p-3 [&_[data-streamdown=code-block-body]]:max-h-80 [&_[data-streamdown=code-block-body]]:overflow-auto"+ // A lone newline ends the line, as it does in every chat client. The+ // transcript renders sent messages too now, and those are typed by a+ // person pressing Enter — not prose where only a blank line means a new+ // block.+ //+ // SPREAD THE DEFAULTS FIRST. This prop REPLACES Streamdown's own set+ // rather than adding to it, so passing a bare `[remarkHardBreaks]`+ // silently dropped remark-gfm with it — tables and strikethrough stopped+ // rendering in agent output, nowhere near the line that caused it.+ // `defaultRemarkPlugins` is a RECORD keyed by name, not a list.+ remarkPlugins={[...Object.values(defaultRemarkPlugins), remarkHardBreaks]}lineNumbers={false}controls={{ code: { copy: true, download: false }, table: false, mermaid: false }}// Shiki-backed syntax highlighting via the in-house curated-grammardiff --git a/packages/app/src/components/acp/ThreadView.comments.dom.test.tsx b/packages/app/src/components/acp/ThreadView.comments.dom.test.tsxindex 375bb1687..7500724f5 100644--- a/packages/app/src/components/acp/ThreadView.comments.dom.test.tsx+++ b/packages/app/src/components/acp/ThreadView.comments.dom.test.tsx@@ -1,17 +1,18 @@/*** Queued review comments ride the agent panel's composer, not only the Ask AI- * one: the same `+ Comments` chip attaches the batch, and sending puts it into- * THIS thread as one turn rather than starting a detached conversation.+ * one: whatever the Comments panel has ticked is on the next message, and+ * sending puts it into THIS thread as one turn rather than starting a detached+ * conversation.*- * The chip's own two-state rendering is `comment-chips`' behaviour; what this- * suite owns is the wiring — that the row appears in the ACP composer at all,- * that an attached batch makes an empty draft sendable, that the send reaches- * `client.prompt` with the composed instruction, and that a hand-off which- * never happened leaves the draft alone.+ * The chip's own rendering is `comment-chips`' behaviour; what this suite owns+ * is the wiring — that the row appears in the ACP composer at all, that a ticked+ * batch makes an empty draft sendable with no attach step, that the send reaches+ * `client.prompt` with the composed instruction, and that a hand-off which never+ * happened leaves the draft alone.*/import type { ThreadInfo } from '@inkeep/open-knowledge-core/acp/thread-protocol';-import { cleanup, render as rtlRender, screen, waitFor } from '@testing-library/react';+import { act, cleanup, render as rtlRender, screen, waitFor } from '@testing-library/react';import userEvent from '@testing-library/user-event';import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';import type { CommentThread } from '@/comments/types';@@ -77,7 +78,6 @@ vi.doMock('@/editor/ComposerMentionInput', () => ({*/const captured = {dispatched: [] as string[],- selectAllCalls: 0,/** Whether each send asked for the batch to be closed. */resolved: [] as boolean[],};@@ -91,6 +91,7 @@ function thread(id: string, docName: string, body: string): CommentThread {status: 'open',body,createdAt: 1,+ updatedAt: 1,queued: true,};}@@ -100,14 +101,20 @@ const threads = [thread('t2', 'plan.md', 'cite a source'),];+/** Stand-in for the "server accepted a new comment" signal `createThread` fires. */+const commentPostedListeners = new Set<() => void>();+function emitCommentPostedForTest() {+ for (const listener of commentPostedListeners) listener();+}+vi.doMock('@/comments/store', () => ({- useQueue: () => threads.map((item) => item.id),useQueueSelection: () => threads.map((item) => item.id),getThreadById: (id: string) => threads.find((item) => item.id === id) ?? null,removeFromQueue: () => {},toggleQueueSelection: () => {},- selectAllQueued: () => {- captured.selectAllCalls += 1;+ subscribeCommentPosted: (listener: () => void) => {+ commentPostedListeners.add(listener);+ return () => commentPostedListeners.delete(listener);},dispatchComments: async ({compose,@@ -170,41 +177,65 @@ beforeEach(() => {createThread.mockClear();resumeThread.mockClear();captured.dispatched = [];- captured.selectAllCalls = 0;captured.resolved = [];resumeSucceeds = false;+ commentPostedListeners.clear();});afterEach(cleanup);describe('ThreadView queued-comment chip', () => {- test('offers the queue as an add chip, then names what the message carries', async () => {+ test('names what the message carries, with no attach step', async () => {const user = userEvent.setup();render(<ThreadView info={makeInfo()} />);- // Detached: the source, with no count — the chip's presence is the signal- // that a batch is waiting.- const chip = screen.getByTestId('composer-context-chip-comments');- expect(chip.textContent).toContain('Comments');- expect(chip.textContent).not.toContain('2');+ // Ticked in the panel is already on the message: the chip states the count+ // rather than offering to pick one up.+ expect(screen.getByTestId('composer-context-chip-comments').textContent).toContain(+ '2 comments',+ );- await user.click(chip);+ // The ✕ takes the batch off this message and leaves the way back — it does+ // not untick anything, so the send stops carrying them and the panel doesn't+ // change underneath.+ await user.click(screen.getByRole('button', { name: /leave these comments out/i }));+ const detached = screen.getByTestId('composer-context-chip-comments');+ expect(detached.textContent).toContain('Comments');+ expect(detached.textContent).not.toContain('2 comments');+ expect((screen.getByTestId('agent-thread-send') as HTMLButtonElement).disabled).toBe(true);- expect(captured.selectAllCalls).toBe(1);+ await user.click(detached);expect(screen.getByTestId('composer-context-chip-comments').textContent).toContain('2 comments',);});- test('an attached batch is sendable with nothing typed, and lands as one prompt', async () => {+ test('posting a new comment re-attaches a dismissed batch', async () => {+ // Both composers read one queue and show one chip, so the ✕ has to mean the+ // same thing in each. Dismissing here and writing another comment puts the+ // batch back on this message, exactly as it does in the Ask AI composer.const user = userEvent.setup();render(<ThreadView info={makeInfo()} />);- const send = screen.getByTestId('agent-thread-send') as HTMLButtonElement;- // Empty draft, nothing attached: there is nothing to send.- expect(send.disabled).toBe(true);+ await user.click(screen.getByRole('button', { name: /leave these comments out/i }));+ expect(screen.getByTestId('composer-context-chip-comments').textContent).not.toContain(+ '2 comments',+ );++ act(() => emitCommentPostedForTest());- await user.click(screen.getByTestId('composer-context-chip-comments'));+ expect(screen.getByTestId('composer-context-chip-comments').textContent).toContain(+ '2 comments',+ );+ });++ test('a ticked batch is sendable with nothing typed, and lands as one prompt', async () => {+ const user = userEvent.setup();+ render(<ThreadView info={makeInfo()} />);++ // The comments ARE the ask, so an empty draft sends — and it sends without+ // a preparatory click, which is the whole point of the default.+ const send = screen.getByTestId('agent-thread-send') as HTMLButtonElement;expect(send.disabled).toBe(false);await user.click(send);@@ -229,14 +260,16 @@ describe('ThreadView queued-comment chip', () => {const field = screen.getByTestId('agent-thread-composer') as HTMLTextAreaElement;await user.click(field);await user.keyboard('apply these before the review');- await user.click(screen.getByTestId('composer-context-chip-comments'));await user.click(screen.getByTestId('agent-thread-send'));expect(prompt.mock.calls[0]?.[1]).toContain('apply these before the review');expect(field.value).toBe('');- // The batch detaches with the draft, so the next message can't silently- // carry whatever has been queued since.- expect(screen.getByTestId('composer-context-chip-comments').textContent).toContain('Comments');+ // The next message starts from the default again — a dispatched comment+ // leaves the queue server-side (this suite's store double holds it fixed),+ // so what is ticked is what rides.+ expect(screen.getByTestId('composer-context-chip-comments').textContent).toContain(+ '2 comments',+ );});test('a mid-turn send queues the message but leaves the comments open', async () => {@@ -246,7 +279,6 @@ describe('ThreadView queued-comment chip', () => {const user = userEvent.setup();render(<ThreadView info={makeInfo({ status: 'running' })} />);- await user.click(screen.getByTestId('composer-context-chip-comments'));await user.click(screen.getByTestId('agent-thread-send'));// The message really is sent...@@ -263,7 +295,6 @@ describe('ThreadView queued-comment chip', () => {const field = screen.getByTestId('agent-thread-composer') as HTMLTextAreaElement;await user.click(field);await user.keyboard('handle these');- await user.click(screen.getByTestId('composer-context-chip-comments'));await user.click(screen.getByTestId('agent-thread-send'));// The message rides the resume op as the thread's first turn.@@ -279,7 +310,6 @@ describe('ThreadView queued-comment chip', () => {const field = screen.getByTestId('agent-thread-composer') as HTMLTextAreaElement;await user.click(field);await user.keyboard('handle these');- await user.click(screen.getByTestId('composer-context-chip-comments'));await user.click(screen.getByTestId('agent-thread-send'));await screen.findByTestId('agent-thread-resume-failed');@@ -299,7 +329,6 @@ describe('ThreadView queued-comment chip', () => {const field = screen.getByTestId('agent-thread-composer') as HTMLTextAreaElement;await user.click(field);await user.keyboard('look at these');- await user.click(screen.getByTestId('composer-context-chip-comments'));await user.click(screen.getByTestId('agent-thread-send'));// The resume itself carried the batch — that send was real, it just failed.diff --git a/packages/app/src/components/acp/ThreadView.dom.test.tsx b/packages/app/src/components/acp/ThreadView.dom.test.tsxindex 53ff35393..570d3e4cd 100644--- a/packages/app/src/components/acp/ThreadView.dom.test.tsx+++ b/packages/app/src/components/acp/ThreadView.dom.test.tsx@@ -102,7 +102,9 @@ vi.doMock('@/lib/use-workspace', () => ({// Markdown rendering is covered by AgentMarkdown.dom.test.tsx; keep this// suite off the streamdown pipeline.vi.doMock('@/components/acp/AgentMarkdown', () => ({- AgentMarkdown: ({ text }: { text: string }) => <div>{text}</div>,+ // Marked so a test can tell WHICH bubbles route through the renderer. Real+ // markdown output is AgentMarkdown.dom.test.tsx's subject, not this file's.+ AgentMarkdown: ({ text }: { text: string }) => <div data-testid="rendered-markdown">{text}</div>,}));// The composer's rich input, doubled as a textarea (jsdom can't type into a@@ -2064,3 +2066,41 @@ describe('ThreadView failure notices', () => {expect(screen.queryByTestId('agent-thread-notice-details-toggle')).toBeNull();});});++/**+ * Sent messages render as markdown, like the agent's replies.+ *+ * They used to print verbatim. Fine for a typed sentence, wrong for a comment+ * batch: that prompt is composed markdown, so the reader saw the raw `>`+ * blockquotes and backticks the agent parses instead of the passages they mark.+ */+describe('the transcript renders both sides as markdown', () => {+ test('a sent message goes through the renderer', async () => {+ model = {+ items: [{ kind: 'message', role: 'user', text: '> quoted', messageId: 'u1' }],+ plan: [],+ turnActive: false,+ tokenUsage: null,+ terminals: {},+ permissionsByToolCall: {},+ };+ render(<ThreadView info={makeInfo()} />);+ const bubble = screen.getByTestId('agent-thread-user-message');+ expect(bubble.querySelector('[data-testid="rendered-markdown"]')).not.toBeNull();+ });++ test('the sent bubble does not also pre-wrap, which would fight the renderer', async () => {+ model = {+ items: [{ kind: 'message', role: 'user', text: 'hello', messageId: 'u1' }],+ plan: [],+ turnActive: false,+ tokenUsage: null,+ terminals: {},+ permissionsByToolCall: {},+ };+ render(<ThreadView info={makeInfo()} />);+ expect(screen.getByTestId('agent-thread-user-message').className).not.toContain(+ 'whitespace-pre-wrap',+ );+ });+});diff --git a/packages/app/src/components/acp/ThreadView.tsx b/packages/app/src/components/acp/ThreadView.tsxindex f6ade6c08..55eb0489e 100644--- a/packages/app/src/components/acp/ThreadView.tsx+++ b/packages/app/src/components/acp/ThreadView.tsx@@ -63,16 +63,15 @@ import {} from 'react';import { toast } from 'sonner';import {+ type CommentDocTally,composeCommentBatchInstruction,QueuedCommentsChip,- QueuedCommentsList,toCommentBatchItem,- useQueuedComments,useSelectedCommentCount,+ useSelectedCommentDocs,} from '@/comments/comment-chips';import { subscribeSendInThread } from '@/comments/open-chat-send';-import { dispatchComments, selectAllQueued } from '@/comments/store';-import type { CommentThread } from '@/comments/types';+import { dispatchComments, subscribeCommentPosted } from '@/comments/store';import { ComposerContextChips } from '@/components/ComposerContextChips';import { focusComposerInputOnCardPointer } from '@/components/focus-composer-on-card-pointer';import { useOptionalPageList } from '@/components/PageListContext';@@ -594,12 +593,21 @@ export function ThreadView({// shared instruction, and the batch lands as ONE turn in THIS thread — which// is the point of having it here rather than only in the omnicomposer, where// every send starts a conversation detached from the one already going.- const queuedComments = useQueuedComments();const selectedCommentCount = useSelectedCommentCount();- const [commentsAttached, setCommentsAttached] = useState(false);- const [commentsExpanded, setCommentsExpanded] = useState(false);-+ // The files the batch draws from — the chip says so when there is more than one.+ const selectedCommentDocs = useSelectedCommentDocs();+ // Ticked in the Comments panel = riding this message, so this starts ON — one+ // picker (the panel), and both composers default to carrying what it holds.+ // The chip's ✕ turns it off for this draft without disturbing the ticks.+ const [commentsAttached, setCommentsAttached] = useState(true);const hasQueuedComments = selectedCommentCount > 0 && commentsAttached;+ // A NEW comment re-attaches a dismissed batch, exactly as it does in the Ask+ // AI composer. The ✕ says "not this message" about the batch as it stood;+ // writing another one is a fresh statement of intent about the same message.+ // Both composers read one queue and show one chip, so a rule that held in only+ // one of them would make the same ✕ mean two different things depending on+ // which box you happened to be typing in.+ useEffect(() => subscribeCommentPosted(() => setCommentsAttached(true)), []);/*** The one send. A live thread prompts (the server queues it behind an active@@ -733,10 +741,9 @@ export function ThreadView({);}composerRef.current?.clear();- // The batch detaches with the rest of the draft. Left on, the next message- // would silently carry whatever had been queued since.- setCommentsAttached(false);- setCommentsExpanded(false);+ // Back to the default for the next message — a dispatched comment leaves the+ // queue server-side, so this only matters when a send left something behind.+ setCommentsAttached(true);};/**@@ -1032,22 +1039,11 @@ export function ThreadView({archived={archived}resumePending={resumePending}usage={model?.tokenUsage ?? null}- queuedComments={queuedComments}selectedCommentCount={selectedCommentCount}+ selectedCommentDocs={selectedCommentDocs}hasQueuedComments={hasQueuedComments}- commentsExpanded={commentsExpanded}- onAttachComments={() => {- setCommentsAttached(true);- // Deselection is sticky, so re-attaching has to re-check the queue —- // otherwise this puts an empty batch on the message and the chip- // bounces straight back to detached.- selectAllQueued();- }}- onToggleCommentsExpanded={() => setCommentsExpanded((open) => !open)}- onDismissComments={() => {- setCommentsAttached(false);- setCommentsExpanded(false);- }}+ onAttachComments={() => setCommentsAttached(true)}+ onDismissComments={() => setCommentsAttached(false)}pendingAttachments={pendingAttachments}pendingUploads={pendingUploads}imagesAccepted={imagesAccepted}@@ -2041,13 +2037,21 @@ function MessageBubble({// margin (on top of the transcript's gap-2) enlarges only the turn// boundary — the gap before the agent's response starts — while the// response's own items (reply text + its tool calls) stay tight.- 'my-3 ml-auto max-w-[85%] whitespace-pre-wrap rounded-2xl rounded-br-xs bg-muted px-3 py-1.5'+ // No `whitespace-pre-wrap`: it fights the renderer, which decides+ // its own block spacing. The cost is that a single newline in a+ // typed message collapses, the way it does in any markdown chat.+ 'my-3 ml-auto max-w-[85%] rounded-2xl rounded-br-xs bg-muted px-3 py-1.5': // Agent reply reads as full-width prose — no bubble, no fill.'w-full',)}data-testid={isUser ? 'agent-thread-user-message' : 'agent-thread-agent-message'}>- {isUser ? item.text : <AgentMarkdown text={item.text} />}+ {/* Both sides render as markdown. Sent messages used to print verbatim,+ which was fine for a typed sentence and wrong for a comment batch: that+ prompt is composed markdown, so the reader saw the raw `>` blockquotes+ and backticks the agent parses rather than the passages they mark. The+ same renderer that sanitizes agent output handles this text. */}+ <AgentMarkdown text={item.text} />{attachments !== undefined && attachments.length > 0 ? (<UserMessageAttachments attachments={attachments} />) : null}@@ -3081,12 +3085,10 @@ function ThreadComposer({archived,resumePending,usage,- queuedComments,selectedCommentCount,+ selectedCommentDocs,hasQueuedComments,- commentsExpanded,onAttachComments,- onToggleCommentsExpanded,onDismissComments,pendingAttachments,pendingUploads,@@ -3116,21 +3118,16 @@ function ThreadComposer({resumePending: boolean;/** Context-window fill the agent reported; null until it reports any. */usage: { used?: number; size?: number } | null;- /** The review comments waiting to be sent, in queue order. */- queuedComments: readonly CommentThread[];- /** How many of them are checked — what an attached send would carry. */+ /** How many comments are ticked in the panel — what this send would carry. */selectedCommentCount: number;+ selectedCommentDocs: readonly CommentDocTally[];/**- * The batch is riding this message AND still has something checked — the- * derived flag, never the raw attached state. `BottomComposer` carries the- * same distinction: unchecking the last item means nothing rides this- * message, which is the detached state however it was reached, and keying the- * chip on the raw flag leaves a countless chip above a list of unchecked rows.+ * Ticked AND still on this message. `BottomComposer` derives the same flag the+ * same way; the chip renders on the ticked count alone, since detached it is+ * the way back.*/hasQueuedComments: boolean;- commentsExpanded: boolean;onAttachComments: () => void;- onToggleCommentsExpanded: () => void;onDismissComments: () => void;/** Files/images the user dropped, pasted, or picked; parent owns the array. */pendingAttachments: readonly AttachmentPart[];@@ -3174,8 +3171,6 @@ function ThreadComposer({const queue = info.queue ?? [];- const queueSize = queuedComments.length;-// What the action slot keys off. Both the Stop/Send choice and Send's disabled// state read this, or the two disagree. An attached batch counts as content:// the comments are the ask, so a send with nothing typed is a real send.@@ -3235,29 +3230,22 @@ function ThreadComposer({className="relative cursor-text rounded-lg border border-input bg-transparent transition-colors focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50 dark:bg-input/30">{/* Queued comments as a context chip above the field, the same control- the Ask AI composer carries — detached it is a `+ Comments` add- button, attached it grows the peek + ✕ the other context chips have.- Same row component, so the two composers read as one chip system. */}+ the Ask AI composer carries — a count of what the panel has ticked+ plus the ✕ that unticks it. Same component in both composers, so the+ two read as one chip system. */}{/* Gated here as well as inside the chip: `ComposerContextChips` decideswhether to render its row by counting children, and an element that- returns null still counts as one. An empty queue has to contribute NO+ returns null still counts as one. An empty batch has to contribute NOchild, or the row appears as an empty strip above the field. */}- {queueSize > 0 ? (+ {selectedCommentCount > 0 ? (<ComposerContextChips className="px-3 pt-2 pb-1"><QueuedCommentsChip- // Attached, the count is what a SEND carries, so unchecking an- // item moves it. Detached the chip shows no number, so the raw- // queue is what decides it renders at all.- count={hasQueuedComments ? selectedCommentCount : queueSize}+ count={selectedCommentCount}+ docs={selectedCommentDocs}attached={hasQueuedComments}- expanded={commentsExpanded}onAttach={onAttachComments}- onToggleExpanded={onToggleCommentsExpanded}onDismiss={onDismissComments}/>- {hasQueuedComments && commentsExpanded ? (- <QueuedCommentsList threads={queuedComments} />- ) : null}</ComposerContextChips>) : null}{pendingAttachments.length > 0 || pendingUploads.length > 0 ? (diff --git a/packages/app/src/components/acp/composer-mention-input.test-helper.tsx b/packages/app/src/components/acp/composer-mention-input.test-helper.tsxindex 844e87738..bb4678db6 100644--- a/packages/app/src/components/acp/composer-mention-input.test-helper.tsx+++ b/packages/app/src/components/acp/composer-mention-input.test-helper.tsx@@ -18,6 +18,7 @@* join (`existing\n\nappended`) the rescue/staged-draft tests assert.*/+import type { JSONContent } from '@tiptap/core';import { type Ref, useImperativeHandle, useRef } from 'react';import type { ComposerMentionInputHandle } from '@/editor/ComposerMentionInput';@@ -25,6 +26,7 @@ export function MockComposerMentionInput({ref,ariaLabel,onEmptyChange,+ onContentChange,onSubmit,onEscape,className,@@ -35,6 +37,7 @@ export function MockComposerMentionInput({ref?: Ref<ComposerMentionInputHandle>;ariaLabel: string;onEmptyChange: (isEmpty: boolean) => void;+ onContentChange?: (doc: JSONContent) => void;onSubmit: () => void;onEscape?: () => void;className?: string;@@ -43,7 +46,25 @@ export function MockComposerMentionInput({testId?: string;}) {const localRef = useRef<HTMLTextAreaElement>(null);- const notify = () => onEmptyChange((localRef.current?.value.trim() ?? '') === '');+ // Both callbacks, on every edit — the real field fires them together, and a+ // double that only carried `onEmptyChange` left every host reading the live+ // draft (`ThreadCard`'s click-away commit) looking at a permanent `null`. A+ // test for "the unmount saves what I typed" then passed with nothing typed.+ //+ // A paragraph of plain text: hosts read this back through `getContent`, not+ // by walking the doc, so the shape only has to be a doc TipTap would accept.+ const notify = () => {+ const value = localRef.current?.value ?? '';+ onEmptyChange(value.trim() === '');+ onContentChange?.({+ type: 'doc',+ content: [+ value === ''+ ? { type: 'paragraph' }+ : { type: 'paragraph', content: [{ type: 'text', text: value }] },+ ],+ });+ };useImperativeHandle(ref, () => ({focus: () => localRef.current?.focus(),focusEnd: () => {@@ -55,7 +76,7 @@ export function MockComposerMentionInput({blur: () => localRef.current?.blur(),clear: () => {if (localRef.current) localRef.current.value = '';- onEmptyChange(true);+ notify();},setText: (text: string) => {if (localRef.current) localRef.current.value = text;diff --git a/packages/app/src/components/empty-state/EmptyStateHeader.dom.test.tsx b/packages/app/src/components/empty-state/EmptyStateHeader.dom.test.tsxindex e9ade400c..999e89ec6 100644--- a/packages/app/src/components/empty-state/EmptyStateHeader.dom.test.tsx+++ b/packages/app/src/components/empty-state/EmptyStateHeader.dom.test.tsx@@ -49,7 +49,18 @@ describe('EmptyStateHeader runtime behavior', () => {expect(screen.getByTestId('ok-blob-probe').getAttribute('data-size')).toBe('64');const root = screen.getByTestId('ok-blob-probe').parentElement;- expectVisualClassTokens(root?.className, ['flex', 'items-center', 'gap-4']);+ // Stacked and start-aligned by default; the centered row is a container+ // query, not the base layout — the blob sits above the title in a narrow+ // pane and beside it once the pane is wide enough.+ expectVisualClassTokens(root?.className, [+ 'flex',+ 'flex-col',+ 'items-start',+ 'gap-3',+ '@md/emptystate:flex-row',+ '@md/emptystate:items-center',+ '@md/emptystate:gap-4',+ ]);expectVisualClassTokensAbsent(root?.className, ['inline-flex']);rerender(<EmptyStateHeader title="Choose a starter" celebrateSignal={4} />);diff --git a/packages/app/src/components/ui/panel.tsx b/packages/app/src/components/ui/panel.tsxindex 616e7dd1f..4ba1fe580 100644--- a/packages/app/src/components/ui/panel.tsx+++ b/packages/app/src/components/ui/panel.tsx@@ -15,7 +15,11 @@ function PanelHeader({ className, ...props }: React.ComponentProps<'div'>) {return (<divdata-slot="panel-header"- className={cn('shrink-0 flex items-center justify-between px-4 py-3', className)}+ // Floored at the height of a header carrying a count pill, so a panel+ // whose count is conditional (Problems renders none at zero) is exactly+ // as tall as one that always shows it. Without the floor, switching tabs+ // in the right rail nudged the scope switch and the list under it.+ className={cn('shrink-0 flex min-h-12 items-center justify-between px-4 py-3', className)}{...props}/>);diff --git a/packages/app/src/editor/active-editor.ts b/packages/app/src/editor/active-editor.tsindex 455c70c61..354bc3bb3 100644--- a/packages/app/src/editor/active-editor.ts+++ b/packages/app/src/editor/active-editor.ts@@ -18,6 +18,7 @@*/import type { Editor } from '@tiptap/core';+import { getEditorView } from '@/editor/utils/get-editor-view';const editors = new Map<string, Editor>();const listeners = new Set<() => void>();@@ -48,6 +49,31 @@ export function getEditorForDoc(docName: string): Editor | null {return editors.get(docName) ?? null;}+/**+ * The editor for `docName`, but only while it is actually ON SCREEN.+ *+ * Registration means mounted, not visible. `EditorActivityPool` keeps the last+ * few visited documents mounted behind `<Activity mode="hidden">`, which holds+ * their DOM (and this registry entry) while hiding them with `display:none`.+ * Anything that decides "do I need to navigate?" by asking whether an editor+ * exists therefore acts on an invisible one for exactly those recent documents:+ * it scrolls a pane nobody can see and never navigates, so the gesture silently+ * does nothing for the docs you were just in and works everywhere else.+ *+ * Layout, not a route comparison: a hidden subtree has no client rects, which is+ * also the precondition for measuring anything in it. That keeps this right in+ * split view, where two documents are on screen and only one is in the hash.+ */+export function getVisibleEditorForDoc(docName: string): Editor | null {+ const editor = editors.get(docName);+ if (!editor || editor.isDestroyed) return null;+ // `editorView`, never `editor.view` — the latter is a throwing proxy before+ // ProseMirror mounts, which is precisely the window this is asked about.+ const dom = getEditorView(editor)?.dom;+ if (!dom?.isConnected) return null;+ return dom.getClientRects().length > 0 ? editor : null;+}+export function subscribeEditorRegistry(listener: () => void): () => void {listeners.add(listener);return () => listeners.delete(listener);diff --git a/packages/app/src/lib/acp/remark-hard-breaks.ts b/packages/app/src/lib/acp/remark-hard-breaks.tsnew file mode 100644index 000000000..70caed19e--- /dev/null+++ b/packages/app/src/lib/acp/remark-hard-breaks.ts@@ -0,0 +1,54 @@+/**+ * Treat a single newline as a line break, the way chat readers expect.+ *+ * Markdown collapses a lone newline into a space; only a blank line starts a new+ * block. That is right for prose and wrong for a chat transcript, where people+ * press Enter once and expect the line to end — which is why the sent-message+ * bubble kept `whitespace-pre-wrap` for as long as it printed text verbatim.+ * Rendering both sides as markdown removed that, so the rule has to come from+ * the parser instead.+ *+ * This is what `remark-breaks` does; it is written out here rather than pulled+ * in because the whole of it is the walk below, and the subtree carries its own+ * lockfile.+ *+ * FENCED AND INLINE CODE ARE SAFE BY CONSTRUCTION. An mdast `code` or+ * `inlineCode` node keeps its content in `value` and has no `children`, so a+ * walk that only ever descends into `children` cannot reach inside one. A+ * newline in a code block stays a newline the code renderer handles itself.+ */++interface MdastNode {+ type: string;+ value?: string;+ children?: MdastNode[];+}++export function remarkHardBreaks() {+ return (tree: MdastNode): void => {+ splitTextNodes(tree);+ };+}++function splitTextNodes(node: MdastNode): void {+ const children = node.children;+ if (children === undefined) return;+ const next: MdastNode[] = [];+ for (const child of children) {+ if (child.type === 'text' && child.value !== undefined && child.value.includes('\n')) {+ // `\r\n` as one break, not two: a CRLF document would otherwise render+ // every line with a blank one under it.+ const parts = child.value.split(/\r?\n/);+ for (const [index, part] of parts.entries()) {+ if (index > 0) next.push({ type: 'break' });+ // Empty segments come from consecutive newlines; the `break` nodes+ // already carry them, and an empty text node renders as nothing anyway.+ if (part !== '') next.push({ type: 'text', value: part });+ }+ continue;+ }+ splitTextNodes(child);+ next.push(child);+ }+ node.children = next;+}diff --git a/packages/app/src/locales/ar/messages.json b/packages/app/src/locales/ar/messages.jsonindex 45f2fb628..1520976b3 100644--- a/packages/app/src/locales/ar/messages.json+++ b/packages/app/src/locales/ar/messages.json@@ -74,6 +74,7 @@"03wKPg": ["يساعدنا التقرير في معرفة السبب. لا يُرسل شيء قبل مراجعتك له."],"04RA0-": ["فشل تفعيل المزامنة — ", ["detail"]],"04XyCH": ["يضيف كتلة مُدارة إلى ", ["0"]],+ "05F1GY": ["تم حذف النص الأصلي. يمكنك إعادة وضع هذا التعليق على النص المحدد."],"05n5wS": ["اقتراحات ذكر المستندات"],"06SZfb": ["أُنشئ القالب «", ["trimmedTitle"], "»"],"07eGJB": ["تعذّر نقل المهارة: ", ["0"]],@@ -144,7 +145,6 @@"11ukmX": ["فشلت إعادة التسمية: ", ["0"]],"12F9WL": ["(بدون معرّف)"],"151wvk": ["إظهار الشريط الجانبي"],- "15MMFT": ["إظهار هذه التعليقات"],"15ZHCt": ["لا تغييرات في المتن في هذه النسخة."],"161NCV": ["يجري الإيقاف"],"16D5Zj": ["هل أنت متأكد أنك تريد حذف ", ["itemName"], "؟ لا يمكن التراجع عن هذا الإجراء."],@@ -215,7 +215,6 @@"2QM24L": ["كل الوسوم"],"2RnFoM": ["تعذّر استئناف هذه المحادثة: ", ["0"]],"2Snes1": ["هذا يرسل عنوان الرابط خارج جهازك"],- "2UgoBZ": ["غير موجود"],"2VSPan": ["أُغلق Terminal لإفساح المجال للوحة الوكيل."],"2XQ8Ww": ["فتح المعاينة عند تحرير الوكيل"],"2YOwme": ["أُعيد التشغيل — يعمل الآن بالإصدار v", ["appRuntime"], "."],@@ -240,6 +239,7 @@"2vIPtm": ["فتح الرابط في تبويب جديد"],"2wTb8w": ["أعدّه في صفحته الخاصة تحت «الإضافات»."],"2wxgft": ["إعادة تسمية"],+ "2zvUIK": ["عرض هذه التعليقات في لوحة التعليقات"],"322lyb": ["أبرِز النصائح والتحذيرات والملاحظات."],"34qyH5": ["تعذّر الوصول إلى الخادم"],"36WXSC": ["تعذّر حذف القالب: ", ["error"]],@@ -383,7 +383,6 @@"4buZWd": ["موروث من ", ["path"]],"4c_a6S": ["لم يُضبط شيء بعد."],"4d0VYJ": ["سننشئ معرّف سمة آمنًا من هذا الاسم."],- "4eO-iB": ["تجاهل هذا التعليق"],"4g19V6": ["فشل تحديث الخاصية"],"4h3e0H": ["تعذّر تحديث مشاركة المهارات — ", ["detail"], "."],"4hJhzz": ["جدول"],@@ -401,7 +400,6 @@"4sKwf6": ["الملف موجود بالفعل"],"4sUdTJ": ["معاينة بالسمة"],"4uNLmk": ["يجري السحب"],- "4uaCUA": [["mins"], "د"],"4v2Yyz": ["حدّد كل صفوف شجرة الملفات الظاهرة عندما يكون التركيز في شريط الملفات الجانبي."],"4wo5UV": ["تثبيت المحدد"],"4xtLTl": ["أُخفي المجلد “", ["basename"], "”"],@@ -427,7 +425,6 @@"5ClEAu": ["وسم مضمَّن للتجميع عبر المستندات."],"5D3Ior": ["إخفاء المجلد"],"5F5HYj": [["ahead"], " أمام، ", ["behind"], " خلف"],- "5GBQ-F": ["حدّد هذا النص في الخاصية"],"5GKMSz": ["زد أو قلّل إزاحة عنصر القائمة الحالي."],"5GRxoA": ["ابحث في ملفات مساحة العمل الحالية ومجلداتها وأوامرها."],"5HJpFY": ["ينتظر في الطابور خلف الدور الجاري"],@@ -449,6 +446,33 @@"تجاهلت نقطة النهاية هذه حجم المتجه الذي ضبطته. أزل <0>search.semantic.dimensions</0> لاستخدام حجم النموذج نفسه."],"5Tk8Fb": ["يجري تحميل الملفات"],+ "5TmrYN": [+ [+ "count",+ "plural",+ {+ "zero": ["#", " تعليق"],+ "one": ["تعليق واحد"],+ "two": ["تعليقان"],+ "few": ["#", " تعليقات"],+ "many": ["#", " تعليقًا"],+ "other": ["#", " تعليق"]+ }+ ],+ " عبر ",+ [+ "0",+ "plural",+ {+ "zero": ["#", " ملف"],+ "one": ["ملف واحد"],+ "two": ["ملفان"],+ "few": ["#", " ملفات"],+ "many": ["#", " ملفًا"],+ "other": ["#", " ملف"]+ }+ ]+ ],"5Umg9i": ["تعطيل معاينات الروابط الخارجية"],"5WDhAk": ["اربط بصفحة أو رابط خارجي."],"5Y17qa": ["ينطبق على (أنماط — البادئة ! تستثني؛ والفارغ يعني كل مستند)"],@@ -1073,6 +1097,7 @@"DbILZA": ["لا توجد تطابقات. بعض الملفات مستثناة من البحث (ملفات مخفية أو متجاهَلة)."],"DcFr-y": ["حذف OpenKnowledge مستندًا"],"DcLaew": ["سمة مخصصة"],+ "Dd6j2Q": ["عرض التعليقات"],"DeDYLr": ["رابط ويكي غير معروف"],"DgcGrb": [[@@ -1258,6 +1283,7 @@"FgQ7XZ": ["تعذّر تحميل تقارير العلل الخاصة بك."],"FgRAvd": ["السجلات ومعلومات النظام"],"Fhp4Gn": ["عرض الإضافة"],+ "FiyNln": ["الانتقال إلى النص المحدد في الخاصية"],"FjkaiT": ["تصغير"],"FqGWeR": ["تعذّر الوصول إلى سجل الوكلاء."],"FqTpiN": ["ويكي الطيور"],@@ -1296,7 +1322,6 @@"G0YZ-I": ["زيادة أو تقليل إزاحة عنصر القائمة"],"G1Gw0v": ["قالب جديد"],"G1XxbZ": ["مربع اختيار"],- "G1zJlD": ["إخفاء التعليقات المُنجزة"],"G4m8rL": ["تعليق على التحديد"],"G6Lrs_": ["إيقاف قراءة ", ["0"], " لهذه المهارة"],"G7-rf8": ["خطأ في صيغة النمط: ", ["message"]],@@ -1530,6 +1555,7 @@"لا توجد صفحات منفصلة. تظهر الصفحات هنا فقط عندما لا تكون لها حواف واردة ولا صادرة في الرسم البياني."],"JDHcCM": ["يجري تحميل المهارات الشائعة"],+ "JDQ5I5": ["لم يُفتح ذلك المستند في الوقت المناسب. حاول مرة أخرى بعد اكتمال المزامنة."],"JE21eh": ["رابط رمزي إلى ", ["targetPath"]],"JG_8KT": ["تعذّر السحب من GitHub. تحقق من اتصالك وتسجيل دخولك، ثم أعد المحاولة."],"JHf6qZ": ["[email protected]"],@@ -1601,6 +1627,7 @@"KZLdgR": ["راجع <0>#design-docs</0> لأحدث المواصفات."],"K_vT1F": ["المزامنة مع المصدر البعيد"],"KaFCD3": ["افتح هذا الرابط في تبويب جديد واطوِ الرسم البياني."],+ "KeXgA-": ["تعذر العثور على ذلك المقطع — ربما تغير النص الذي كان عليه."],"Kf7GG5": ["تجري إعادة تشغيل الخادم…"],"Kge76t": ["خيارات الصف"],"Kh1n4a": [@@ -1764,7 +1791,6 @@"M92_0q": ["إغلاق التعليق"],"M9597s": ["يجري تحضير رابط المشاركة..."],"MBKkUy": ["skills.sh غير متاح؛ تُعرض نتائج GitHub (بلا ترتيب حسب التثبيت)."],- "MBe6TE": ["لم يعد النص المقتبس في المستند — سيُبلَّغ الوكيل بذلك."],"MCjC9A": ["حذف ", ["deleteDescriptorLabel"]],"MDBJwN": ["صعب الاستخدام"],"MDZSJe": ["متى ينفّذ الوكيل عمله المجدول."],@@ -1870,7 +1896,6 @@"NeY1Np": ["انتهت مهلة بدء تشغيل Slidev. حاول مرة أخرى."],"NfraGd": ["طرق أخرى لتثبيت Slidev"],"NgZwB0": [["enabledCount"], "/", ["0"], " مفعَّل"],- "NiGIcB": ["فتح التعليقات"],"NjrIak": ["الملف: <0>", ["fixedName"], ".md</0>"],"NkNfSr": ["تحرير ", ["tag"]],"NkXEFS": ["فشلت الاستعادة — لم يتغير المستند"],@@ -1973,6 +1998,7 @@"PBxg_E": ["ليس الآن"],"PCSkw2": ["المهارات"],"PGPGsL": ["إضافة وصف"],+ "PHHEuH": ["إخفاء التعليقات المحلولة (", ["0"], ")"],"PIMM5l": ["تم اشتراكك!"],"PKLY-1": ["يجري الفتح..."],"PKjGhT": ["العناوين"],@@ -2084,7 +2110,6 @@"QpSqAP": ["الصدفة الحقيقية معطّلة لهذا المشروع. تشغيلها يجعل الأوامر تُنفَّذ بكامل صلاحيات حساب المستخدم الخاص بك."],- "Qpfxa1": [["secs"], "ث"],"QqBQu1": ["التسمية <0>(نص الرابط الظاهر)</0>"],"Qvls7J": ["مواصفات هندسية"],"Qw-7Ie": [@@ -2237,6 +2262,7 @@],"T-654M": ["يجري تحميل ملف PDF"],"T0OVm7": ["الفرع الافتراضي محمي — يتطلب الدفع طلب سحب."],+ "T2fvhw": ["إلغاء تحديد كل التعليقات في ", ["0"]],"T3Mld1": ["نافذة"],"T3j-7o": ["مثال: تبديل المشاريع أثناء تشغيل مزامنة"],"TBfy1C": ["تعذّر تشغيل Slidev."],@@ -2301,7 +2327,6 @@"UDFrWm": ["يجري التحقق من الاتصال بـ GitHub..."],"UD_onR": ["يجري التأمل…"],"UDb2YD": ["React"],- "UEdTEN": ["يتيم"],"UGeJuP": ["القيم المسموح بها (فارغ = أي قيمة)"],"UGtPix": ["انتهت صلاحية الاتصال بـ GitHub. أعد الاتصال للمتابعة."],"UH0Zqw": ["هذا ليس ملف سمة عاديًا"],@@ -2376,7 +2401,6 @@"UkQGhd": ["إخفاء الاستبدال"],"UlVARL": ["تمكين Slidev"],"Uobeu9": ["يضيف المهارة إلى ", ["rootRel"], " — يقرأها ", ["0"], " أيضًا"],- "Uoux8m": ["ضمّن هذا التعليق في الإرسال التالي"],"Up2_7p": ["نسخ المسار الكامل"],"UpCz01": ["هذا المستند"],"UpOct_": ["أضف تعليقاتك إلى هذه الرسالة"],@@ -2547,6 +2571,7 @@"Wh0im4": ["يحرّر [[", ["realCurrentDoc"], "]]"],"WhOsNE": ["يتوسطه خط"],"Wi-VWy": ["تعذّر إرسال التقرير"],+ "WkQ0Z_": ["تحديد كل التعليقات في ", ["0"], " للإرسال"],"WkTLN7": ["إظهار ملفات Markdown فقط"],"WkyP2p": ["قسم المهارات"],"WmPbvm": ["احصل على تحديثات المنتج في بريدك."],@@ -2594,7 +2619,6 @@"XV5sC0": ["فتح شجرة العمل"],"XVnIvs": ["تثبيت المهارات"],"XW18jo": ["لم تطابق استجابة عناوين الصفحة مخطط النجاح"],- "XWEqQj": [["days"], "ي"],"XXA1b_": [["componentLabel"], " (فارغ)"],"XYZ7tp": ["غير قابل للحل"],"XYlJJT": ["يجري الإعداد"],@@ -2889,7 +2913,6 @@"نسخة للقراءة فقط من كتلة MirrorSource في مستند آخر. حرّرها عند المصدر فتتحدث مباشرةً."],"_XWY2J": ["الطرفية معطّلة"],- "_YEyHO": ["إظهار التعليقات المُنجزة"],"_YWqV2": ["حلّ OpenKnowledge تعارضًا"],"_ayOfA": ["قاعدة معرفة تتبع تنسيق Google Open Knowledge، وهو طريقة مشتركة لتنظيم ما تعرفه. اختر هذا إن أردت أن تعمل ملاحظاتك جيدًا مع أدوات أخرى تفهم التنسيق."@@ -2901,7 +2924,6 @@"_gO_m8": ["في انتظار موافقتك"],"_gkGSK": ["حذف قالبًا"],"_mcDqU": [["count"], " مهارة في هذا المصدر"],- "_oqig9": [["hours"], "س"],"_pY_Vq": ["نُقل المستودع أو أُعيدت تسميته أو حُذف."],"_qD6mn": ["اختر المجلد الذي استنسخته فيه."],"_rP3HI": ["قبل ", ["minutes"], " دقيقة"],@@ -3394,6 +3416,7 @@"gBbxn_": ["يجري التحقق من حالة تسجيل الدخول"],"gGVP4q": ["انقر <0>+</0> <1/> <2>إنشاء مهارة</2> <3/> <4>رفع مهارة</4>."],"gHSAWT": ["إنشاء شجرة عمل <0>“<1>", ["typedName"], "</1>”</0>"],+ "gHb5bB": ["إظهار التعليقات المحلولة (", ["0"], ")"],"gITz7o": ["حرّك المؤشر أو وسّع التحديد عبر خريطة مفاتيح التنقل القياسية لمحرر مصدر CodeMirror."],"gJR87V": ["تعذّر إنشاء مجلد المشروع. اختر مجلدًا مختلفًا."],"gKi-a_": ["مشروع جديد"],@@ -3618,7 +3641,6 @@"iy64Li": ["مزامنة كاملة — تُودَع تعديلاتك وتُدفع إلى مستودعك البعيد تلقائيًا."],"iycx_A": ["يجري الدفع"],"iz1LdD": ["تغيّر خارج OK منذ آخر كتابة هنا — الحالة المعروضة هي ما على القرص الآن"],- "j0ItfO": ["إظهار المحلولة (", ["0"], ")"],"j15ZSH": ["إرسال التعليقات إلى"],"j2229h": ["تجري إزالة ملفات OpenKnowledge…"],"j2kt1j": [@@ -3714,7 +3736,6 @@["targetNoun"]," بمجرد مزامنة الفرع."],- "kMKqP_": ["إخفاء هذه التعليقات"],"kNGLX6": ["جارٍ إعادة المحاولة…"],"kNqMMd": ["مجلد"],"kRTXGw": [@@ -3977,7 +3998,6 @@"nBgzKO": ["اجعل هذا هو المصدر — ينتقل مجلد المهارة الحقيقي إلى هنا"],"nCzR-G": ["نسخ الرمز ", ["userCode"]],"nDT8qt": ["تمت تهيئة ", ["0"], " لكن تعذّر فتحه."],- "nG-XA9": ["اختفى النص المرتبط. يمكنك إعادة وضعه على نص محدد."],"nMSYz5": ["هذا المسار على وحدة تخزين خارجية (/Volumes/...). سيفقد OpenKnowledge تتبّع الملفات عند إخراج القرص."],@@ -4044,6 +4064,7 @@"nzaV6Q": ["الصور المصغّرة للصفحات"],"o0bHtA": ["من OpenKnowledge"],"o49mDZ": ["يجري تحميل سجل الخط الزمني"],+ "o7AkQ0": ["إظهار المحلولة"],"o9CrsQ": ["research-note"],"o9fPtM": ["التحديث التلقائي من المصدر"],"o9yN4T": ["النقل إلى سلة المحذوفات"],@@ -4330,7 +4351,6 @@"roAe2K": ["رابط الوجهة"],"roiUQQ": ["هذه الصفحة لا ترتبط بشيء بعد."],"rppgXF": ["يجري قطع الاتصال"],- "rscgd_": ["الانتقال إلى هذا التعليق في ", ["0"]],"rssK8c": ["أنماط التجاهل (نص خام)"],"rtdR4v": ["إظهار الملفات أو إخفاؤها"],"rtir7c": ["غير معروف"],diff --git a/packages/app/src/locales/ar/messages.po b/packages/app/src/locales/ar/messages.poindex ca0b98567..1aacf3d84 100644--- a/packages/app/src/locales/ar/messages.po+++ b/packages/app/src/locales/ar/messages.po@@ -511,6 +511,11 @@ msgstr "{conflictCount, plural, zero {# ملف متعارض} one {ملف واحmsgid "{count, plural, one {# comment} other {# comments}}"msgstr "{count, plural, zero {# تعليق} one {تعليق واحد} two {تعليقان} few {# تعليقات} many {# تعليقًا} other {# تعليق}}"+#. placeholder {0}: docs.length+#: src/comments/comment-chips.tsx+msgid "{count, plural, one {# comment} other {# comments}} across {0, plural, one {# file} other {# files}}"+msgstr "{count, plural, zero {# تعليق} one {تعليق واحد} two {تعليقان} few {# تعليقات} many {# تعليقًا} other {# تعليق}} عبر {0, plural, zero {# ملف} one {ملف واحد} two {ملفان} few {# ملفات} many {# ملفًا} other {# ملف}}"+#: src/components/settings/applies-to-folder-picker.tsxmsgid "{count, plural, one {# doc} other {# docs}}"msgstr "{count, plural, zero {لا مستندات} one {مستند واحد} two {مستندان} few {# مستندات} many {# مستندًا} other {# مستند}}"@@ -559,10 +564,6 @@ msgstr "{count} مهارة في هذا المصدر"msgid "{days, plural, one {# day ago} other {# days ago}}"msgstr "{days, plural, zero {قبل # يوم} one {قبل يوم واحد} two {قبل يومين} few {قبل # أيام} many {قبل # يومًا} other {قبل # يوم}}"-#: src/comments/ThreadCard.tsx-msgid "{days}d"-msgstr "{days}ي"-#: src/components/acp/ThreadHistoryMenu.tsxmsgid "{days}d ago"msgstr "قبل {days} يوم"@@ -657,10 +658,6 @@ msgstr "{folderCount, plural, zero {مجلدات} one {مجلد} two {مجلداmsgid "{formatted} GitHub stars"msgstr "{formatted} نجمة على GitHub"-#: src/comments/ThreadCard.tsx-msgid "{hours}h"-msgstr "{hours}س"-#: src/components/acp/ThreadHistoryMenu.tsx#: src/components/ActivityModeContent.tsx#: src/components/ActivityPanelFileRow.tsx@@ -727,10 +724,6 @@ msgstr "{localizedMessage} في السطر {displayLine}"msgid "{mins, plural, one {# min ago} other {# min ago}}"msgstr "{mins, plural, zero {قبل # دقيقة} one {قبل # دقيقة} two {قبل # دقيقة} few {قبل # دقائق} many {قبل # دقيقة} other {قبل # دقيقة}}"-#: src/comments/ThreadCard.tsx-msgid "{mins}m"-msgstr "{mins}د"-#: src/components/SyncStatusBadge.tsxmsgid "{minutes} min ago"msgstr "قبل {minutes} دقيقة"@@ -813,10 +806,6 @@ msgstr "خصائص {propPanelDescriptorLabel}"msgid "{seconds}s ago"msgstr "قبل {seconds} ثانية"-#: src/comments/ThreadCard.tsx-msgid "{secs}s"-msgstr "{secs}ث"-#: src/editor/extensions/JsxComponentView.tsxmsgid "{settingsDescriptorLabel} properties"msgstr "خصائص {settingsDescriptorLabel}"@@ -2500,7 +2489,6 @@ msgstr "يجري استنساخ {repoName}..."msgid "Cloning..."msgstr "يجري الاستنساخ..."-#: src/comments/ThreadCard.tsx#: src/components/EditorTabs.tsx#: src/components/FeedbackForm.tsx#: src/components/InstallInClaudeDesktopDialog.tsx@@ -3391,6 +3379,10 @@ msgstr "تعذّر قطع الاتصال — يرجى المحاولة مرة أmsgid "Couldn't duplicate \"{0}\": {1}"msgstr "تعذّر تكرار «{0}»: {1}"+#: src/comments/reveal-comment.ts+msgid "Couldn't find that passage — the text it was on may have changed."+msgstr "تعذر العثور على ذلك المقطع — ربما تغير النص الذي كان عليه."+#. placeholder {0}: item.displayName#: src/components/acp/ThreadView.tsxmsgid "Couldn't finish installing {0} — see below."@@ -4323,10 +4315,6 @@ msgstr "يميّز بين القوالب المتشابهة الأسماء فيmsgid "Discard local edits, restore the installed version"msgstr "تجاهل التعديلات المحلية واستعد النسخة المثبتة"-#: src/comments/CommentSelectionAffordance.tsx-msgid "Discard this comment"-msgstr "تجاهل هذا التعليق"-#: src/components/settings/AccountSection.tsxmsgid "Disconnect"msgstr "قطع الاتصال"@@ -4426,7 +4414,6 @@ msgstr "مستندات موسومة بـ <0>#{tagName}</0>"msgid "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."msgstr "لا ترى <0>المهارات</0>؟ فعّل <1>الإعدادات <2/> القدرات <3/> تنفيذ الكود وإنشاء الملفات</1> أولًا."-#: src/comments/comment-chips.tsx#: src/comments/ThreadCard.tsxmsgid "Don't send this comment"msgstr "لا ترسل هذا التعليق"@@ -5842,15 +5829,6 @@ msgstr "الانتقال إلى السطر {0}"msgid "Go to line {0} in {1}"msgstr "الانتقال إلى السطر {0} في {1}"-#. placeholder {0}: docBasename(thread.docName)-#: src/comments/comment-chips.tsx-msgid "Go to this comment in {0}"-msgstr "الانتقال إلى هذا التعليق في {0}"--#: src/comments/comment-chips.tsx-msgid "gone"-msgstr "غير موجود"-#: src/components/FeedbackForm.tsxmsgid "Good"msgstr "جيد"@@ -6062,9 +6040,10 @@ msgstr "إخفاء الاستبدال"msgid "Hide resolved"msgstr "إخفاء المحلولة"+#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Hide resolved comments"-msgstr "إخفاء التعليقات المُنجزة"+msgid "Hide resolved comments ({0})"+msgstr "إخفاء التعليقات المحلولة ({0})"#: src/components/BottomComposer.tsxmsgid "Hide selection preview"@@ -6079,10 +6058,6 @@ msgstr "إخفاء الشريط الجانبي"msgid "Hide Terminal"msgstr "إخفاء Terminal"-#: src/comments/comment-chips.tsx-msgid "Hide these comments"-msgstr "إخفاء هذه التعليقات"-#: src/components/EditorTabTargetMenuItems.tsx#: src/components/FileTree.tsxmsgid "Hide this file"@@ -6307,10 +6282,6 @@ msgstr "داخل التطبيق (بيتا)"msgid "In the Claude Desktop App"msgstr "في تطبيق Claude Desktop"-#: src/comments/comment-chips.tsx-msgid "Include this comment in the next send"-msgstr "ضمّن هذا التعليق في الإرسال التالي"-#: src/lib/keyboard-shortcuts.tsmsgid "Indent or outdent list item"msgstr "زيادة أو تقليل إزاحة عنصر القائمة"@@ -6668,6 +6639,10 @@ msgstr "الانتقال إلى آخر تبويب"msgid "Jump to page {pageNumber}"msgstr "الانتقال إلى الصفحة {pageNumber}"+#: src/comments/ThreadCard.tsx+msgid "Jump to selected text in property"+msgstr "الانتقال إلى النص المحدد في الخاصية"+#: src/lib/keyboard-shortcuts.tsmsgid "Jump to tab 1-8"msgstr "الانتقال إلى التبويب 1-8"@@ -7165,7 +7140,12 @@ msgstr "ارسم خريطة البنية"msgid "Mark a block as the source of truth. Mirrors elsewhere update live as you edit it."msgstr "حدّد كتلة كمرجع أساسي. تتحدث المرايا في الأماكن الأخرى مباشرةً أثناء تحريرك لها."-#: src/comments/CommentSendFooter.tsx+#. placeholder {0}: docBasename(group.docName)+#: src/comments/CommentListPanel.tsx+msgid "Mark every comment in {0} to send"+msgstr "تحديد كل التعليقات في {0} للإرسال"++#: src/comments/CommentListPanel.tsxmsgid "Mark every comment to send"msgstr "تحديد كل التعليقات للإرسال"@@ -8405,10 +8385,6 @@ msgstr "افتح لوحة تشخيصات الفحص في CodeMirror."msgid "Open comment"msgstr "فتح التعليق"-#: src/comments/CommentSelectionAffordance.tsx-msgid "Open Comments"-msgstr "فتح التعليقات"-#: src/components/command-palette-commands.ts#: src/lib/platform-labels.tsmsgid "Open containing folder"@@ -8882,10 +8858,6 @@ msgstr "الملف الأصلي — قبل تعديلات هذا الوكيل."msgid "Orphan mode"msgstr "وضع اليتامى"-#: src/comments/ThreadCard.tsx-msgid "Orphaned"-msgstr "يتيم"-#: src/components/GraphPanel.tsxmsgid "Orphans"msgstr "اليتامى"@@ -9370,7 +9342,6 @@ msgid "project"msgstr "مشروع"#: src/components/CommandPalette.tsx-#: src/components/PanelScopeHeader.tsx#: src/components/settings/ScopeBadge.tsx#: src/lib/skill-scope.tsmsgid "Project"@@ -10681,10 +10652,6 @@ msgstr "تحديد التكرار التالي"msgid "Select the full source document."msgstr "حدّد مستند المصدر بالكامل."-#: src/comments/ThreadCard.tsx-msgid "Select this text in the property"-msgstr "حدّد هذا النص في الخاصية"-#: src/lib/keyboard-shortcuts.tsmsgid "Select, enter, or leave block components and fallback source blocks from keyboard boundaries."msgstr "حدّد مكوّنات الكتل وكتل المصدر الاحتياطية أو ادخلها أو غادرها من حدود لوحة المفاتيح."@@ -11143,14 +11110,14 @@ msgstr "إظهار مؤشرات المشكلات"msgid "Show replace"msgstr "إظهار الاستبدال"-#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Show resolved ({0})"-msgstr "إظهار المحلولة ({0})"+msgid "Show resolved"+msgstr "إظهار المحلولة"+#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Show resolved comments"-msgstr "إظهار التعليقات المُنجزة"+msgid "Show resolved comments ({0})"+msgstr "إظهار التعليقات المحلولة ({0})"#: src/components/BottomComposer.tsxmsgid "Show selection preview"@@ -11170,8 +11137,8 @@ msgid "Show Terminal"msgstr "إظهار Terminal"#: src/comments/comment-chips.tsx-msgid "Show these comments"-msgstr "إظهار هذه التعليقات"+msgid "Show these comments in the Comments panel"+msgstr "عرض هذه التعليقات في لوحة التعليقات"#: src/editor/components/Pdf.tsxmsgid "Show thumbnails"@@ -12067,6 +12034,10 @@ msgstr "شكرًا على التقرير!"msgid "That branch is already open in another worktree."msgstr "ذلك الفرع مفتوح بالفعل في شجرة عمل أخرى."+#: src/comments/reveal-comment.ts+msgid "That document didn't open in time. Try again once it has synced."+msgstr "لم يُفتح ذلك المستند في الوقت المناسب. حاول مرة أخرى بعد اكتمال المزامنة."+#: src/components/settings/SearchSection.tsxmsgid "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."msgstr "لا يمكن استخدام نقطة النهاية تلك. أدخل رابط https:// — لا يُسمح بـ http:// إلا للمضيف المحلي."@@ -12112,10 +12083,6 @@ msgstr "الوكيل لا يتوقف. الإيقاف القسري يغلق هذmsgid "The agent's persona, values, and voice."msgstr "شخصية الوكيل وقيمه ونبرته."-#: src/comments/ThreadCard.tsx-msgid "The anchored text is gone. You can re-place it on selected text."-msgstr "اختفى النص المرتبط. يمكنك إعادة وضعه على نص محدد."-#: src/components/ProblemsPanel.tsxmsgid "The audit could not be completed. Try again."msgstr "تعذّر إتمام المراجعة. أعد المحاولة."@@ -12194,6 +12161,10 @@ msgstr "معرّف النموذج الذي تخدمه نقطة نهايتك. يmsgid "the open agent"msgstr "الوكيل المفتوح"+#: src/comments/ThreadCard.tsx+msgid "The original text was deleted. You can re-place this comment on selected text."+msgstr "تم حذف النص الأصلي. يمكنك إعادة وضع هذا التعليق على النص المحدد."+#: src/editor/components/PreviewBlockedNotice.tsxmsgid "The preview blocks resources that don't meet its security rules (for example plain http:// URLs, or code that uses eval). The content above may render incompletely."msgstr "تحظر المعاينة الموارد التي لا تستوفي قواعد أمانها (مثل روابط http:// العادية، أو الكود الذي يستخدم eval). قد يُعرض المحتوى أعلاه على نحو ناقص."@@ -12219,10 +12190,6 @@ msgstr "رفض المزوّد الطلب (HTTP {0}). تحقق من مفتاح APmsgid "The provider rejected the request. Check the API key and the model id."msgstr "رفض المزوّد الطلب. تحقق من مفتاح API ومعرّف النموذج."-#: src/comments/comment-chips.tsx-msgid "The quoted text is no longer in the document — the agent will be told."-msgstr "لم يعد النص المقتبس في المستند — سيُبلَّغ الوكيل بذلك."-#: src/components/ReportBugDialogBody.tsxmsgid "The report service couldn't be reached."msgstr "تعذّر الوصول إلى خدمة التقارير."@@ -12599,7 +12566,7 @@ msgstr "يؤدي هذا إلى إزالة {0}/{1} نهائيًا من المهاmsgid "This permanently removes {path}. Agents that reference this template by name will fail until it's recreated or replaced by one in a parent folder."msgstr "يزيل هذا {path} نهائيًا. ستفشل الوكلاء التي تشير إلى هذا القالب بالاسم حتى يُنشأ من جديد أو يحل محله قالب في مجلد أب."-#: src/comments/CommentsTab.tsx+#: src/components/PanelScopeHeader.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "This project"msgstr "هذا المشروع"@@ -13090,10 +13057,15 @@ msgstr "خطأ غير معروف"msgid "unlink"msgstr "فك الارتباط"-#: src/comments/CommentSendFooter.tsx+#: src/comments/CommentListPanel.tsxmsgid "Unmark every comment"msgstr "إلغاء تحديد كل التعليقات"+#. placeholder {0}: docBasename(group.docName)+#: src/comments/CommentListPanel.tsx+msgid "Unmark every comment in {0}"+msgstr "إلغاء تحديد كل التعليقات في {0}"+#: src/editor/slash-command/items.tsxmsgid "Unordered list of items."msgstr "قائمة عناصر غير مرتّبة."@@ -13399,6 +13371,10 @@ msgstr "عرض {name}"msgid "View as text"msgstr "العرض كنص"+#: src/comments/CommentSelectionAffordance.tsx+msgid "View comments"+msgstr "عرض التعليقات"+#: src/components/ActivityPanelBurstRow.tsxmsgid "View diff for edit {burstNumber} of {docName}"msgstr "عرض فروق التعديل {burstNumber} في {docName}"diff --git a/packages/app/src/locales/bn/messages.json b/packages/app/src/locales/bn/messages.jsonindex 7693cc61b..e14ddb2a6 100644--- a/packages/app/src/locales/bn/messages.json+++ b/packages/app/src/locales/bn/messages.json@@ -50,6 +50,7 @@"03wKPg": ["একটি রিপোর্ট আমাদের কারণ খুঁজে পেতে সাহায্য করে। আপনার পর্যালোচনার আগে কিছুই পাঠানো হয় না।"],"04RA0-": ["সিঙ্ক চালু করতে ব্যর্থ — ", ["detail"]],"04XyCH": [["0"], "-এ একটি পরিচালিত ব্লক যোগ করে"],+ "05F1GY": ["মূল লেখাটি মুছে ফেলা হয়েছে। আপনি এই মন্তব্যটি নির্বাচিত লেখার উপর আবার বসাতে পারেন।"],"05n5wS": ["নথি উল্লেখের পরামর্শ"],"06SZfb": ["টেমপ্লেট \"", ["trimmedTitle"], "\" তৈরি হয়েছে"],"07eGJB": ["স্কিল সরানো যায়নি: ", ["0"]],@@ -119,7 +120,6 @@"11ukmX": ["নাম বদলানো ব্যর্থ: ", ["0"]],"12F9WL": ["(কোনো id নেই)"],"151wvk": ["সাইডবার দেখান"],- "15MMFT": ["এই মন্তব্যগুলো দেখান"],"15ZHCt": ["এই সংস্করণে মূল অংশের কোনো পরিবর্তন নেই।"],"161NCV": ["থামানো হচ্ছে"],"16D5Zj": ["আপনি কি নিশ্চিত যে ", ["itemName"], " মুছে ফেলতে চান? এই কাজ ফেরানো যাবে না।"],@@ -192,7 +192,6 @@"2QM24L": ["সব ট্যাগ"],"2RnFoM": ["এই চ্যাট পুনরায় শুরু করা যায়নি: ", ["0"]],"2Snes1": ["এটি লিংকের ঠিকানা আপনার মেশিনের বাইরে পাঠায়"],- "2UgoBZ": ["চলে গেছে"],"2VSPan": ["এজেন্ট প্যানেলের জন্য জায়গা করতে Terminal বন্ধ করা হয়েছে।"],"2XQ8Ww": ["এজেন্ট সম্পাদনা করলে প্রাকদর্শন খুলুন"],"2YOwme": ["পুনরায় চালু হয়েছে — এখন v", ["appRuntime"], " চলছে।"],@@ -217,6 +216,7 @@"2vIPtm": ["লিংক নতুন ট্যাবে খুলুন"],"2wTb8w": ["Plugins-এর নিচে এর নিজের পাতায় এটি সাজান।"],"2wxgft": ["নাম বদলান"],+ "2zvUIK": ["এই মন্তব্যগুলি মন্তব্য প্যানেলে দেখান"],"322lyb": ["পরামর্শ, সতর্কতা ও নোট হাইলাইট করুন।"],"34qyH5": ["সার্ভারের নাগাল পাওয়া যায়নি"],"36WXSC": ["টেমপ্লেট মুছে ফেলা যায়নি: ", ["error"]],@@ -320,7 +320,6 @@"4buZWd": [["path"], " থেকে উত্তরাধিকারসূত্রে পাওয়া"],"4c_a6S": ["এখনও কিছুই নির্ধারিত হয়নি।"],"4d0VYJ": ["এই নাম থেকে আমরা একটি নিরাপদ থিম আইডি তৈরি করব।"],- "4eO-iB": ["এই মন্তব্যটি বাদ দিন"],"4g19V6": ["প্রপার্টি হালনাগাদ করতে ব্যর্থ"],"4h3e0H": ["স্কিল ভাগাভাগি হালনাগাদ করা যায়নি — ", ["detail"], "।"],"4hJhzz": ["টেবিল"],@@ -338,7 +337,6 @@"4sKwf6": ["ফাইলটি আগে থেকেই আছে"],"4sUdTJ": ["থিমযুক্ত প্রাকদর্শন"],"4uNLmk": ["টানা হচ্ছে"],- "4uaCUA": [["mins"], "মি"],"4v2Yyz": ["ফোকাস Files সাইডবারে থাকলে দৃশ্যমান প্রতিটি ফাইল-ট্রি সারি নির্বাচন করুন।"],"4wo5UV": ["নির্বাচিতগুলো ইনস্টল করুন"],"4xtLTl": ["লুকানো ফোল্ডার “", ["basename"], "”"],@@ -364,7 +362,6 @@"5ClEAu": ["ক্রস-নথি গোষ্ঠীকরণের জন্য ইনলাইন হ্যাশট্যাগ।"],"5D3Ior": ["ফোল্ডার লুকান"],"5F5HYj": [["ahead"], " এগিয়ে, ", ["behind"], " পিছিয়ে"],- "5GBQ-F": ["প্রপার্টিতে এই লেখাটি নির্বাচন করুন"],"5GKMSz": ["বর্তমান তালিকা আইটেমটি ভেতরে বা বাইরে নিন।"],"5GRxoA": ["বর্তমান ওয়ার্কস্পেসের ফাইল, ফোল্ডার ও কমান্ড খুঁজুন।"],"5HJpFY": ["চলমান টার্নের পিছনে সারিতে থাকে"],@@ -386,6 +383,11 @@"এই এন্ডপয়েন্ট আপনার কনফিগার করা ভেক্টরের আকার উপেক্ষা করেছে। মডেলের নিজের আকার ব্যবহার করতে <0>search.semantic.dimensions</0> সরিয়ে দিন।"],"5Tk8Fb": ["ফাইল লোড হচ্ছে"],+ "5TmrYN": [+ ["count", "plural", { "one": ["#", " মন্তব্য"], "other": ["#", " মন্তব্য"] }],+ " ",+ ["0", "plural", { "one": ["#", " ফাইলে"], "other": ["#", " ফাইলে"] }]+ ],"5Umg9i": ["বাইরের লিংকের প্রাকদর্শন নিষ্ক্রিয় করুন"],"5WDhAk": ["একটি পাতা বা বাইরের URL-এ লিংক করুন।"],"5Y17qa": ["যার ক্ষেত্রে প্রযোজ্য (গ্লোব — শুরুতে ! থাকলে বাদ দেয়; খালি মানে প্রতিটি নথি)"],@@ -913,6 +915,7 @@"DbILZA": ["কোনো মিল নেই। কিছু ফাইল অনুসন্ধান থেকে বাদ দেওয়া (লুকানো বা উপেক্ষিত ফাইল)।"],"DcFr-y": ["OpenKnowledge একটি নথি মুছে ফেলেছে"],"DcLaew": ["কাস্টম থিম"],+ "Dd6j2Q": ["মন্তব্য দেখুন"],"DeDYLr": ["অচেনা উইকি লিংক"],"DgcGrb": [["fileCount", "plural", { "one": ["ফাইল"], "other": ["ফাইল"] }]],"DhLHEb": ["কার্যকলাপ লোড করতে ব্যর্থ"],@@ -1082,6 +1085,7 @@"FgQ7XZ": ["আপনার বাগ রিপোর্ট লোড করা যায়নি।"],"FgRAvd": ["লগ ও সিস্টেমের তথ্য"],"Fhp4Gn": ["প্লাগইন দেখুন"],+ "FiyNln": ["প্রপার্টিতে নির্বাচিত লেখায় যান"],"FjkaiT": ["ছোট করুন"],"FqGWeR": ["এজেন্ট রেজিস্ট্রির নাগাল পাওয়া যায়নি।"],"FqTpiN": ["পাখি উইকি"],@@ -1107,7 +1111,6 @@"G0YZ-I": ["তালিকা আইটেম ভেতরে বা বাইরে নিন"],"G1Gw0v": ["নতুন টেমপ্লেট"],"G1XxbZ": ["চেকবক্স"],- "G1zJlD": ["সমাধান হওয়া মন্তব্য লুকান"],"G4m8rL": ["নির্বাচনের উপর মন্তব্য"],"G6Lrs_": [["0"], "-কে এই স্কিলটি পড়া থেকে থামান"],"G7-rf8": ["প্যাটার্নের বাক্যরীতি ত্রুটি: ", ["message"]],@@ -1294,6 +1297,7 @@"কোনো বিচ্ছিন্ন পাতা নেই। পাতা এখানে কেবল তখনই দেখা যায় যখন তার কোনো আগত ও কোনো বহির্গামী গ্রাফ প্রান্ত থাকে না।"],"JDHcCM": ["জনপ্রিয় স্কিল লোড হচ্ছে"],+ "JDQ5I5": ["সেই নথিটি সময়মতো খোলেনি। সিঙ্ক হয়ে গেলে আবার চেষ্টা করুন।"],"JE21eh": [["targetPath"], "-এর সিমলিংক"],"JG_8KT": ["GitHub থেকে টানা যায়নি। আপনার সংযোগ ও সাইন-ইন দেখুন, তারপর আবার চেষ্টা করুন।"],"JHf6qZ": ["[email protected]"],@@ -1365,6 +1369,7 @@"KZLdgR": ["সর্বশেষ স্পেকের জন্য <0>#design-docs</0> দেখুন।"],"K_vT1F": ["আপস্ট্রিম সিঙ্ক"],"KaFCD3": ["এই লিংকটি নতুন ট্যাবে খুলুন এবং গ্রাফ গুটিয়ে নিন।"],+ "KeXgA-": ["সেই অংশটি খুঁজে পাওয়া যায়নি — এটি যে লেখায় ছিল তা পরিবর্তিত হয়ে থাকতে পারে।"],"Kf7GG5": ["সার্ভার পুনরায় চালু করা হচ্ছে…"],"Kge76t": ["সারির বিকল্প"],"Kh1n4a": [@@ -1490,7 +1495,6 @@"M92_0q": ["মন্তব্য বন্ধ করুন"],"M9597s": ["শেয়ার URL প্রস্তুত করা হচ্ছে…"],"MBKkUy": ["skills.sh পাওয়া যাচ্ছে না; GitHub-এর ফলাফল দেখানো হচ্ছে (ইনস্টল অনুযায়ী ক্রম নেই)।"],- "MBe6TE": ["উদ্ধৃত লেখাটি আর নথিতে নেই — এজেন্টকে জানানো হবে।"],"MCjC9A": [["deleteDescriptorLabel"], " মুছুন"],"MDBJwN": ["ব্যবহার করা কঠিন"],"MDZSJe": ["এজেন্ট কখন তার নির্ধারিত কাজ চালায়।"],@@ -1594,7 +1598,6 @@"NeY1Np": ["Slidev চালু হতে সময় শেষ হয়ে গেছে। আবার চেষ্টা করুন।"],"NfraGd": ["Slidev ইনস্টল করার অন্যান্য উপায়"],"NgZwB0": [["0"], "টির মধ্যে ", ["enabledCount"], "টি চালু"],- "NiGIcB": ["মন্তব্য খুলুন"],"NjrIak": ["ফাইল: <0>", ["fixedName"], ".md</0>"],"NkNfSr": [["tag"], " সম্পাদনা করুন"],"NkXEFS": ["ফিরিয়ে আনা ব্যর্থ — নথি অপরিবর্তিত"],@@ -1701,6 +1704,7 @@"PBxg_E": ["এখন নয়"],"PCSkw2": ["স্কিল"],"PGPGsL": ["বিবরণ যোগ করুন"],+ "PHHEuH": ["সমাধান হওয়া মন্তব্য লুকান (", ["0"], ")"],"PIMM5l": ["আপনি সদস্য হয়েছেন!"],"PKLY-1": ["খোলা হচ্ছে…"],"PKjGhT": ["শিরোনাম"],@@ -1805,7 +1809,6 @@"QpSqAP": ["এই প্রকল্পের জন্য আসল শেল বন্ধ আছে। চালু করলে কমান্ডগুলো আপনার ইউজার অ্যাকাউন্টের পূর্ণ অ্যাক্সেস নিয়ে চলে।"],- "Qpfxa1": [["secs"], "সে"],"QqBQu1": ["লেবেল <0>(দৃশ্যমান লিংকের লেখা)</0>"],"Qvls7J": ["ইঞ্জিনিয়ারিং স্পেক"],"Qw-7Ie": [@@ -1947,6 +1950,7 @@],"T-654M": ["PDF লোড হচ্ছে"],"T0OVm7": ["ডিফল্ট ব্রাঞ্চটি সুরক্ষিত — পাঠাতে একটি পুল রিকোয়েস্ট লাগে।"],+ "T2fvhw": [["0"], "-এর সব মন্তব্যের চিহ্ন সরান"],"T3Mld1": ["জানালা"],"T3j-7o": ["যেমন সিঙ্ক চলার সময় প্রকল্প বদলানো"],"TBfy1C": ["Slidev চালু করা যায়নি।"],@@ -1998,7 +2002,6 @@"UDFrWm": ["GitHub সংযোগ পরীক্ষা করা হচ্ছে…"],"UD_onR": ["ভাবা হচ্ছে…"],"UDb2YD": ["React"],- "UEdTEN": ["অনাথ"],"UGeJuP": ["অনুমোদিত মান (খালি = যেকোনো)"],"UGtPix": ["GitHub সংযোগের মেয়াদ শেষ হয়েছে। চালিয়ে যেতে আবার সংযোগ করুন।"],"UH0Zqw": ["এটি একটি সাধারণ থিম ফাইল নয়"],@@ -2060,7 +2063,6 @@"UkQGhd": ["বদলানো লুকান"],"UlVARL": ["Slidev চালু করুন"],"Uobeu9": ["স্কিলটি ", ["rootRel"], "-এ যোগ করে — যা ", ["0"], "-ও পড়ে"],- "Uoux8m": ["পরের বার পাঠানোর সময় এই মন্তব্যটি অন্তর্ভুক্ত করুন"],"Up2_7p": ["পূর্ণ পথ কপি করুন"],"UpCz01": ["এই নথি"],"UpOct_": ["এই বার্তায় আপনার মন্তব্য যোগ করুন"],@@ -2183,6 +2185,7 @@"Wh0im4": ["[[", ["realCurrentDoc"], "]] সম্পাদনা করা হচ্ছে"],"WhOsNE": ["কাটা দাগ"],"Wi-VWy": ["রিপোর্ট পাঠানো যায়নি"],+ "WkQ0Z_": [["0"], "-এর সব মন্তব্য পাঠানোর জন্য চিহ্নিত করুন"],"WkTLN7": ["কেবল markdown ফাইল দেখান"],"WkyP2p": ["স্কিল বিভাগ"],"WmPbvm": ["আপনার ইনবক্সে পণ্যের হালনাগাদ পান।"],@@ -2230,7 +2233,6 @@"XV5sC0": ["ওয়ার্কট্রি খুলুন"],"XVnIvs": ["স্কিল ইনস্টল করুন"],"XW18jo": ["পাতার শিরোনামের সাড়া সাফল্য স্কিমার সঙ্গে মেলেনি"],- "XWEqQj": [["days"], "দি"],"XXA1b_": [["componentLabel"], " (খালি)"],"XYZ7tp": ["সমাধান অযোগ্য"],"XYlJJT": ["সেট আপ করা হচ্ছে"],@@ -2478,7 +2480,6 @@"অন্য নথির একটি MirrorSource ব্লকের শুধু-পড়ার অনুলিপি। উৎসে সম্পাদনা করুন, এটি সঙ্গে সঙ্গে হালনাগাদ হয়।"],"_XWY2J": ["টার্মিনাল নিষ্ক্রিয়"],- "_YEyHO": ["সমাধান হওয়া মন্তব্য দেখান"],"_YWqV2": ["OpenKnowledge একটি দ্বন্দ্ব সমাধান করেছে"],"_ayOfA": ["এমন একটি জ্ঞানভাণ্ডার যা Google-এর Open Knowledge Format মেনে চলে, অর্থাৎ আপনি যা জানেন তা গুছিয়ে রাখার একটি সাধারণ উপায়। আপনার নোট যদি এই ফরম্যাট বোঝে এমন অন্য টুলের সঙ্গেও ভালো কাজ করুক চান, তবে এটি বাছুন।"@@ -2490,7 +2491,6 @@"_gO_m8": ["আপনার অনুমোদনের অপেক্ষা"],"_gkGSK": ["টেমপ্লেট মুছে ফেলা হয়েছে"],"_mcDqU": ["এই উৎসে ", ["count"], "টি স্কিল"],- "_oqig9": [["hours"], "ঘ"],"_pY_Vq": ["রিপোজিটরিটি সরানো হয়েছে, নাম বদলানো হয়েছে, বা মুছে ফেলা হয়েছে।"],"_qD6mn": ["আপনি যেখানে এটি ক্লোন করেছেন সেই ফোল্ডারটি বাছুন।"],"_rP3HI": [["minutes"], " মিনিট আগে"],@@ -2887,6 +2887,7 @@"gBbxn_": ["সাইন-ইন অবস্থা পরীক্ষা করা হচ্ছে"],"gGVP4q": ["<0>+</0> <1/> <2>স্কিল তৈরি করুন</2> <3/> <4>স্কিল আপলোড করুন</4>-এ ক্লিক করুন।"],"gHSAWT": ["ওয়ার্কট্রি <0>“<1>", ["typedName"], "</1>”</0> তৈরি করুন"],+ "gHb5bB": ["সমাধান হওয়া মন্তব্য দেখান (", ["0"], ")"],"gITz7o": ["CodeMirror-এর আদর্শ সোর্স-সম্পাদক নেভিগেশন কীম্যাপ দিয়ে কার্সর সরান বা নির্বাচন বাড়ান।"],"gJR87V": ["প্রকল্পের ফোল্ডার তৈরি করা যায়নি। অন্য ফোল্ডার বাছুন।"],"gKi-a_": ["নতুন প্রকল্প"],@@ -3095,7 +3096,6 @@"iy64Li": ["পূর্ণ সিঙ্ক — আপনার সম্পাদনা নিজে থেকেই কমিট হয়ে আপনার রিমোটে পাঠানো হয়।"],"iycx_A": ["পাঠানো হচ্ছে"],"iz1LdD": ["OK শেষবার এখানে লেখার পর বাইরে থেকে বদলানো হয়েছে — দেখানো অবস্থাটি এখন ডিস্কে যা আছে তাই"],- "j0ItfO": ["মীমাংসিত দেখান (", ["0"], ")"],"j15ZSH": ["মন্তব্য পাঠান"],"j2229h": ["OpenKnowledge-এর ফাইল সরানো হচ্ছে…"],"j2kt1j": [@@ -3195,7 +3195,6 @@["targetNoun"]," দেখা যাবে।"],- "kMKqP_": ["এই মন্তব্যগুলো লুকান"],"kNGLX6": ["পুনরায় চেষ্টা করা হচ্ছে…"],"kNqMMd": ["ফোল্ডার"],"kRTXGw": [@@ -3420,7 +3419,6 @@"nBgzKO": ["এটিকে উৎস বানান — স্কিলের আসল ফোল্ডার এখানে সরে আসে"],"nCzR-G": ["কোড ", ["userCode"], " কপি করুন"],"nDT8qt": [["0"], " চালু করা হয়েছে কিন্তু সেটি খোলা যায়নি।"],- "nG-XA9": ["অ্যাংকর করা লেখাটি আর নেই। আপনি এটি নির্বাচিত লেখার উপর আবার বসাতে পারেন।"],"nMSYz5": ["এই পথটি একটি বাইরের ভলিউমে (/Volumes/…)। ড্রাইভটি বের করে নিলে OpenKnowledge ফাইলগুলোর হদিস হারিয়ে ফেলবে।"],@@ -3482,6 +3480,7 @@"nzaV6Q": ["পাতার থাম্বনেইল"],"o0bHtA": ["OpenKnowledge-এর তৈরি"],"o49mDZ": ["কালানুক্রমের ইতিহাস লোড হচ্ছে"],+ "o7AkQ0": ["সমাধান হওয়াগুলি দেখান"],"o9CrsQ": ["research-note"],"o9fPtM": ["উৎস থেকে স্বয়ংক্রিয় হালনাগাদ"],"o9yN4T": ["রিসাইকেল বিনে পাঠান"],@@ -3713,7 +3712,6 @@"roAe2K": ["লিংক URL"],"roiUQQ": ["এই পাতাটি এখনও কোনো কিছুর সঙ্গে লিংক করে না।"],"rppgXF": ["সংযোগ বিচ্ছিন্ন করা হচ্ছে"],- "rscgd_": [["0"], "-এ এই মন্তব্যে যান"],"rssK8c": ["উপেক্ষার প্যাটার্ন (কাঁচা লেখা)"],"rtdR4v": ["Files দেখান বা লুকান"],"rtir7c": ["অজানা"],diff --git a/packages/app/src/locales/bn/messages.po b/packages/app/src/locales/bn/messages.poindex 8976d9fe4..3cc3e2fac 100644--- a/packages/app/src/locales/bn/messages.po+++ b/packages/app/src/locales/bn/messages.po@@ -511,6 +511,11 @@ msgstr "{conflictCount, plural, one {# ফাইলে দ্বন্দ্ব}msgid "{count, plural, one {# comment} other {# comments}}"msgstr "{count, plural, one {# মন্তব্য} other {# মন্তব্য}}"+#. placeholder {0}: docs.length+#: src/comments/comment-chips.tsx+msgid "{count, plural, one {# comment} other {# comments}} across {0, plural, one {# file} other {# files}}"+msgstr "{count, plural, one {# মন্তব্য} other {# মন্তব্য}} {0, plural, one {# ফাইলে} other {# ফাইলে}}"+#: src/components/settings/applies-to-folder-picker.tsxmsgid "{count, plural, one {# doc} other {# docs}}"msgstr "{count, plural, one {# টি নথি} other {# টি নথি}}"@@ -559,10 +564,6 @@ msgstr "এই উৎসে {count}টি স্কিল"msgid "{days, plural, one {# day ago} other {# days ago}}"msgstr "{days, plural, one {# দিন আগে} other {# দিন আগে}}"-#: src/comments/ThreadCard.tsx-msgid "{days}d"-msgstr "{days}দি"-#: src/components/acp/ThreadHistoryMenu.tsxmsgid "{days}d ago"msgstr "{days} দিন আগে"@@ -657,10 +658,6 @@ msgstr "{folderCount, plural, one {ফোল্ডার} other {ফোল্ডmsgid "{formatted} GitHub stars"msgstr "{formatted}টি GitHub স্টার"-#: src/comments/ThreadCard.tsx-msgid "{hours}h"-msgstr "{hours}ঘ"-#: src/components/acp/ThreadHistoryMenu.tsx#: src/components/ActivityModeContent.tsx#: src/components/ActivityPanelFileRow.tsx@@ -727,10 +724,6 @@ msgstr "{displayLine} নম্বর লাইনে {localizedMessage}"msgid "{mins, plural, one {# min ago} other {# min ago}}"msgstr "{mins, plural, one {# মিনিট আগে} other {# মিনিট আগে}}"-#: src/comments/ThreadCard.tsx-msgid "{mins}m"-msgstr "{mins}মি"-#: src/components/SyncStatusBadge.tsxmsgid "{minutes} min ago"msgstr "{minutes} মিনিট আগে"@@ -813,10 +806,6 @@ msgstr "{propPanelDescriptorLabel} প্রপার্টি"msgid "{seconds}s ago"msgstr "{seconds} সেকেন্ড আগে"-#: src/comments/ThreadCard.tsx-msgid "{secs}s"-msgstr "{secs}সে"-#: src/editor/extensions/JsxComponentView.tsxmsgid "{settingsDescriptorLabel} properties"msgstr "{settingsDescriptorLabel} প্রপার্টি"@@ -2496,7 +2485,6 @@ msgstr "{repoName} ক্লোন করা হচ্ছে…"msgid "Cloning..."msgstr "ক্লোন করা হচ্ছে…"-#: src/comments/ThreadCard.tsx#: src/components/EditorTabs.tsx#: src/components/FeedbackForm.tsx#: src/components/InstallInClaudeDesktopDialog.tsx@@ -3387,6 +3375,10 @@ msgstr "সংযোগ বিচ্ছিন্ন করা যায়নিmsgid "Couldn't duplicate \"{0}\": {1}"msgstr "\"{0}\"-এর প্রতিলিপি বানানো যায়নি: {1}"+#: src/comments/reveal-comment.ts+msgid "Couldn't find that passage — the text it was on may have changed."+msgstr "সেই অংশটি খুঁজে পাওয়া যায়নি — এটি যে লেখায় ছিল তা পরিবর্তিত হয়ে থাকতে পারে।"+#. placeholder {0}: item.displayName#: src/components/acp/ThreadView.tsxmsgid "Couldn't finish installing {0} — see below."@@ -4319,10 +4311,6 @@ msgstr "মেনুতে একই রকম নামের টেমপ্msgid "Discard local edits, restore the installed version"msgstr "স্থানীয় সম্পাদনা বাদ দিন, ইনস্টল করা সংস্করণ ফিরিয়ে আনুন"-#: src/comments/CommentSelectionAffordance.tsx-msgid "Discard this comment"-msgstr "এই মন্তব্যটি বাদ দিন"-#: src/components/settings/AccountSection.tsxmsgid "Disconnect"msgstr "সংযোগ বিচ্ছিন্ন করুন"@@ -4422,7 +4410,6 @@ msgstr "<0>#{tagName}</0> ট্যাগযুক্ত নথি"msgid "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."msgstr "<0>Skills</0> দেখতে পাচ্ছেন না? আগে <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> চালু করুন।"-#: src/comments/comment-chips.tsx#: src/comments/ThreadCard.tsxmsgid "Don't send this comment"msgstr "এই মন্তব্যটি পাঠাবেন না"@@ -5838,15 +5825,6 @@ msgstr "লাইন {0}-এ যান"msgid "Go to line {0} in {1}"msgstr "{1}-এ লাইন {0}-এ যান"-#. placeholder {0}: docBasename(thread.docName)-#: src/comments/comment-chips.tsx-msgid "Go to this comment in {0}"-msgstr "{0}-এ এই মন্তব্যে যান"--#: src/comments/comment-chips.tsx-msgid "gone"-msgstr "চলে গেছে"-#: src/components/FeedbackForm.tsxmsgid "Good"msgstr "ভালো"@@ -6058,9 +6036,10 @@ msgstr "বদলানো লুকান"msgid "Hide resolved"msgstr "মীমাংসিত লুকান"+#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Hide resolved comments"-msgstr "সমাধান হওয়া মন্তব্য লুকান"+msgid "Hide resolved comments ({0})"+msgstr "সমাধান হওয়া মন্তব্য লুকান ({0})"#: src/components/BottomComposer.tsxmsgid "Hide selection preview"@@ -6075,10 +6054,6 @@ msgstr "সাইডবার লুকান"msgid "Hide Terminal"msgstr "Terminal লুকান"-#: src/comments/comment-chips.tsx-msgid "Hide these comments"-msgstr "এই মন্তব্যগুলো লুকান"-#: src/components/EditorTabTargetMenuItems.tsx#: src/components/FileTree.tsxmsgid "Hide this file"@@ -6303,10 +6278,6 @@ msgstr "অ্যাপে (বিটা)"msgid "In the Claude Desktop App"msgstr "Claude Desktop App-এ"-#: src/comments/comment-chips.tsx-msgid "Include this comment in the next send"-msgstr "পরের বার পাঠানোর সময় এই মন্তব্যটি অন্তর্ভুক্ত করুন"-#: src/lib/keyboard-shortcuts.tsmsgid "Indent or outdent list item"msgstr "তালিকা আইটেম ভেতরে বা বাইরে নিন"@@ -6664,6 +6635,10 @@ msgstr "শেষ ট্যাবে যান"msgid "Jump to page {pageNumber}"msgstr "পাতা {pageNumber}-এ যান"+#: src/comments/ThreadCard.tsx+msgid "Jump to selected text in property"+msgstr "প্রপার্টিতে নির্বাচিত লেখায় যান"+#: src/lib/keyboard-shortcuts.tsmsgid "Jump to tab 1-8"msgstr "ট্যাব ১-৮-এ যান"@@ -7161,7 +7136,12 @@ msgstr "স্থাপত্যের মানচিত্র আঁকুন"msgid "Mark a block as the source of truth. Mirrors elsewhere update live as you edit it."msgstr "একটি ব্লককে সত্যের উৎস হিসেবে চিহ্নিত করুন। আপনি সেটি সম্পাদনা করার সঙ্গে সঙ্গে অন্য জায়গার মিররগুলো হালনাগাদ হয়।"-#: src/comments/CommentSendFooter.tsx+#. placeholder {0}: docBasename(group.docName)+#: src/comments/CommentListPanel.tsx+msgid "Mark every comment in {0} to send"+msgstr "{0}-এর সব মন্তব্য পাঠানোর জন্য চিহ্নিত করুন"++#: src/comments/CommentListPanel.tsxmsgid "Mark every comment to send"msgstr "পাঠানোর জন্য সব মন্তব্য চিহ্নিত করুন"@@ -8401,10 +8381,6 @@ msgstr "CodeMirror-এর lint নির্ণয় প্যানেল খmsgid "Open comment"msgstr "মন্তব্য খুলুন"-#: src/comments/CommentSelectionAffordance.tsx-msgid "Open Comments"-msgstr "মন্তব্য খুলুন"-#: src/components/command-palette-commands.ts#: src/lib/platform-labels.tsmsgid "Open containing folder"@@ -8878,10 +8854,6 @@ msgstr "মূল ফাইল — এই এজেন্টের সম্পmsgid "Orphan mode"msgstr "অনাথ মোড"-#: src/comments/ThreadCard.tsx-msgid "Orphaned"-msgstr "অনাথ"-#: src/components/GraphPanel.tsxmsgid "Orphans"msgstr "অনাথ"@@ -9366,7 +9338,6 @@ msgid "project"msgstr "প্রকল্প"#: src/components/CommandPalette.tsx-#: src/components/PanelScopeHeader.tsx#: src/components/settings/ScopeBadge.tsx#: src/lib/skill-scope.tsmsgid "Project"@@ -10677,10 +10648,6 @@ msgstr "পরবর্তী উপস্থিতি নির্বাচনmsgid "Select the full source document."msgstr "পুরো সোর্স নথিটি নির্বাচন করুন।"-#: src/comments/ThreadCard.tsx-msgid "Select this text in the property"-msgstr "প্রপার্টিতে এই লেখাটি নির্বাচন করুন"-#: src/lib/keyboard-shortcuts.tsmsgid "Select, enter, or leave block components and fallback source blocks from keyboard boundaries."msgstr "কীবোর্ডের সীমানা থেকে ব্লক কম্পোনেন্ট ও ফলব্যাক সোর্স ব্লক নির্বাচন করুন, তাতে ঢুকুন, বা বেরিয়ে আসুন।"@@ -11139,14 +11106,14 @@ msgstr "সমস্যার সূচক দেখান"msgid "Show replace"msgstr "বদলানো দেখান"-#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Show resolved ({0})"-msgstr "মীমাংসিত দেখান ({0})"+msgid "Show resolved"+msgstr "সমাধান হওয়াগুলি দেখান"+#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Show resolved comments"-msgstr "সমাধান হওয়া মন্তব্য দেখান"+msgid "Show resolved comments ({0})"+msgstr "সমাধান হওয়া মন্তব্য দেখান ({0})"#: src/components/BottomComposer.tsxmsgid "Show selection preview"@@ -11166,8 +11133,8 @@ msgid "Show Terminal"msgstr "Terminal দেখান"#: src/comments/comment-chips.tsx-msgid "Show these comments"-msgstr "এই মন্তব্যগুলো দেখান"+msgid "Show these comments in the Comments panel"+msgstr "এই মন্তব্যগুলি মন্তব্য প্যানেলে দেখান"#: src/editor/components/Pdf.tsxmsgid "Show thumbnails"@@ -12063,6 +12030,10 @@ msgstr "রিপোর্টের জন্য ধন্যবাদ!"msgid "That branch is already open in another worktree."msgstr "ওই ব্রাঞ্চটি আগে থেকেই অন্য একটি ওয়ার্কট্রিতে খোলা।"+#: src/comments/reveal-comment.ts+msgid "That document didn't open in time. Try again once it has synced."+msgstr "সেই নথিটি সময়মতো খোলেনি। সিঙ্ক হয়ে গেলে আবার চেষ্টা করুন।"+#: src/components/settings/SearchSection.tsxmsgid "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."msgstr "ওই এন্ডপয়েন্টটি ব্যবহার করা যায় না। একটি https:// URL দিন — http:// কেবল localhost-এর জন্য অনুমোদিত।"@@ -12108,10 +12079,6 @@ msgstr "এজেন্ট থামছে না। ফোর্স স্টmsgid "The agent's persona, values, and voice."msgstr "এজেন্টের ব্যক্তিত্ব, মূল্যবোধ ও স্বর।"-#: src/comments/ThreadCard.tsx-msgid "The anchored text is gone. You can re-place it on selected text."-msgstr "অ্যাংকর করা লেখাটি আর নেই। আপনি এটি নির্বাচিত লেখার উপর আবার বসাতে পারেন।"-#: src/components/ProblemsPanel.tsxmsgid "The audit could not be completed. Try again."msgstr "নিরীক্ষা সম্পূর্ণ করা যায়নি। আবার চেষ্টা করুন।"@@ -12190,6 +12157,10 @@ msgstr "আপনার এন্ডপয়েন্ট যে মডেল idmsgid "the open agent"msgstr "খোলা এজেন্ট"+#: src/comments/ThreadCard.tsx+msgid "The original text was deleted. You can re-place this comment on selected text."+msgstr "মূল লেখাটি মুছে ফেলা হয়েছে। আপনি এই মন্তব্যটি নির্বাচিত লেখার উপর আবার বসাতে পারেন।"+#: src/editor/components/PreviewBlockedNotice.tsxmsgid "The preview blocks resources that don't meet its security rules (for example plain http:// URLs, or code that uses eval). The content above may render incompletely."msgstr "প্রাকদর্শন সেসব সম্পদ আটকে দেয় যেগুলো তার নিরাপত্তা নিয়ম মানে না (উদাহরণস্বরূপ সাধারণ http:// URL, বা eval ব্যবহার করা কোড)। উপরের বিষয়বস্তু অসম্পূর্ণভাবে রেন্ডার হতে পারে।"@@ -12215,10 +12186,6 @@ msgstr "সরবরাহকারী অনুরোধটি প্রত্msgid "The provider rejected the request. Check the API key and the model id."msgstr "সরবরাহকারী অনুরোধটি প্রত্যাখ্যান করেছে। API কী ও মডেল id দেখুন।"-#: src/comments/comment-chips.tsx-msgid "The quoted text is no longer in the document — the agent will be told."-msgstr "উদ্ধৃত লেখাটি আর নথিতে নেই — এজেন্টকে জানানো হবে।"-#: src/components/ReportBugDialogBody.tsxmsgid "The report service couldn't be reached."msgstr "রিপোর্ট সেবার নাগাল পাওয়া যায়নি।"@@ -12595,7 +12562,7 @@ msgstr "এটি “{2}” স্কিল থেকে {0}/{1} স্থাযmsgid "This permanently removes {path}. Agents that reference this template by name will fail until it's recreated or replaced by one in a parent folder."msgstr "এটি {path}-কে স্থায়ীভাবে সরিয়ে দেয়। যেসব এজেন্ট এই টেমপ্লেটটি নাম ধরে উল্লেখ করে সেগুলো এটি আবার তৈরি না হওয়া বা কোনো মূল ফোল্ডারের টেমপ্লেট এর জায়গা না নেওয়া পর্যন্ত ব্যর্থ হবে।"-#: src/comments/CommentsTab.tsx+#: src/components/PanelScopeHeader.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "This project"msgstr "এই প্রকল্প"@@ -13086,10 +13053,15 @@ msgstr "অজানা ত্রুটি"msgid "unlink"msgstr "আনলিংক করুন"-#: src/comments/CommentSendFooter.tsx+#: src/comments/CommentListPanel.tsxmsgid "Unmark every comment"msgstr "সব মন্তব্যের চিহ্ন সরান"+#. placeholder {0}: docBasename(group.docName)+#: src/comments/CommentListPanel.tsx+msgid "Unmark every comment in {0}"+msgstr "{0}-এর সব মন্তব্যের চিহ্ন সরান"+#: src/editor/slash-command/items.tsxmsgid "Unordered list of items."msgstr "আইটেমের অক্রমিক তালিকা।"@@ -13395,6 +13367,10 @@ msgstr "{name} দেখুন"msgid "View as text"msgstr "লেখা হিসেবে দেখুন"+#: src/comments/CommentSelectionAffordance.tsx+msgid "View comments"+msgstr "মন্তব্য দেখুন"+#: src/components/ActivityPanelBurstRow.tsxmsgid "View diff for edit {burstNumber} of {docName}"msgstr "{docName}-এর সম্পাদনা {burstNumber}-এর পার্থক্য দেখুন"diff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.jsonindex 3e0d4d56d..015783909 100644--- a/packages/app/src/locales/en/messages.json+++ b/packages/app/src/locales/en/messages.json@@ -54,6 +54,7 @@"03wKPg": ["A report helps us find the cause. Nothing is sent until you review it."],"04RA0-": ["Failed to enable sync — ", ["detail"]],"04XyCH": ["Adds a managed block to ", ["0"]],+ "05F1GY": ["The original text was deleted. You can re-place this comment on selected text."],"05n5wS": ["Doc mention suggestions"],"06SZfb": ["Template \"", ["trimmedTitle"], "\" created"],"07eGJB": ["Couldn't move skill: ", ["0"]],@@ -123,7 +124,6 @@"11ukmX": ["Rename failed: ", ["0"]],"12F9WL": ["(no id)"],"151wvk": ["Show sidebar"],- "15MMFT": ["Show these comments"],"15ZHCt": ["No body changes at this version."],"161NCV": ["Stopping"],"16D5Zj": ["Are you sure you want to delete ", ["itemName"], "? This action cannot be undone."],@@ -196,7 +196,6 @@"2QM24L": ["All tags"],"2RnFoM": ["Couldn't resume this chat: ", ["0"]],"2Snes1": ["This sends the link's address off your machine"],- "2UgoBZ": ["gone"],"2VSPan": ["Terminal closed to make room for the agent panel."],"2XQ8Ww": ["Open preview when agent edits"],"2YOwme": ["Restarted — now running v", ["appRuntime"], "."],@@ -221,6 +220,7 @@"2vIPtm": ["Open link in new tab"],"2wTb8w": ["Set it up on its own page under Plugins."],"2wxgft": ["Rename"],+ "2zvUIK": ["Show these comments in the Comments panel"],"322lyb": ["Highlight tips, warnings, and notes."],"34qyH5": ["Could not reach server"],"36WXSC": ["Couldn't delete template: ", ["error"]],@@ -329,7 +329,6 @@"4buZWd": ["Inherited from ", ["path"]],"4c_a6S": ["Nothing set yet."],"4d0VYJ": ["We’ll create a safe theme ID from this name."],- "4eO-iB": ["Discard this comment"],"4g19V6": ["Failed to update property"],"4h3e0H": ["Couldn't update skills sharing — ", ["detail"], "."],"4hJhzz": ["Table"],@@ -347,7 +346,6 @@"4sKwf6": ["File already exists"],"4sUdTJ": ["themed preview"],"4uNLmk": ["Pulling"],- "4uaCUA": [["mins"], "m"],"4v2Yyz": ["Select every visible file-tree row when focus is in the Files sidebar."],"4wo5UV": ["Install selected"],"4xtLTl": ["Hidden folder “", ["basename"], "”"],@@ -373,7 +371,6 @@"5ClEAu": ["Inline hashtag for cross-doc grouping."],"5D3Ior": ["Hide folder"],"5F5HYj": [["ahead"], " ahead, ", ["behind"], " behind"],- "5GBQ-F": ["Select this text in the property"],"5GKMSz": ["Indent or outdent the current list item."],"5GRxoA": ["Search files, folders, and commands for the current workspace."],"5HJpFY": ["Queues behind the running turn"],@@ -395,6 +392,11 @@"This endpoint ignored the vector size you configured. Remove <0>search.semantic.dimensions</0> to use the model's own size."],"5Tk8Fb": ["Loading files"],+ "5TmrYN": [+ ["count", "plural", { "one": ["#", " comment"], "other": ["#", " comments"] }],+ " across ",+ ["0", "plural", { "one": ["#", " file"], "other": ["#", " files"] }]+ ],"5Umg9i": ["Disable external link previews"],"5WDhAk": ["Link to a page or external URL."],"5Y17qa": ["Applies to (globs — leading ! excludes; empty means every doc)"],@@ -945,6 +947,7 @@"DbILZA": ["No matches. Some files are excluded from search (hidden or ignored files)."],"DcFr-y": ["OpenKnowledge deleted a document"],"DcLaew": ["Custom theme"],+ "Dd6j2Q": ["View comments"],"DeDYLr": ["Unrecognized wiki link"],"DgcGrb": [["fileCount", "plural", { "one": ["file"], "other": ["files"] }]],"DhLHEb": ["Failed to load activity"],@@ -1112,6 +1115,7 @@"FgQ7XZ": ["Couldn't load your bug reports."],"FgRAvd": ["Logs & system info"],"Fhp4Gn": ["View plugin"],+ "FiyNln": ["Jump to selected text in property"],"FjkaiT": ["Zoom out"],"FqGWeR": ["Couldn't reach the agent registry."],"FqTpiN": ["Bird wiki"],@@ -1135,7 +1139,6 @@"G0YZ-I": ["Indent or outdent list item"],"G1Gw0v": ["New template"],"G1XxbZ": ["Checkbox"],- "G1zJlD": ["Hide resolved comments"],"G4m8rL": ["Comment on selection"],"G6Lrs_": ["Stop ", ["0"], " reading this skill"],"G7-rf8": ["Pattern syntax error: ", ["message"]],@@ -1335,6 +1338,7 @@"No disconnected pages. Pages appear here only when they have no incoming and no outgoing graph edges."],"JDHcCM": ["Loading popular skills"],+ "JDQ5I5": ["That document didn't open in time. Try again once it has synced."],"JE21eh": ["Symlink to ", ["targetPath"]],"JG_8KT": ["Couldn't pull from GitHub. Check your connection and sign-in, then retry."],"JHf6qZ": ["[email protected]"],@@ -1408,6 +1412,7 @@"KZLdgR": ["See <0>#design-docs</0> for the latest specs."],"K_vT1F": ["Upstream sync"],"KaFCD3": ["Open this link in a new tab and collapse the graph."],+ "KeXgA-": ["Couldn't find that passage — the text it was on may have changed."],"Kf7GG5": ["Restarting the server…"],"Kge76t": ["Row options"],"Kh1n4a": [@@ -1538,7 +1543,6 @@"M92_0q": ["Close comment"],"M9597s": ["Preparing share URL..."],"MBKkUy": ["skills.sh is unavailable; showing GitHub results (no install ranking)."],- "MBe6TE": ["The quoted text is no longer in the document — the agent will be told."],"MCjC9A": ["Delete ", ["deleteDescriptorLabel"]],"MDBJwN": ["Hard to use"],"MDZSJe": ["When the agent runs its scheduled work."],@@ -1644,7 +1648,6 @@"NeY1Np": ["Slidev timed out while starting. Try again."],"NfraGd": ["Other ways to install Slidev"],"NgZwB0": [["enabledCount"], "/", ["0"], " on"],- "NiGIcB": ["Open Comments"],"NjrIak": ["File: <0>", ["fixedName"], ".md</0>"],"NkNfSr": ["Edit ", ["tag"]],"NkXEFS": ["Restore failed — document unchanged"],@@ -1751,6 +1754,7 @@"PBxg_E": ["Not now"],"PCSkw2": ["Skills"],"PGPGsL": ["Add description"],+ "PHHEuH": ["Hide resolved comments (", ["0"], ")"],"PIMM5l": ["You're subscribed!"],"PKLY-1": ["Opening..."],"PKjGhT": ["Headings"],@@ -1853,7 +1857,6 @@"QpSqAP": ["A real shell is off for this project. Turning it on runs commands with the full access of your user account."],- "Qpfxa1": [["secs"], "s"],"QqBQu1": ["Label <0>(visible link text)</0>"],"Qvls7J": ["Eng specs"],"Qw-7Ie": [@@ -1992,6 +1995,7 @@],"T-654M": ["Loading PDF"],"T0OVm7": ["The default branch is protected — pushes need a pull request."],+ "T2fvhw": ["Unmark every comment in ", ["0"]],"T3Mld1": ["Window"],"T3j-7o": ["e.g. Switching projects while a sync was running"],"TBfy1C": ["Couldn't start Slidev."],@@ -2045,7 +2049,6 @@"UDFrWm": ["Checking GitHub connection..."],"UD_onR": ["Mulling…"],"UDb2YD": ["React"],- "UEdTEN": ["Orphaned"],"UGeJuP": ["Allowed values (empty = any)"],"UGtPix": ["GitHub connection expired. Connect again to continue."],"UH0Zqw": ["This isn’t a regular theme file"],@@ -2117,7 +2120,6 @@"UkQGhd": ["Hide replace"],"UlVARL": ["Enable Slidev"],"Uobeu9": ["Adds the skill to ", ["rootRel"], " — also read by ", ["0"]],- "Uoux8m": ["Include this comment in the next send"],"Up2_7p": ["Copy full path"],"UpCz01": ["This doc"],"UpOct_": ["Add your comments to this message"],@@ -2236,6 +2238,7 @@"Wh0im4": ["editing [[", ["realCurrentDoc"], "]]"],"WhOsNE": ["Strikethrough"],"Wi-VWy": ["Couldn't send the report"],+ "WkQ0Z_": ["Mark every comment in ", ["0"], " to send"],"WkTLN7": ["Show only markdown files"],"WkyP2p": ["Skills section"],"WmPbvm": ["Get product updates in your inbox."],@@ -2283,7 +2286,6 @@"XV5sC0": ["Open worktree"],"XVnIvs": ["Install skills"],"XW18jo": ["Page headings response did not match success schema"],- "XWEqQj": [["days"], "d"],"XXA1b_": [["componentLabel"], " (empty)"],"XYZ7tp": ["Unresolvable"],"XYlJJT": ["Setting up"],@@ -2532,7 +2534,6 @@"Read-only copy of a MirrorSource block from another doc. Edit at the source and it updates live."],"_XWY2J": ["Terminal disabled"],- "_YEyHO": ["Show resolved comments"],"_YWqV2": ["OpenKnowledge resolved a conflict"],"_ayOfA": ["A knowledge base that follows Google's Open Knowledge Format, a shared way of organizing what you know. Pick this if you want your notes to work well with other tools that understand the format."@@ -2544,7 +2545,6 @@"_gO_m8": ["Waiting for your approval"],"_gkGSK": ["deleted template"],"_mcDqU": [["count"], " skills at this source"],- "_oqig9": [["hours"], "h"],"_pY_Vq": ["The repository was moved, renamed, or deleted."],"_qD6mn": ["Pick the folder where you've cloned it."],"_rP3HI": [["minutes"], "m ago"],@@ -2970,6 +2970,7 @@"gBbxn_": ["Checking sign-in status"],"gGVP4q": ["Click <0>+</0> <1/> <2>Create skill</2> <3/> <4>Upload skill</4>."],"gHSAWT": ["Create worktree <0>“<1>", ["typedName"], "</1>”</0>"],+ "gHb5bB": ["Show resolved comments (", ["0"], ")"],"gITz7o": ["Move the cursor or extend selection through CodeMirror's standard source-editor navigation keymap."],@@ -3190,7 +3191,6 @@"iz1LdD": ["Changed outside OK since it last wrote here — the state shown is what's on disk now"],- "j0ItfO": ["Show resolved (", ["0"], ")"],"j15ZSH": ["Send comments to"],"j2229h": ["Removing OpenKnowledge files…"],"j2kt1j": [@@ -3290,7 +3290,6 @@["targetNoun"]," will appear once the branch syncs."],- "kMKqP_": ["Hide these comments"],"kNGLX6": ["Retrying…"],"kNqMMd": ["Folder"],"kRTXGw": [@@ -3525,7 +3524,6 @@"nBgzKO": ["Make this the source — the skill's real folder moves here"],"nCzR-G": ["Copy code ", ["userCode"]],"nDT8qt": ["Initialized ", ["0"], " but could not open it."],- "nG-XA9": ["The anchored text is gone. You can re-place it on selected text."],"nMSYz5": ["This path is on an external volume (/Volumes/...). OpenKnowledge will lose track of files when the drive ejects."],@@ -3590,6 +3588,7 @@"nzaV6Q": ["Page thumbnails"],"o0bHtA": ["By OpenKnowledge"],"o49mDZ": ["Loading timeline history"],+ "o7AkQ0": ["Show resolved"],"o9CrsQ": ["research-note"],"o9fPtM": ["Auto-update from source"],"o9yN4T": ["Move to Recycle Bin"],@@ -3840,7 +3839,6 @@"roAe2K": ["Link URL"],"roiUQQ": ["This page doesn't link to anything yet."],"rppgXF": ["Disconnecting"],- "rscgd_": ["Go to this comment in ", ["0"]],"rssK8c": ["Ignore patterns (raw text)"],"rtdR4v": ["Show or hide Files"],"rtir7c": ["unknown"],diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.poindex 5817168ce..68764c775 100644--- a/packages/app/src/locales/en/messages.po+++ b/packages/app/src/locales/en/messages.po@@ -511,6 +511,11 @@ msgstr "{conflictCount, plural, one {# file conflicted} other {# files conflictemsgid "{count, plural, one {# comment} other {# comments}}"msgstr "{count, plural, one {# comment} other {# comments}}"+#. placeholder {0}: docs.length+#: src/comments/comment-chips.tsx+msgid "{count, plural, one {# comment} other {# comments}} across {0, plural, one {# file} other {# files}}"+msgstr "{count, plural, one {# comment} other {# comments}} across {0, plural, one {# file} other {# files}}"+#: src/components/settings/applies-to-folder-picker.tsxmsgid "{count, plural, one {# doc} other {# docs}}"msgstr "{count, plural, one {# doc} other {# docs}}"@@ -559,10 +564,6 @@ msgstr "{count} skills at this source"msgid "{days, plural, one {# day ago} other {# days ago}}"msgstr "{days, plural, one {# day ago} other {# days ago}}"-#: src/comments/ThreadCard.tsx-msgid "{days}d"-msgstr "{days}d"-#: src/components/acp/ThreadHistoryMenu.tsxmsgid "{days}d ago"msgstr "{days}d ago"@@ -657,10 +658,6 @@ msgstr "{folderCount, plural, one {folder} other {folders}}"msgid "{formatted} GitHub stars"msgstr "{formatted} GitHub stars"-#: src/comments/ThreadCard.tsx-msgid "{hours}h"-msgstr "{hours}h"-#: src/components/acp/ThreadHistoryMenu.tsx#: src/components/ActivityModeContent.tsx#: src/components/ActivityPanelFileRow.tsx@@ -727,10 +724,6 @@ msgstr "{localizedMessage} at line {displayLine}"msgid "{mins, plural, one {# min ago} other {# min ago}}"msgstr "{mins, plural, one {# min ago} other {# min ago}}"-#: src/comments/ThreadCard.tsx-msgid "{mins}m"-msgstr "{mins}m"-#: src/components/SyncStatusBadge.tsxmsgid "{minutes} min ago"msgstr "{minutes} min ago"@@ -813,10 +806,6 @@ msgstr "{propPanelDescriptorLabel} Properties"msgid "{seconds}s ago"msgstr "{seconds}s ago"-#: src/comments/ThreadCard.tsx-msgid "{secs}s"-msgstr "{secs}s"-#: src/editor/extensions/JsxComponentView.tsxmsgid "{settingsDescriptorLabel} properties"msgstr "{settingsDescriptorLabel} properties"@@ -2500,7 +2489,6 @@ msgstr "Cloning {repoName}..."msgid "Cloning..."msgstr "Cloning..."-#: src/comments/ThreadCard.tsx#: src/components/EditorTabs.tsx#: src/components/FeedbackForm.tsx#: src/components/InstallInClaudeDesktopDialog.tsx@@ -3391,6 +3379,10 @@ msgstr "Couldn't disconnect — please try again."msgid "Couldn't duplicate \"{0}\": {1}"msgstr "Couldn't duplicate \"{0}\": {1}"+#: src/comments/reveal-comment.ts+msgid "Couldn't find that passage — the text it was on may have changed."+msgstr "Couldn't find that passage — the text it was on may have changed."+#. placeholder {0}: item.displayName#: src/components/acp/ThreadView.tsxmsgid "Couldn't finish installing {0} — see below."@@ -4323,10 +4315,6 @@ msgstr "Disambiguates similarly-named templates in the menu."msgid "Discard local edits, restore the installed version"msgstr "Discard local edits, restore the installed version"-#: src/comments/CommentSelectionAffordance.tsx-msgid "Discard this comment"-msgstr "Discard this comment"-#: src/components/settings/AccountSection.tsxmsgid "Disconnect"msgstr "Disconnect"@@ -4426,7 +4414,6 @@ msgstr "Documents tagged <0>#{tagName}</0>"msgid "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."msgstr "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."-#: src/comments/comment-chips.tsx#: src/comments/ThreadCard.tsxmsgid "Don't send this comment"msgstr "Don't send this comment"@@ -5842,15 +5829,6 @@ msgstr "Go to line {0}"msgid "Go to line {0} in {1}"msgstr "Go to line {0} in {1}"-#. placeholder {0}: docBasename(thread.docName)-#: src/comments/comment-chips.tsx-msgid "Go to this comment in {0}"-msgstr "Go to this comment in {0}"--#: src/comments/comment-chips.tsx-msgid "gone"-msgstr "gone"-#: src/components/FeedbackForm.tsxmsgid "Good"msgstr "Good"@@ -6062,9 +6040,10 @@ msgstr "Hide replace"msgid "Hide resolved"msgstr "Hide resolved"+#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Hide resolved comments"-msgstr "Hide resolved comments"+msgid "Hide resolved comments ({0})"+msgstr "Hide resolved comments ({0})"#: src/components/BottomComposer.tsxmsgid "Hide selection preview"@@ -6079,10 +6058,6 @@ msgstr "Hide sidebar"msgid "Hide Terminal"msgstr "Hide Terminal"-#: src/comments/comment-chips.tsx-msgid "Hide these comments"-msgstr "Hide these comments"-#: src/components/EditorTabTargetMenuItems.tsx#: src/components/FileTree.tsxmsgid "Hide this file"@@ -6307,10 +6282,6 @@ msgstr "In app (beta)"msgid "In the Claude Desktop App"msgstr "In the Claude Desktop App"-#: src/comments/comment-chips.tsx-msgid "Include this comment in the next send"-msgstr "Include this comment in the next send"-#: src/lib/keyboard-shortcuts.tsmsgid "Indent or outdent list item"msgstr "Indent or outdent list item"@@ -6668,6 +6639,10 @@ msgstr "Jump to last tab"msgid "Jump to page {pageNumber}"msgstr "Jump to page {pageNumber}"+#: src/comments/ThreadCard.tsx+msgid "Jump to selected text in property"+msgstr "Jump to selected text in property"+#: src/lib/keyboard-shortcuts.tsmsgid "Jump to tab 1-8"msgstr "Jump to tab 1-8"@@ -7165,7 +7140,12 @@ msgstr "Map the architecture"msgid "Mark a block as the source of truth. Mirrors elsewhere update live as you edit it."msgstr "Mark a block as the source of truth. Mirrors elsewhere update live as you edit it."-#: src/comments/CommentSendFooter.tsx+#. placeholder {0}: docBasename(group.docName)+#: src/comments/CommentListPanel.tsx+msgid "Mark every comment in {0} to send"+msgstr "Mark every comment in {0} to send"++#: src/comments/CommentListPanel.tsxmsgid "Mark every comment to send"msgstr "Mark every comment to send"@@ -8405,10 +8385,6 @@ msgstr "Open CodeMirror's lint diagnostics panel."msgid "Open comment"msgstr "Open comment"-#: src/comments/CommentSelectionAffordance.tsx-msgid "Open Comments"-msgstr "Open Comments"-#: src/components/command-palette-commands.ts#: src/lib/platform-labels.tsmsgid "Open containing folder"@@ -8882,10 +8858,6 @@ msgstr "Original file — before this agent's edits."msgid "Orphan mode"msgstr "Orphan mode"-#: src/comments/ThreadCard.tsx-msgid "Orphaned"-msgstr "Orphaned"-#: src/components/GraphPanel.tsxmsgid "Orphans"msgstr "Orphans"@@ -9370,7 +9342,6 @@ msgid "project"msgstr "project"#: src/components/CommandPalette.tsx-#: src/components/PanelScopeHeader.tsx#: src/components/settings/ScopeBadge.tsx#: src/lib/skill-scope.tsmsgid "Project"@@ -10681,10 +10652,6 @@ msgstr "Select next occurrence"msgid "Select the full source document."msgstr "Select the full source document."-#: src/comments/ThreadCard.tsx-msgid "Select this text in the property"-msgstr "Select this text in the property"-#: src/lib/keyboard-shortcuts.tsmsgid "Select, enter, or leave block components and fallback source blocks from keyboard boundaries."msgstr "Select, enter, or leave block components and fallback source blocks from keyboard boundaries."@@ -11143,14 +11110,14 @@ msgstr "Show problem indicators"msgid "Show replace"msgstr "Show replace"-#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Show resolved ({0})"-msgstr "Show resolved ({0})"+msgid "Show resolved"+msgstr "Show resolved"+#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Show resolved comments"-msgstr "Show resolved comments"+msgid "Show resolved comments ({0})"+msgstr "Show resolved comments ({0})"#: src/components/BottomComposer.tsxmsgid "Show selection preview"@@ -11170,8 +11137,8 @@ msgid "Show Terminal"msgstr "Show Terminal"#: src/comments/comment-chips.tsx-msgid "Show these comments"-msgstr "Show these comments"+msgid "Show these comments in the Comments panel"+msgstr "Show these comments in the Comments panel"#: src/editor/components/Pdf.tsxmsgid "Show thumbnails"@@ -12067,6 +12034,10 @@ msgstr "Thanks for the report!"msgid "That branch is already open in another worktree."msgstr "That branch is already open in another worktree."+#: src/comments/reveal-comment.ts+msgid "That document didn't open in time. Try again once it has synced."+msgstr "That document didn't open in time. Try again once it has synced."+#: src/components/settings/SearchSection.tsxmsgid "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."msgstr "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."@@ -12112,10 +12083,6 @@ msgstr "The agent isn't stopping. Force stop closes this chat and quits the agenmsgid "The agent's persona, values, and voice."msgstr "The agent's persona, values, and voice."-#: src/comments/ThreadCard.tsx-msgid "The anchored text is gone. You can re-place it on selected text."-msgstr "The anchored text is gone. You can re-place it on selected text."-#: src/components/ProblemsPanel.tsxmsgid "The audit could not be completed. Try again."msgstr "The audit could not be completed. Try again."@@ -12194,6 +12161,10 @@ msgstr "The model id your endpoint serves. Its vector size is detected automaticmsgid "the open agent"msgstr "the open agent"+#: src/comments/ThreadCard.tsx+msgid "The original text was deleted. You can re-place this comment on selected text."+msgstr "The original text was deleted. You can re-place this comment on selected text."+#: src/editor/components/PreviewBlockedNotice.tsxmsgid "The preview blocks resources that don't meet its security rules (for example plain http:// URLs, or code that uses eval). The content above may render incompletely."msgstr "The preview blocks resources that don't meet its security rules (for example plain http:// URLs, or code that uses eval). The content above may render incompletely."@@ -12219,10 +12190,6 @@ msgstr "The provider rejected the request (HTTP {0}). Check the API key and themsgid "The provider rejected the request. Check the API key and the model id."msgstr "The provider rejected the request. Check the API key and the model id."-#: src/comments/comment-chips.tsx-msgid "The quoted text is no longer in the document — the agent will be told."-msgstr "The quoted text is no longer in the document — the agent will be told."-#: src/components/ReportBugDialogBody.tsxmsgid "The report service couldn't be reached."msgstr "The report service couldn't be reached."@@ -12599,7 +12566,7 @@ msgstr "This permanently removes {0}/{1} from the \"{2}\" skill. Anything in SKImsgid "This permanently removes {path}. Agents that reference this template by name will fail until it's recreated or replaced by one in a parent folder."msgstr "This permanently removes {path}. Agents that reference this template by name will fail until it's recreated or replaced by one in a parent folder."-#: src/comments/CommentsTab.tsx+#: src/components/PanelScopeHeader.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "This project"msgstr "This project"@@ -13090,10 +13057,15 @@ msgstr "Unknown error"msgid "unlink"msgstr "unlink"-#: src/comments/CommentSendFooter.tsx+#: src/comments/CommentListPanel.tsxmsgid "Unmark every comment"msgstr "Unmark every comment"+#. placeholder {0}: docBasename(group.docName)+#: src/comments/CommentListPanel.tsx+msgid "Unmark every comment in {0}"+msgstr "Unmark every comment in {0}"+#: src/editor/slash-command/items.tsxmsgid "Unordered list of items."msgstr "Unordered list of items."@@ -13399,6 +13371,10 @@ msgstr "View {name}"msgid "View as text"msgstr "View as text"+#: src/comments/CommentSelectionAffordance.tsx+msgid "View comments"+msgstr "View comments"+#: src/components/ActivityPanelBurstRow.tsxmsgid "View diff for edit {burstNumber} of {docName}"msgstr "View diff for edit {burstNumber} of {docName}"diff --git a/packages/app/src/locales/es/messages.json b/packages/app/src/locales/es/messages.jsonindex 6dd6c1f43..5ccaa00af 100644--- a/packages/app/src/locales/es/messages.json+++ b/packages/app/src/locales/es/messages.json@@ -66,6 +66,9 @@"03wKPg": ["Un informe nos ayuda a encontrar la causa. No se envía nada hasta que lo revises."],"04RA0-": ["No se pudo activar la sincronización — ", ["detail"]],"04XyCH": ["Añade un bloque gestionado a ", ["0"]],+ "05F1GY": [+ "El texto original se eliminó. Puedes volver a colocar este comentario sobre el texto seleccionado."+ ],"05n5wS": ["Sugerencias de menciones de documentos"],"06SZfb": ["Se creó la plantilla \"", ["trimmedTitle"], "\""],"07eGJB": ["No se pudo mover la habilidad: ", ["0"]],@@ -139,7 +142,6 @@"11ukmX": ["Falló al renombrar: ", ["0"]],"12F9WL": ["(sin id)"],"151wvk": ["Mostrar la barra lateral"],- "15MMFT": ["Mostrar estos comentarios"],"15ZHCt": ["No hay cambios en el cuerpo en esta versión."],"161NCV": ["Deteniendo"],"16D5Zj": [@@ -220,7 +222,6 @@"2QM24L": ["Todas las etiquetas"],"2RnFoM": ["No se pudo reanudar este chat: ", ["0"]],"2Snes1": ["Esto envía la dirección del enlace fuera de tu equipo"],- "2UgoBZ": ["desaparecida"],"2VSPan": ["Se cerró Terminal para dejar espacio al panel de agentes."],"2XQ8Ww": ["Abrir la vista previa cuando el agente edite"],"2YOwme": ["Reiniciado: ahora se ejecuta la v", ["appRuntime"], "."],@@ -245,6 +246,7 @@"2vIPtm": ["Abrir el enlace en una pestaña nueva"],"2wTb8w": ["Configúralo en su propia página, bajo Complementos."],"2wxgft": ["Renombrar"],+ "2zvUIK": ["Mostrar estos comentarios en el panel de comentarios"],"322lyb": ["Resalta consejos, advertencias y notas."],"34qyH5": ["No se pudo contactar con el servidor"],"36WXSC": ["No se pudo eliminar la plantilla: ", ["error"]],@@ -384,7 +386,6 @@"4buZWd": ["Heredado de ", ["path"]],"4c_a6S": ["Todavía no hay nada definido."],"4d0VYJ": ["Crearemos un ID de tema seguro a partir de este nombre."],- "4eO-iB": ["Descartar este comentario"],"4g19V6": ["No se pudo actualizar la propiedad"],"4h3e0H": ["No se pudo actualizar la compartición de habilidades: ", ["detail"], "."],"4hJhzz": ["Tabla"],@@ -412,7 +413,6 @@"4sKwf6": ["El archivo ya existe"],"4sUdTJ": ["vista previa con tema"],"4uNLmk": ["Haciendo pull"],- "4uaCUA": [["mins"], "min"],"4v2Yyz": ["Selecciona todas las filas visibles del árbol de archivos cuando el foco está en la barra lateral Archivos."],@@ -442,7 +442,6 @@"5ClEAu": ["Etiqueta en línea para agrupar entre documentos."],"5D3Ior": ["Ocultar la carpeta"],"5F5HYj": [["ahead"], " por delante, ", ["behind"], " por detrás"],- "5GBQ-F": ["Seleccionar este texto en la propiedad"],"5GKMSz": ["Aumenta o reduce la sangría del elemento de lista actual."],"5GRxoA": ["Busca archivos, carpetas y comandos del espacio de trabajo actual."],"5HJpFY": ["Se pone en cola detrás del turno en curso"],@@ -464,6 +463,23 @@"Este endpoint ignoró el tamaño de vector que configuraste. Quita <0>search.semantic.dimensions</0> para usar el tamaño propio del modelo."],"5Tk8Fb": ["Cargando archivos"],+ "5TmrYN": [+ [+ "count",+ "plural",+ {+ "one": ["#", " comentario"],+ "many": ["#", " comentarios"],+ "other": ["#", " comentarios"]+ }+ ],+ " en ",+ [+ "0",+ "plural",+ { "one": ["#", " archivo"], "many": ["#", " archivos"], "other": ["#", " archivos"] }+ ]+ ],"5Umg9i": ["Desactivar la vista previa de enlaces externos"],"5WDhAk": ["Enlaza a una página o a una URL externa."],"5Y17qa": ["Se aplica a (globs; un ! inicial excluye; vacío significa todos los documentos)"],@@ -1092,6 +1108,7 @@],"DcFr-y": ["OpenKnowledge eliminó un documento"],"DcLaew": ["Tema personalizado"],+ "Dd6j2Q": ["Ver comentarios"],"DeDYLr": ["Enlace wiki no reconocido"],"DgcGrb": [["fileCount", "plural", { "one": ["archivo"], "many": ["archivos"], "other": ["archivos"] }]@@ -1269,6 +1286,7 @@"FgQ7XZ": ["No se pudieron cargar tus informes de error."],"FgRAvd": ["Registros e información del sistema"],"Fhp4Gn": ["Ver el complemento"],+ "FiyNln": ["Ir al texto seleccionado en la propiedad"],"FjkaiT": ["Alejar"],"FqGWeR": ["No se pudo contactar con el registro de agentes."],"FqTpiN": ["Wiki de aves"],@@ -1306,7 +1324,6 @@"G0YZ-I": ["Aumentar o reducir la sangría del elemento de lista"],"G1Gw0v": ["Plantilla nueva"],"G1XxbZ": ["Casilla de verificación"],- "G1zJlD": ["Ocultar comentarios resueltos"],"G4m8rL": ["Comentar la selección"],"G6Lrs_": ["Hacer que ", ["0"], " deje de leer esta habilidad"],"G7-rf8": ["Error de sintaxis en el patrón: ", ["message"]],@@ -1550,6 +1567,9 @@"No hay páginas desconectadas. Aquí solo aparecen las páginas sin aristas entrantes ni salientes en el grafo."],"JDHcCM": ["Cargando las habilidades populares"],+ "JDQ5I5": [+ "Ese documento no se abrió a tiempo. Vuelve a intentarlo cuando se haya sincronizado."+ ],"JE21eh": ["Enlace simbólico a ", ["targetPath"]],"JG_8KT": ["No se pudo hacer pull desde GitHub. Revisa tu conexión y tu sesión, y vuelve a intentarlo."@@ -1631,6 +1651,9 @@"KZLdgR": ["Consulta <0>#design-docs</0> para ver las últimas especificaciones."],"K_vT1F": ["Sincronización con el remoto"],"KaFCD3": ["Abre este enlace en una pestaña nueva y contrae el grafo."],+ "KeXgA-": [+ "No se pudo encontrar ese pasaje — puede que el texto en el que estaba haya cambiado."+ ],"Kf7GG5": ["Reiniciando el servidor…"],"Kge76t": ["Opciones de fila"],"Kh1n4a": [@@ -1786,7 +1809,6 @@"MBKkUy": ["skills.sh no está disponible; se muestran resultados de GitHub (sin clasificación por instalaciones)."],- "MBe6TE": ["El texto citado ya no está en el documento; se le comunicará al agente."],"MCjC9A": ["Eliminar ", ["deleteDescriptorLabel"]],"MDBJwN": ["Difícil de usar"],"MDZSJe": ["Cuándo ejecuta el agente su trabajo programado."],@@ -1894,7 +1916,6 @@"NeY1Np": ["Slidev tardó demasiado en iniciarse. Inténtalo de nuevo."],"NfraGd": ["Otras formas de instalar Slidev"],"NgZwB0": [["enabledCount"], "/", ["0"], " activos"],- "NiGIcB": ["Abrir Comentarios"],"NjrIak": ["Archivo: <0>", ["fixedName"], ".md</0>"],"NkNfSr": ["Editar ", ["tag"]],"NkXEFS": ["Falló la restauración: el documento no cambió"],@@ -2005,6 +2026,7 @@"PBxg_E": ["Ahora no"],"PCSkw2": ["Habilidades"],"PGPGsL": ["Añadir descripción"],+ "PHHEuH": ["Ocultar comentarios resueltos (", ["0"], ")"],"PIMM5l": ["¡Te has suscrito!"],"PKLY-1": ["Abriendo..."],"PKjGhT": ["Encabezados"],@@ -2123,7 +2145,6 @@"QpSqAP": ["El shell real está desactivado para este proyecto. Al activarlo, los comandos se ejecutan con todo el acceso de tu cuenta de usuario."],- "Qpfxa1": [["secs"], "s"],"QqBQu1": ["Etiqueta <0>(texto visible del enlace)</0>"],"Qvls7J": ["Especificaciones de ingeniería"],"Qw-7Ie": [@@ -2273,6 +2294,7 @@],"T-654M": ["Cargando el PDF"],"T0OVm7": ["La rama por defecto está protegida: los push requieren una pull request."],+ "T2fvhw": ["Desmarcar todos los comentarios de ", ["0"]],"T3Mld1": ["Ventana"],"T3j-7o": ["p. ej. Cambiar de proyecto mientras se sincronizaba"],"TBfy1C": ["No se pudo iniciar Slidev."],@@ -2336,7 +2358,6 @@"UDFrWm": ["Comprobando la conexión con GitHub..."],"UD_onR": ["Rumiando…"],"UDb2YD": ["React"],- "UEdTEN": ["Huérfana"],"UGeJuP": ["Valores permitidos (vacío = cualquiera)"],"UGtPix": ["La conexión con GitHub caducó. Vuelve a conectarte para continuar."],"UH0Zqw": ["Este no es un archivo de tema normal"],@@ -2418,7 +2439,6 @@"UkQGhd": ["Ocultar reemplazar"],"UlVARL": ["Activar Slidev"],"Uobeu9": ["Añade la habilidad a ", ["rootRel"], ", que también lee ", ["0"]],- "Uoux8m": ["Incluir este comentario en el próximo envío"],"Up2_7p": ["Copiar ruta completa"],"UpCz01": ["Este documento"],"UpOct_": ["Añade tus comentarios a este mensaje"],@@ -2581,6 +2601,7 @@"Wh0im4": ["editando [[", ["realCurrentDoc"], "]]"],"WhOsNE": ["Tachado"],"Wi-VWy": ["No se pudo enviar el informe"],+ "WkQ0Z_": ["Marcar todos los comentarios de ", ["0"], " para enviar"],"WkTLN7": ["Mostrar solo archivos markdown"],"WkyP2p": ["Sección Habilidades"],"WmPbvm": ["Recibe novedades del producto en tu correo."],@@ -2628,7 +2649,6 @@"XV5sC0": ["Abrir el worktree"],"XVnIvs": ["Instalar habilidades"],"XW18jo": ["La respuesta de los encabezados de página no coincide con el esquema de éxito"],- "XWEqQj": [["days"], "d"],"XXA1b_": [["componentLabel"], " (vacío)"],"XYZ7tp": ["Sin resolver"],"XYlJJT": ["Configurando"],@@ -2928,7 +2948,6 @@"Copia de solo lectura de un bloque MirrorSource de otro documento. Edítalo en el origen y se actualiza en vivo."],"_XWY2J": ["Terminal desactivada"],- "_YEyHO": ["Mostrar comentarios resueltos"],"_YWqV2": ["OpenKnowledge resolvió un conflicto"],"_ayOfA": ["Una base de conocimiento que sigue el Open Knowledge Format de Google, una forma común de organizar lo que sabes. Elige esto si quieres que tus notas funcionen bien con otras herramientas que entienden el formato."@@ -2942,7 +2961,6 @@"_gO_m8": ["Esperando tu aprobación"],"_gkGSK": ["plantilla eliminada"],"_mcDqU": [["count"], " habilidades en esta fuente"],- "_oqig9": [["hours"], "h"],"_pY_Vq": ["El repositorio se movió, se renombró o se eliminó."],"_qD6mn": ["Elige la carpeta donde lo has clonado."],"_rP3HI": ["hace ", ["minutes"], " min"],@@ -3463,6 +3481,7 @@"gBbxn_": ["Comprobando el estado de la sesión"],"gGVP4q": ["Haz clic en <0>+</0> <1/> <2>Crear habilidad</2> <3/> <4>Subir habilidad</4>."],"gHSAWT": ["Crear el worktree <0>“<1>", ["typedName"], "</1>”</0>"],+ "gHb5bB": ["Mostrar comentarios resueltos (", ["0"], ")"],"gITz7o": ["Mueve el cursor o amplía la selección con el mapa de teclas estándar de navegación del editor de código de CodeMirror."],@@ -3705,7 +3724,6 @@"iz1LdD": ["Se modificó fuera de OK desde la última vez que escribió aquí; el estado que se muestra es el que hay ahora en el disco"],- "j0ItfO": ["Mostrar los resueltos (", ["0"], ")"],"j15ZSH": ["Enviar los comentarios a"],"j2229h": ["Eliminando los archivos de OpenKnowledge…"],"j2kt1j": [@@ -3809,7 +3827,6 @@["targetNoun"]," aparecerá cuando la rama se sincronice."],- "kMKqP_": ["Ocultar estos comentarios"],"kNGLX6": ["Reintentando…"],"kNqMMd": ["Carpeta"],"kRTXGw": [@@ -4078,9 +4095,6 @@"nBgzKO": ["Convertir esto en el origen: la carpeta real de la habilidad se traslada aquí"],"nCzR-G": ["Copiar el código ", ["userCode"]],"nDT8qt": ["Se inicializó ", ["0"], ", pero no se pudo abrir."],- "nG-XA9": [- "El texto anclado ha desaparecido. Puedes volver a colocarlo sobre el texto seleccionado."- ],"nMSYz5": ["Esta ruta está en un volumen externo (/Volumes/...). OpenKnowledge perderá la pista de los archivos cuando se expulse la unidad."],@@ -4148,6 +4162,7 @@"nzaV6Q": ["Miniaturas de página"],"o0bHtA": ["Por OpenKnowledge"],"o49mDZ": ["Cargando el historial de la cronología"],+ "o7AkQ0": ["Mostrar resueltos"],"o9CrsQ": ["nota-de-investigacion"],"o9fPtM": ["Actualizar automáticamente desde el origen"],"o9yN4T": ["Mover a la Papelera de reciclaje"],@@ -4425,7 +4440,6 @@"roAe2K": ["URL del enlace"],"roiUQQ": ["Esta página todavía no enlaza a nada."],"rppgXF": ["Desconectando"],- "rscgd_": ["Ir a este comentario en ", ["0"]],"rssK8c": ["Patrones de exclusión (texto sin formato)"],"rtdR4v": ["Mostrar u ocultar Archivos"],"rtir7c": ["desconocido"],diff --git a/packages/app/src/locales/es/messages.po b/packages/app/src/locales/es/messages.poindex 1c0b6de11..02651488f 100644--- a/packages/app/src/locales/es/messages.po+++ b/packages/app/src/locales/es/messages.po@@ -511,6 +511,11 @@ msgstr "{conflictCount, plural, one {# archivo en conflicto} many {# archivos enmsgid "{count, plural, one {# comment} other {# comments}}"msgstr "{count, plural, one {# comentario} many {# comentarios} other {# comentarios}}"+#. placeholder {0}: docs.length+#: src/comments/comment-chips.tsx+msgid "{count, plural, one {# comment} other {# comments}} across {0, plural, one {# file} other {# files}}"+msgstr "{count, plural, one {# comentario} many {# comentarios} other {# comentarios}} en {0, plural, one {# archivo} many {# archivos} other {# archivos}}"+#: src/components/settings/applies-to-folder-picker.tsxmsgid "{count, plural, one {# doc} other {# docs}}"msgstr "{count, plural, one {# documento} many {# documentos} other {# documentos}}"@@ -559,10 +564,6 @@ msgstr "{count} habilidades en esta fuente"msgid "{days, plural, one {# day ago} other {# days ago}}"msgstr "{days, plural, one {hace # día} many {hace # días} other {hace # días}}"-#: src/comments/ThreadCard.tsx-msgid "{days}d"-msgstr "{days}d"-#: src/components/acp/ThreadHistoryMenu.tsxmsgid "{days}d ago"msgstr "hace {days} d"@@ -657,10 +658,6 @@ msgstr "{folderCount, plural, one {carpeta} many {carpetas} other {carpetas}}"msgid "{formatted} GitHub stars"msgstr "{formatted} estrellas en GitHub"-#: src/comments/ThreadCard.tsx-msgid "{hours}h"-msgstr "{hours}h"-#: src/components/acp/ThreadHistoryMenu.tsx#: src/components/ActivityModeContent.tsx#: src/components/ActivityPanelFileRow.tsx@@ -727,10 +724,6 @@ msgstr "{localizedMessage} en la línea {displayLine}"msgid "{mins, plural, one {# min ago} other {# min ago}}"msgstr "{mins, plural, one {hace # min} many {hace # min} other {hace # min}}"-#: src/comments/ThreadCard.tsx-msgid "{mins}m"-msgstr "{mins}min"-#: src/components/SyncStatusBadge.tsxmsgid "{minutes} min ago"msgstr "hace {minutes} min"@@ -813,10 +806,6 @@ msgstr "Propiedades de {propPanelDescriptorLabel}"msgid "{seconds}s ago"msgstr "hace {seconds} s"-#: src/comments/ThreadCard.tsx-msgid "{secs}s"-msgstr "{secs}s"-#: src/editor/extensions/JsxComponentView.tsxmsgid "{settingsDescriptorLabel} properties"msgstr "Propiedades de {settingsDescriptorLabel}"@@ -2500,7 +2489,6 @@ msgstr "Clonando {repoName}..."msgid "Cloning..."msgstr "Clonando..."-#: src/comments/ThreadCard.tsx#: src/components/EditorTabs.tsx#: src/components/FeedbackForm.tsx#: src/components/InstallInClaudeDesktopDialog.tsx@@ -3391,6 +3379,10 @@ msgstr "No se pudo desconectar; inténtalo de nuevo."msgid "Couldn't duplicate \"{0}\": {1}"msgstr "No se pudo duplicar \"{0}\": {1}"+#: src/comments/reveal-comment.ts+msgid "Couldn't find that passage — the text it was on may have changed."+msgstr "No se pudo encontrar ese pasaje — puede que el texto en el que estaba haya cambiado."+#. placeholder {0}: item.displayName#: src/components/acp/ThreadView.tsxmsgid "Couldn't finish installing {0} — see below."@@ -4323,10 +4315,6 @@ msgstr "Distingue entre plantillas de nombre parecido en el menú."msgid "Discard local edits, restore the installed version"msgstr "Descartar las ediciones locales y restaurar la versión instalada"-#: src/comments/CommentSelectionAffordance.tsx-msgid "Discard this comment"-msgstr "Descartar este comentario"-#: src/components/settings/AccountSection.tsxmsgid "Disconnect"msgstr "Desconectar"@@ -4426,7 +4414,6 @@ msgstr "Documentos etiquetados con <0>#{tagName}</0>"msgid "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."msgstr "¿No ves <0>Habilidades</0>? Activa antes <1>Ajustes <2/> Capacidades <3/> Ejecución de código y creación de archivos</1>."-#: src/comments/comment-chips.tsx#: src/comments/ThreadCard.tsxmsgid "Don't send this comment"msgstr "No enviar este comentario"@@ -5842,15 +5829,6 @@ msgstr "Ir a la línea {0}"msgid "Go to line {0} in {1}"msgstr "Ir a la línea {0} de {1}"-#. placeholder {0}: docBasename(thread.docName)-#: src/comments/comment-chips.tsx-msgid "Go to this comment in {0}"-msgstr "Ir a este comentario en {0}"--#: src/comments/comment-chips.tsx-msgid "gone"-msgstr "desaparecida"-#: src/components/FeedbackForm.tsxmsgid "Good"msgstr "Bien"@@ -6062,9 +6040,10 @@ msgstr "Ocultar reemplazar"msgid "Hide resolved"msgstr "Ocultar los resueltos"+#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Hide resolved comments"-msgstr "Ocultar comentarios resueltos"+msgid "Hide resolved comments ({0})"+msgstr "Ocultar comentarios resueltos ({0})"#: src/components/BottomComposer.tsxmsgid "Hide selection preview"@@ -6079,10 +6058,6 @@ msgstr "Ocultar la barra lateral"msgid "Hide Terminal"msgstr "Ocultar Terminal"-#: src/comments/comment-chips.tsx-msgid "Hide these comments"-msgstr "Ocultar estos comentarios"-#: src/components/EditorTabTargetMenuItems.tsx#: src/components/FileTree.tsxmsgid "Hide this file"@@ -6307,10 +6282,6 @@ msgstr "En la aplicación (beta)"msgid "In the Claude Desktop App"msgstr "En la aplicación Claude Desktop"-#: src/comments/comment-chips.tsx-msgid "Include this comment in the next send"-msgstr "Incluir este comentario en el próximo envío"-#: src/lib/keyboard-shortcuts.tsmsgid "Indent or outdent list item"msgstr "Aumentar o reducir la sangría del elemento de lista"@@ -6668,6 +6639,10 @@ msgstr "Ir a la última pestaña"msgid "Jump to page {pageNumber}"msgstr "Ir a la página {pageNumber}"+#: src/comments/ThreadCard.tsx+msgid "Jump to selected text in property"+msgstr "Ir al texto seleccionado en la propiedad"+#: src/lib/keyboard-shortcuts.tsmsgid "Jump to tab 1-8"msgstr "Ir a las pestañas 1-8"@@ -7165,7 +7140,12 @@ msgstr "Trazar la arquitectura"msgid "Mark a block as the source of truth. Mirrors elsewhere update live as you edit it."msgstr "Marca un bloque como fuente de verdad. Los espejos de otros sitios se actualizan en vivo mientras lo editas."-#: src/comments/CommentSendFooter.tsx+#. placeholder {0}: docBasename(group.docName)+#: src/comments/CommentListPanel.tsx+msgid "Mark every comment in {0} to send"+msgstr "Marcar todos los comentarios de {0} para enviar"++#: src/comments/CommentListPanel.tsxmsgid "Mark every comment to send"msgstr "Marcar todos los comentarios para enviar"@@ -8405,10 +8385,6 @@ msgstr "Abre el panel de diagnóstico de análisis de CodeMirror."msgid "Open comment"msgstr "Abrir el comentario"-#: src/comments/CommentSelectionAffordance.tsx-msgid "Open Comments"-msgstr "Abrir Comentarios"-#: src/components/command-palette-commands.ts#: src/lib/platform-labels.tsmsgid "Open containing folder"@@ -8882,10 +8858,6 @@ msgstr "Archivo original, antes de las ediciones de este agente."msgid "Orphan mode"msgstr "Modo huérfanos"-#: src/comments/ThreadCard.tsx-msgid "Orphaned"-msgstr "Huérfana"-#: src/components/GraphPanel.tsxmsgid "Orphans"msgstr "Huérfanas"@@ -9370,7 +9342,6 @@ msgid "project"msgstr "proyecto"#: src/components/CommandPalette.tsx-#: src/components/PanelScopeHeader.tsx#: src/components/settings/ScopeBadge.tsx#: src/lib/skill-scope.tsmsgid "Project"@@ -10681,10 +10652,6 @@ msgstr "Seleccionar la aparición siguiente"msgid "Select the full source document."msgstr "Selecciona el documento de código completo."-#: src/comments/ThreadCard.tsx-msgid "Select this text in the property"-msgstr "Seleccionar este texto en la propiedad"-#: src/lib/keyboard-shortcuts.tsmsgid "Select, enter, or leave block components and fallback source blocks from keyboard boundaries."msgstr "Selecciona, entra o sale de componentes de bloque y bloques de código alternativos desde los límites del teclado."@@ -11143,14 +11110,14 @@ msgstr "Mostrar los indicadores de problemas"msgid "Show replace"msgstr "Mostrar reemplazar"-#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Show resolved ({0})"-msgstr "Mostrar los resueltos ({0})"+msgid "Show resolved"+msgstr "Mostrar resueltos"+#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Show resolved comments"-msgstr "Mostrar comentarios resueltos"+msgid "Show resolved comments ({0})"+msgstr "Mostrar comentarios resueltos ({0})"#: src/components/BottomComposer.tsxmsgid "Show selection preview"@@ -11170,8 +11137,8 @@ msgid "Show Terminal"msgstr "Mostrar Terminal"#: src/comments/comment-chips.tsx-msgid "Show these comments"-msgstr "Mostrar estos comentarios"+msgid "Show these comments in the Comments panel"+msgstr "Mostrar estos comentarios en el panel de comentarios"#: src/editor/components/Pdf.tsxmsgid "Show thumbnails"@@ -12067,6 +12034,10 @@ msgstr "¡Gracias por el informe!"msgid "That branch is already open in another worktree."msgstr "Esa rama ya está abierta en otro worktree."+#: src/comments/reveal-comment.ts+msgid "That document didn't open in time. Try again once it has synced."+msgstr "Ese documento no se abrió a tiempo. Vuelve a intentarlo cuando se haya sincronizado."+#: src/components/settings/SearchSection.tsxmsgid "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."msgstr "No se puede usar ese endpoint. Escribe una URL https://; http:// solo se admite para localhost."@@ -12112,10 +12083,6 @@ msgstr "El agente no se detiene. La detención forzada cierra este chat y sale dmsgid "The agent's persona, values, and voice."msgstr "La personalidad, los valores y la voz del agente."-#: src/comments/ThreadCard.tsx-msgid "The anchored text is gone. You can re-place it on selected text."-msgstr "El texto anclado ha desaparecido. Puedes volver a colocarlo sobre el texto seleccionado."-#: src/components/ProblemsPanel.tsxmsgid "The audit could not be completed. Try again."msgstr "No se pudo completar la auditoría. Inténtalo de nuevo."@@ -12194,6 +12161,10 @@ msgstr "El id del modelo que sirve tu endpoint. El tamaño de su vector se detecmsgid "the open agent"msgstr "el agente abierto"+#: src/comments/ThreadCard.tsx+msgid "The original text was deleted. You can re-place this comment on selected text."+msgstr "El texto original se eliminó. Puedes volver a colocar este comentario sobre el texto seleccionado."+#: src/editor/components/PreviewBlockedNotice.tsxmsgid "The preview blocks resources that don't meet its security rules (for example plain http:// URLs, or code that uses eval). The content above may render incompletely."msgstr "La vista previa bloquea los recursos que no cumplen sus reglas de seguridad (por ejemplo URLs http:// sin cifrar, o código que usa eval). Puede que el contenido de arriba se renderice de forma incompleta."@@ -12219,10 +12190,6 @@ msgstr "El proveedor rechazó la solicitud (HTTP {0}). Revisa la clave de API ymsgid "The provider rejected the request. Check the API key and the model id."msgstr "El proveedor rechazó la solicitud. Revisa la clave de API y el id del modelo."-#: src/comments/comment-chips.tsx-msgid "The quoted text is no longer in the document — the agent will be told."-msgstr "El texto citado ya no está en el documento; se le comunicará al agente."-#: src/components/ReportBugDialogBody.tsxmsgid "The report service couldn't be reached."msgstr "No se pudo contactar con el servicio de informes."@@ -12599,7 +12566,7 @@ msgstr "Esto elimina permanentemente {0}/{1} de la skill «{2}». Todo lo que apmsgid "This permanently removes {path}. Agents that reference this template by name will fail until it's recreated or replaced by one in a parent folder."msgstr "Esto elimina definitivamente {path}. Los agentes que hagan referencia a esta plantilla por su nombre fallarán hasta que se vuelva a crear o la sustituya una de una carpeta superior."-#: src/comments/CommentsTab.tsx+#: src/components/PanelScopeHeader.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "This project"msgstr "Este proyecto"@@ -13090,10 +13057,15 @@ msgstr "Error desconocido"msgid "unlink"msgstr "desenlazar"-#: src/comments/CommentSendFooter.tsx+#: src/comments/CommentListPanel.tsxmsgid "Unmark every comment"msgstr "Desmarcar todos los comentarios"+#. placeholder {0}: docBasename(group.docName)+#: src/comments/CommentListPanel.tsx+msgid "Unmark every comment in {0}"+msgstr "Desmarcar todos los comentarios de {0}"+#: src/editor/slash-command/items.tsxmsgid "Unordered list of items."msgstr "Lista de elementos sin numerar."@@ -13399,6 +13371,10 @@ msgstr "Ver {name}"msgid "View as text"msgstr "Ver como texto"+#: src/comments/CommentSelectionAffordance.tsx+msgid "View comments"+msgstr "Ver comentarios"+#: src/components/ActivityPanelBurstRow.tsxmsgid "View diff for edit {burstNumber} of {docName}"msgstr "Ver las diferencias de la edición {burstNumber} de {docName}"diff --git a/packages/app/src/locales/fr/messages.json b/packages/app/src/locales/fr/messages.jsonindex 411a26c01..1192467af 100644--- a/packages/app/src/locales/fr/messages.json+++ b/packages/app/src/locales/fr/messages.json@@ -68,6 +68,9 @@],"04RA0-": ["Échec de l'activation de la synchronisation — ", ["detail"]],"04XyCH": ["Ajoute un bloc géré à ", ["0"]],+ "05F1GY": [+ "Le texte d'origine a été supprimé. Vous pouvez replacer ce commentaire sur le texte sélectionné."+ ],"05n5wS": ["Suggestions de mentions de documents"],"06SZfb": ["Modèle « ", ["trimmedTitle"], " » créé"],"07eGJB": ["Impossible de déplacer la compétence : ", ["0"]],@@ -141,7 +144,6 @@"11ukmX": ["Échec du renommage : ", ["0"]],"12F9WL": ["(aucun id)"],"151wvk": ["Afficher la barre latérale"],- "15MMFT": ["Afficher ces commentaires"],"15ZHCt": ["Aucune modification du corps dans cette version."],"161NCV": ["Arrêt en cours"],"16D5Zj": [@@ -232,7 +234,6 @@"2QM24L": ["Toutes les étiquettes"],"2RnFoM": ["Impossible de reprendre ce chat : ", ["0"]],"2Snes1": ["Ceci envoie l'adresse du lien hors de votre machine"],- "2UgoBZ": ["disparu"],"2VSPan": ["Terminal a été fermé pour faire de la place au panneau des agents."],"2XQ8Ww": ["Ouvrir l'aperçu quand l'agent modifie"],"2YOwme": ["Redémarré — exécute maintenant la v", ["appRuntime"], "."],@@ -257,6 +258,7 @@"2vIPtm": ["Ouvrir le lien dans un nouvel onglet"],"2wTb8w": ["Configurez-le sur sa propre page sous Plugins."],"2wxgft": ["Renommer"],+ "2zvUIK": ["Afficher ces commentaires dans le panneau des commentaires"],"322lyb": ["Mettez en avant des conseils, des avertissements et des remarques."],"34qyH5": ["Impossible de joindre le serveur"],"36WXSC": ["Impossible de supprimer le modèle : ", ["error"]],@@ -398,7 +400,6 @@"4buZWd": ["Hérité de ", ["path"]],"4c_a6S": ["Rien de défini pour l'instant."],"4d0VYJ": ["Nous créerons un ID de thème sûr à partir de ce nom."],- "4eO-iB": ["Abandonner ce commentaire"],"4g19V6": ["Échec de la mise à jour de la propriété"],"4h3e0H": ["Impossible de mettre à jour le partage des compétences — ", ["detail"], "."],"4hJhzz": ["Tableau"],@@ -426,7 +427,6 @@"4sKwf6": ["Le fichier existe déjà"],"4sUdTJ": ["aperçu thématisé"],"4uNLmk": ["Tirage en cours"],- "4uaCUA": [["mins"], "min"],"4v2Yyz": ["Sélectionne toutes les lignes visibles de l'arborescence lorsque le focus est dans la barre latérale Fichiers."],@@ -460,7 +460,6 @@"5ClEAu": ["Hashtag en ligne pour regrouper des documents entre eux."],"5D3Ior": ["Masquer le dossier"],"5F5HYj": [["ahead"], " en avance, ", ["behind"], " en retard"],- "5GBQ-F": ["Sélectionner ce texte dans la propriété"],"5GKMSz": ["Augmente ou réduit le retrait de l'élément de liste courant."],"5GRxoA": ["Recherchez des fichiers, des dossiers et des commandes dans l'espace de travail actuel."@@ -484,6 +483,23 @@"Ce point de terminaison a ignoré la taille de vecteur que vous avez configurée. Supprimez <0>search.semantic.dimensions</0> pour utiliser la taille propre au modèle."],"5Tk8Fb": ["Chargement des fichiers"],+ "5TmrYN": [+ [+ "count",+ "plural",+ {+ "one": ["#", " commentaire"],+ "many": ["#", " commentaires"],+ "other": ["#", " commentaires"]+ }+ ],+ " dans ",+ [+ "0",+ "plural",+ { "one": ["#", " fichier"], "many": ["#", " fichiers"], "other": ["#", " fichiers"] }+ ]+ ],"5Umg9i": ["Désactiver les aperçus de liens externes"],"5WDhAk": ["Lien vers une page ou une URL externe."],"5Y17qa": ["S'applique à (globs — un ! initial exclut ; vide signifie tous les documents)"],@@ -1124,6 +1140,7 @@],"DcFr-y": ["OpenKnowledge a supprimé un document"],"DcLaew": ["Thème personnalisé"],+ "Dd6j2Q": ["Afficher les commentaires"],"DeDYLr": ["Lien wiki non reconnu"],"DgcGrb": [["fileCount", "plural", { "one": ["fichier"], "many": ["fichiers"], "other": ["fichiers"] }]@@ -1304,6 +1321,7 @@"FgQ7XZ": ["Impossible de charger vos rapports de bug."],"FgRAvd": ["Journaux et informations système"],"Fhp4Gn": ["Voir le plugin"],+ "FiyNln": ["Aller au texte sélectionné dans la propriété"],"FjkaiT": ["Zoom arrière"],"FqGWeR": ["Impossible de joindre le registre des agents."],"FqTpiN": ["Wiki des oiseaux"],@@ -1339,7 +1357,6 @@"G0YZ-I": ["Augmenter ou réduire le retrait d'un élément de liste"],"G1Gw0v": ["Nouveau modèle"],"G1XxbZ": ["Case à cocher"],- "G1zJlD": ["Masquer les commentaires résolus"],"G4m8rL": ["Commenter la sélection"],"G6Lrs_": ["Empêcher ", ["0"], " de lire cette compétence"],"G7-rf8": ["Erreur de syntaxe du motif : ", ["message"]],@@ -1577,6 +1594,9 @@"Aucune page isolée. Les pages n'apparaissent ici que si elles n'ont ni arête entrante ni arête sortante dans le graphe."],"JDHcCM": ["Chargement des compétences populaires"],+ "JDQ5I5": [+ "Ce document ne s'est pas ouvert à temps. Réessayez une fois qu'il sera synchronisé."+ ],"JE21eh": ["Lien symbolique vers ", ["targetPath"]],"JG_8KT": ["Impossible de tirer depuis GitHub. Vérifiez votre connexion et votre authentification, puis réessayez."@@ -1662,6 +1682,9 @@"KZLdgR": ["Voir <0>#design-docs</0> pour les dernières spécifications."],"K_vT1F": ["Synchronisation amont"],"KaFCD3": ["Ouvre ce lien dans un nouvel onglet et réduit le graphe."],+ "KeXgA-": [+ "Impossible de trouver ce passage — le texte auquel il était rattaché a peut-être changé."+ ],"Kf7GG5": ["Redémarrage du serveur…"],"Kge76t": ["Options de ligne"],"Kh1n4a": [@@ -1815,7 +1838,6 @@"MBKkUy": ["skills.sh est indisponible ; affichage des résultats GitHub (sans classement par installations)."],- "MBe6TE": ["Le texte cité n'est plus dans le document — l'agent en sera informé."],"MCjC9A": ["Supprimer ", ["deleteDescriptorLabel"]],"MDBJwN": ["Difficile à utiliser"],"MDZSJe": ["Quand l'agent effectue son travail planifié."],@@ -1923,7 +1945,6 @@"NeY1Np": ["Slidev a mis trop de temps à démarrer. Réessayez."],"NfraGd": ["Autres méthodes d'installation de Slidev"],"NgZwB0": [["enabledCount"], "/", ["0"], " activés"],- "NiGIcB": ["Ouvrir les commentaires"],"NjrIak": ["Fichier : <0>", ["fixedName"], ".md</0>"],"NkNfSr": ["Modifier ", ["tag"]],"NkXEFS": ["Échec de la restauration — document inchangé"],@@ -2034,6 +2055,7 @@"PBxg_E": ["Pas maintenant"],"PCSkw2": ["Compétences"],"PGPGsL": ["Ajouter une description"],+ "PHHEuH": ["Masquer les commentaires résolus (", ["0"], ")"],"PIMM5l": ["Vous êtes abonné !"],"PKLY-1": ["Ouverture…"],"PKjGhT": ["Titres"],@@ -2152,7 +2174,6 @@"QpSqAP": ["Le vrai shell est désactivé pour ce projet. L'activer exécute les commandes avec tous les droits de votre compte utilisateur."],- "Qpfxa1": [["secs"], "s"],"QqBQu1": ["Libellé <0>(texte visible du lien)</0>"],"Qvls7J": ["Spécifications techniques"],"Qw-7Ie": [@@ -2306,6 +2327,7 @@],"T-654M": ["Chargement du PDF"],"T0OVm7": ["La branche par défaut est protégée — les push nécessitent une pull request."],+ "T2fvhw": ["Décocher tous les commentaires de ", ["0"]],"T3Mld1": ["Fenêtre"],"T3j-7o": ["par ex. Changement de projet pendant une synchronisation"],"TBfy1C": ["Impossible de démarrer Slidev."],@@ -2373,7 +2395,6 @@"UDFrWm": ["Vérification de la connexion GitHub…"],"UD_onR": ["Cogitation…"],"UDb2YD": ["React"],- "UEdTEN": ["Orpheline"],"UGeJuP": ["Valeurs autorisées (vide = toutes)"],"UGtPix": ["La connexion à GitHub a expiré. Reconnectez-vous pour continuer."],"UH0Zqw": ["Ce fichier n’est pas un fichier de thème standard"],@@ -2451,7 +2472,6 @@"UkQGhd": ["Masquer le remplacement"],"UlVARL": ["Activer Slidev"],"Uobeu9": ["Ajoute la compétence à ", ["rootRel"], " — également lu par ", ["0"]],- "Uoux8m": ["Inclure ce commentaire dans le prochain envoi"],"Up2_7p": ["Copier le chemin complet"],"UpCz01": ["Ce document"],"UpOct_": ["Ajoutez vos commentaires à ce message"],@@ -2620,6 +2640,7 @@"Wh0im4": ["modifie [[", ["realCurrentDoc"], "]]"],"WhOsNE": ["Barré"],"Wi-VWy": ["Impossible d'envoyer le rapport"],+ "WkQ0Z_": ["Cocher tous les commentaires de ", ["0"], " à envoyer"],"WkTLN7": ["N'afficher que les fichiers markdown"],"WkyP2p": ["Section Compétences"],"WmPbvm": ["Recevez les nouveautés du produit dans votre boîte mail."],@@ -2667,7 +2688,6 @@"XV5sC0": ["Ouvrir le worktree"],"XVnIvs": ["Installer des compétences"],"XW18jo": ["La réponse des titres de page ne correspond pas au schéma de succès"],- "XWEqQj": [["days"], "j"],"XXA1b_": [["componentLabel"], " (vide)"],"XYZ7tp": ["Non résolu"],"XYlJJT": ["Configuration en cours"],@@ -2962,7 +2982,6 @@"Copie en lecture seule d'un bloc MirrorSource d'un autre document. Modifiez à la source et la copie se met à jour en direct."],"_XWY2J": ["Terminal désactivé"],- "_YEyHO": ["Afficher les commentaires résolus"],"_YWqV2": ["OpenKnowledge a résolu un conflit"],"_ayOfA": ["Une base de connaissances qui suit l'Open Knowledge Format de Google, une manière commune d'organiser ce que vous savez. Choisissez ceci si vous voulez que vos notes fonctionnent bien avec les autres outils qui comprennent ce format."@@ -2976,7 +2995,6 @@"_gO_m8": ["En attente de votre approbation"],"_gkGSK": ["modèle supprimé"],"_mcDqU": [["count"], " compétences à cette source"],- "_oqig9": [["hours"], "h"],"_pY_Vq": ["Le dépôt a été déplacé, renommé ou supprimé."],"_qD6mn": ["Choisissez le dossier où vous l'avez cloné."],"_rP3HI": ["il y a ", ["minutes"], " min"],@@ -3496,6 +3514,7 @@"Cliquez sur <0>+</0> <1/> <2>Créer une compétence</2> <3/> <4>Envoyer une compétence</4>."],"gHSAWT": ["Créer le worktree <0>« <1>", ["typedName"], "</1> »</0>"],+ "gHb5bB": ["Afficher les commentaires résolus (", ["0"], ")"],"gITz7o": ["Déplace le curseur ou étend la sélection via le mappage clavier de navigation standard de l'éditeur de source CodeMirror."],@@ -3738,7 +3757,6 @@"iz1LdD": ["Modifié en dehors d'OK depuis sa dernière écriture ici — l'état affiché est celui qui se trouve sur le disque maintenant"],- "j0ItfO": ["Afficher les éléments résolus (", ["0"], ")"],"j15ZSH": ["Envoyer les commentaires à"],"j2229h": ["Suppression des fichiers OpenKnowledge…"],"j2kt1j": [@@ -3844,7 +3862,6 @@["targetNoun"]," apparaîtra une fois la branche synchronisée."],- "kMKqP_": ["Masquer ces commentaires"],"kNGLX6": ["Nouvelle tentative…"],"kNqMMd": ["Dossier"],"kRTXGw": [@@ -4115,7 +4132,6 @@"nBgzKO": ["En faire la source — le vrai dossier de la compétence est déplacé ici"],"nCzR-G": ["Copier le code ", ["userCode"]],"nDT8qt": [["0"], " initialisé mais impossible à ouvrir."],- "nG-XA9": ["Le texte ancré a disparu. Vous pouvez le replacer sur un texte sélectionné."],"nMSYz5": ["Ce chemin se trouve sur un volume externe (/Volumes/...). OpenKnowledge perdra la trace des fichiers lorsque le disque sera éjecté."],@@ -4183,6 +4199,7 @@"nzaV6Q": ["Miniatures des pages"],"o0bHtA": ["Par OpenKnowledge"],"o49mDZ": ["Chargement de l'historique de la chronologie"],+ "o7AkQ0": ["Afficher les résolus"],"o9CrsQ": ["research-note"],"o9fPtM": ["Mise à jour automatique depuis la source"],"o9yN4T": ["Mettre à la Corbeille"],@@ -4482,7 +4499,6 @@"roAe2K": ["URL du lien"],"roiUQQ": ["Cette page ne renvoie encore vers rien."],"rppgXF": ["Déconnexion"],- "rscgd_": ["Voir ce commentaire dans ", ["0"]],"rssK8c": ["Motifs d'exclusion (texte brut)"],"rtdR4v": ["Afficher ou masquer les fichiers"],"rtir7c": ["inconnu"],diff --git a/packages/app/src/locales/fr/messages.po b/packages/app/src/locales/fr/messages.poindex 3374721eb..8d3dc4c71 100644--- a/packages/app/src/locales/fr/messages.po+++ b/packages/app/src/locales/fr/messages.po@@ -511,6 +511,11 @@ msgstr "{conflictCount, plural, one {# fichier en conflit} many {# fichiers en cmsgid "{count, plural, one {# comment} other {# comments}}"msgstr "{count, plural, one {# commentaire} many {# commentaires} other {# commentaires}}"+#. placeholder {0}: docs.length+#: src/comments/comment-chips.tsx+msgid "{count, plural, one {# comment} other {# comments}} across {0, plural, one {# file} other {# files}}"+msgstr "{count, plural, one {# commentaire} many {# commentaires} other {# commentaires}} dans {0, plural, one {# fichier} many {# fichiers} other {# fichiers}}"+#: src/components/settings/applies-to-folder-picker.tsxmsgid "{count, plural, one {# doc} other {# docs}}"msgstr "{count, plural, one {# document} many {# documents} other {# documents}}"@@ -559,10 +564,6 @@ msgstr "{count} compétences à cette source"msgid "{days, plural, one {# day ago} other {# days ago}}"msgstr "{days, plural, one {il y a # jour} many {il y a # jours} other {il y a # jours}}"-#: src/comments/ThreadCard.tsx-msgid "{days}d"-msgstr "{days}j"-#: src/components/acp/ThreadHistoryMenu.tsxmsgid "{days}d ago"msgstr "il y a {days} j"@@ -657,10 +658,6 @@ msgstr "{folderCount, plural, one {dossier} many {dossiers} other {dossiers}}"msgid "{formatted} GitHub stars"msgstr "{formatted} étoiles GitHub"-#: src/comments/ThreadCard.tsx-msgid "{hours}h"-msgstr "{hours}h"-#: src/components/acp/ThreadHistoryMenu.tsx#: src/components/ActivityModeContent.tsx#: src/components/ActivityPanelFileRow.tsx@@ -727,10 +724,6 @@ msgstr "{localizedMessage} à la ligne {displayLine}"msgid "{mins, plural, one {# min ago} other {# min ago}}"msgstr "{mins, plural, one {il y a # min} many {il y a # min} other {il y a # min}}"-#: src/comments/ThreadCard.tsx-msgid "{mins}m"-msgstr "{mins}min"-#: src/components/SyncStatusBadge.tsxmsgid "{minutes} min ago"msgstr "il y a {minutes} min"@@ -813,10 +806,6 @@ msgstr "Propriétés de {propPanelDescriptorLabel}"msgid "{seconds}s ago"msgstr "il y a {seconds} s"-#: src/comments/ThreadCard.tsx-msgid "{secs}s"-msgstr "{secs}s"-#: src/editor/extensions/JsxComponentView.tsxmsgid "{settingsDescriptorLabel} properties"msgstr "Propriétés de {settingsDescriptorLabel}"@@ -2500,7 +2489,6 @@ msgstr "Clonage de {repoName}…"msgid "Cloning..."msgstr "Clonage…"-#: src/comments/ThreadCard.tsx#: src/components/EditorTabs.tsx#: src/components/FeedbackForm.tsx#: src/components/InstallInClaudeDesktopDialog.tsx@@ -3391,6 +3379,10 @@ msgstr "Impossible de se déconnecter — veuillez réessayer."msgid "Couldn't duplicate \"{0}\": {1}"msgstr "Impossible de dupliquer « {0} » : {1}"+#: src/comments/reveal-comment.ts+msgid "Couldn't find that passage — the text it was on may have changed."+msgstr "Impossible de trouver ce passage — le texte auquel il était rattaché a peut-être changé."+#. placeholder {0}: item.displayName#: src/components/acp/ThreadView.tsxmsgid "Couldn't finish installing {0} — see below."@@ -4323,10 +4315,6 @@ msgstr "Distingue les modèles aux noms similaires dans le menu."msgid "Discard local edits, restore the installed version"msgstr "Abandonner les modifications locales, restaurer la version installée"-#: src/comments/CommentSelectionAffordance.tsx-msgid "Discard this comment"-msgstr "Abandonner ce commentaire"-#: src/components/settings/AccountSection.tsxmsgid "Disconnect"msgstr "Déconnecter"@@ -4426,7 +4414,6 @@ msgstr "Documents étiquetés <0>#{tagName}</0>"msgid "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."msgstr "Vous ne voyez pas <0>Compétences</0> ? Activez d'abord <1>Paramètres <2/> Fonctionnalités <3/> Exécution de code et création de fichiers</1>."-#: src/comments/comment-chips.tsx#: src/comments/ThreadCard.tsxmsgid "Don't send this comment"msgstr "Ne pas envoyer ce commentaire"@@ -5842,15 +5829,6 @@ msgstr "Aller à la ligne {0}"msgid "Go to line {0} in {1}"msgstr "Aller à la ligne {0} dans {1}"-#. placeholder {0}: docBasename(thread.docName)-#: src/comments/comment-chips.tsx-msgid "Go to this comment in {0}"-msgstr "Voir ce commentaire dans {0}"--#: src/comments/comment-chips.tsx-msgid "gone"-msgstr "disparu"-#: src/components/FeedbackForm.tsxmsgid "Good"msgstr "Bien"@@ -6062,9 +6040,10 @@ msgstr "Masquer le remplacement"msgid "Hide resolved"msgstr "Masquer les éléments résolus"+#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Hide resolved comments"-msgstr "Masquer les commentaires résolus"+msgid "Hide resolved comments ({0})"+msgstr "Masquer les commentaires résolus ({0})"#: src/components/BottomComposer.tsxmsgid "Hide selection preview"@@ -6079,10 +6058,6 @@ msgstr "Masquer la barre latérale"msgid "Hide Terminal"msgstr "Masquer Terminal"-#: src/comments/comment-chips.tsx-msgid "Hide these comments"-msgstr "Masquer ces commentaires"-#: src/components/EditorTabTargetMenuItems.tsx#: src/components/FileTree.tsxmsgid "Hide this file"@@ -6307,10 +6282,6 @@ msgstr "Dans l'application (bêta)"msgid "In the Claude Desktop App"msgstr "Dans l'application Claude Desktop"-#: src/comments/comment-chips.tsx-msgid "Include this comment in the next send"-msgstr "Inclure ce commentaire dans le prochain envoi"-#: src/lib/keyboard-shortcuts.tsmsgid "Indent or outdent list item"msgstr "Augmenter ou réduire le retrait d'un élément de liste"@@ -6668,6 +6639,10 @@ msgstr "Aller au dernier onglet"msgid "Jump to page {pageNumber}"msgstr "Aller à la page {pageNumber}"+#: src/comments/ThreadCard.tsx+msgid "Jump to selected text in property"+msgstr "Aller au texte sélectionné dans la propriété"+#: src/lib/keyboard-shortcuts.tsmsgid "Jump to tab 1-8"msgstr "Aller aux onglets 1 à 8"@@ -7165,7 +7140,12 @@ msgstr "Cartographier l'architecture"msgid "Mark a block as the source of truth. Mirrors elsewhere update live as you edit it."msgstr "Marque un bloc comme source de vérité. Les miroirs situés ailleurs se mettent à jour en direct pendant que vous le modifiez."-#: src/comments/CommentSendFooter.tsx+#. placeholder {0}: docBasename(group.docName)+#: src/comments/CommentListPanel.tsx+msgid "Mark every comment in {0} to send"+msgstr "Cocher tous les commentaires de {0} à envoyer"++#: src/comments/CommentListPanel.tsxmsgid "Mark every comment to send"msgstr "Cocher tous les commentaires à envoyer"@@ -8405,10 +8385,6 @@ msgstr "Ouvre le panneau de diagnostics de vérification de CodeMirror."msgid "Open comment"msgstr "Ouvrir le commentaire"-#: src/comments/CommentSelectionAffordance.tsx-msgid "Open Comments"-msgstr "Ouvrir les commentaires"-#: src/components/command-palette-commands.ts#: src/lib/platform-labels.tsmsgid "Open containing folder"@@ -8882,10 +8858,6 @@ msgstr "Fichier d'origine — avant les modifications de cet agent."msgid "Orphan mode"msgstr "Mode orphelines"-#: src/comments/ThreadCard.tsx-msgid "Orphaned"-msgstr "Orpheline"-#: src/components/GraphPanel.tsxmsgid "Orphans"msgstr "Orphelines"@@ -9370,7 +9342,6 @@ msgid "project"msgstr "projet"#: src/components/CommandPalette.tsx-#: src/components/PanelScopeHeader.tsx#: src/components/settings/ScopeBadge.tsx#: src/lib/skill-scope.tsmsgid "Project"@@ -10681,10 +10652,6 @@ msgstr "Sélectionner l'occurrence suivante"msgid "Select the full source document."msgstr "Sélectionne l'intégralité du document source."-#: src/comments/ThreadCard.tsx-msgid "Select this text in the property"-msgstr "Sélectionner ce texte dans la propriété"-#: src/lib/keyboard-shortcuts.tsmsgid "Select, enter, or leave block components and fallback source blocks from keyboard boundaries."msgstr "Sélectionnez, entrez dans ou quittez les composants de bloc et les blocs source de repli depuis les limites clavier."@@ -11143,14 +11110,14 @@ msgstr "Afficher les indicateurs de problèmes"msgid "Show replace"msgstr "Afficher le remplacement"-#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Show resolved ({0})"-msgstr "Afficher les éléments résolus ({0})"+msgid "Show resolved"+msgstr "Afficher les résolus"+#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Show resolved comments"-msgstr "Afficher les commentaires résolus"+msgid "Show resolved comments ({0})"+msgstr "Afficher les commentaires résolus ({0})"#: src/components/BottomComposer.tsxmsgid "Show selection preview"@@ -11170,8 +11137,8 @@ msgid "Show Terminal"msgstr "Afficher Terminal"#: src/comments/comment-chips.tsx-msgid "Show these comments"-msgstr "Afficher ces commentaires"+msgid "Show these comments in the Comments panel"+msgstr "Afficher ces commentaires dans le panneau des commentaires"#: src/editor/components/Pdf.tsxmsgid "Show thumbnails"@@ -12067,6 +12034,10 @@ msgstr "Merci pour ce rapport !"msgid "That branch is already open in another worktree."msgstr "Cette branche est déjà ouverte dans un autre worktree."+#: src/comments/reveal-comment.ts+msgid "That document didn't open in time. Try again once it has synced."+msgstr "Ce document ne s'est pas ouvert à temps. Réessayez une fois qu'il sera synchronisé."+#: src/components/settings/SearchSection.tsxmsgid "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."msgstr "Ce point de terminaison ne peut pas être utilisé. Saisissez une URL https:// — http:// n'est autorisé que pour localhost."@@ -12112,10 +12083,6 @@ msgstr "L'agent ne s'arrête pas. L'arrêt forcé ferme ce chat et quitte l'agenmsgid "The agent's persona, values, and voice."msgstr "La personnalité, les valeurs et le ton de l'agent."-#: src/comments/ThreadCard.tsx-msgid "The anchored text is gone. You can re-place it on selected text."-msgstr "Le texte ancré a disparu. Vous pouvez le replacer sur un texte sélectionné."-#: src/components/ProblemsPanel.tsxmsgid "The audit could not be completed. Try again."msgstr "L'audit n'a pas pu être terminé. Réessayez."@@ -12194,6 +12161,10 @@ msgstr "L'id du modèle servi par votre point de terminaison. La taille de ses vmsgid "the open agent"msgstr "l'agent ouvert"+#: src/comments/ThreadCard.tsx+msgid "The original text was deleted. You can re-place this comment on selected text."+msgstr "Le texte d'origine a été supprimé. Vous pouvez replacer ce commentaire sur le texte sélectionné."+#: src/editor/components/PreviewBlockedNotice.tsxmsgid "The preview blocks resources that don't meet its security rules (for example plain http:// URLs, or code that uses eval). The content above may render incompletely."msgstr "L'aperçu bloque les ressources qui ne respectent pas ses règles de sécurité (par exemple les URL http:// simples, ou le code qui utilise eval). Le contenu ci-dessus peut s'afficher de façon incomplète."@@ -12219,10 +12190,6 @@ msgstr "Le fournisseur a rejeté la requête (HTTP {0}). Vérifiez la clé API emsgid "The provider rejected the request. Check the API key and the model id."msgstr "Le fournisseur a rejeté la requête. Vérifiez la clé API et l'id du modèle."-#: src/comments/comment-chips.tsx-msgid "The quoted text is no longer in the document — the agent will be told."-msgstr "Le texte cité n'est plus dans le document — l'agent en sera informé."-#: src/components/ReportBugDialogBody.tsxmsgid "The report service couldn't be reached."msgstr "Le service de rapports n'a pas pu être joint."@@ -12599,7 +12566,7 @@ msgstr "Cette action supprime définitivement {0}/{1} de la compétence « {2}msgid "This permanently removes {path}. Agents that reference this template by name will fail until it's recreated or replaced by one in a parent folder."msgstr "Ceci retire définitivement {path}. Les agents qui référencent ce modèle par son nom échoueront jusqu'à ce qu'il soit recréé ou remplacé par un modèle d'un dossier parent."-#: src/comments/CommentsTab.tsx+#: src/components/PanelScopeHeader.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "This project"msgstr "Ce projet"@@ -13090,10 +13057,15 @@ msgstr "Erreur inconnue"msgid "unlink"msgstr "dissocier"-#: src/comments/CommentSendFooter.tsx+#: src/comments/CommentListPanel.tsxmsgid "Unmark every comment"msgstr "Décocher tous les commentaires"+#. placeholder {0}: docBasename(group.docName)+#: src/comments/CommentListPanel.tsx+msgid "Unmark every comment in {0}"+msgstr "Décocher tous les commentaires de {0}"+#: src/editor/slash-command/items.tsxmsgid "Unordered list of items."msgstr "Liste d'éléments sans numérotation."@@ -13399,6 +13371,10 @@ msgstr "Voir {name}"msgid "View as text"msgstr "Afficher comme texte"+#: src/comments/CommentSelectionAffordance.tsx+msgid "View comments"+msgstr "Afficher les commentaires"+#: src/components/ActivityPanelBurstRow.tsxmsgid "View diff for edit {burstNumber} of {docName}"msgstr "Voir les différences de la modification {burstNumber} de {docName}"diff --git a/packages/app/src/locales/hi/messages.json b/packages/app/src/locales/hi/messages.jsonindex ac01e9665..410a22985 100644--- a/packages/app/src/locales/hi/messages.json+++ b/packages/app/src/locales/hi/messages.json@@ -54,6 +54,7 @@"03wKPg": ["एक रिपोर्ट हमें कारण खोजने में मदद करती है। आपकी समीक्षा से पहले कुछ भी नहीं भेजा जाता।"],"04RA0-": ["सिंक सक्षम करने में विफल — ", ["detail"]],"04XyCH": [["0"], " में एक प्रबंधित ब्लॉक जोड़ता है"],+ "05F1GY": ["मूल पाठ हटा दिया गया था। आप इस टिप्पणी को चयनित पाठ पर फिर से रख सकते हैं।"],"05n5wS": ["दस्तावेज़ उल्लेख सुझाव"],"06SZfb": ["टेम्पलेट \"", ["trimmedTitle"], "\" बनाया गया"],"07eGJB": ["स्किल नहीं हिलाई जा सकी: ", ["0"]],@@ -121,7 +122,6 @@"11ukmX": ["नाम बदलना विफल: ", ["0"]],"12F9WL": ["(कोई id नहीं)"],"151wvk": ["साइडबार दिखाएँ"],- "15MMFT": ["ये टिप्पणियाँ दिखाएँ"],"15ZHCt": ["इस संस्करण में मुख्य भाग का कोई बदलाव नहीं।"],"161NCV": ["रोका जा रहा है"],"16D5Zj": ["क्या आप वाकई ", ["itemName"], " हटाना चाहते हैं? यह क्रिया वापस नहीं ली जा सकती।"],@@ -194,7 +194,6 @@"2QM24L": ["सभी टैग"],"2RnFoM": ["यह चैट फिर से शुरू नहीं हो सकी: ", ["0"]],"2Snes1": ["यह लिंक का पता आपकी मशीन से बाहर भेजता है"],- "2UgoBZ": ["जा चुका"],"2VSPan": ["एजेंट पैनल के लिए जगह बनाने हेतु Terminal बंद कर दिया गया।"],"2XQ8Ww": ["एजेंट के संपादन करने पर पूर्वावलोकन खोलें"],"2YOwme": ["पुनः आरंभ हुआ — अब v", ["appRuntime"], " चल रहा है।"],@@ -219,6 +218,7 @@"2vIPtm": ["लिंक नए टैब में खोलें"],"2wTb8w": ["इसे Plugins के अंतर्गत इसके अपने पेज पर सेट करें।"],"2wxgft": ["नाम बदलें"],+ "2zvUIK": ["इन टिप्पणियों को टिप्पणियाँ पैनल में दिखाएँ"],"322lyb": ["सुझाव, चेतावनियाँ और नोट उभारें।"],"34qyH5": ["सर्वर तक नहीं पहुँचा जा सका"],"36WXSC": ["टेम्पलेट नहीं हटाया जा सका: ", ["error"]],@@ -318,7 +318,6 @@"4buZWd": [["path"], " से विरासत में मिला"],"4c_a6S": ["अभी कुछ भी सेट नहीं।"],"4d0VYJ": ["हम इस नाम से एक सुरक्षित थीम ID बनाएँगे।"],- "4eO-iB": ["यह टिप्पणी छोड़ें"],"4g19V6": ["प्रॉपर्टी अपडेट करने में विफल"],"4h3e0H": ["स्किल साझाकरण अपडेट नहीं किया जा सका — ", ["detail"], "."],"4hJhzz": ["तालिका"],@@ -336,7 +335,6 @@"4sKwf6": ["फ़ाइल पहले से मौजूद है"],"4sUdTJ": ["थीम वाला पूर्वावलोकन"],"4uNLmk": ["खींचा जा रहा है"],- "4uaCUA": [["mins"], "मि"],"4v2Yyz": ["जब फ़ोकस Files साइडबार में हो तब हर दिखाई देने वाली फ़ाइल-ट्री पंक्ति चुनें।"],"4wo5UV": ["चयनित इंस्टॉल करें"],"4xtLTl": ["छिपा हुआ फ़ोल्डर “", ["basename"], "”"],@@ -362,7 +360,6 @@"5ClEAu": ["क्रॉस-दस्तावेज़ समूहन के लिए इनलाइन हैशटैग।"],"5D3Ior": ["फ़ोल्डर छिपाएँ"],"5F5HYj": [["ahead"], " आगे, ", ["behind"], " पीछे"],- "5GBQ-F": ["प्रॉपर्टी में यह पाठ चुनें"],"5GKMSz": ["मौजूदा सूची आइटम को अंदर या बाहर करें।"],"5GRxoA": ["मौजूदा कार्यक्षेत्र के लिए फ़ाइलें, फ़ोल्डर और कमांड खोजें।"],"5HJpFY": ["चल रही बारी के पीछे क़तार में लगता है"],@@ -384,6 +381,12 @@"इस एंडपॉइंट ने आपके कॉन्फ़िगर किए गए वेक्टर आकार को अनदेखा कर दिया। मॉडल का अपना आकार उपयोग करने के लिए <0>search.semantic.dimensions</0> हटा दें।"],"5Tk8Fb": ["फ़ाइलें लोड हो रही हैं"],+ "5TmrYN": [+ ["count", "plural", { "one": ["#", " टिप्पणी"], "other": ["#", " टिप्पणियाँ"] }],+ " ",+ ["0", "plural", { "one": ["#", " फ़ाइल"], "other": ["#", " फ़ाइलों"] }],+ " में"+ ],"5Umg9i": ["बाहरी लिंक पूर्वावलोकन अक्षम करें"],"5WDhAk": ["किसी पेज या बाहरी URL से लिंक करें।"],"5Y17qa": ["किस पर लागू (ग्लोब — शुरू में ! बाहर रखता है; खाली का अर्थ हर दस्तावेज़)"],@@ -910,6 +913,7 @@"DbILZA": ["कोई मेल नहीं। कुछ फ़ाइलें खोज से बाहर रखी गई हैं (छिपी या अनदेखी की गई फ़ाइलें)।"],"DcFr-y": ["OpenKnowledge ने एक दस्तावेज़ हटाया"],"DcLaew": ["कस्टम थीम"],+ "Dd6j2Q": ["टिप्पणियाँ देखें"],"DeDYLr": ["अपरिचित विकी लिंक"],"DgcGrb": [["fileCount", "plural", { "one": ["फ़ाइल"], "other": ["फ़ाइलें"] }]],"DhLHEb": ["गतिविधि लोड करने में विफल"],@@ -1075,6 +1079,7 @@"FgQ7XZ": ["आपकी बग रिपोर्ट लोड नहीं हो सकीं।"],"FgRAvd": ["लॉग और सिस्टम जानकारी"],"Fhp4Gn": ["प्लगइन देखें"],+ "FiyNln": ["प्रॉपर्टी में चयनित पाठ पर जाएँ"],"FjkaiT": ["छोटा करें"],"FqGWeR": ["एजेंट रजिस्ट्री तक नहीं पहुँचा जा सका।"],"FqTpiN": ["पक्षी विकी"],@@ -1096,7 +1101,6 @@"G0YZ-I": ["सूची आइटम को अंदर या बाहर करें"],"G1Gw0v": ["नया टेम्पलेट"],"G1XxbZ": ["चेकबॉक्स"],- "G1zJlD": ["हल की गई टिप्पणियाँ छिपाएँ"],"G4m8rL": ["चयन पर टिप्पणी"],"G6Lrs_": [["0"], " को यह स्किल पढ़ने से रोकें"],"G7-rf8": ["पैटर्न वाक्यविन्यास त्रुटि: ", ["message"]],@@ -1285,6 +1289,7 @@"कोई असंबद्ध पेज नहीं। पेज यहाँ तभी दिखते हैं जब उनके न कोई आने वाले और न कोई जाने वाले ग्राफ़ किनारे हों।"],"JDHcCM": ["लोकप्रिय स्किल लोड हो रही हैं"],+ "JDQ5I5": ["वह दस्तावेज़ समय पर नहीं खुला। सिंक होने के बाद फिर से कोशिश करें।"],"JE21eh": [["targetPath"], " का सिमलिंक"],"JG_8KT": ["GitHub से नहीं खींचा जा सका। अपना कनेक्शन और साइन-इन जाँचें, फिर कोशिश करें।"],"JHf6qZ": ["[email protected]"],@@ -1360,6 +1365,7 @@"KZLdgR": ["नवीनतम स्पेक के लिए <0>#design-docs</0> देखें।"],"K_vT1F": ["अपस्ट्रीम सिंक"],"KaFCD3": ["इस लिंक को नए टैब में खोलें और ग्राफ़ समेटें।"],+ "KeXgA-": ["वह अंश नहीं मिल सका — जिस पाठ पर वह था वह बदल गया हो सकता है।"],"Kf7GG5": ["सर्वर पुनः आरंभ किया जा रहा है…"],"Kge76t": ["पंक्ति विकल्प"],"Kh1n4a": [@@ -1488,7 +1494,6 @@"M92_0q": ["टिप्पणी बंद करें"],"M9597s": ["साझा URL तैयार किया जा रहा है…"],"MBKkUy": ["skills.sh अनुपलब्ध है; GitHub के परिणाम दिखाए जा रहे हैं (इंस्टॉल के अनुसार क्रम नहीं)।"],- "MBe6TE": ["उद्धृत पाठ अब दस्तावेज़ में नहीं है — एजेंट को बता दिया जाएगा।"],"MCjC9A": [["deleteDescriptorLabel"], " हटाएँ"],"MDBJwN": ["उपयोग करना कठिन"],"MDZSJe": ["एजेंट अपना निर्धारित काम कब करता है।"],@@ -1590,7 +1595,6 @@"NeY1Np": ["Slidev शुरू होने में बहुत समय लगा। फिर से कोशिश करें।"],"NfraGd": ["Slidev इंस्टॉल करने के अन्य तरीके"],"NgZwB0": [["0"], " में से ", ["enabledCount"], " चालू"],- "NiGIcB": ["टिप्पणियाँ खोलें"],"NjrIak": ["फ़ाइल: <0>", ["fixedName"], ".md</0>"],"NkNfSr": [["tag"], " संपादित करें"],"NkXEFS": ["बहाली विफल — दस्तावेज़ अपरिवर्तित"],@@ -1695,6 +1699,7 @@"PBxg_E": ["अभी नहीं"],"PCSkw2": ["स्किल"],"PGPGsL": ["विवरण जोड़ें"],+ "PHHEuH": ["हल की गई टिप्पणियाँ छिपाएँ (", ["0"], ")"],"PIMM5l": ["आपने सदस्यता ले ली!"],"PKLY-1": ["खोला जा रहा है…"],"PKjGhT": ["शीर्षक"],@@ -1795,7 +1800,6 @@"QpSqAP": ["इस प्रोजेक्ट के लिए असली शेल बंद है। इसे चालू करने पर कमांड आपके उपयोगकर्ता खाते की पूरी पहुँच के साथ चलते हैं।"],- "Qpfxa1": [["secs"], "से"],"QqBQu1": ["लेबल <0>(दिखाई देने वाला लिंक पाठ)</0>"],"Qvls7J": ["इंजीनियरिंग स्पेक"],"Qw-7Ie": [@@ -1933,6 +1937,7 @@],"T-654M": ["PDF लोड हो रही है"],"T0OVm7": ["डिफ़ॉल्ट ब्रांच सुरक्षित है — भेजने के लिए एक पुल रिक्वेस्ट चाहिए।"],+ "T2fvhw": [["0"], " की सभी टिप्पणियाँ अचिह्नित करें"],"T3Mld1": ["विंडो"],"T3j-7o": ["जैसे सिंक चलते समय प्रोजेक्ट बदलना"],"TBfy1C": ["Slidev शुरू नहीं किया जा सका।"],@@ -1982,7 +1987,6 @@"UDFrWm": ["GitHub कनेक्शन जाँचा जा रहा है…"],"UD_onR": ["सोचा जा रहा है…"],"UDb2YD": ["React"],- "UEdTEN": ["अनाथ"],"UGeJuP": ["अनुमत मान (खाली = कोई भी)"],"UGtPix": ["GitHub कनेक्शन समाप्त हो गया। जारी रखने के लिए फिर से कनेक्ट करें।"],"UH0Zqw": ["यह सामान्य थीम फ़ाइल नहीं है"],@@ -2048,7 +2052,6 @@"UkQGhd": ["बदलें छिपाएँ"],"UlVARL": ["Slidev चालू करें"],"Uobeu9": ["स्किल को ", ["rootRel"], " में जोड़ता है — जिसे ", ["0"], " भी पढ़ता है"],- "Uoux8m": ["अगली बार भेजते समय इस टिप्पणी को शामिल करें"],"Up2_7p": ["पूरा पथ कॉपी करें"],"UpCz01": ["यह दस्तावेज़"],"UpOct_": ["इस संदेश में अपनी टिप्पणियाँ जोड़ें"],@@ -2165,6 +2168,7 @@"Wh0im4": ["[[", ["realCurrentDoc"], "]] संपादित किया जा रहा है"],"WhOsNE": ["काटा हुआ"],"Wi-VWy": ["रिपोर्ट नहीं भेजी जा सकी"],+ "WkQ0Z_": [["0"], " की सभी टिप्पणियाँ भेजने के लिए चिह्नित करें"],"WkTLN7": ["केवल markdown फ़ाइलें दिखाएँ"],"WkyP2p": ["स्किल अनुभाग"],"WmPbvm": ["उत्पाद अपडेट अपने इनबॉक्स में पाएँ।"],@@ -2212,7 +2216,6 @@"XV5sC0": ["वर्कट्री खोलें"],"XVnIvs": ["स्किल इंस्टॉल करें"],"XW18jo": ["पेज शीर्षकों की प्रतिक्रिया सफलता स्कीमा से मेल नहीं खाई"],- "XWEqQj": [["days"], "दि"],"XXA1b_": [["componentLabel"], " (खाली)"],"XYZ7tp": ["अनसुलझा"],"XYlJJT": ["सेट अप किया जा रहा है"],@@ -2458,7 +2461,6 @@"किसी दूसरे दस्तावेज़ के MirrorSource ब्लॉक की केवल-पढ़ने योग्य प्रति। स्रोत पर संपादित करें और यह तुरंत अद्यतित हो जाती है।"],"_XWY2J": ["टर्मिनल अक्षम"],- "_YEyHO": ["हल की गई टिप्पणियाँ दिखाएँ"],"_YWqV2": ["OpenKnowledge ने एक विरोध हल किया"],"_ayOfA": ["एक ज्ञान आधार जो Google के Open Knowledge Format का पालन करता है, जो आपकी जानकारी को व्यवस्थित करने का एक साझा तरीका है। इसे चुनें यदि आप चाहते हैं कि आपके नोट उन दूसरे टूल के साथ अच्छी तरह काम करें जो इस फ़ॉर्मेट को समझते हैं।"@@ -2470,7 +2472,6 @@"_gO_m8": ["आपकी स्वीकृति की प्रतीक्षा"],"_gkGSK": ["टेम्पलेट हटाया गया"],"_mcDqU": ["इस स्रोत पर ", ["count"], " स्किल"],- "_oqig9": [["hours"], "घं"],"_pY_Vq": ["रिपॉज़िटरी हिलाई गई, उसका नाम बदला गया, या उसे हटा दिया गया।"],"_qD6mn": ["वह फ़ोल्डर चुनें जहाँ आपने इसे क्लोन किया है।"],"_rP3HI": [["minutes"], " मिनट पहले"],@@ -2873,6 +2874,7 @@"gBbxn_": ["साइन-इन स्थिति जाँची जा रही है"],"gGVP4q": ["<0>+</0> <1/> <2>स्किल बनाएँ</2> <3/> <4>स्किल अपलोड करें</4> पर क्लिक करें।"],"gHSAWT": ["वर्कट्री <0>“<1>", ["typedName"], "</1>”</0> बनाएँ"],+ "gHb5bB": ["हल की गई टिप्पणियाँ दिखाएँ (", ["0"], ")"],"gITz7o": ["CodeMirror के मानक स्रोत-संपादक नेविगेशन कीमैप से कर्सर हिलाएँ या चयन बढ़ाएँ।"],"gJR87V": ["प्रोजेक्ट फ़ोल्डर नहीं बनाया जा सका। कोई दूसरा फ़ोल्डर चुनें।"],"gKi-a_": ["नया प्रोजेक्ट"],@@ -3081,7 +3083,6 @@"iz1LdD": ["OK के पिछली बार यहाँ लिखने के बाद से बाहर बदला गया — दिखाई गई स्थिति वही है जो अभी डिस्क पर है"],- "j0ItfO": ["सुलझे हुए दिखाएँ (", ["0"], ")"],"j15ZSH": ["टिप्पणियाँ यहाँ भेजें"],"j2229h": ["OpenKnowledge की फ़ाइलें हटाई जा रही हैं…"],"j2kt1j": [@@ -3183,7 +3184,6 @@["targetNoun"]," दिख जाएगा।"],- "kMKqP_": ["ये टिप्पणियाँ छिपाएँ"],"kNGLX6": ["पुनः प्रयास किया जा रहा है…"],"kNqMMd": ["फ़ोल्डर"],"kRTXGw": [@@ -3405,7 +3405,6 @@"nBgzKO": ["इसे स्रोत बनाएँ — स्किल का असली फ़ोल्डर यहाँ आ जाता है"],"nCzR-G": ["कोड ", ["userCode"], " कॉपी करें"],"nDT8qt": [["0"], " आरंभ किया गया पर उसे खोला नहीं जा सका।"],- "nG-XA9": ["एंकर किया गया पाठ चला गया है। आप इसे चयनित पाठ पर फिर से रख सकते हैं।"],"nMSYz5": ["यह पथ किसी बाहरी वॉल्यूम (/Volumes/…) पर है। ड्राइव निकलने पर OpenKnowledge फ़ाइलों का पता खो देगा।"],@@ -3470,6 +3469,7 @@"nzaV6Q": ["पेज थंबनेल"],"o0bHtA": ["OpenKnowledge द्वारा"],"o49mDZ": ["समयरेखा का इतिहास लोड हो रहा है"],+ "o7AkQ0": ["हल की गई दिखाएँ"],"o9CrsQ": ["research-note"],"o9fPtM": ["स्रोत से स्वत: अपडेट"],"o9yN4T": ["रीसायकल बिन में ले जाएँ"],@@ -3703,7 +3703,6 @@"roAe2K": ["लिंक URL"],"roiUQQ": ["यह पेज अभी किसी से लिंक नहीं करता।"],"rppgXF": ["कनेक्शन तोड़ा जा रहा है"],- "rscgd_": [["0"], " में इस टिप्पणी पर जाएँ"],"rssK8c": ["अनदेखा करने के पैटर्न (कच्चा पाठ)"],"rtdR4v": ["Files दिखाएँ या छिपाएँ"],"rtir7c": ["अज्ञात"],diff --git a/packages/app/src/locales/hi/messages.po b/packages/app/src/locales/hi/messages.poindex f3e335854..9bf7b2455 100644--- a/packages/app/src/locales/hi/messages.po+++ b/packages/app/src/locales/hi/messages.po@@ -511,6 +511,11 @@ msgstr "{conflictCount, plural, one {# फ़ाइल में टकरावmsgid "{count, plural, one {# comment} other {# comments}}"msgstr "{count, plural, one {# टिप्पणी} other {# टिप्पणियाँ}}"+#. placeholder {0}: docs.length+#: src/comments/comment-chips.tsx+msgid "{count, plural, one {# comment} other {# comments}} across {0, plural, one {# file} other {# files}}"+msgstr "{count, plural, one {# टिप्पणी} other {# टिप्पणियाँ}} {0, plural, one {# फ़ाइल} other {# फ़ाइलों}} में"+#: src/components/settings/applies-to-folder-picker.tsxmsgid "{count, plural, one {# doc} other {# docs}}"msgstr "{count, plural, one {# दस्तावेज़} other {# दस्तावेज़}}"@@ -559,10 +564,6 @@ msgstr "इस स्रोत पर {count} स्किल"msgid "{days, plural, one {# day ago} other {# days ago}}"msgstr "{days, plural, one {# दिन पहले} other {# दिन पहले}}"-#: src/comments/ThreadCard.tsx-msgid "{days}d"-msgstr "{days}दि"-#: src/components/acp/ThreadHistoryMenu.tsxmsgid "{days}d ago"msgstr "{days} दिन पहले"@@ -657,10 +658,6 @@ msgstr "{folderCount, plural, one {फ़ोल्डर} other {फ़ोल्msgid "{formatted} GitHub stars"msgstr "{formatted} GitHub स्टार"-#: src/comments/ThreadCard.tsx-msgid "{hours}h"-msgstr "{hours}घं"-#: src/components/acp/ThreadHistoryMenu.tsx#: src/components/ActivityModeContent.tsx#: src/components/ActivityPanelFileRow.tsx@@ -727,10 +724,6 @@ msgstr "{displayLine} पंक्ति पर {localizedMessage}"msgid "{mins, plural, one {# min ago} other {# min ago}}"msgstr "{mins, plural, one {# मिनट पहले} other {# मिनट पहले}}"-#: src/comments/ThreadCard.tsx-msgid "{mins}m"-msgstr "{mins}मि"-#: src/components/SyncStatusBadge.tsxmsgid "{minutes} min ago"msgstr "{minutes} मिनट पहले"@@ -813,10 +806,6 @@ msgstr "{propPanelDescriptorLabel} प्रॉपर्टी"msgid "{seconds}s ago"msgstr "{seconds} सेकंड पहले"-#: src/comments/ThreadCard.tsx-msgid "{secs}s"-msgstr "{secs}से"-#: src/editor/extensions/JsxComponentView.tsxmsgid "{settingsDescriptorLabel} properties"msgstr "{settingsDescriptorLabel} प्रॉपर्टी"@@ -2496,7 +2485,6 @@ msgstr "{repoName} क्लोन किया जा रहा है…"msgid "Cloning..."msgstr "क्लोन किया जा रहा है…"-#: src/comments/ThreadCard.tsx#: src/components/EditorTabs.tsx#: src/components/FeedbackForm.tsx#: src/components/InstallInClaudeDesktopDialog.tsx@@ -3387,6 +3375,10 @@ msgstr "कनेक्शन नहीं तोड़ा जा सका —msgid "Couldn't duplicate \"{0}\": {1}"msgstr "\"{0}\" की नकल नहीं बनाई जा सकी: {1}"+#: src/comments/reveal-comment.ts+msgid "Couldn't find that passage — the text it was on may have changed."+msgstr "वह अंश नहीं मिल सका — जिस पाठ पर वह था वह बदल गया हो सकता है।"+#. placeholder {0}: item.displayName#: src/components/acp/ThreadView.tsxmsgid "Couldn't finish installing {0} — see below."@@ -4319,10 +4311,6 @@ msgstr "मेन्यू में एक जैसे नाम वालेmsgid "Discard local edits, restore the installed version"msgstr "स्थानीय संपादन छोड़ें, इंस्टॉल किया गया संस्करण बहाल करें"-#: src/comments/CommentSelectionAffordance.tsx-msgid "Discard this comment"-msgstr "यह टिप्पणी छोड़ें"-#: src/components/settings/AccountSection.tsxmsgid "Disconnect"msgstr "कनेक्शन तोड़ें"@@ -4422,7 +4410,6 @@ msgstr "<0>#{tagName}</0> टैग वाले दस्तावेज़"msgid "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."msgstr "<0>Skills</0> नहीं दिख रहा? पहले <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> सक्षम करें।"-#: src/comments/comment-chips.tsx#: src/comments/ThreadCard.tsxmsgid "Don't send this comment"msgstr "यह टिप्पणी न भेजें"@@ -5838,15 +5825,6 @@ msgstr "पंक्ति {0} पर जाएँ"msgid "Go to line {0} in {1}"msgstr "{1} में पंक्ति {0} पर जाएँ"-#. placeholder {0}: docBasename(thread.docName)-#: src/comments/comment-chips.tsx-msgid "Go to this comment in {0}"-msgstr "{0} में इस टिप्पणी पर जाएँ"--#: src/comments/comment-chips.tsx-msgid "gone"-msgstr "जा चुका"-#: src/components/FeedbackForm.tsxmsgid "Good"msgstr "अच्छा"@@ -6058,9 +6036,10 @@ msgstr "बदलें छिपाएँ"msgid "Hide resolved"msgstr "सुलझे हुए छिपाएँ"+#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Hide resolved comments"-msgstr "हल की गई टिप्पणियाँ छिपाएँ"+msgid "Hide resolved comments ({0})"+msgstr "हल की गई टिप्पणियाँ छिपाएँ ({0})"#: src/components/BottomComposer.tsxmsgid "Hide selection preview"@@ -6075,10 +6054,6 @@ msgstr "साइडबार छिपाएँ"msgid "Hide Terminal"msgstr "Terminal छिपाएँ"-#: src/comments/comment-chips.tsx-msgid "Hide these comments"-msgstr "ये टिप्पणियाँ छिपाएँ"-#: src/components/EditorTabTargetMenuItems.tsx#: src/components/FileTree.tsxmsgid "Hide this file"@@ -6303,10 +6278,6 @@ msgstr "ऐप में (बीटा)"msgid "In the Claude Desktop App"msgstr "Claude Desktop App में"-#: src/comments/comment-chips.tsx-msgid "Include this comment in the next send"-msgstr "अगली बार भेजते समय इस टिप्पणी को शामिल करें"-#: src/lib/keyboard-shortcuts.tsmsgid "Indent or outdent list item"msgstr "सूची आइटम को अंदर या बाहर करें"@@ -6664,6 +6635,10 @@ msgstr "अंतिम टैब पर जाएँ"msgid "Jump to page {pageNumber}"msgstr "पेज {pageNumber} पर जाएँ"+#: src/comments/ThreadCard.tsx+msgid "Jump to selected text in property"+msgstr "प्रॉपर्टी में चयनित पाठ पर जाएँ"+#: src/lib/keyboard-shortcuts.tsmsgid "Jump to tab 1-8"msgstr "टैब 1-8 पर जाएँ"@@ -7161,7 +7136,12 @@ msgstr "संरचना का नक्शा बनाएँ"msgid "Mark a block as the source of truth. Mirrors elsewhere update live as you edit it."msgstr "किसी ब्लॉक को सत्य के स्रोत के रूप में चिह्नित करें। जैसे-जैसे आप उसे संपादित करते हैं, बाकी जगहों के मिरर तुरंत अद्यतित होते हैं।"-#: src/comments/CommentSendFooter.tsx+#. placeholder {0}: docBasename(group.docName)+#: src/comments/CommentListPanel.tsx+msgid "Mark every comment in {0} to send"+msgstr "{0} की सभी टिप्पणियाँ भेजने के लिए चिह्नित करें"++#: src/comments/CommentListPanel.tsxmsgid "Mark every comment to send"msgstr "भेजने के लिए सभी टिप्पणियाँ चुनें"@@ -8401,10 +8381,6 @@ msgstr "CodeMirror का lint निदान पैनल खोलें।"msgid "Open comment"msgstr "टिप्पणी खोलें"-#: src/comments/CommentSelectionAffordance.tsx-msgid "Open Comments"-msgstr "टिप्पणियाँ खोलें"-#: src/components/command-palette-commands.ts#: src/lib/platform-labels.tsmsgid "Open containing folder"@@ -8878,10 +8854,6 @@ msgstr "मूल फ़ाइल — इस एजेंट के संपाmsgid "Orphan mode"msgstr "अनाथ मोड"-#: src/comments/ThreadCard.tsx-msgid "Orphaned"-msgstr "अनाथ"-#: src/components/GraphPanel.tsxmsgid "Orphans"msgstr "अनाथ"@@ -9366,7 +9338,6 @@ msgid "project"msgstr "प्रोजेक्ट"#: src/components/CommandPalette.tsx-#: src/components/PanelScopeHeader.tsx#: src/components/settings/ScopeBadge.tsx#: src/lib/skill-scope.tsmsgid "Project"@@ -10677,10 +10648,6 @@ msgstr "अगली घटना चुनें"msgid "Select the full source document."msgstr "पूरा स्रोत दस्तावेज़ चुनें।"-#: src/comments/ThreadCard.tsx-msgid "Select this text in the property"-msgstr "प्रॉपर्टी में यह पाठ चुनें"-#: src/lib/keyboard-shortcuts.tsmsgid "Select, enter, or leave block components and fallback source blocks from keyboard boundaries."msgstr "कीबोर्ड सीमाओं से ब्लॉक कंपोनेंट और फ़ॉलबैक स्रोत ब्लॉक चुनें, उनमें जाएँ, या उनसे बाहर आएँ।"@@ -11139,14 +11106,14 @@ msgstr "समस्या संकेतक दिखाएँ"msgid "Show replace"msgstr "बदलें दिखाएँ"-#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Show resolved ({0})"-msgstr "सुलझे हुए दिखाएँ ({0})"+msgid "Show resolved"+msgstr "हल की गई दिखाएँ"+#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Show resolved comments"-msgstr "हल की गई टिप्पणियाँ दिखाएँ"+msgid "Show resolved comments ({0})"+msgstr "हल की गई टिप्पणियाँ दिखाएँ ({0})"#: src/components/BottomComposer.tsxmsgid "Show selection preview"@@ -11166,8 +11133,8 @@ msgid "Show Terminal"msgstr "Terminal दिखाएँ"#: src/comments/comment-chips.tsx-msgid "Show these comments"-msgstr "ये टिप्पणियाँ दिखाएँ"+msgid "Show these comments in the Comments panel"+msgstr "इन टिप्पणियों को टिप्पणियाँ पैनल में दिखाएँ"#: src/editor/components/Pdf.tsxmsgid "Show thumbnails"@@ -12063,6 +12030,10 @@ msgstr "रिपोर्ट के लिए धन्यवाद!"msgid "That branch is already open in another worktree."msgstr "वह ब्रांच पहले से किसी दूसरे वर्कट्री में खुली है।"+#: src/comments/reveal-comment.ts+msgid "That document didn't open in time. Try again once it has synced."+msgstr "वह दस्तावेज़ समय पर नहीं खुला। सिंक होने के बाद फिर से कोशिश करें।"+#: src/components/settings/SearchSection.tsxmsgid "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."msgstr "वह एंडपॉइंट उपयोग नहीं किया जा सकता। कोई https:// URL डालें — http:// केवल localhost के लिए अनुमत है।"@@ -12108,10 +12079,6 @@ msgstr "एजेंट रुक नहीं रहा है। फ़ोरmsgid "The agent's persona, values, and voice."msgstr "एजेंट का व्यक्तित्व, मूल्य और स्वर।"-#: src/comments/ThreadCard.tsx-msgid "The anchored text is gone. You can re-place it on selected text."-msgstr "एंकर किया गया पाठ चला गया है। आप इसे चयनित पाठ पर फिर से रख सकते हैं।"-#: src/components/ProblemsPanel.tsxmsgid "The audit could not be completed. Try again."msgstr "ऑडिट पूरा नहीं हो सका। फिर कोशिश करें।"@@ -12190,6 +12157,10 @@ msgstr "वह मॉडल id जो आपका एंडपॉइंट दmsgid "the open agent"msgstr "खुला हुआ एजेंट"+#: src/comments/ThreadCard.tsx+msgid "The original text was deleted. You can re-place this comment on selected text."+msgstr "मूल पाठ हटा दिया गया था। आप इस टिप्पणी को चयनित पाठ पर फिर से रख सकते हैं।"+#: src/editor/components/PreviewBlockedNotice.tsxmsgid "The preview blocks resources that don't meet its security rules (for example plain http:// URLs, or code that uses eval). The content above may render incompletely."msgstr "पूर्वावलोकन उन संसाधनों को रोकता है जो उसके सुरक्षा नियमों पर खरे नहीं उतरते (उदाहरण के लिए सादे http:// URL, या eval का उपयोग करने वाला कोड)। ऊपर की सामग्री अधूरी रेंडर हो सकती है।"@@ -12215,10 +12186,6 @@ msgstr "प्रदाता ने अनुरोध अस्वीकारmsgid "The provider rejected the request. Check the API key and the model id."msgstr "प्रदाता ने अनुरोध अस्वीकार कर दिया। API कुंजी और मॉडल id जाँचें।"-#: src/comments/comment-chips.tsx-msgid "The quoted text is no longer in the document — the agent will be told."-msgstr "उद्धृत पाठ अब दस्तावेज़ में नहीं है — एजेंट को बता दिया जाएगा।"-#: src/components/ReportBugDialogBody.tsxmsgid "The report service couldn't be reached."msgstr "रिपोर्ट सेवा तक नहीं पहुँचा जा सका।"@@ -12595,7 +12562,7 @@ msgstr "यह “{2}” स्किल से {0}/{1} को स्थायmsgid "This permanently removes {path}. Agents that reference this template by name will fail until it's recreated or replaced by one in a parent folder."msgstr "यह {path} को स्थायी रूप से हटा देता है। जो एजेंट इस टेम्पलेट को नाम से संदर्भित करते हैं वे तब तक विफल रहेंगे जब तक यह दोबारा न बने या किसी मूल फ़ोल्डर का टेम्पलेट इसकी जगह न ले।"-#: src/comments/CommentsTab.tsx+#: src/components/PanelScopeHeader.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "This project"msgstr "यह प्रोजेक्ट"@@ -13086,10 +13053,15 @@ msgstr "अज्ञात त्रुटि"msgid "unlink"msgstr "अनलिंक करें"-#: src/comments/CommentSendFooter.tsx+#: src/comments/CommentListPanel.tsxmsgid "Unmark every comment"msgstr "सभी टिप्पणियों का चयन हटाएँ"+#. placeholder {0}: docBasename(group.docName)+#: src/comments/CommentListPanel.tsx+msgid "Unmark every comment in {0}"+msgstr "{0} की सभी टिप्पणियाँ अचिह्नित करें"+#: src/editor/slash-command/items.tsxmsgid "Unordered list of items."msgstr "आइटम की अक्रमित सूची।"@@ -13395,6 +13367,10 @@ msgstr "{name} देखें"msgid "View as text"msgstr "पाठ के रूप में देखें"+#: src/comments/CommentSelectionAffordance.tsx+msgid "View comments"+msgstr "टिप्पणियाँ देखें"+#: src/components/ActivityPanelBurstRow.tsxmsgid "View diff for edit {burstNumber} of {docName}"msgstr "{docName} के संपादन {burstNumber} का अंतर देखें"diff --git a/packages/app/src/locales/id/messages.json b/packages/app/src/locales/id/messages.jsonindex 7a9b7eec3..4fafc77a9 100644--- a/packages/app/src/locales/id/messages.json+++ b/packages/app/src/locales/id/messages.json@@ -52,6 +52,9 @@],"04RA0-": ["Gagal mengaktifkan sinkronisasi — ", ["detail"]],"04XyCH": ["Menambahkan blok terkelola ke ", ["0"]],+ "05F1GY": [+ "Teks aslinya telah dihapus. Anda dapat menempatkan ulang komentar ini pada teks terpilih."+ ],"05n5wS": ["Saran penyebutan dokumen"],"06SZfb": ["Templat \"", ["trimmedTitle"], "\" dibuat"],"07eGJB": ["Keterampilan tidak bisa dipindahkan: ", ["0"]],@@ -121,7 +124,6 @@"11ukmX": ["Gagal mengganti nama: ", ["0"]],"12F9WL": ["(tanpa id)"],"151wvk": ["Tampilkan bilah sisi"],- "15MMFT": ["Tampilkan komentar ini"],"15ZHCt": ["Tidak ada perubahan isi utama pada versi ini."],"161NCV": ["Menghentikan"],"16D5Zj": ["Yakin ingin menghapus ", ["itemName"], "? Tindakan ini tidak bisa dibatalkan."],@@ -196,7 +198,6 @@"2QM24L": ["Semua tag"],"2RnFoM": ["Tidak dapat melanjutkan obrolan ini: ", ["0"]],"2Snes1": ["Ini mengirim alamat tautannya keluar dari komputer Anda"],- "2UgoBZ": ["hilang"],"2VSPan": ["Terminal ditutup untuk memberi ruang bagi panel agen."],"2XQ8Ww": ["Buka pratinjau saat agen menyunting"],"2YOwme": ["Dimulai ulang — kini menjalankan v", ["appRuntime"], "."],@@ -221,6 +222,7 @@"2vIPtm": ["Buka tautan di tab baru"],"2wTb8w": ["Siapkan di halamannya sendiri di bawah Plugin."],"2wxgft": ["Ganti nama"],+ "2zvUIK": ["Tampilkan komentar ini di panel komentar"],"322lyb": ["Menyoroti tip, peringatan, dan catatan."],"34qyH5": ["Server tidak dapat dihubungi"],"36WXSC": ["Templat tidak bisa dihapus: ", ["error"]],@@ -322,7 +324,6 @@"4buZWd": ["Diwarisi dari ", ["path"]],"4c_a6S": ["Belum ada yang disetel."],"4d0VYJ": ["Kami akan membuat ID tema yang aman dari nama ini."],- "4eO-iB": ["Buang komentar ini"],"4g19V6": ["Gagal memperbarui properti"],"4h3e0H": ["Berbagi keterampilan tidak bisa diperbarui — ", ["detail"], "."],"4hJhzz": ["Tabel"],@@ -344,7 +345,6 @@"4sKwf6": ["Berkas sudah ada"],"4sUdTJ": ["pratinjau bertema"],"4uNLmk": ["Melakukan pull"],- "4uaCUA": [["mins"], "mnt"],"4v2Yyz": ["Memilih semua baris pohon berkas yang terlihat ketika fokus ada di bilah sisi Berkas."],@@ -374,7 +374,6 @@"5ClEAu": ["Tagar sebaris untuk pengelompokan antardokumen."],"5D3Ior": ["Sembunyikan folder"],"5F5HYj": [["ahead"], " di depan, ", ["behind"], " di belakang"],- "5GBQ-F": ["Pilih teks ini di properti"],"5GKMSz": ["Menambah atau mengurangi indentasi item daftar saat ini."],"5GRxoA": ["Mencari berkas, folder, dan perintah untuk ruang kerja saat ini."],"5HJpFY": ["Mengantre di belakang giliran yang sedang berjalan"],@@ -396,6 +395,11 @@"Endpoint ini mengabaikan ukuran vektor yang Anda atur. Hapus <0>search.semantic.dimensions</0> untuk memakai ukuran milik modelnya sendiri."],"5Tk8Fb": ["Memuat berkas"],+ "5TmrYN": [+ ["count", "plural", { "other": ["#", " komentar"] }],+ " di ",+ ["0", "plural", { "other": ["#", " berkas"] }]+ ],"5Umg9i": ["Nonaktifkan pratinjau tautan eksternal"],"5WDhAk": ["Menaut ke sebuah halaman atau URL eksternal."],"5Y17qa": ["Berlaku untuk (glob — awalan ! mengecualikan; kosong berarti semua dokumen)"],@@ -925,6 +929,7 @@],"DcFr-y": ["OpenKnowledge menghapus sebuah dokumen"],"DcLaew": ["Tema khusus"],+ "Dd6j2Q": ["Lihat komentar"],"DeDYLr": ["Tautan wiki tidak dikenali"],"DgcGrb": [["fileCount", "plural", { "other": ["berkas"] }]],"DhLHEb": ["Gagal memuat aktivitas"],@@ -1096,6 +1101,7 @@"FgQ7XZ": ["Laporan bug Anda tidak bisa dimuat."],"FgRAvd": ["Log & info sistem"],"Fhp4Gn": ["Lihat plugin"],+ "FiyNln": ["Lompat ke teks terpilih di properti"],"FjkaiT": ["Perkecil"],"FqGWeR": ["Registri agen tidak bisa dihubungi."],"FqTpiN": ["Wiki burung"],@@ -1123,7 +1129,6 @@"G0YZ-I": ["Tambah atau kurangi indentasi item daftar"],"G1Gw0v": ["Templat baru"],"G1XxbZ": ["Kotak centang"],- "G1zJlD": ["Sembunyikan komentar yang selesai"],"G4m8rL": ["Komentari pilihan"],"G6Lrs_": ["Hentikan ", ["0"], " membaca keterampilan ini"],"G7-rf8": ["Galat sintaks pola: ", ["message"]],@@ -1334,6 +1339,7 @@"Tidak ada halaman yang terputus. Halaman muncul di sini hanya bila ia tidak punya sisi graf masuk maupun keluar."],"JDHcCM": ["Memuat keterampilan populer"],+ "JDQ5I5": ["Dokumen itu tidak terbuka tepat waktu. Coba lagi setelah tersinkronisasi."],"JE21eh": ["Symlink ke ", ["targetPath"]],"JG_8KT": ["Tidak bisa melakukan pull dari GitHub. Periksa koneksi dan status masuk Anda, lalu coba lagi."@@ -1411,6 +1417,9 @@"KZLdgR": ["Lihat <0>#design-docs</0> untuk spesifikasi terbaru."],"K_vT1F": ["Sinkronisasi hulu"],"KaFCD3": ["Membuka tautan ini di tab baru dan menciutkan graf."],+ "KeXgA-": [+ "Tidak dapat menemukan bagian teks itu — teks yang ditandainya mungkin telah berubah."+ ],"Kf7GG5": ["Memulai ulang server…"],"Kge76t": ["Opsi baris"],"Kh1n4a": [@@ -1534,7 +1543,6 @@"M92_0q": ["Tutup komentar"],"M9597s": ["Menyiapkan URL berbagi..."],"MBKkUy": ["skills.sh tidak tersedia; menampilkan hasil GitHub (tanpa peringkat pemasangan)."],- "MBe6TE": ["Teks yang dikutip sudah tidak ada di dokumen — agennya akan diberi tahu."],"MCjC9A": ["Hapus ", ["deleteDescriptorLabel"]],"MDBJwN": ["Sulit dipakai"],"MDZSJe": ["Kapan agennya menjalankan pekerjaan terjadwalnya."],@@ -1642,7 +1650,6 @@"NeY1Np": ["Slidev terlalu lama saat memulai. Coba lagi."],"NfraGd": ["Cara lain untuk memasang Slidev"],"NgZwB0": [["enabledCount"], "/", ["0"], " aktif"],- "NiGIcB": ["Buka Komentar"],"NjrIak": ["Berkas: <0>", ["fixedName"], ".md</0>"],"NkNfSr": ["Sunting ", ["tag"]],"NkXEFS": ["Gagal memulihkan — dokumen tidak berubah"],@@ -1751,6 +1758,7 @@"PBxg_E": ["Nanti saja"],"PCSkw2": ["Keterampilan"],"PGPGsL": ["Tambahkan deskripsi"],+ "PHHEuH": ["Sembunyikan komentar yang selesai (", ["0"], ")"],"PIMM5l": ["Anda sudah berlangganan!"],"PKLY-1": ["Membuka..."],"PKjGhT": ["Judul"],@@ -1861,7 +1869,6 @@"QpSqAP": ["Shell asli dinonaktifkan untuk proyek ini. Mengaktifkannya membuat perintah berjalan dengan akses penuh akun pengguna Anda."],- "Qpfxa1": [["secs"], "dtk"],"QqBQu1": ["Label <0>(teks tautan yang terlihat)</0>"],"Qvls7J": ["Spesifikasi teknik"],"Qw-7Ie": [@@ -1991,6 +1998,7 @@],"T-654M": ["Memuat PDF"],"T0OVm7": ["Cabang bawaannya terlindungi — push memerlukan pull request."],+ "T2fvhw": ["Hapus tanda semua komentar di ", ["0"]],"T3Mld1": ["Jendela"],"T3j-7o": ["mis. Berpindah proyek saat sinkronisasi sedang berjalan"],"TBfy1C": ["Tidak dapat menjalankan Slidev."],@@ -2048,7 +2056,6 @@"UDFrWm": ["Memeriksa koneksi GitHub..."],"UD_onR": ["Mempertimbangkan…"],"UDb2YD": ["React"],- "UEdTEN": ["Yatim"],"UGeJuP": ["Nilai yang diizinkan (kosong = apa saja)"],"UGtPix": ["Koneksi GitHub kedaluwarsa. Hubungkan lagi untuk melanjutkan."],"UH0Zqw": ["Ini bukan berkas tema biasa"],@@ -2115,7 +2122,6 @@"UkQGhd": ["Sembunyikan penggantian"],"UlVARL": ["Aktifkan Slidev"],"Uobeu9": ["Menambahkan keterampilan ke ", ["rootRel"], " — juga dibaca oleh ", ["0"]],- "Uoux8m": ["Sertakan komentar ini pada pengiriman berikutnya"],"Up2_7p": ["Salin jalur lengkap"],"UpCz01": ["Dokumen ini"],"UpOct_": ["Tambahkan komentar Anda ke pesan ini"],@@ -2249,6 +2255,7 @@"Wh0im4": ["menyunting [[", ["realCurrentDoc"], "]]"],"WhOsNE": ["Coret"],"Wi-VWy": ["Laporannya tidak bisa dikirim"],+ "WkQ0Z_": ["Tandai semua komentar di ", ["0"], " untuk dikirim"],"WkTLN7": ["Tampilkan hanya berkas markdown"],"WkyP2p": ["Bagian Keterampilan"],"WmPbvm": ["Dapatkan kabar terbaru produk di kotak masuk Anda."],@@ -2296,7 +2303,6 @@"XV5sC0": ["Buka worktree"],"XVnIvs": ["Pasang keterampilan"],"XW18jo": ["Respons judul halaman tidak sesuai skema sukses"],- "XWEqQj": [["days"], "h"],"XXA1b_": [["componentLabel"], " (kosong)"],"XYZ7tp": ["Tidak terselesaikan"],"XYlJJT": ["Menyiapkan"],@@ -2534,7 +2540,6 @@"Salinan hanya-baca dari blok MirrorSource di dokumen lain. Sunting di sumbernya dan salinan ini diperbarui langsung."],"_XWY2J": ["Terminal dinonaktifkan"],- "_YEyHO": ["Tampilkan komentar yang selesai"],"_YWqV2": ["OpenKnowledge menyelesaikan sebuah konflik"],"_ayOfA": ["Basis pengetahuan yang mengikuti Open Knowledge Format dari Google, cara bersama untuk menata apa yang Anda tahu. Pilih ini jika Anda ingin catatan Anda bekerja baik dengan alat lain yang memahami format tersebut."@@ -2546,7 +2551,6 @@"_gO_m8": ["Menunggu persetujuan Anda"],"_gkGSK": ["templat dihapus"],"_mcDqU": [["count"], " keterampilan di sumber ini"],- "_oqig9": [["hours"], "j"],"_pY_Vq": ["Repositorinya dipindahkan, diganti nama, atau dihapus."],"_qD6mn": ["Pilih folder tempat Anda mengkloningnya."],"_rP3HI": [["minutes"], " mnt lalu"],@@ -2980,6 +2984,7 @@"gBbxn_": ["Memeriksa status masuk"],"gGVP4q": ["Klik <0>+</0> <1/> <2>Buat keterampilan</2> <3/> <4>Unggah keterampilan</4>."],"gHSAWT": ["Buat worktree <0>“<1>", ["typedName"], "</1>”</0>"],+ "gHb5bB": ["Tampilkan komentar yang selesai (", ["0"], ")"],"gITz7o": ["Memindahkan kursor atau memperluas pilihan lewat peta tombol navigasi penyunting sumber standar CodeMirror."],@@ -3215,7 +3220,6 @@"iz1LdD": ["Diubah di luar OK sejak terakhir kali OK menulis di sini — keadaan yang ditampilkan adalah apa yang ada di disk sekarang"],- "j0ItfO": ["Tampilkan yang sudah selesai (", ["0"], ")"],"j15ZSH": ["Kirim komentar ke"],"j2229h": ["Menghapus berkas OpenKnowledge…"],"j2kt1j": [@@ -3319,7 +3323,6 @@["targetNoun"]," akan muncul begitu cabangnya tersinkron."],- "kMKqP_": ["Sembunyikan komentar ini"],"kNGLX6": ["Mencoba lagi…"],"kNqMMd": ["Folder"],"kRTXGw": [@@ -3557,9 +3560,6 @@"nBgzKO": ["Jadikan ini sumbernya — folder asli keterampilan ini pindah ke sini"],"nCzR-G": ["Salin kode ", ["userCode"]],"nDT8qt": [["0"], " diinisialisasi tetapi tidak dapat dibuka."],- "nG-XA9": [- "Teks berjangkarnya sudah hilang. Anda bisa menempatkannya ulang pada teks yang dipilih."- ],"nMSYz5": ["Jalur ini berada di volume eksternal (/Volumes/...). OpenKnowledge akan kehilangan jejak berkasnya ketika drive itu dicabut."],@@ -3619,6 +3619,7 @@"nzaV6Q": ["Gambar mini halaman"],"o0bHtA": ["Oleh OpenKnowledge"],"o49mDZ": ["Memuat riwayat lini masa"],+ "o7AkQ0": ["Tampilkan yang selesai"],"o9CrsQ": ["catatan-riset"],"o9fPtM": ["Perbarui otomatis dari sumber"],"o9yN4T": ["Pindahkan ke Recycle Bin"],@@ -3862,7 +3863,6 @@"roAe2K": ["URL tautan"],"roiUQQ": ["Halaman ini belum menaut ke apa pun."],"rppgXF": ["Memutus koneksi"],- "rscgd_": ["Ke komentar ini di ", ["0"]],"rssK8c": ["Pola abaikan (teks mentah)"],"rtdR4v": ["Tampilkan atau sembunyikan Berkas"],"rtir7c": ["tidak diketahui"],diff --git a/packages/app/src/locales/id/messages.po b/packages/app/src/locales/id/messages.poindex 903dc0be4..a3c835716 100644--- a/packages/app/src/locales/id/messages.po+++ b/packages/app/src/locales/id/messages.po@@ -511,6 +511,11 @@ msgstr "{conflictCount, plural, other {# berkas berkonflik}}"msgid "{count, plural, one {# comment} other {# comments}}"msgstr "{count, plural, other {# komentar}}"+#. placeholder {0}: docs.length+#: src/comments/comment-chips.tsx+msgid "{count, plural, one {# comment} other {# comments}} across {0, plural, one {# file} other {# files}}"+msgstr "{count, plural, other {# komentar}} di {0, plural, other {# berkas}}"+#: src/components/settings/applies-to-folder-picker.tsxmsgid "{count, plural, one {# doc} other {# docs}}"msgstr "{count, plural, other {# dokumen}}"@@ -559,10 +564,6 @@ msgstr "{count} keterampilan di sumber ini"msgid "{days, plural, one {# day ago} other {# days ago}}"msgstr "{days, plural, other {# hari lalu}}"-#: src/comments/ThreadCard.tsx-msgid "{days}d"-msgstr "{days}h"-#: src/components/acp/ThreadHistoryMenu.tsxmsgid "{days}d ago"msgstr "{days} hr lalu"@@ -657,10 +658,6 @@ msgstr "{folderCount, plural, other {folder}}"msgid "{formatted} GitHub stars"msgstr "{formatted} bintang GitHub"-#: src/comments/ThreadCard.tsx-msgid "{hours}h"-msgstr "{hours}j"-#: src/components/acp/ThreadHistoryMenu.tsx#: src/components/ActivityModeContent.tsx#: src/components/ActivityPanelFileRow.tsx@@ -727,10 +724,6 @@ msgstr "{localizedMessage} pada baris {displayLine}"msgid "{mins, plural, one {# min ago} other {# min ago}}"msgstr "{mins, plural, other {# mnt lalu}}"-#: src/comments/ThreadCard.tsx-msgid "{mins}m"-msgstr "{mins}mnt"-#: src/components/SyncStatusBadge.tsxmsgid "{minutes} min ago"msgstr "{minutes} mnt lalu"@@ -813,10 +806,6 @@ msgstr "Properti {propPanelDescriptorLabel}"msgid "{seconds}s ago"msgstr "{seconds} dtk lalu"-#: src/comments/ThreadCard.tsx-msgid "{secs}s"-msgstr "{secs}dtk"-#: src/editor/extensions/JsxComponentView.tsxmsgid "{settingsDescriptorLabel} properties"msgstr "Properti {settingsDescriptorLabel}"@@ -2496,7 +2485,6 @@ msgstr "Mengkloning {repoName}..."msgid "Cloning..."msgstr "Mengkloning..."-#: src/comments/ThreadCard.tsx#: src/components/EditorTabs.tsx#: src/components/FeedbackForm.tsx#: src/components/InstallInClaudeDesktopDialog.tsx@@ -3387,6 +3375,10 @@ msgstr "Tidak bisa memutus koneksi — silakan coba lagi."msgid "Couldn't duplicate \"{0}\": {1}"msgstr "\"{0}\" tidak bisa digandakan: {1}"+#: src/comments/reveal-comment.ts+msgid "Couldn't find that passage — the text it was on may have changed."+msgstr "Tidak dapat menemukan bagian teks itu — teks yang ditandainya mungkin telah berubah."+#. placeholder {0}: item.displayName#: src/components/acp/ThreadView.tsxmsgid "Couldn't finish installing {0} — see below."@@ -4319,10 +4311,6 @@ msgstr "Membedakan templat yang namanya mirip di menu."msgid "Discard local edits, restore the installed version"msgstr "Buang suntingan lokal, pulihkan versi yang terpasang"-#: src/comments/CommentSelectionAffordance.tsx-msgid "Discard this comment"-msgstr "Buang komentar ini"-#: src/components/settings/AccountSection.tsxmsgid "Disconnect"msgstr "Putuskan koneksi"@@ -4422,7 +4410,6 @@ msgstr "Dokumen bertag <0>#{tagName}</0>"msgid "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."msgstr "Tidak melihat <0>Keterampilan</0>? Aktifkan dulu <1>Pengaturan <2/> Kemampuan <3/> Eksekusi kode dan pembuatan berkas</1>."-#: src/comments/comment-chips.tsx#: src/comments/ThreadCard.tsxmsgid "Don't send this comment"msgstr "Jangan kirim komentar ini"@@ -5838,15 +5825,6 @@ msgstr "Ke baris {0}"msgid "Go to line {0} in {1}"msgstr "Ke baris {0} di {1}"-#. placeholder {0}: docBasename(thread.docName)-#: src/comments/comment-chips.tsx-msgid "Go to this comment in {0}"-msgstr "Ke komentar ini di {0}"--#: src/comments/comment-chips.tsx-msgid "gone"-msgstr "hilang"-#: src/components/FeedbackForm.tsxmsgid "Good"msgstr "Bagus"@@ -6058,9 +6036,10 @@ msgstr "Sembunyikan penggantian"msgid "Hide resolved"msgstr "Sembunyikan yang sudah selesai"+#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Hide resolved comments"-msgstr "Sembunyikan komentar yang selesai"+msgid "Hide resolved comments ({0})"+msgstr "Sembunyikan komentar yang selesai ({0})"#: src/components/BottomComposer.tsxmsgid "Hide selection preview"@@ -6075,10 +6054,6 @@ msgstr "Sembunyikan bilah sisi"msgid "Hide Terminal"msgstr "Sembunyikan Terminal"-#: src/comments/comment-chips.tsx-msgid "Hide these comments"-msgstr "Sembunyikan komentar ini"-#: src/components/EditorTabTargetMenuItems.tsx#: src/components/FileTree.tsxmsgid "Hide this file"@@ -6303,10 +6278,6 @@ msgstr "Di aplikasi (beta)"msgid "In the Claude Desktop App"msgstr "Di aplikasi Claude Desktop"-#: src/comments/comment-chips.tsx-msgid "Include this comment in the next send"-msgstr "Sertakan komentar ini pada pengiriman berikutnya"-#: src/lib/keyboard-shortcuts.tsmsgid "Indent or outdent list item"msgstr "Tambah atau kurangi indentasi item daftar"@@ -6664,6 +6635,10 @@ msgstr "Lompat ke tab terakhir"msgid "Jump to page {pageNumber}"msgstr "Lompat ke halaman {pageNumber}"+#: src/comments/ThreadCard.tsx+msgid "Jump to selected text in property"+msgstr "Lompat ke teks terpilih di properti"+#: src/lib/keyboard-shortcuts.tsmsgid "Jump to tab 1-8"msgstr "Lompat ke tab 1-8"@@ -7161,7 +7136,12 @@ msgstr "Petakan arsitekturnya"msgid "Mark a block as the source of truth. Mirrors elsewhere update live as you edit it."msgstr "Menandai sebuah blok sebagai sumber kebenaran. Cermin di tempat lain diperbarui langsung saat Anda menyuntingnya."-#: src/comments/CommentSendFooter.tsx+#. placeholder {0}: docBasename(group.docName)+#: src/comments/CommentListPanel.tsx+msgid "Mark every comment in {0} to send"+msgstr "Tandai semua komentar di {0} untuk dikirim"++#: src/comments/CommentListPanel.tsxmsgid "Mark every comment to send"msgstr "Tandai semua komentar untuk dikirim"@@ -8401,10 +8381,6 @@ msgstr "Membuka panel diagnostik lint CodeMirror."msgid "Open comment"msgstr "Buka komentar"-#: src/comments/CommentSelectionAffordance.tsx-msgid "Open Comments"-msgstr "Buka Komentar"-#: src/components/command-palette-commands.ts#: src/lib/platform-labels.tsmsgid "Open containing folder"@@ -8878,10 +8854,6 @@ msgstr "Berkas asli — sebelum suntingan agen ini."msgid "Orphan mode"msgstr "Mode yatim"-#: src/comments/ThreadCard.tsx-msgid "Orphaned"-msgstr "Yatim"-#: src/components/GraphPanel.tsxmsgid "Orphans"msgstr "Yatim"@@ -9366,7 +9338,6 @@ msgid "project"msgstr "proyek"#: src/components/CommandPalette.tsx-#: src/components/PanelScopeHeader.tsx#: src/components/settings/ScopeBadge.tsx#: src/lib/skill-scope.tsmsgid "Project"@@ -10677,10 +10648,6 @@ msgstr "Pilih kemunculan berikutnya"msgid "Select the full source document."msgstr "Memilih seluruh dokumen sumber."-#: src/comments/ThreadCard.tsx-msgid "Select this text in the property"-msgstr "Pilih teks ini di properti"-#: src/lib/keyboard-shortcuts.tsmsgid "Select, enter, or leave block components and fallback source blocks from keyboard boundaries."msgstr "Memilih, masuk, atau keluar dari komponen blok dan blok sumber cadangan dari batas papan ketik."@@ -11139,14 +11106,14 @@ msgstr "Tampilkan penanda masalah"msgid "Show replace"msgstr "Tampilkan penggantian"-#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Show resolved ({0})"-msgstr "Tampilkan yang sudah selesai ({0})"+msgid "Show resolved"+msgstr "Tampilkan yang selesai"+#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Show resolved comments"-msgstr "Tampilkan komentar yang selesai"+msgid "Show resolved comments ({0})"+msgstr "Tampilkan komentar yang selesai ({0})"#: src/components/BottomComposer.tsxmsgid "Show selection preview"@@ -11166,8 +11133,8 @@ msgid "Show Terminal"msgstr "Tampilkan Terminal"#: src/comments/comment-chips.tsx-msgid "Show these comments"-msgstr "Tampilkan komentar ini"+msgid "Show these comments in the Comments panel"+msgstr "Tampilkan komentar ini di panel komentar"#: src/editor/components/Pdf.tsxmsgid "Show thumbnails"@@ -12063,6 +12030,10 @@ msgstr "Terima kasih atas laporannya!"msgid "That branch is already open in another worktree."msgstr "Cabang itu sudah terbuka di worktree lain."+#: src/comments/reveal-comment.ts+msgid "That document didn't open in time. Try again once it has synced."+msgstr "Dokumen itu tidak terbuka tepat waktu. Coba lagi setelah tersinkronisasi."+#: src/components/settings/SearchSection.tsxmsgid "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."msgstr "Endpoint itu tidak bisa dipakai. Masukkan URL https:// — http:// hanya diizinkan untuk localhost."@@ -12108,10 +12079,6 @@ msgstr "Agen tidak berhenti. Hentikan paksa menutup obrolan ini dan keluar darimsgid "The agent's persona, values, and voice."msgstr "Kepribadian, nilai, dan gaya bicara agen."-#: src/comments/ThreadCard.tsx-msgid "The anchored text is gone. You can re-place it on selected text."-msgstr "Teks berjangkarnya sudah hilang. Anda bisa menempatkannya ulang pada teks yang dipilih."-#: src/components/ProblemsPanel.tsxmsgid "The audit could not be completed. Try again."msgstr "Audit tidak dapat diselesaikan. Coba lagi."@@ -12190,6 +12157,10 @@ msgstr "Id model yang dilayani endpoint Anda. Ukuran vektornya terdeteksi otomatmsgid "the open agent"msgstr "agen yang terbuka"+#: src/comments/ThreadCard.tsx+msgid "The original text was deleted. You can re-place this comment on selected text."+msgstr "Teks aslinya telah dihapus. Anda dapat menempatkan ulang komentar ini pada teks terpilih."+#: src/editor/components/PreviewBlockedNotice.tsxmsgid "The preview blocks resources that don't meet its security rules (for example plain http:// URLs, or code that uses eval). The content above may render incompletely."msgstr "Pratinjau memblokir sumber daya yang tidak memenuhi aturan keamanannya (misalnya URL http:// polos, atau kode yang memakai eval). Konten di atas mungkin dirender tidak lengkap."@@ -12215,10 +12186,6 @@ msgstr "Penyedianya menolak permintaannya (HTTP {0}). Periksa kunci API dan id mmsgid "The provider rejected the request. Check the API key and the model id."msgstr "Penyedianya menolak permintaannya. Periksa kunci API dan id modelnya."-#: src/comments/comment-chips.tsx-msgid "The quoted text is no longer in the document — the agent will be told."-msgstr "Teks yang dikutip sudah tidak ada di dokumen — agennya akan diberi tahu."-#: src/components/ReportBugDialogBody.tsxmsgid "The report service couldn't be reached."msgstr "Layanan laporan tidak dapat dihubungi."@@ -12595,7 +12562,7 @@ msgstr "Ini menghapus {0}/{1} secara permanen dari skill “{2}”. Apa pun di Smsgid "This permanently removes {path}. Agents that reference this template by name will fail until it's recreated or replaced by one in a parent folder."msgstr "Ini menghapus {path} secara permanen. Agen yang merujuk templat ini berdasarkan nama akan gagal sampai ia dibuat ulang atau digantikan oleh templat di folder induk."-#: src/comments/CommentsTab.tsx+#: src/components/PanelScopeHeader.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "This project"msgstr "Proyek ini"@@ -13086,10 +13053,15 @@ msgstr "Galat tidak diketahui"msgid "unlink"msgstr "lepas tautan"-#: src/comments/CommentSendFooter.tsx+#: src/comments/CommentListPanel.tsxmsgid "Unmark every comment"msgstr "Hapus tanda semua komentar"+#. placeholder {0}: docBasename(group.docName)+#: src/comments/CommentListPanel.tsx+msgid "Unmark every comment in {0}"+msgstr "Hapus tanda semua komentar di {0}"+#: src/editor/slash-command/items.tsxmsgid "Unordered list of items."msgstr "Daftar item tanpa nomor."@@ -13395,6 +13367,10 @@ msgstr "Lihat {name}"msgid "View as text"msgstr "Lihat sebagai teks"+#: src/comments/CommentSelectionAffordance.tsx+msgid "View comments"+msgstr "Lihat komentar"+#: src/components/ActivityPanelBurstRow.tsxmsgid "View diff for edit {burstNumber} of {docName}"msgstr "Lihat perbedaan untuk suntingan {burstNumber} pada {docName}"diff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.jsonindex 94ba69bce..f2b752f2e 100644--- a/packages/app/src/locales/pseudo/messages.json+++ b/packages/app/src/locales/pseudo/messages.json@@ -54,6 +54,7 @@"03wKPg": ["À ŕēƥōŕţ ĥēĺƥś ũś ƒĩńď ţĥē ćàũśē. Ńōţĥĩńĝ ĩś śēńţ ũńţĩĺ ŷōũ ŕēvĩēŵ ĩţ."],"04RA0-": ["Ƒàĩĺēď ţō ēńàƀĺē śŷńć — ", ["detail"]],"04XyCH": ["Àďďś à ḿàńàĝēď ƀĺōćķ ţō ", ["0"]],+ "05F1GY": ["Ţĥē ōŕĩĝĩńàĺ ţēxţ ŵàś ďēĺēţēď. Ŷōũ ćàń ŕē-ƥĺàćē ţĥĩś ćōḿḿēńţ ōń śēĺēćţēď ţēxţ."],"05n5wS": ["Ďōć ḿēńţĩōń śũĝĝēśţĩōńś"],"06SZfb": ["Ţēḿƥĺàţē \"", ["trimmedTitle"], "\" ćŕēàţēď"],"07eGJB": ["Ćōũĺďń'ţ ḿōvē śķĩĺĺ: ", ["0"]],@@ -123,7 +124,6 @@"11ukmX": ["Ŕēńàḿē ƒàĩĺēď: ", ["0"]],"12F9WL": ["(ńō ĩď)"],"151wvk": ["Śĥōŵ śĩďēƀàŕ"],- "15MMFT": ["Śĥōŵ ţĥēśē ćōḿḿēńţś"],"15ZHCt": ["Ńō ƀōďŷ ćĥàńĝēś àţ ţĥĩś vēŕśĩōń."],"161NCV": ["Śţōƥƥĩńĝ"],"16D5Zj": ["Àŕē ŷōũ śũŕē ŷōũ ŵàńţ ţō ďēĺēţē ", ["itemName"], "? Ţĥĩś àćţĩōń ćàńńōţ ƀē ũńďōńē."],@@ -196,7 +196,6 @@"2QM24L": ["Àĺĺ ţàĝś"],"2RnFoM": ["Ćōũĺďń'ţ ŕēśũḿē ţĥĩś ćĥàţ: ", ["0"]],"2Snes1": ["Ţĥĩś śēńďś ţĥē ĺĩńķ'ś àďďŕēśś ōƒƒ ŷōũŕ ḿàćĥĩńē"],- "2UgoBZ": ["ĝōńē"],"2VSPan": ["Ţēŕḿĩńàĺ ćĺōśēď ţō ḿàķē ŕōōḿ ƒōŕ ţĥē àĝēńţ ƥàńēĺ."],"2XQ8Ww": ["Ōƥēń ƥŕēvĩēŵ ŵĥēń àĝēńţ ēďĩţś"],"2YOwme": ["Ŕēśţàŕţēď — ńōŵ ŕũńńĩńĝ v", ["appRuntime"], "."],@@ -221,6 +220,7 @@"2vIPtm": ["Ōƥēń ĺĩńķ ĩń ńēŵ ţàƀ"],"2wTb8w": ["Śēţ ĩţ ũƥ ōń ĩţś ōŵń ƥàĝē ũńďēŕ Ƥĺũĝĩńś."],"2wxgft": ["Ŕēńàḿē"],+ "2zvUIK": ["Śĥōŵ ţĥēśē ćōḿḿēńţś ĩń ţĥē Ćōḿḿēńţś ƥàńēĺ"],"322lyb": ["Ĥĩĝĥĺĩĝĥţ ţĩƥś, ŵàŕńĩńĝś, àńď ńōţēś."],"34qyH5": ["Ćōũĺď ńōţ ŕēàćĥ śēŕvēŕ"],"36WXSC": ["Ćōũĺďń'ţ ďēĺēţē ţēḿƥĺàţē: ", ["error"]],@@ -329,7 +329,6 @@"4buZWd": ["Ĩńĥēŕĩţēď ƒŕōḿ ", ["path"]],"4c_a6S": ["Ńōţĥĩńĝ śēţ ŷēţ."],"4d0VYJ": ["Ŵē’ĺĺ ćŕēàţē à śàƒē ţĥēḿē ĨĎ ƒŕōḿ ţĥĩś ńàḿē."],- "4eO-iB": ["Ďĩśćàŕď ţĥĩś ćōḿḿēńţ"],"4g19V6": ["Ƒàĩĺēď ţō ũƥďàţē ƥŕōƥēŕţŷ"],"4h3e0H": ["Ćōũĺďń'ţ ũƥďàţē śķĩĺĺś śĥàŕĩńĝ — ", ["detail"], "."],"4hJhzz": ["Ţàƀĺē"],@@ -347,7 +346,6 @@"4sKwf6": ["Ƒĩĺē àĺŕēàďŷ ēxĩśţś"],"4sUdTJ": ["ţĥēḿēď ƥŕēvĩēŵ"],"4uNLmk": ["Ƥũĺĺĩńĝ"],- "4uaCUA": [["mins"], "ḿ"],"4v2Yyz": ["Śēĺēćţ ēvēŕŷ vĩśĩƀĺē ƒĩĺē-ţŕēē ŕōŵ ŵĥēń ƒōćũś ĩś ĩń ţĥē Ƒĩĺēś śĩďēƀàŕ."],"4wo5UV": ["Ĩńśţàĺĺ śēĺēćţēď"],"4xtLTl": ["Ĥĩďďēń ƒōĺďēŕ “", ["basename"], "”"],@@ -373,7 +371,6 @@"5ClEAu": ["Ĩńĺĩńē ĥàśĥţàĝ ƒōŕ ćŕōśś-ďōć ĝŕōũƥĩńĝ."],"5D3Ior": ["Ĥĩďē ƒōĺďēŕ"],"5F5HYj": [["ahead"], " àĥēàď, ", ["behind"], " ƀēĥĩńď"],- "5GBQ-F": ["Śēĺēćţ ţĥĩś ţēxţ ĩń ţĥē ƥŕōƥēŕţŷ"],"5GKMSz": ["Ĩńďēńţ ōŕ ōũţďēńţ ţĥē ćũŕŕēńţ ĺĩśţ ĩţēḿ."],"5GRxoA": ["Śēàŕćĥ ƒĩĺēś, ƒōĺďēŕś, àńď ćōḿḿàńďś ƒōŕ ţĥē ćũŕŕēńţ ŵōŕķśƥàćē."],"5HJpFY": ["Ǫũēũēś ƀēĥĩńď ţĥē ŕũńńĩńĝ ţũŕń"],@@ -395,6 +392,11 @@"Ţĥĩś ēńďƥōĩńţ ĩĝńōŕēď ţĥē vēćţōŕ śĩźē ŷōũ ćōńƒĩĝũŕēď. Ŕēḿōvē <0>śēàŕćĥ.śēḿàńţĩć.ďĩḿēńśĩōńś</0> ţō ũśē ţĥē ḿōďēĺ'ś ōŵń śĩźē."],"5Tk8Fb": ["Ĺōàďĩńĝ ƒĩĺēś"],+ "5TmrYN": [+ ["count", "plural", { "one": ["#", " ćōḿḿēńţ"], "other": ["#", " ćōḿḿēńţś"] }],+ " àćŕōśś ",+ ["0", "plural", { "one": ["#", " ƒĩĺē"], "other": ["#", " ƒĩĺēś"] }]+ ],"5Umg9i": ["Ďĩśàƀĺē ēxţēŕńàĺ ĺĩńķ ƥŕēvĩēŵś"],"5WDhAk": ["Ĺĩńķ ţō à ƥàĝē ōŕ ēxţēŕńàĺ ŨŔĹ."],"5Y17qa": ["Àƥƥĺĩēś ţō (ĝĺōƀś — ĺēàďĩńĝ ! ēxćĺũďēś; ēḿƥţŷ ḿēàńś ēvēŕŷ ďōć)"],@@ -945,6 +947,7 @@"DbILZA": ["Ńō ḿàţćĥēś. Śōḿē ƒĩĺēś àŕē ēxćĺũďēď ƒŕōḿ śēàŕćĥ (ĥĩďďēń ōŕ ĩĝńōŕēď ƒĩĺēś)."],"DcFr-y": ["ŌƥēńĶńōŵĺēďĝē ďēĺēţēď à ďōćũḿēńţ"],"DcLaew": ["Ćũśţōḿ ţĥēḿē"],+ "Dd6j2Q": ["Vĩēŵ ćōḿḿēńţś"],"DeDYLr": ["Ũńŕēćōĝńĩźēď ŵĩķĩ ĺĩńķ"],"DgcGrb": [["fileCount", "plural", { "one": ["ƒĩĺē"], "other": ["ƒĩĺēś"] }]],"DhLHEb": ["Ƒàĩĺēď ţō ĺōàď àćţĩvĩţŷ"],@@ -1112,6 +1115,7 @@"FgQ7XZ": ["Ćōũĺďń'ţ ĺōàď ŷōũŕ ƀũĝ ŕēƥōŕţś."],"FgRAvd": ["Ĺōĝś & śŷśţēḿ ĩńƒō"],"Fhp4Gn": ["Vĩēŵ ƥĺũĝĩń"],+ "FiyNln": ["ĵũḿƥ ţō śēĺēćţēď ţēxţ ĩń ƥŕōƥēŕţŷ"],"FjkaiT": ["Źōōḿ ōũţ"],"FqGWeR": ["Ćōũĺďń'ţ ŕēàćĥ ţĥē àĝēńţ ŕēĝĩśţŕŷ."],"FqTpiN": ["ßĩŕď ŵĩķĩ"],@@ -1135,7 +1139,6 @@"G0YZ-I": ["Ĩńďēńţ ōŕ ōũţďēńţ ĺĩśţ ĩţēḿ"],"G1Gw0v": ["Ńēŵ ţēḿƥĺàţē"],"G1XxbZ": ["Ćĥēćķƀōx"],- "G1zJlD": ["Ĥĩďē ŕēśōĺvēď ćōḿḿēńţś"],"G4m8rL": ["Ćōḿḿēńţ ōń śēĺēćţĩōń"],"G6Lrs_": ["Śţōƥ ", ["0"], " ŕēàďĩńĝ ţĥĩś śķĩĺĺ"],"G7-rf8": ["Ƥàţţēŕń śŷńţàx ēŕŕōŕ: ", ["message"]],@@ -1335,6 +1338,7 @@"Ńō ďĩśćōńńēćţēď ƥàĝēś. Ƥàĝēś àƥƥēàŕ ĥēŕē ōńĺŷ ŵĥēń ţĥēŷ ĥàvē ńō ĩńćōḿĩńĝ àńď ńō ōũţĝōĩńĝ ĝŕàƥĥ ēďĝēś."],"JDHcCM": ["Ĺōàďĩńĝ ƥōƥũĺàŕ śķĩĺĺś"],+ "JDQ5I5": ["Ţĥàţ ďōćũḿēńţ ďĩďń'ţ ōƥēń ĩń ţĩḿē. Ţŕŷ àĝàĩń ōńćē ĩţ ĥàś śŷńćēď."],"JE21eh": ["Śŷḿĺĩńķ ţō ", ["targetPath"]],"JG_8KT": ["Ćōũĺďń'ţ ƥũĺĺ ƒŕōḿ ĜĩţĤũƀ. Ćĥēćķ ŷōũŕ ćōńńēćţĩōń àńď śĩĝń-ĩń, ţĥēń ŕēţŕŷ."],"JHf6qZ": ["ŷōũ@ćōḿƥàńŷ.ćōḿ"],@@ -1408,6 +1412,7 @@"KZLdgR": ["Śēē <0>#ďēśĩĝń-ďōćś</0> ƒōŕ ţĥē ĺàţēśţ śƥēćś."],"K_vT1F": ["Ũƥśţŕēàḿ śŷńć"],"KaFCD3": ["Ōƥēń ţĥĩś ĺĩńķ ĩń à ńēŵ ţàƀ àńď ćōĺĺàƥśē ţĥē ĝŕàƥĥ."],+ "KeXgA-": ["Ćōũĺďń'ţ ƒĩńď ţĥàţ ƥàśśàĝē — ţĥē ţēxţ ĩţ ŵàś ōń ḿàŷ ĥàvē ćĥàńĝēď."],"Kf7GG5": ["Ŕēśţàŕţĩńĝ ţĥē śēŕvēŕ…"],"Kge76t": ["Ŕōŵ ōƥţĩōńś"],"Kh1n4a": [@@ -1538,7 +1543,6 @@"M92_0q": ["Ćĺōśē ćōḿḿēńţ"],"M9597s": ["Ƥŕēƥàŕĩńĝ śĥàŕē ŨŔĹ..."],"MBKkUy": ["śķĩĺĺś.śĥ ĩś ũńàvàĩĺàƀĺē; śĥōŵĩńĝ ĜĩţĤũƀ ŕēśũĺţś (ńō ĩńśţàĺĺ ŕàńķĩńĝ)."],- "MBe6TE": ["Ţĥē ǫũōţēď ţēxţ ĩś ńō ĺōńĝēŕ ĩń ţĥē ďōćũḿēńţ — ţĥē àĝēńţ ŵĩĺĺ ƀē ţōĺď."],"MCjC9A": ["Ďēĺēţē ", ["deleteDescriptorLabel"]],"MDBJwN": ["Ĥàŕď ţō ũśē"],"MDZSJe": ["Ŵĥēń ţĥē àĝēńţ ŕũńś ĩţś śćĥēďũĺēď ŵōŕķ."],@@ -1644,7 +1648,6 @@"NeY1Np": ["Śĺĩďēv ţĩḿēď ōũţ ŵĥĩĺē śţàŕţĩńĝ. Ţŕŷ àĝàĩń."],"NfraGd": ["Ōţĥēŕ ŵàŷś ţō ĩńśţàĺĺ Śĺĩďēv"],"NgZwB0": [["enabledCount"], "/", ["0"], " ōń"],- "NiGIcB": ["Ōƥēń Ćōḿḿēńţś"],"NjrIak": ["Ƒĩĺē: <0>", ["fixedName"], ".ḿď</0>"],"NkNfSr": ["Ēďĩţ ", ["tag"]],"NkXEFS": ["Ŕēśţōŕē ƒàĩĺēď — ďōćũḿēńţ ũńćĥàńĝēď"],@@ -1751,6 +1754,7 @@"PBxg_E": ["Ńōţ ńōŵ"],"PCSkw2": ["Śķĩĺĺś"],"PGPGsL": ["Àďď ďēśćŕĩƥţĩōń"],+ "PHHEuH": ["Ĥĩďē ŕēśōĺvēď ćōḿḿēńţś (", ["0"], ")"],"PIMM5l": ["Ŷōũ'ŕē śũƀśćŕĩƀēď!"],"PKLY-1": ["Ōƥēńĩńĝ..."],"PKjGhT": ["Ĥēàďĩńĝś"],@@ -1853,7 +1857,6 @@"QpSqAP": ["À ŕēàĺ śĥēĺĺ ĩś ōƒƒ ƒōŕ ţĥĩś ƥŕōĴēćţ. Ţũŕńĩńĝ ĩţ ōń ŕũńś ćōḿḿàńďś ŵĩţĥ ţĥē ƒũĺĺ àććēśś ōƒ ŷōũŕ ũśēŕ àććōũńţ."],- "Qpfxa1": [["secs"], "ś"],"QqBQu1": ["Ĺàƀēĺ <0>(vĩśĩƀĺē ĺĩńķ ţēxţ)</0>"],"Qvls7J": ["Ēńĝ śƥēćś"],"Qw-7Ie": [@@ -1992,6 +1995,7 @@],"T-654M": ["Ĺōàďĩńĝ ƤĎƑ"],"T0OVm7": ["Ţĥē ďēƒàũĺţ ƀŕàńćĥ ĩś ƥŕōţēćţēď — ƥũśĥēś ńēēď à ƥũĺĺ ŕēǫũēśţ."],+ "T2fvhw": ["Ũńḿàŕķ ēvēŕŷ ćōḿḿēńţ ĩń ", ["0"]],"T3Mld1": ["Ŵĩńďōŵ"],"T3j-7o": ["ē.ĝ. Śŵĩţćĥĩńĝ ƥŕōĴēćţś ŵĥĩĺē à śŷńć ŵàś ŕũńńĩńĝ"],"TBfy1C": ["Ćōũĺďń'ţ śţàŕţ Śĺĩďēv."],@@ -2045,7 +2049,6 @@"UDFrWm": ["Ćĥēćķĩńĝ ĜĩţĤũƀ ćōńńēćţĩōń..."],"UD_onR": ["Ḿũĺĺĩńĝ…"],"UDb2YD": ["Ŕēàćţ"],- "UEdTEN": ["Ōŕƥĥàńēď"],"UGeJuP": ["Àĺĺōŵēď vàĺũēś (ēḿƥţŷ = àńŷ)"],"UGtPix": ["ĜĩţĤũƀ ćōńńēćţĩōń ēxƥĩŕēď. Ćōńńēćţ àĝàĩń ţō ćōńţĩńũē."],"UH0Zqw": ["Ţĥĩś ĩśń’ţ à ŕēĝũĺàŕ ţĥēḿē ƒĩĺē"],@@ -2117,7 +2120,6 @@"UkQGhd": ["Ĥĩďē ŕēƥĺàćē"],"UlVARL": ["Ēńàƀĺē Śĺĩďēv"],"Uobeu9": ["Àďďś ţĥē śķĩĺĺ ţō ", ["rootRel"], " — àĺśō ŕēàď ƀŷ ", ["0"]],- "Uoux8m": ["Ĩńćĺũďē ţĥĩś ćōḿḿēńţ ĩń ţĥē ńēxţ śēńď"],"Up2_7p": ["Ćōƥŷ ƒũĺĺ ƥàţĥ"],"UpCz01": ["Ţĥĩś ďōć"],"UpOct_": ["Àďď ŷōũŕ ćōḿḿēńţś ţō ţĥĩś ḿēśśàĝē"],@@ -2236,6 +2238,7 @@"Wh0im4": ["ēďĩţĩńĝ [[", ["realCurrentDoc"], "]]"],"WhOsNE": ["Śţŕĩķēţĥŕōũĝĥ"],"Wi-VWy": ["Ćōũĺďń'ţ śēńď ţĥē ŕēƥōŕţ"],+ "WkQ0Z_": ["Ḿàŕķ ēvēŕŷ ćōḿḿēńţ ĩń ", ["0"], " ţō śēńď"],"WkTLN7": ["Śĥōŵ ōńĺŷ ḿàŕķďōŵń ƒĩĺēś"],"WkyP2p": ["Śķĩĺĺś śēćţĩōń"],"WmPbvm": ["Ĝēţ ƥŕōďũćţ ũƥďàţēś ĩń ŷōũŕ ĩńƀōx."],@@ -2283,7 +2286,6 @@"XV5sC0": ["Ōƥēń ŵōŕķţŕēē"],"XVnIvs": ["Ĩńśţàĺĺ śķĩĺĺś"],"XW18jo": ["Ƥàĝē ĥēàďĩńĝś ŕēśƥōńśē ďĩď ńōţ ḿàţćĥ śũććēśś śćĥēḿà"],- "XWEqQj": [["days"], "ď"],"XXA1b_": [["componentLabel"], " (ēḿƥţŷ)"],"XYZ7tp": ["Ũńŕēśōĺvàƀĺē"],"XYlJJT": ["Śēţţĩńĝ ũƥ"],@@ -2532,7 +2534,6 @@"Ŕēàď-ōńĺŷ ćōƥŷ ōƒ à ḾĩŕŕōŕŚōũŕćē ƀĺōćķ ƒŕōḿ àńōţĥēŕ ďōć. Ēďĩţ àţ ţĥē śōũŕćē àńď ĩţ ũƥďàţēś ĺĩvē."],"_XWY2J": ["Ţēŕḿĩńàĺ ďĩśàƀĺēď"],- "_YEyHO": ["Śĥōŵ ŕēśōĺvēď ćōḿḿēńţś"],"_YWqV2": ["ŌƥēńĶńōŵĺēďĝē ŕēśōĺvēď à ćōńƒĺĩćţ"],"_ayOfA": ["À ķńōŵĺēďĝē ƀàśē ţĥàţ ƒōĺĺōŵś Ĝōōĝĺē'ś Ōƥēń Ķńōŵĺēďĝē Ƒōŕḿàţ, à śĥàŕēď ŵàŷ ōƒ ōŕĝàńĩźĩńĝ ŵĥàţ ŷōũ ķńōŵ. Ƥĩćķ ţĥĩś ĩƒ ŷōũ ŵàńţ ŷōũŕ ńōţēś ţō ŵōŕķ ŵēĺĺ ŵĩţĥ ōţĥēŕ ţōōĺś ţĥàţ ũńďēŕśţàńď ţĥē ƒōŕḿàţ."@@ -2544,7 +2545,6 @@"_gO_m8": ["Ŵàĩţĩńĝ ƒōŕ ŷōũŕ àƥƥŕōvàĺ"],"_gkGSK": ["ďēĺēţēď ţēḿƥĺàţē"],"_mcDqU": [["count"], " śķĩĺĺś àţ ţĥĩś śōũŕćē"],- "_oqig9": [["hours"], "ĥ"],"_pY_Vq": ["Ţĥē ŕēƥōśĩţōŕŷ ŵàś ḿōvēď, ŕēńàḿēď, ōŕ ďēĺēţēď."],"_qD6mn": ["Ƥĩćķ ţĥē ƒōĺďēŕ ŵĥēŕē ŷōũ'vē ćĺōńēď ĩţ."],"_rP3HI": [["minutes"], "ḿ àĝō"],@@ -2970,6 +2970,7 @@"gBbxn_": ["Ćĥēćķĩńĝ śĩĝń-ĩń śţàţũś"],"gGVP4q": ["Ćĺĩćķ <0>+</0> <1/> <2>Ćŕēàţē śķĩĺĺ</2> <3/> <4>Ũƥĺōàď śķĩĺĺ</4>."],"gHSAWT": ["Ćŕēàţē ŵōŕķţŕēē <0>“<1>", ["typedName"], "</1>”</0>"],+ "gHb5bB": ["Śĥōŵ ŕēśōĺvēď ćōḿḿēńţś (", ["0"], ")"],"gITz7o": ["Ḿōvē ţĥē ćũŕśōŕ ōŕ ēxţēńď śēĺēćţĩōń ţĥŕōũĝĥ ĆōďēḾĩŕŕōŕ'ś śţàńďàŕď śōũŕćē-ēďĩţōŕ ńàvĩĝàţĩōń ķēŷḿàƥ."],@@ -3190,7 +3191,6 @@"iz1LdD": ["Ćĥàńĝēď ōũţśĩďē ŌĶ śĩńćē ĩţ ĺàśţ ŵŕōţē ĥēŕē — ţĥē śţàţē śĥōŵń ĩś ŵĥàţ'ś ōń ďĩśķ ńōŵ"],- "j0ItfO": ["Śĥōŵ ŕēśōĺvēď (", ["0"], ")"],"j15ZSH": ["Śēńď ćōḿḿēńţś ţō"],"j2229h": ["Ŕēḿōvĩńĝ ŌƥēńĶńōŵĺēďĝē ƒĩĺēś…"],"j2kt1j": [@@ -3290,7 +3290,6 @@["targetNoun"]," ŵĩĺĺ àƥƥēàŕ ōńćē ţĥē ƀŕàńćĥ śŷńćś."],- "kMKqP_": ["Ĥĩďē ţĥēśē ćōḿḿēńţś"],"kNGLX6": ["Ŕēţŕŷĩńĝ…"],"kNqMMd": ["Ƒōĺďēŕ"],"kRTXGw": [@@ -3525,7 +3524,6 @@"nBgzKO": ["Ḿàķē ţĥĩś ţĥē śōũŕćē — ţĥē śķĩĺĺ'ś ŕēàĺ ƒōĺďēŕ ḿōvēś ĥēŕē"],"nCzR-G": ["Ćōƥŷ ćōďē ", ["userCode"]],"nDT8qt": ["Ĩńĩţĩàĺĩźēď ", ["0"], " ƀũţ ćōũĺď ńōţ ōƥēń ĩţ."],- "nG-XA9": ["Ţĥē àńćĥōŕēď ţēxţ ĩś ĝōńē. Ŷōũ ćàń ŕē-ƥĺàćē ĩţ ōń śēĺēćţēď ţēxţ."],"nMSYz5": ["Ţĥĩś ƥàţĥ ĩś ōń àń ēxţēŕńàĺ vōĺũḿē (/Vōĺũḿēś/...). ŌƥēńĶńōŵĺēďĝē ŵĩĺĺ ĺōśē ţŕàćķ ōƒ ƒĩĺēś ŵĥēń ţĥē ďŕĩvē ēĴēćţś."],@@ -3590,6 +3588,7 @@"nzaV6Q": ["Ƥàĝē ţĥũḿƀńàĩĺś"],"o0bHtA": ["ßŷ ŌƥēńĶńōŵĺēďĝē"],"o49mDZ": ["Ĺōàďĩńĝ ţĩḿēĺĩńē ĥĩśţōŕŷ"],+ "o7AkQ0": ["Śĥōŵ ŕēśōĺvēď"],"o9CrsQ": ["ŕēśēàŕćĥ-ńōţē"],"o9fPtM": ["Àũţō-ũƥďàţē ƒŕōḿ śōũŕćē"],"o9yN4T": ["Ḿōvē ţō Ŕēćŷćĺē ßĩń"],@@ -3840,7 +3839,6 @@"roAe2K": ["Ĺĩńķ ŨŔĹ"],"roiUQQ": ["Ţĥĩś ƥàĝē ďōēśń'ţ ĺĩńķ ţō àńŷţĥĩńĝ ŷēţ."],"rppgXF": ["Ďĩśćōńńēćţĩńĝ"],- "rscgd_": ["Ĝō ţō ţĥĩś ćōḿḿēńţ ĩń ", ["0"]],"rssK8c": ["Ĩĝńōŕē ƥàţţēŕńś (ŕàŵ ţēxţ)"],"rtdR4v": ["Śĥōŵ ōŕ ĥĩďē Ƒĩĺēś"],"rtir7c": ["ũńķńōŵń"],diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.poindex 4680c25e2..57ec41308 100644--- a/packages/app/src/locales/pseudo/messages.po+++ b/packages/app/src/locales/pseudo/messages.po@@ -511,6 +511,11 @@ msgstr ""msgid "{count, plural, one {# comment} other {# comments}}"msgstr ""+#. placeholder {0}: docs.length+#: src/comments/comment-chips.tsx+msgid "{count, plural, one {# comment} other {# comments}} across {0, plural, one {# file} other {# files}}"+msgstr ""+#: src/components/settings/applies-to-folder-picker.tsxmsgid "{count, plural, one {# doc} other {# docs}}"msgstr ""@@ -559,10 +564,6 @@ msgstr ""msgid "{days, plural, one {# day ago} other {# days ago}}"msgstr ""-#: src/comments/ThreadCard.tsx-msgid "{days}d"-msgstr ""-#: src/components/acp/ThreadHistoryMenu.tsxmsgid "{days}d ago"msgstr ""@@ -657,10 +658,6 @@ msgstr ""msgid "{formatted} GitHub stars"msgstr ""-#: src/comments/ThreadCard.tsx-msgid "{hours}h"-msgstr ""-#: src/components/acp/ThreadHistoryMenu.tsx#: src/components/ActivityModeContent.tsx#: src/components/ActivityPanelFileRow.tsx@@ -727,10 +724,6 @@ msgstr ""msgid "{mins, plural, one {# min ago} other {# min ago}}"msgstr ""-#: src/comments/ThreadCard.tsx-msgid "{mins}m"-msgstr ""-#: src/components/SyncStatusBadge.tsxmsgid "{minutes} min ago"msgstr ""@@ -813,10 +806,6 @@ msgstr ""msgid "{seconds}s ago"msgstr ""-#: src/comments/ThreadCard.tsx-msgid "{secs}s"-msgstr ""-#: src/editor/extensions/JsxComponentView.tsxmsgid "{settingsDescriptorLabel} properties"msgstr ""@@ -2496,7 +2485,6 @@ msgstr ""msgid "Cloning..."msgstr ""-#: src/comments/ThreadCard.tsx#: src/components/EditorTabs.tsx#: src/components/FeedbackForm.tsx#: src/components/InstallInClaudeDesktopDialog.tsx@@ -3387,6 +3375,10 @@ msgstr ""msgid "Couldn't duplicate \"{0}\": {1}"msgstr ""+#: src/comments/reveal-comment.ts+msgid "Couldn't find that passage — the text it was on may have changed."+msgstr ""+#. placeholder {0}: item.displayName#: src/components/acp/ThreadView.tsxmsgid "Couldn't finish installing {0} — see below."@@ -4319,10 +4311,6 @@ msgstr ""msgid "Discard local edits, restore the installed version"msgstr ""-#: src/comments/CommentSelectionAffordance.tsx-msgid "Discard this comment"-msgstr ""-#: src/components/settings/AccountSection.tsxmsgid "Disconnect"msgstr ""@@ -4422,7 +4410,6 @@ msgstr ""msgid "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."msgstr ""-#: src/comments/comment-chips.tsx#: src/comments/ThreadCard.tsxmsgid "Don't send this comment"msgstr ""@@ -5838,15 +5825,6 @@ msgstr ""msgid "Go to line {0} in {1}"msgstr ""-#. placeholder {0}: docBasename(thread.docName)-#: src/comments/comment-chips.tsx-msgid "Go to this comment in {0}"-msgstr ""--#: src/comments/comment-chips.tsx-msgid "gone"-msgstr ""-#: src/components/FeedbackForm.tsxmsgid "Good"msgstr ""@@ -6058,8 +6036,9 @@ msgstr ""msgid "Hide resolved"msgstr ""+#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Hide resolved comments"+msgid "Hide resolved comments ({0})"msgstr ""#: src/components/BottomComposer.tsx@@ -6075,10 +6054,6 @@ msgstr ""msgid "Hide Terminal"msgstr ""-#: src/comments/comment-chips.tsx-msgid "Hide these comments"-msgstr ""-#: src/components/EditorTabTargetMenuItems.tsx#: src/components/FileTree.tsxmsgid "Hide this file"@@ -6303,10 +6278,6 @@ msgstr ""msgid "In the Claude Desktop App"msgstr ""-#: src/comments/comment-chips.tsx-msgid "Include this comment in the next send"-msgstr ""-#: src/lib/keyboard-shortcuts.tsmsgid "Indent or outdent list item"msgstr ""@@ -6664,6 +6635,10 @@ msgstr ""msgid "Jump to page {pageNumber}"msgstr ""+#: src/comments/ThreadCard.tsx+msgid "Jump to selected text in property"+msgstr ""+#: src/lib/keyboard-shortcuts.tsmsgid "Jump to tab 1-8"msgstr ""@@ -7161,7 +7136,12 @@ msgstr ""msgid "Mark a block as the source of truth. Mirrors elsewhere update live as you edit it."msgstr ""-#: src/comments/CommentSendFooter.tsx+#. placeholder {0}: docBasename(group.docName)+#: src/comments/CommentListPanel.tsx+msgid "Mark every comment in {0} to send"+msgstr ""++#: src/comments/CommentListPanel.tsxmsgid "Mark every comment to send"msgstr ""@@ -8401,10 +8381,6 @@ msgstr ""msgid "Open comment"msgstr ""-#: src/comments/CommentSelectionAffordance.tsx-msgid "Open Comments"-msgstr ""-#: src/components/command-palette-commands.ts#: src/lib/platform-labels.tsmsgid "Open containing folder"@@ -8878,10 +8854,6 @@ msgstr ""msgid "Orphan mode"msgstr ""-#: src/comments/ThreadCard.tsx-msgid "Orphaned"-msgstr ""-#: src/components/GraphPanel.tsxmsgid "Orphans"msgstr ""@@ -9366,7 +9338,6 @@ msgid "project"msgstr ""#: src/components/CommandPalette.tsx-#: src/components/PanelScopeHeader.tsx#: src/components/settings/ScopeBadge.tsx#: src/lib/skill-scope.tsmsgid "Project"@@ -10677,10 +10648,6 @@ msgstr ""msgid "Select the full source document."msgstr ""-#: src/comments/ThreadCard.tsx-msgid "Select this text in the property"-msgstr ""-#: src/lib/keyboard-shortcuts.tsmsgid "Select, enter, or leave block components and fallback source blocks from keyboard boundaries."msgstr ""@@ -11139,13 +11106,13 @@ msgstr ""msgid "Show replace"msgstr ""-#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Show resolved ({0})"+msgid "Show resolved"msgstr ""+#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Show resolved comments"+msgid "Show resolved comments ({0})"msgstr ""#: src/components/BottomComposer.tsx@@ -11166,7 +11133,7 @@ msgid "Show Terminal"msgstr ""#: src/comments/comment-chips.tsx-msgid "Show these comments"+msgid "Show these comments in the Comments panel"msgstr ""#: src/editor/components/Pdf.tsx@@ -12063,6 +12030,10 @@ msgstr ""msgid "That branch is already open in another worktree."msgstr ""+#: src/comments/reveal-comment.ts+msgid "That document didn't open in time. Try again once it has synced."+msgstr ""+#: src/components/settings/SearchSection.tsxmsgid "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."msgstr ""@@ -12108,10 +12079,6 @@ msgstr ""msgid "The agent's persona, values, and voice."msgstr ""-#: src/comments/ThreadCard.tsx-msgid "The anchored text is gone. You can re-place it on selected text."-msgstr ""-#: src/components/ProblemsPanel.tsxmsgid "The audit could not be completed. Try again."msgstr ""@@ -12190,6 +12157,10 @@ msgstr ""msgid "the open agent"msgstr ""+#: src/comments/ThreadCard.tsx+msgid "The original text was deleted. You can re-place this comment on selected text."+msgstr ""+#: src/editor/components/PreviewBlockedNotice.tsxmsgid "The preview blocks resources that don't meet its security rules (for example plain http:// URLs, or code that uses eval). The content above may render incompletely."msgstr ""@@ -12215,10 +12186,6 @@ msgstr ""msgid "The provider rejected the request. Check the API key and the model id."msgstr ""-#: src/comments/comment-chips.tsx-msgid "The quoted text is no longer in the document — the agent will be told."-msgstr ""-#: src/components/ReportBugDialogBody.tsxmsgid "The report service couldn't be reached."msgstr ""@@ -12595,7 +12562,7 @@ msgstr ""msgid "This permanently removes {path}. Agents that reference this template by name will fail until it's recreated or replaced by one in a parent folder."msgstr ""-#: src/comments/CommentsTab.tsx+#: src/components/PanelScopeHeader.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "This project"msgstr ""@@ -13086,10 +13053,15 @@ msgstr ""msgid "unlink"msgstr ""-#: src/comments/CommentSendFooter.tsx+#: src/comments/CommentListPanel.tsxmsgid "Unmark every comment"msgstr ""+#. placeholder {0}: docBasename(group.docName)+#: src/comments/CommentListPanel.tsx+msgid "Unmark every comment in {0}"+msgstr ""+#: src/editor/slash-command/items.tsxmsgid "Unordered list of items."msgstr ""@@ -13395,6 +13367,10 @@ msgstr ""msgid "View as text"msgstr ""+#: src/comments/CommentSelectionAffordance.tsx+msgid "View comments"+msgstr ""+#: src/components/ActivityPanelBurstRow.tsxmsgid "View diff for edit {burstNumber} of {docName}"msgstr ""diff --git a/packages/app/src/locales/pt-BR/messages.json b/packages/app/src/locales/pt-BR/messages.jsonindex ce0ef81f0..3583412b7 100644--- a/packages/app/src/locales/pt-BR/messages.json+++ b/packages/app/src/locales/pt-BR/messages.json@@ -66,6 +66,9 @@"03wKPg": ["Um relatório nos ajuda a achar a causa. Nada é enviado até você revisar."],"04RA0-": ["Falha ao ativar a sincronização — ", ["detail"]],"04XyCH": ["Adiciona um bloco gerenciado a ", ["0"]],+ "05F1GY": [+ "O texto original foi excluído. Você pode reposicionar este comentário no texto selecionado."+ ],"05n5wS": ["Sugestões de menção de documentos"],"06SZfb": ["Modelo \"", ["trimmedTitle"], "\" criado"],"07eGJB": ["Não deu para mover a habilidade: ", ["0"]],@@ -135,7 +138,6 @@"11ukmX": ["Falha ao renomear: ", ["0"]],"12F9WL": ["(sem id)"],"151wvk": ["Mostrar a barra lateral"],- "15MMFT": ["Mostrar estes comentários"],"15ZHCt": ["Nenhuma alteração no corpo nesta versão."],"161NCV": ["Parando"],"16D5Zj": [@@ -216,7 +218,6 @@"2QM24L": ["Todas as tags"],"2RnFoM": ["Não foi possível retomar este chat: ", ["0"]],"2Snes1": ["Isto envia o endereço do link para fora do seu computador"],- "2UgoBZ": ["sumiu"],"2VSPan": ["O Terminal foi fechado para abrir espaço para o painel de agentes."],"2XQ8Ww": ["Abrir a pré-visualização quando o agente editar"],"2YOwme": ["Reiniciado — agora rodando a v", ["appRuntime"], "."],@@ -241,6 +242,7 @@"2vIPtm": ["Abrir o link em uma nova aba"],"2wTb8w": ["Configure na página própria dele, em Plugins."],"2wxgft": ["Renomear"],+ "2zvUIK": ["Mostrar estes comentários no painel de comentários"],"322lyb": ["Destaca dicas, avisos e notas."],"34qyH5": ["Não foi possível contatar o servidor"],"36WXSC": ["Não deu para excluir o modelo: ", ["error"]],@@ -380,7 +382,6 @@"4buZWd": ["Herdado de ", ["path"]],"4c_a6S": ["Ainda não há nada definido."],"4d0VYJ": ["Criaremos um ID de tema seguro a partir deste nome."],- "4eO-iB": ["Descartar este comentário"],"4g19V6": ["Falha ao atualizar a propriedade"],"4h3e0H": ["Não deu para atualizar o compartilhamento de habilidades — ", ["detail"], "."],"4hJhzz": ["Tabela"],@@ -408,7 +409,6 @@"4sKwf6": ["O arquivo já existe"],"4sUdTJ": ["pré-visualização com tema"],"4uNLmk": ["Fazendo pull"],- "4uaCUA": [["mins"], "min"],"4v2Yyz": ["Seleciona todas as linhas visíveis da árvore de arquivos quando o foco está na barra lateral Arquivos."],@@ -440,7 +440,6 @@"5ClEAu": ["Hashtag em linha para agrupar entre documentos."],"5D3Ior": ["Ocultar a pasta"],"5F5HYj": [["ahead"], " à frente, ", ["behind"], " atrás"],- "5GBQ-F": ["Selecionar este texto na propriedade"],"5GKMSz": ["Aumenta ou diminui o recuo do item de lista atual."],"5GRxoA": ["Busca arquivos, pastas e comandos do espaço de trabalho atual."],"5HJpFY": ["Entra na fila atrás do turno em andamento"],@@ -462,6 +461,23 @@"Este endpoint ignorou o tamanho de vector que você configurou. Remova <0>search.semantic.dimensions</0> para usar o tamanho próprio do modelo."],"5Tk8Fb": ["Carregando arquivos"],+ "5TmrYN": [+ [+ "count",+ "plural",+ {+ "one": ["#", " comentário"],+ "many": ["#", " comentários"],+ "other": ["#", " comentários"]+ }+ ],+ " em ",+ [+ "0",+ "plural",+ { "one": ["#", " arquivo"], "many": ["#", " arquivos"], "other": ["#", " arquivos"] }+ ]+ ],"5Umg9i": ["Desativar a pré-visualização de links externos"],"5WDhAk": ["Aponta para uma página ou uma URL externa."],"5Y17qa": ["Aplica-se a (globs — um ! inicial exclui; vazio significa todos os documentos)"],@@ -1084,6 +1100,7 @@],"DcFr-y": ["OpenKnowledge excluiu um documento"],"DcLaew": ["Tema personalizado"],+ "Dd6j2Q": ["Ver comentários"],"DeDYLr": ["Link wiki não reconhecido"],"DgcGrb": [["fileCount", "plural", { "one": ["arquivo"], "many": ["arquivos"], "other": ["arquivos"] }]@@ -1261,6 +1278,7 @@"FgQ7XZ": ["Não foi possível carregar seus relatórios de erro."],"FgRAvd": ["Logs e informações do sistema"],"Fhp4Gn": ["Ver o plugin"],+ "FiyNln": ["Ir para o texto selecionado na propriedade"],"FjkaiT": ["Afastar"],"FqGWeR": ["Não deu para contatar o registro de agentes."],"FqTpiN": ["Wiki de aves"],@@ -1298,7 +1316,6 @@"G0YZ-I": ["Aumentar ou diminuir o recuo do item de lista"],"G1Gw0v": ["Novo modelo"],"G1XxbZ": ["Caixa de seleção"],- "G1zJlD": ["Ocultar comentários resolvidos"],"G4m8rL": ["Comentar na seleção"],"G6Lrs_": ["Fazer ", ["0"], " parar de ler esta habilidade"],"G7-rf8": ["Erro de sintaxe no padrão: ", ["message"]],@@ -1536,6 +1553,9 @@"Nenhuma página desconectada. As páginas só aparecem aqui quando não têm arestas de entrada nem de saída no grafo."],"JDHcCM": ["Carregando as habilidades populares"],+ "JDQ5I5": [+ "Esse documento não abriu a tempo. Tente novamente quando ele estiver sincronizado."+ ],"JE21eh": ["Link simbólico para ", ["targetPath"]],"JG_8KT": ["Não deu para fazer pull do GitHub. Verifique sua conexão e seu login e tente de novo."@@ -1615,6 +1635,9 @@"KZLdgR": ["Veja <0>#design-docs</0> para as especificações mais recentes."],"K_vT1F": ["Sincronização com o remoto"],"KaFCD3": ["Abre este link em uma nova aba e recolhe o grafo."],+ "KeXgA-": [+ "Não foi possível encontrar esse trecho — o texto em que ele estava pode ter mudado."+ ],"Kf7GG5": ["Reiniciando o servidor…"],"Kge76t": ["Opções da linha"],"Kh1n4a": [@@ -1764,7 +1787,6 @@"MBKkUy": ["O skills.sh está indisponível; mostrando resultados do GitHub (sem classificação por instalações)."],- "MBe6TE": ["O texto citado não está mais no documento — o agente será avisado."],"MCjC9A": ["Excluir ", ["deleteDescriptorLabel"]],"MDBJwN": ["Difícil de usar"],"MDZSJe": ["Quando o agente roda o trabalho agendado dele."],@@ -1872,7 +1894,6 @@"NeY1Np": ["O Slidev demorou demais para iniciar. Tente novamente."],"NfraGd": ["Outras formas de instalar o Slidev"],"NgZwB0": [["enabledCount"], "/", ["0"], " ativos"],- "NiGIcB": ["Abrir Comentários"],"NjrIak": ["Arquivo: <0>", ["fixedName"], ".md</0>"],"NkNfSr": ["Editar ", ["tag"]],"NkXEFS": ["Falha ao restaurar — o documento não mudou"],@@ -1983,6 +2004,7 @@"PBxg_E": ["Agora não"],"PCSkw2": ["Habilidades"],"PGPGsL": ["Adicionar descrição"],+ "PHHEuH": ["Ocultar comentários resolvidos (", ["0"], ")"],"PIMM5l": ["Assinatura confirmada!"],"PKLY-1": ["Abrindo..."],"PKjGhT": ["Títulos"],@@ -2099,7 +2121,6 @@"QpSqAP": ["O shell real está desativado para este projeto. Ativá-lo faz os comandos rodarem com todo o acesso da sua conta de usuário."],- "Qpfxa1": [["secs"], "s"],"QqBQu1": ["Rótulo <0>(texto visível do link)</0>"],"Qvls7J": ["Especificações de engenharia"],"Qw-7Ie": [@@ -2249,6 +2270,7 @@],"T-654M": ["Carregando o PDF"],"T0OVm7": ["O ramo padrão é protegido — os envios exigem um pull request."],+ "T2fvhw": ["Desmarcar todos os comentários de ", ["0"]],"T3Mld1": ["Janela"],"T3j-7o": ["ex.: Trocar de projeto enquanto uma sincronização rodava"],"TBfy1C": ["Não foi possível iniciar o Slidev."],@@ -2310,7 +2332,6 @@"UDFrWm": ["Verificando a conexão com o GitHub..."],"UD_onR": ["Ruminando…"],"UDb2YD": ["React"],- "UEdTEN": ["Órfã"],"UGeJuP": ["Valores permitidos (vazio = qualquer)"],"UGtPix": ["A conexão com o GitHub expirou. Conecte-se novamente para continuar."],"UH0Zqw": ["Este não é um arquivo de tema comum"],@@ -2392,7 +2413,6 @@"UkQGhd": ["Ocultar substituir"],"UlVARL": ["Ativar Slidev"],"Uobeu9": ["Adiciona a habilidade a ", ["rootRel"], " — também lida por ", ["0"]],- "Uoux8m": ["Incluir este comentário no próximo envio"],"Up2_7p": ["Copiar caminho completo"],"UpCz01": ["Este documento"],"UpOct_": ["Adicione seus comentários a esta mensagem"],@@ -2547,6 +2567,7 @@"Wh0im4": ["editando [[", ["realCurrentDoc"], "]]"],"WhOsNE": ["Tachado"],"Wi-VWy": ["Não deu para enviar o relatório"],+ "WkQ0Z_": ["Marcar todos os comentários de ", ["0"], " para enviar"],"WkTLN7": ["Mostrar somente arquivos markdown"],"WkyP2p": ["Seção Habilidades"],"WmPbvm": ["Receba novidades do produto no seu e-mail."],@@ -2594,7 +2615,6 @@"XV5sC0": ["Abrir o worktree"],"XVnIvs": ["Instalar habilidades"],"XW18jo": ["A resposta dos títulos da página não corresponde ao esquema de sucesso"],- "XWEqQj": [["days"], "d"],"XXA1b_": [["componentLabel"], " (vazio)"],"XYZ7tp": ["Não resolvido"],"XYlJJT": ["Configurando"],@@ -2871,7 +2891,6 @@"Cópia somente leitura de um bloco MirrorSource de outro documento. Edite na fonte e ela se atualiza ao vivo."],"_XWY2J": ["Terminal desativado"],- "_YEyHO": ["Mostrar comentários resolvidos"],"_YWqV2": ["OpenKnowledge resolveu um conflito"],"_ayOfA": ["Uma base de conhecimento que segue o Open Knowledge Format do Google, uma forma comum de organizar o que você sabe. Escolha isto se quiser que suas notas funcionem bem com outras ferramentas que entendem o formato."@@ -2885,7 +2904,6 @@"_gO_m8": ["Aguardando sua aprovação"],"_gkGSK": ["modelo excluído"],"_mcDqU": [["count"], " habilidades nesta fonte"],- "_oqig9": [["hours"], "h"],"_pY_Vq": ["O repositório foi movido, renomeado ou excluído."],"_qD6mn": ["Escolha a pasta onde você o clonou."],"_rP3HI": ["há ", ["minutes"], " min"],@@ -3393,6 +3411,7 @@"gBbxn_": ["Verificando o estado da sessão"],"gGVP4q": ["Clique em <0>+</0> <1/> <2>Criar habilidade</2> <3/> <4>Enviar habilidade</4>."],"gHSAWT": ["Criar o worktree <0>“<1>", ["typedName"], "</1>”</0>"],+ "gHb5bB": ["Mostrar comentários resolvidos (", ["0"], ")"],"gITz7o": ["Move o cursor ou estende a seleção pelo mapa de teclas padrão de navegação do editor de código do CodeMirror."],@@ -3633,7 +3652,6 @@"iz1LdD": ["Alterado fora do OK desde a última vez que ele escreveu aqui — o estado exibido é o que está no disco agora"],- "j0ItfO": ["Mostrar os resolvidos (", ["0"], ")"],"j15ZSH": ["Enviar os comentários para"],"j2229h": ["Removendo os arquivos do OpenKnowledge…"],"j2kt1j": [@@ -3735,7 +3753,6 @@["targetNoun"]," vai aparecer assim que o ramo sincronizar."],- "kMKqP_": ["Ocultar estes comentários"],"kNGLX6": ["Tentando novamente…"],"kNqMMd": ["Pasta"],"kRTXGw": [@@ -4002,7 +4019,6 @@"nBgzKO": ["Tornar esta a fonte — a pasta real da habilidade se muda para cá"],"nCzR-G": ["Copiar o código ", ["userCode"]],"nDT8qt": [["0"], " inicializado, mas não foi possível abri-lo."],- "nG-XA9": ["O texto ancorado sumiu. Você pode reposicioná-lo em um texto selecionado."],"nMSYz5": ["Este caminho está em um volume externo (/Volumes/...). O OpenKnowledge vai perder os arquivos de vista quando a unidade for ejetada."],@@ -4072,6 +4088,7 @@"nzaV6Q": ["Miniaturas das páginas"],"o0bHtA": ["Pelo OpenKnowledge"],"o49mDZ": ["Carregando o histórico da linha do tempo"],+ "o7AkQ0": ["Mostrar resolvidos"],"o9CrsQ": ["nota-de-pesquisa"],"o9fPtM": ["Atualizar automaticamente pela fonte"],"o9yN4T": ["Mover para a Lixeira"],@@ -4341,7 +4358,6 @@"roAe2K": ["URL do link"],"roiUQQ": ["Esta página ainda não aponta para nada."],"rppgXF": ["Desconectando"],- "rscgd_": ["Ir para este comentário em ", ["0"]],"rssK8c": ["Padrões de exclusão (texto puro)"],"rtdR4v": ["Mostrar ou ocultar Arquivos"],"rtir7c": ["desconhecido"],diff --git a/packages/app/src/locales/pt-BR/messages.po b/packages/app/src/locales/pt-BR/messages.poindex a601a8322..fe08b9cd4 100644--- a/packages/app/src/locales/pt-BR/messages.po+++ b/packages/app/src/locales/pt-BR/messages.po@@ -511,6 +511,11 @@ msgstr "{conflictCount, plural, one {# arquivo em conflito} many {# arquivos emmsgid "{count, plural, one {# comment} other {# comments}}"msgstr "{count, plural, one {# comentário} many {# comentários} other {# comentários}}"+#. placeholder {0}: docs.length+#: src/comments/comment-chips.tsx+msgid "{count, plural, one {# comment} other {# comments}} across {0, plural, one {# file} other {# files}}"+msgstr "{count, plural, one {# comentário} many {# comentários} other {# comentários}} em {0, plural, one {# arquivo} many {# arquivos} other {# arquivos}}"+#: src/components/settings/applies-to-folder-picker.tsxmsgid "{count, plural, one {# doc} other {# docs}}"msgstr "{count, plural, one {# documento} many {# documentos} other {# documentos}}"@@ -559,10 +564,6 @@ msgstr "{count} habilidades nesta fonte"msgid "{days, plural, one {# day ago} other {# days ago}}"msgstr "{days, plural, one {há # dia} many {há # dias} other {há # dias}}"-#: src/comments/ThreadCard.tsx-msgid "{days}d"-msgstr "{days}d"-#: src/components/acp/ThreadHistoryMenu.tsxmsgid "{days}d ago"msgstr "há {days} d"@@ -657,10 +658,6 @@ msgstr "{folderCount, plural, one {pasta} many {pastas} other {pastas}}"msgid "{formatted} GitHub stars"msgstr "{formatted} estrelas no GitHub"-#: src/comments/ThreadCard.tsx-msgid "{hours}h"-msgstr "{hours}h"-#: src/components/acp/ThreadHistoryMenu.tsx#: src/components/ActivityModeContent.tsx#: src/components/ActivityPanelFileRow.tsx@@ -727,10 +724,6 @@ msgstr "{localizedMessage} na linha {displayLine}"msgid "{mins, plural, one {# min ago} other {# min ago}}"msgstr "{mins, plural, one {há # min} many {há # min} other {há # min}}"-#: src/comments/ThreadCard.tsx-msgid "{mins}m"-msgstr "{mins}min"-#: src/components/SyncStatusBadge.tsxmsgid "{minutes} min ago"msgstr "há {minutes} min"@@ -813,10 +806,6 @@ msgstr "Propriedades de {propPanelDescriptorLabel}"msgid "{seconds}s ago"msgstr "há {seconds} s"-#: src/comments/ThreadCard.tsx-msgid "{secs}s"-msgstr "{secs}s"-#: src/editor/extensions/JsxComponentView.tsxmsgid "{settingsDescriptorLabel} properties"msgstr "Propriedades de {settingsDescriptorLabel}"@@ -2496,7 +2485,6 @@ msgstr "Clonando {repoName}..."msgid "Cloning..."msgstr "Clonando..."-#: src/comments/ThreadCard.tsx#: src/components/EditorTabs.tsx#: src/components/FeedbackForm.tsx#: src/components/InstallInClaudeDesktopDialog.tsx@@ -3387,6 +3375,10 @@ msgstr "Não deu para desconectar — tente de novo."msgid "Couldn't duplicate \"{0}\": {1}"msgstr "Não deu para duplicar \"{0}\": {1}"+#: src/comments/reveal-comment.ts+msgid "Couldn't find that passage — the text it was on may have changed."+msgstr "Não foi possível encontrar esse trecho — o texto em que ele estava pode ter mudado."+#. placeholder {0}: item.displayName#: src/components/acp/ThreadView.tsxmsgid "Couldn't finish installing {0} — see below."@@ -4319,10 +4311,6 @@ msgstr "Distingue modelos com nomes parecidos no menu."msgid "Discard local edits, restore the installed version"msgstr "Descartar as edições locais e restaurar a versão instalada"-#: src/comments/CommentSelectionAffordance.tsx-msgid "Discard this comment"-msgstr "Descartar este comentário"-#: src/components/settings/AccountSection.tsxmsgid "Disconnect"msgstr "Desconectar"@@ -4422,7 +4410,6 @@ msgstr "Documentos com a tag <0>#{tagName}</0>"msgid "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."msgstr "Não vê <0>Habilidades</0>? Ative antes <1>Configurações <2/> Recursos <3/> Execução de código e criação de arquivos</1>."-#: src/comments/comment-chips.tsx#: src/comments/ThreadCard.tsxmsgid "Don't send this comment"msgstr "Não enviar este comentário"@@ -5838,15 +5825,6 @@ msgstr "Ir para a linha {0}"msgid "Go to line {0} in {1}"msgstr "Ir para a linha {0} em {1}"-#. placeholder {0}: docBasename(thread.docName)-#: src/comments/comment-chips.tsx-msgid "Go to this comment in {0}"-msgstr "Ir para este comentário em {0}"--#: src/comments/comment-chips.tsx-msgid "gone"-msgstr "sumiu"-#: src/components/FeedbackForm.tsxmsgid "Good"msgstr "Bom"@@ -6058,9 +6036,10 @@ msgstr "Ocultar substituir"msgid "Hide resolved"msgstr "Ocultar os resolvidos"+#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Hide resolved comments"-msgstr "Ocultar comentários resolvidos"+msgid "Hide resolved comments ({0})"+msgstr "Ocultar comentários resolvidos ({0})"#: src/components/BottomComposer.tsxmsgid "Hide selection preview"@@ -6075,10 +6054,6 @@ msgstr "Ocultar a barra lateral"msgid "Hide Terminal"msgstr "Ocultar o Terminal"-#: src/comments/comment-chips.tsx-msgid "Hide these comments"-msgstr "Ocultar estes comentários"-#: src/components/EditorTabTargetMenuItems.tsx#: src/components/FileTree.tsxmsgid "Hide this file"@@ -6303,10 +6278,6 @@ msgstr "No app (beta)"msgid "In the Claude Desktop App"msgstr "No app Claude Desktop"-#: src/comments/comment-chips.tsx-msgid "Include this comment in the next send"-msgstr "Incluir este comentário no próximo envio"-#: src/lib/keyboard-shortcuts.tsmsgid "Indent or outdent list item"msgstr "Aumentar ou diminuir o recuo do item de lista"@@ -6664,6 +6635,10 @@ msgstr "Ir para a última aba"msgid "Jump to page {pageNumber}"msgstr "Ir para a página {pageNumber}"+#: src/comments/ThreadCard.tsx+msgid "Jump to selected text in property"+msgstr "Ir para o texto selecionado na propriedade"+#: src/lib/keyboard-shortcuts.tsmsgid "Jump to tab 1-8"msgstr "Ir para as abas 1-8"@@ -7161,7 +7136,12 @@ msgstr "Mapear a arquitetura"msgid "Mark a block as the source of truth. Mirrors elsewhere update live as you edit it."msgstr "Marca um bloco como fonte da verdade. Os espelhos em outros lugares se atualizam ao vivo enquanto você o edita."-#: src/comments/CommentSendFooter.tsx+#. placeholder {0}: docBasename(group.docName)+#: src/comments/CommentListPanel.tsx+msgid "Mark every comment in {0} to send"+msgstr "Marcar todos os comentários de {0} para enviar"++#: src/comments/CommentListPanel.tsxmsgid "Mark every comment to send"msgstr "Marcar todos os comentários para enviar"@@ -8401,10 +8381,6 @@ msgstr "Abre o painel de diagnósticos de análise do CodeMirror."msgid "Open comment"msgstr "Abrir o comentário"-#: src/comments/CommentSelectionAffordance.tsx-msgid "Open Comments"-msgstr "Abrir Comentários"-#: src/components/command-palette-commands.ts#: src/lib/platform-labels.tsmsgid "Open containing folder"@@ -8878,10 +8854,6 @@ msgstr "Arquivo original — antes das edições deste agente."msgid "Orphan mode"msgstr "Modo órfãs"-#: src/comments/ThreadCard.tsx-msgid "Orphaned"-msgstr "Órfã"-#: src/components/GraphPanel.tsxmsgid "Orphans"msgstr "Órfãs"@@ -9366,7 +9338,6 @@ msgid "project"msgstr "projeto"#: src/components/CommandPalette.tsx-#: src/components/PanelScopeHeader.tsx#: src/components/settings/ScopeBadge.tsx#: src/lib/skill-scope.tsmsgid "Project"@@ -10677,10 +10648,6 @@ msgstr "Selecionar a próxima ocorrência"msgid "Select the full source document."msgstr "Seleciona o documento de código inteiro."-#: src/comments/ThreadCard.tsx-msgid "Select this text in the property"-msgstr "Selecionar este texto na propriedade"-#: src/lib/keyboard-shortcuts.tsmsgid "Select, enter, or leave block components and fallback source blocks from keyboard boundaries."msgstr "Seleciona, entra ou sai de componentes de bloco e blocos de código alternativos a partir dos limites do teclado."@@ -11139,14 +11106,14 @@ msgstr "Mostrar os indicadores de problemas"msgid "Show replace"msgstr "Mostrar substituir"-#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Show resolved ({0})"-msgstr "Mostrar os resolvidos ({0})"+msgid "Show resolved"+msgstr "Mostrar resolvidos"+#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Show resolved comments"-msgstr "Mostrar comentários resolvidos"+msgid "Show resolved comments ({0})"+msgstr "Mostrar comentários resolvidos ({0})"#: src/components/BottomComposer.tsxmsgid "Show selection preview"@@ -11166,8 +11133,8 @@ msgid "Show Terminal"msgstr "Mostrar o Terminal"#: src/comments/comment-chips.tsx-msgid "Show these comments"-msgstr "Mostrar estes comentários"+msgid "Show these comments in the Comments panel"+msgstr "Mostrar estes comentários no painel de comentários"#: src/editor/components/Pdf.tsxmsgid "Show thumbnails"@@ -12063,6 +12030,10 @@ msgstr "Obrigado pelo relatório!"msgid "That branch is already open in another worktree."msgstr "Esse ramo já está aberto em outro worktree."+#: src/comments/reveal-comment.ts+msgid "That document didn't open in time. Try again once it has synced."+msgstr "Esse documento não abriu a tempo. Tente novamente quando ele estiver sincronizado."+#: src/components/settings/SearchSection.tsxmsgid "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."msgstr "Não dá para usar esse endpoint. Digite uma URL https:// — http:// só é aceito para localhost."@@ -12108,10 +12079,6 @@ msgstr "O agente não está parando. A parada forçada fecha este chat e encerramsgid "The agent's persona, values, and voice."msgstr "A personalidade, os valores e a voz do agente."-#: src/comments/ThreadCard.tsx-msgid "The anchored text is gone. You can re-place it on selected text."-msgstr "O texto ancorado sumiu. Você pode reposicioná-lo em um texto selecionado."-#: src/components/ProblemsPanel.tsxmsgid "The audit could not be completed. Try again."msgstr "Não foi possível concluir a auditoria. Tente de novo."@@ -12190,6 +12157,10 @@ msgstr "O id do modelo que seu endpoint serve. O tamanho do vector é detectadomsgid "the open agent"msgstr "o agente aberto"+#: src/comments/ThreadCard.tsx+msgid "The original text was deleted. You can re-place this comment on selected text."+msgstr "O texto original foi excluído. Você pode reposicionar este comentário no texto selecionado."+#: src/editor/components/PreviewBlockedNotice.tsxmsgid "The preview blocks resources that don't meet its security rules (for example plain http:// URLs, or code that uses eval). The content above may render incompletely."msgstr "A pré-visualização bloqueia recursos que não atendem às regras de segurança dela (por exemplo, URLs http:// sem criptografia ou código que usa eval). O conteúdo acima pode ser renderizado de forma incompleta."@@ -12215,10 +12186,6 @@ msgstr "O provedor recusou a requisição (HTTP {0}). Verifique a chave de API emsgid "The provider rejected the request. Check the API key and the model id."msgstr "O provedor recusou a requisição. Verifique a chave de API e o id do modelo."-#: src/comments/comment-chips.tsx-msgid "The quoted text is no longer in the document — the agent will be told."-msgstr "O texto citado não está mais no documento — o agente será avisado."-#: src/components/ReportBugDialogBody.tsxmsgid "The report service couldn't be reached."msgstr "Não foi possível contatar o serviço de relatórios."@@ -12595,7 +12562,7 @@ msgstr "Isso remove permanentemente {0}/{1} da skill “{2}”. Tudo o que apontmsgid "This permanently removes {path}. Agents that reference this template by name will fail until it's recreated or replaced by one in a parent folder."msgstr "Isto remove definitivamente {path}. Os agentes que citarem este modelo pelo nome vão falhar até ele ser recriado ou substituído por um de uma pasta acima."-#: src/comments/CommentsTab.tsx+#: src/components/PanelScopeHeader.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "This project"msgstr "Este projeto"@@ -13086,10 +13053,15 @@ msgstr "Erro desconhecido"msgid "unlink"msgstr "desvincular"-#: src/comments/CommentSendFooter.tsx+#: src/comments/CommentListPanel.tsxmsgid "Unmark every comment"msgstr "Desmarcar todos os comentários"+#. placeholder {0}: docBasename(group.docName)+#: src/comments/CommentListPanel.tsx+msgid "Unmark every comment in {0}"+msgstr "Desmarcar todos os comentários de {0}"+#: src/editor/slash-command/items.tsxmsgid "Unordered list of items."msgstr "Lista de itens sem numeração."@@ -13395,6 +13367,10 @@ msgstr "Ver {name}"msgid "View as text"msgstr "Ver como texto"+#: src/comments/CommentSelectionAffordance.tsx+msgid "View comments"+msgstr "Ver comentários"+#: src/components/ActivityPanelBurstRow.tsxmsgid "View diff for edit {burstNumber} of {docName}"msgstr "Ver as diferenças da edição {burstNumber} de {docName}"diff --git a/packages/app/src/locales/ur/messages.json b/packages/app/src/locales/ur/messages.jsonindex 72b935031..c779a665c 100644--- a/packages/app/src/locales/ur/messages.json+++ b/packages/app/src/locales/ur/messages.json@@ -52,6 +52,7 @@"03wKPg": ["رپورٹ ہمیں وجہ جاننے میں مدد دیتی ہے۔ آپ کے جائزے سے پہلے کچھ نہیں بھیجا جاتا۔"],"04RA0-": ["مطابقت پذیری فعال نہیں ہو سکی — ", ["detail"]],"04XyCH": [["0"], " میں منظم بلاک شامل کرتا ہے"],+ "05F1GY": ["اصل متن حذف کر دیا گیا تھا۔ آپ اس تبصرے کو منتخب متن پر دوبارہ رکھ سکتے ہیں۔"],"05n5wS": ["دستاویز کے ذکر کی تجاویز"],"06SZfb": ["ٹیمپلیٹ «", ["trimmedTitle"], "» بن گیا"],"07eGJB": ["مہارت منتقل نہیں ہو سکی: ", ["0"]],@@ -121,7 +122,6 @@"11ukmX": ["نام بدلنا ناکام: ", ["0"]],"12F9WL": ["(کوئی شناخت نہیں)"],"151wvk": ["سائیڈ بار دکھائیں"],- "15MMFT": ["یہ تبصرے دکھائیں"],"15ZHCt": ["اس ورژن میں متن کی کوئی تبدیلی نہیں۔"],"161NCV": ["روکا جا رہا ہے"],"16D5Zj": ["کیا آپ واقعی ", ["itemName"], " حذف کرنا چاہتے ہیں؟ یہ عمل واپس نہیں لیا جا سکتا۔"],@@ -196,7 +196,6 @@"2QM24L": ["تمام ٹیگز"],"2RnFoM": ["یہ چیٹ دوبارہ شروع نہیں ہو سکی: ", ["0"]],"2Snes1": ["یہ لنک کا پتہ آپ کی مشین سے باہر بھیجتا ہے"],- "2UgoBZ": ["غائب"],"2VSPan": ["ایجنٹ پینل کے لیے جگہ بنانے کی خاطر Terminal بند کر دیا گیا۔"],"2XQ8Ww": ["ایجنٹ کی ترمیم پر پیش منظر کھولیں"],"2YOwme": ["دوبارہ چل پڑا — اب v", ["appRuntime"], " چل رہا ہے۔"],@@ -221,6 +220,7 @@"2vIPtm": ["لنک نئے ٹیب میں کھولیں"],"2wTb8w": ["اسے پلگ اِنز کے تحت اس کے اپنے صفحے پر ترتیب دیں۔"],"2wxgft": ["نام بدلیں"],+ "2zvUIK": ["ان تبصروں کو تبصرے پینل میں دکھائیں"],"322lyb": ["مشورے، انتباہات اور نوٹس نمایاں کریں۔"],"34qyH5": ["سرور تک رسائی نہیں ہو سکی"],"36WXSC": ["ٹیمپلیٹ حذف نہیں ہو سکا: ", ["error"]],@@ -326,7 +326,6 @@"4buZWd": [["path"], " سے وراثت میں ملا"],"4c_a6S": ["ابھی کچھ مقرر نہیں۔"],"4d0VYJ": ["ہم اس نام سے ایک محفوظ تھیم ID بنائیں گے۔"],- "4eO-iB": ["یہ تبصرہ رد کریں"],"4g19V6": ["خصوصیت تازہ نہیں ہو سکی"],"4h3e0H": ["مہارتوں کا اشتراک تازہ نہیں ہو سکا — ", ["detail"], "۔"],"4hJhzz": ["ٹیبل"],@@ -350,7 +349,6 @@"4sKwf6": ["فائل پہلے سے موجود ہے"],"4sUdTJ": ["تھیم والا پیش منظر"],"4uNLmk": ["کھینچا جا رہا ہے"],- "4uaCUA": [["mins"], "من"],"4v2Yyz": ["جب فوکس فائلوں کے سائیڈ بار میں ہو تو فائل ٹری کی ہر نظر آنے والی قطار منتخب کریں۔"],@@ -380,7 +378,6 @@"5ClEAu": ["دستاویزات کے آر پار گروپ بندی کے لیے اِن لائن ہیش ٹیگ۔"],"5D3Ior": ["فولڈر چھپائیں"],"5F5HYj": [["ahead"], " آگے، ", ["behind"], " پیچھے"],- "5GBQ-F": ["خصوصیت میں یہ متن منتخب کریں"],"5GKMSz": ["موجودہ فہرست آئٹم کی اندروں یا باہر کی جگہ بدلیں۔"],"5GRxoA": ["موجودہ ورک اسپیس کی فائلیں، فولڈرز اور کمانڈز تلاش کریں۔"],"5HJpFY": ["جاری باری کے پیچھے قطار میں لگتا ہے"],@@ -402,6 +399,12 @@"اس اینڈ پوائنٹ نے آپ کا مقرر کردہ ویکٹر حجم نظر انداز کر دیا۔ ماڈل کا اپنا حجم استعمال کرنے کے لیے <0>search.semantic.dimensions</0> ہٹا دیں۔"],"5Tk8Fb": ["فائلیں لوڈ ہو رہی ہیں"],+ "5TmrYN": [+ ["count", "plural", { "one": ["#", " تبصرہ"], "other": ["#", " تبصرے"] }],+ " ",+ ["0", "plural", { "one": ["#", " فائل"], "other": ["#", " فائلوں"] }],+ " میں"+ ],"5Umg9i": ["بیرونی لنکس کے پیش منظر بند کریں"],"5WDhAk": ["کسی صفحے یا بیرونی URL سے لنک کریں۔"],"5Y17qa": ["لاگو ہوتا ہے (گلوبز — شروع میں ! خارج کرتا ہے؛ خالی کا مطلب ہر دستاویز)"],@@ -948,6 +951,7 @@],"DcFr-y": ["OpenKnowledge نے ایک دستاویز حذف کی"],"DcLaew": ["حسبِ ضرورت تھیم"],+ "Dd6j2Q": ["تبصرے دیکھیں"],"DeDYLr": ["ناقابلِ شناخت وکی لنک"],"DgcGrb": [["fileCount", "plural", { "one": ["فائل"], "other": ["فائلیں"] }]],"DhLHEb": ["سرگرمی لوڈ نہیں ہو سکی"],@@ -1119,6 +1123,7 @@"FgQ7XZ": ["آپ کی بگ رپورٹس لوڈ نہیں ہو سکیں۔"],"FgRAvd": ["لاگز اور سسٹم کی معلومات"],"Fhp4Gn": ["پلگ اِن دیکھیں"],+ "FiyNln": ["پراپرٹی میں منتخب متن پر جائیں"],"FjkaiT": ["چھوٹا کریں"],"FqGWeR": ["ایجنٹ رجسٹری تک رسائی نہیں ہو سکی۔"],"FqTpiN": ["پرندوں کی وکی"],@@ -1146,7 +1151,6 @@"G0YZ-I": ["فہرست آئٹم کی اندروں یا باہر کی جگہ بدلیں"],"G1Gw0v": ["نیا ٹیمپلیٹ"],"G1XxbZ": ["چیک باکس"],- "G1zJlD": ["حل شدہ تبصرے چھپائیں"],"G4m8rL": ["انتخاب پر تبصرہ"],"G6Lrs_": [["0"], " کا یہ مہارت پڑھنا روکیں"],"G7-rf8": ["پیٹرن کی ساخت میں خرابی: ", ["message"]],@@ -1352,6 +1356,7 @@"کوئی منقطع صفحہ نہیں۔ صفحات یہاں صرف اسی وقت ظاہر ہوتے ہیں جب ان کے گراف میں نہ آنے والے اور نہ جانے والے کنارے ہوں۔"],"JDHcCM": ["مقبول مہارتیں لوڈ ہو رہی ہیں"],+ "JDQ5I5": ["وہ دستاویز وقت پر نہیں کھلی۔ ہم آہنگ ہونے کے بعد دوبارہ کوشش کریں۔"],"JE21eh": [["targetPath"], " کا سِم لنک"],"JG_8KT": ["GitHub سے کھینچا نہیں جا سکا۔ اپنا کنکشن اور سائن اِن دیکھیں، پھر دوبارہ کوشش کریں۔"@@ -1433,6 +1438,7 @@"KZLdgR": ["تازہ ترین اسپیکس کے لیے <0>#design-docs</0> دیکھیں۔"],"K_vT1F": ["اپ سٹریم مطابقت پذیری"],"KaFCD3": ["یہ لنک نئے ٹیب میں کھولیں اور گراف سکیڑ دیں۔"],+ "KeXgA-": ["وہ اقتباس نہیں مل سکا — جس متن پر یہ تھا وہ شاید تبدیل ہو چکا ہے۔"],"Kf7GG5": ["سرور دوبارہ چلایا جا رہا ہے…"],"Kge76t": ["قطار کے اختیارات"],"Kh1n4a": [@@ -1571,7 +1577,6 @@"MBKkUy": ["skills.sh دستیاب نہیں؛ GitHub کے نتائج دکھائے جا رہے ہیں (تنصیب کی درجہ بندی کے بغیر)۔"],- "MBe6TE": ["اقتباس شدہ متن اب دستاویز میں نہیں ہے — ایجنٹ کو بتا دیا جائے گا۔"],"MCjC9A": [["deleteDescriptorLabel"], " حذف کریں"],"MDBJwN": ["استعمال میں مشکل"],"MDZSJe": ["ایجنٹ اپنا طے شدہ کام کب چلاتا ہے۔"],@@ -1677,7 +1682,6 @@"NeY1Np": ["Slidev شروع ہوتے ہوئے وقت ختم ہو گیا۔ دوبارہ کوشش کریں۔"],"NfraGd": ["Slidev انسٹال کرنے کے دیگر طریقے"],"NgZwB0": [["enabledCount"], "/", ["0"], " فعال"],- "NiGIcB": ["تبصرے کھولیں"],"NjrIak": ["فائل: <0>", ["fixedName"], ".md</0>"],"NkNfSr": [["tag"], " میں ترمیم کریں"],"NkXEFS": ["بحالی ناکام — دستاویز میں کوئی تبدیلی نہیں"],@@ -1786,6 +1790,7 @@"PBxg_E": ["ابھی نہیں"],"PCSkw2": ["مہارتیں"],"PGPGsL": ["تفصیل شامل کریں"],+ "PHHEuH": ["حل شدہ تبصرے چھپائیں (", ["0"], ")"],"PIMM5l": ["آپ رکن بن گئے!"],"PKLY-1": ["کھولا جا رہا ہے..."],"PKjGhT": ["عنوانات"],@@ -1892,7 +1897,6 @@"QpSqAP": ["اس پروجیکٹ کے لیے اصل شیل بند ہے۔ اسے آن کرنے پر کمانڈز آپ کے صارف اکاؤنٹ کی مکمل رسائی کے ساتھ چلتی ہیں۔"],- "Qpfxa1": [["secs"], "س"],"QqBQu1": ["لیبل <0>(نظر آنے والا لنک متن)</0>"],"Qvls7J": ["انجینئرنگ اسپیکس"],"Qw-7Ie": [@@ -2041,6 +2045,7 @@],"T-654M": ["PDF لوڈ ہو رہی ہے"],"T0OVm7": ["طے شدہ برانچ محفوظ ہے — پُش کے لیے پُل ریکویسٹ درکار ہے۔"],+ "T2fvhw": [["0"], " کے تمام تبصروں کا نشان ہٹائیں"],"T3Mld1": ["ونڈو"],"T3j-7o": ["مثلاً مطابقت پذیری کے دوران پروجیکٹ بدلنا"],"TBfy1C": ["Slidev شروع نہیں ہو سکا۔"],@@ -2096,7 +2101,6 @@"UDFrWm": ["GitHub کنکشن جانچا جا رہا ہے..."],"UD_onR": ["سوچ بچار جاری ہے…"],"UDb2YD": ["React"],- "UEdTEN": ["یتیم"],"UGeJuP": ["اجازت شدہ اقدار (خالی = کوئی بھی)"],"UGtPix": ["GitHub کنکشن ختم ہو گیا۔ جاری رکھنے کے لیے دوبارہ منسلک ہوں۔"],"UH0Zqw": ["یہ عام تھیم فائل نہیں ہے"],@@ -2166,7 +2170,6 @@"UkQGhd": ["تبدیلی چھپائیں"],"UlVARL": ["Slidev فعال کریں"],"Uobeu9": ["مہارت کو ", ["rootRel"], " میں شامل کرتا ہے — اسے ", ["0"], " بھی پڑھتا ہے"],- "Uoux8m": ["اگلی بار بھیجتے وقت یہ تبصرہ شامل کریں"],"Up2_7p": ["مکمل راستہ نقل کریں"],"UpCz01": ["یہ دستاویز"],"UpOct_": ["اس پیغام میں اپنے تبصرے شامل کریں"],@@ -2295,6 +2298,7 @@"Wh0im4": ["[[", ["realCurrentDoc"], "]] میں ترمیم کر رہا ہے"],"WhOsNE": ["درمیان سے کٹا ہوا"],"Wi-VWy": ["رپورٹ نہیں بھیجی جا سکی"],+ "WkQ0Z_": [["0"], " کے تمام تبصرے بھیجنے کے لیے نشان زد کریں"],"WkTLN7": ["صرف Markdown فائلیں دکھائیں"],"WkyP2p": ["مہارتوں کا سیکشن"],"WmPbvm": ["مصنوعات کی اپ ڈیٹس اپنے اِن باکس میں پائیں۔"],@@ -2342,7 +2346,6 @@"XV5sC0": ["ورک ٹری کھولیں"],"XVnIvs": ["مہارتیں نصب کریں"],"XW18jo": ["صفحے کے عنوانات کا جواب کامیابی کے اسکیما سے میل نہیں کھایا"],- "XWEqQj": [["days"], "دن"],"XXA1b_": [["componentLabel"], " (خالی)"],"XYZ7tp": ["ناقابلِ حل"],"XYlJJT": ["ترتیب دیا جا رہا ہے"],@@ -2590,7 +2593,6 @@"کسی دوسری دستاویز کے MirrorSource بلاک کی صرف پڑھنے والی نقل۔ ماخذ پر ترمیم کریں اور یہ براہِ راست تازہ ہو جاتی ہے۔"],"_XWY2J": ["ٹرمینل بند"],- "_YEyHO": ["حل شدہ تبصرے دکھائیں"],"_YWqV2": ["OpenKnowledge نے ایک تنازع حل کیا"],"_ayOfA": ["ایک نالج بیس جو Google کے Open Knowledge Format کی پیروی کرتا ہے، جو آپ کی معلومات کو منظم کرنے کا ایک مشترکہ طریقہ ہے۔ اگر آپ چاہتے ہیں کہ آپ کے نوٹس اس فارمیٹ کو سمجھنے والے دیگر ٹولز کے ساتھ اچھی طرح کام کریں تو یہ منتخب کریں۔"@@ -2602,7 +2604,6 @@"_gO_m8": ["آپ کی منظوری کا انتظار ہے"],"_gkGSK": ["ٹیمپلیٹ حذف کیا"],"_mcDqU": ["اس ماخذ پر ", ["count"], " مہارتیں"],- "_oqig9": [["hours"], "گھ"],"_pY_Vq": ["ریپازٹری منتقل ہو گئی، اس کا نام بدل گیا، یا وہ حذف ہو گئی۔"],"_qD6mn": ["وہ فولڈر منتخب کریں جہاں آپ نے اسے کلون کیا ہے۔"],"_rP3HI": [["minutes"], " منٹ پہلے"],@@ -3037,6 +3038,7 @@"gBbxn_": ["سائن اِن کی حالت جانچی جا رہی ہے"],"gGVP4q": ["<0>+</0> <1/> <2>مہارت بنائیں</2> <3/> <4>مہارت اپ لوڈ کریں</4> پر کلک کریں۔"],"gHSAWT": ["ورک ٹری <0>“<1>", ["typedName"], "</1>”</0> بنائیں"],+ "gHb5bB": ["حل شدہ تبصرے دکھائیں (", ["0"], ")"],"gITz7o": ["CodeMirror کے معیاری سورس ایڈیٹر نیویگیشن کی میپ کے ذریعے کرسر ہلائیں یا انتخاب بڑھائیں۔"],@@ -3261,7 +3263,6 @@"iz1LdD": ["آخری بار یہاں لکھنے کے بعد OK سے باہر تبدیل ہوا — دکھائی گئی حالت وہی ہے جو اب ڈسک پر ہے"],- "j0ItfO": ["حل شدہ دکھائیں (", ["0"], ")"],"j15ZSH": ["تبصرے یہاں بھیجیں"],"j2229h": ["OpenKnowledge کی فائلیں ہٹائی جا رہی ہیں…"],"j2kt1j": [@@ -3365,7 +3366,6 @@["targetNoun"]," ظاہر ہو جائے گا۔"],- "kMKqP_": ["یہ تبصرے چھپائیں"],"kNGLX6": ["دوبارہ کوشش جاری ہے…"],"kNqMMd": ["فولڈر"],"kRTXGw": [@@ -3611,7 +3611,6 @@"nBgzKO": ["اسے ماخذ بنائیں — مہارت کا اصل فولڈر یہاں منتقل ہو جائے گا"],"nCzR-G": ["کوڈ ", ["userCode"], " نقل کریں"],"nDT8qt": [["0"], " کا ابتدائیہ ہو گیا مگر یہ کھل نہیں سکا۔"],- "nG-XA9": ["لنگر انداز متن غائب ہو گیا۔ آپ اسے منتخب متن پر دوبارہ رکھ سکتے ہیں۔"],"nMSYz5": ["یہ راستہ بیرونی والیوم پر ہے (/Volumes/...)۔ ڈرائیو نکالنے پر OpenKnowledge فائلوں کا سراغ کھو دے گا۔"],@@ -3676,6 +3675,7 @@"nzaV6Q": ["صفحات کے تھمب نیلز"],"o0bHtA": ["بذریعہ OpenKnowledge"],"o49mDZ": ["ٹائم لائن کی تاریخ لوڈ ہو رہی ہے"],+ "o7AkQ0": ["حل شدہ دکھائیں"],"o9CrsQ": ["research-note"],"o9fPtM": ["ماخذ سے خودکار اپ ڈیٹ"],"o9yN4T": ["ری سائیکل بن میں منتقل کریں"],@@ -3909,7 +3909,6 @@"roAe2K": ["لنک کا URL"],"roiUQQ": ["یہ صفحہ ابھی کسی چیز سے لنک نہیں کرتا۔"],"rppgXF": ["منقطع کیا جا رہا ہے"],- "rscgd_": [["0"], " میں اس تبصرے پر جائیں"],"rssK8c": ["نظر انداز کرنے کے پیٹرنز (خام متن)"],"rtdR4v": ["فائلیں دکھائیں یا چھپائیں"],"rtir7c": ["نامعلوم"],diff --git a/packages/app/src/locales/ur/messages.po b/packages/app/src/locales/ur/messages.poindex dbded9c15..71bcbf506 100644--- a/packages/app/src/locales/ur/messages.po+++ b/packages/app/src/locales/ur/messages.po@@ -511,6 +511,11 @@ msgstr "{conflictCount, plural, one {# فائل متصادم} other {# فائلmsgid "{count, plural, one {# comment} other {# comments}}"msgstr "{count, plural, one {# تبصرہ} other {# تبصرے}}"+#. placeholder {0}: docs.length+#: src/comments/comment-chips.tsx+msgid "{count, plural, one {# comment} other {# comments}} across {0, plural, one {# file} other {# files}}"+msgstr "{count, plural, one {# تبصرہ} other {# تبصرے}} {0, plural, one {# فائل} other {# فائلوں}} میں"+#: src/components/settings/applies-to-folder-picker.tsxmsgid "{count, plural, one {# doc} other {# docs}}"msgstr "{count, plural, one {# دستاویز} other {# دستاویزات}}"@@ -559,10 +564,6 @@ msgstr "اس ماخذ پر {count} مہارتیں"msgid "{days, plural, one {# day ago} other {# days ago}}"msgstr "{days, plural, one {# دن پہلے} other {# دن پہلے}}"-#: src/comments/ThreadCard.tsx-msgid "{days}d"-msgstr "{days}دن"-#: src/components/acp/ThreadHistoryMenu.tsxmsgid "{days}d ago"msgstr "{days} دن پہلے"@@ -657,10 +658,6 @@ msgstr "{folderCount, plural, one {فولڈر} other {فولڈرز}}"msgid "{formatted} GitHub stars"msgstr "{formatted} GitHub ستارے"-#: src/comments/ThreadCard.tsx-msgid "{hours}h"-msgstr "{hours}گھ"-#: src/components/acp/ThreadHistoryMenu.tsx#: src/components/ActivityModeContent.tsx#: src/components/ActivityPanelFileRow.tsx@@ -727,10 +724,6 @@ msgstr "سطر {displayLine} پر {localizedMessage}"msgid "{mins, plural, one {# min ago} other {# min ago}}"msgstr "{mins, plural, one {# منٹ پہلے} other {# منٹ پہلے}}"-#: src/comments/ThreadCard.tsx-msgid "{mins}m"-msgstr "{mins}من"-#: src/components/SyncStatusBadge.tsxmsgid "{minutes} min ago"msgstr "{minutes} منٹ پہلے"@@ -813,10 +806,6 @@ msgstr "{propPanelDescriptorLabel} کی خصوصیات"msgid "{seconds}s ago"msgstr "{seconds} سیکنڈ پہلے"-#: src/comments/ThreadCard.tsx-msgid "{secs}s"-msgstr "{secs}س"-#: src/editor/extensions/JsxComponentView.tsxmsgid "{settingsDescriptorLabel} properties"msgstr "{settingsDescriptorLabel} کی خصوصیات"@@ -2500,7 +2489,6 @@ msgstr "{repoName} کلون کیا جا رہا ہے..."msgid "Cloning..."msgstr "کلون کیا جا رہا ہے..."-#: src/comments/ThreadCard.tsx#: src/components/EditorTabs.tsx#: src/components/FeedbackForm.tsx#: src/components/InstallInClaudeDesktopDialog.tsx@@ -3391,6 +3379,10 @@ msgstr "منقطع نہیں ہو سکا — براہِ کرم دوبارہ کوmsgid "Couldn't duplicate \"{0}\": {1}"msgstr "«{0}» کی نقل نہیں بن سکی: {1}"+#: src/comments/reveal-comment.ts+msgid "Couldn't find that passage — the text it was on may have changed."+msgstr "وہ اقتباس نہیں مل سکا — جس متن پر یہ تھا وہ شاید تبدیل ہو چکا ہے۔"+#. placeholder {0}: item.displayName#: src/components/acp/ThreadView.tsxmsgid "Couldn't finish installing {0} — see below."@@ -4323,10 +4315,6 @@ msgstr "مینو میں ملتے جلتے ناموں والے ٹیمپلیٹسmsgid "Discard local edits, restore the installed version"msgstr "مقامی ترامیم رد کریں، نصب شدہ ورژن بحال کریں"-#: src/comments/CommentSelectionAffordance.tsx-msgid "Discard this comment"-msgstr "یہ تبصرہ رد کریں"-#: src/components/settings/AccountSection.tsxmsgid "Disconnect"msgstr "منقطع کریں"@@ -4426,7 +4414,6 @@ msgstr "<0>#{tagName}</0> سے ٹیگ شدہ دستاویزات"msgid "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."msgstr "<0>مہارتیں</0> نظر نہیں آ رہیں؟ پہلے <1>ترتیبات <2/> صلاحیتیں <3/> کوڈ کا اجرا اور فائل سازی</1> فعال کریں۔"-#: src/comments/comment-chips.tsx#: src/comments/ThreadCard.tsxmsgid "Don't send this comment"msgstr "یہ تبصرہ نہ بھیجیں"@@ -5842,15 +5829,6 @@ msgstr "سطر {0} پر جائیں"msgid "Go to line {0} in {1}"msgstr "{1} میں سطر {0} پر جائیں"-#. placeholder {0}: docBasename(thread.docName)-#: src/comments/comment-chips.tsx-msgid "Go to this comment in {0}"-msgstr "{0} میں اس تبصرے پر جائیں"--#: src/comments/comment-chips.tsx-msgid "gone"-msgstr "غائب"-#: src/components/FeedbackForm.tsxmsgid "Good"msgstr "اچھا"@@ -6062,9 +6040,10 @@ msgstr "تبدیلی چھپائیں"msgid "Hide resolved"msgstr "حل شدہ چھپائیں"+#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Hide resolved comments"-msgstr "حل شدہ تبصرے چھپائیں"+msgid "Hide resolved comments ({0})"+msgstr "حل شدہ تبصرے چھپائیں ({0})"#: src/components/BottomComposer.tsxmsgid "Hide selection preview"@@ -6079,10 +6058,6 @@ msgstr "سائیڈ بار چھپائیں"msgid "Hide Terminal"msgstr "Terminal چھپائیں"-#: src/comments/comment-chips.tsx-msgid "Hide these comments"-msgstr "یہ تبصرے چھپائیں"-#: src/components/EditorTabTargetMenuItems.tsx#: src/components/FileTree.tsxmsgid "Hide this file"@@ -6307,10 +6282,6 @@ msgstr "ایپ میں (بیٹا)"msgid "In the Claude Desktop App"msgstr "Claude Desktop App میں"-#: src/comments/comment-chips.tsx-msgid "Include this comment in the next send"-msgstr "اگلی بار بھیجتے وقت یہ تبصرہ شامل کریں"-#: src/lib/keyboard-shortcuts.tsmsgid "Indent or outdent list item"msgstr "فہرست آئٹم کی اندروں یا باہر کی جگہ بدلیں"@@ -6668,6 +6639,10 @@ msgstr "آخری ٹیب پر جائیں"msgid "Jump to page {pageNumber}"msgstr "صفحہ {pageNumber} پر جائیں"+#: src/comments/ThreadCard.tsx+msgid "Jump to selected text in property"+msgstr "پراپرٹی میں منتخب متن پر جائیں"+#: src/lib/keyboard-shortcuts.tsmsgid "Jump to tab 1-8"msgstr "ٹیب 1-8 پر جائیں"@@ -7165,7 +7140,12 @@ msgstr "ڈھانچے کا نقشہ بنائیں"msgid "Mark a block as the source of truth. Mirrors elsewhere update live as you edit it."msgstr "کسی بلاک کو سچائی کا ماخذ نشان زد کریں۔ اس میں ترمیم کرتے ہی دوسری جگہوں کے مررز براہِ راست تازہ ہو جاتے ہیں۔"-#: src/comments/CommentSendFooter.tsx+#. placeholder {0}: docBasename(group.docName)+#: src/comments/CommentListPanel.tsx+msgid "Mark every comment in {0} to send"+msgstr "{0} کے تمام تبصرے بھیجنے کے لیے نشان زد کریں"++#: src/comments/CommentListPanel.tsxmsgid "Mark every comment to send"msgstr "بھیجنے کے لیے تمام تبصرے منتخب کریں"@@ -8405,10 +8385,6 @@ msgstr "CodeMirror کا لِنٹ تشخیصی پینل کھولیں۔"msgid "Open comment"msgstr "تبصرہ کھولیں"-#: src/comments/CommentSelectionAffordance.tsx-msgid "Open Comments"-msgstr "تبصرے کھولیں"-#: src/components/command-palette-commands.ts#: src/lib/platform-labels.tsmsgid "Open containing folder"@@ -8882,10 +8858,6 @@ msgstr "اصل فائل — اس ایجنٹ کی ترامیم سے پہلے۔"msgid "Orphan mode"msgstr "یتیم موڈ"-#: src/comments/ThreadCard.tsx-msgid "Orphaned"-msgstr "یتیم"-#: src/components/GraphPanel.tsxmsgid "Orphans"msgstr "یتیم صفحات"@@ -9370,7 +9342,6 @@ msgid "project"msgstr "پروجیکٹ"#: src/components/CommandPalette.tsx-#: src/components/PanelScopeHeader.tsx#: src/components/settings/ScopeBadge.tsx#: src/lib/skill-scope.tsmsgid "Project"@@ -10681,10 +10652,6 @@ msgstr "اگلا موقع منتخب کریں"msgid "Select the full source document."msgstr "پورا سورس دستاویز منتخب کریں۔"-#: src/comments/ThreadCard.tsx-msgid "Select this text in the property"-msgstr "خصوصیت میں یہ متن منتخب کریں"-#: src/lib/keyboard-shortcuts.tsmsgid "Select, enter, or leave block components and fallback source blocks from keyboard boundaries."msgstr "کی بورڈ کی حدود سے بلاک اجزاء اور متبادل سورس بلاکس منتخب کریں، ان میں داخل ہوں یا ان سے نکلیں۔"@@ -11143,14 +11110,14 @@ msgstr "مسائل کے اشارے دکھائیں"msgid "Show replace"msgstr "تبدیلی دکھائیں"-#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Show resolved ({0})"-msgstr "حل شدہ دکھائیں ({0})"+msgid "Show resolved"+msgstr "حل شدہ دکھائیں"+#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Show resolved comments"-msgstr "حل شدہ تبصرے دکھائیں"+msgid "Show resolved comments ({0})"+msgstr "حل شدہ تبصرے دکھائیں ({0})"#: src/components/BottomComposer.tsxmsgid "Show selection preview"@@ -11170,8 +11137,8 @@ msgid "Show Terminal"msgstr "Terminal دکھائیں"#: src/comments/comment-chips.tsx-msgid "Show these comments"-msgstr "یہ تبصرے دکھائیں"+msgid "Show these comments in the Comments panel"+msgstr "ان تبصروں کو تبصرے پینل میں دکھائیں"#: src/editor/components/Pdf.tsxmsgid "Show thumbnails"@@ -12067,6 +12034,10 @@ msgstr "رپورٹ کا شکریہ!"msgid "That branch is already open in another worktree."msgstr "وہ برانچ پہلے سے کسی اور ورک ٹری میں کھلی ہے۔"+#: src/comments/reveal-comment.ts+msgid "That document didn't open in time. Try again once it has synced."+msgstr "وہ دستاویز وقت پر نہیں کھلی۔ ہم آہنگ ہونے کے بعد دوبارہ کوشش کریں۔"+#: src/components/settings/SearchSection.tsxmsgid "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."msgstr "وہ اینڈ پوائنٹ استعمال نہیں ہو سکتا۔ https:// والا URL درج کریں — http:// کی اجازت صرف localhost کے لیے ہے۔"@@ -12112,10 +12083,6 @@ msgstr "ایجنٹ رک نہیں رہا۔ زبردستی روکنے سے یہ چmsgid "The agent's persona, values, and voice."msgstr "ایجنٹ کی شخصیت، اقدار اور لہجہ۔"-#: src/comments/ThreadCard.tsx-msgid "The anchored text is gone. You can re-place it on selected text."-msgstr "لنگر انداز متن غائب ہو گیا۔ آپ اسے منتخب متن پر دوبارہ رکھ سکتے ہیں۔"-#: src/components/ProblemsPanel.tsxmsgid "The audit could not be completed. Try again."msgstr "آڈٹ مکمل نہیں ہو سکا۔ دوبارہ کوشش کریں۔"@@ -12194,6 +12161,10 @@ msgstr "وہ ماڈل شناخت جو آپ کا اینڈ پوائنٹ فراہمmsgid "the open agent"msgstr "کھلا ہوا ایجنٹ"+#: src/comments/ThreadCard.tsx+msgid "The original text was deleted. You can re-place this comment on selected text."+msgstr "اصل متن حذف کر دیا گیا تھا۔ آپ اس تبصرے کو منتخب متن پر دوبارہ رکھ سکتے ہیں۔"+#: src/editor/components/PreviewBlockedNotice.tsxmsgid "The preview blocks resources that don't meet its security rules (for example plain http:// URLs, or code that uses eval). The content above may render incompletely."msgstr "پیش منظر ان وسائل کو روکتا ہے جو اس کے سیکیورٹی قواعد پر پورے نہ اتریں (مثلاً سادہ http:// والے URLs، یا وہ کوڈ جو eval استعمال کرے)۔ اوپر کا مواد نامکمل رینڈر ہو سکتا ہے۔"@@ -12219,10 +12190,6 @@ msgstr "فراہم کنندہ نے درخواست مسترد کر دی (HTTP {0}msgid "The provider rejected the request. Check the API key and the model id."msgstr "فراہم کنندہ نے درخواست مسترد کر دی۔ API کلید اور ماڈل شناخت دیکھیں۔"-#: src/comments/comment-chips.tsx-msgid "The quoted text is no longer in the document — the agent will be told."-msgstr "اقتباس شدہ متن اب دستاویز میں نہیں ہے — ایجنٹ کو بتا دیا جائے گا۔"-#: src/components/ReportBugDialogBody.tsxmsgid "The report service couldn't be reached."msgstr "رپورٹ کی سروس تک رسائی نہیں ہو سکی۔"@@ -12599,7 +12566,7 @@ msgstr "یہ «{2}» اسکل سے {0}/{1} کو مستقل طور پر ہٹا دmsgid "This permanently removes {path}. Agents that reference this template by name will fail until it's recreated or replaced by one in a parent folder."msgstr "یہ {path} کو مستقل طور پر ہٹا دیتا ہے۔ جو ایجنٹس اس ٹیمپلیٹ کا نام سے حوالہ دیتے ہیں وہ اس کے دوبارہ بننے یا کسی والد فولڈر کے ٹیمپلیٹ سے بدلنے تک ناکام رہیں گے۔"-#: src/comments/CommentsTab.tsx+#: src/components/PanelScopeHeader.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "This project"msgstr "یہ پروجیکٹ"@@ -13090,10 +13057,15 @@ msgstr "نامعلوم خرابی"msgid "unlink"msgstr "لنک ختم کریں"-#: src/comments/CommentSendFooter.tsx+#: src/comments/CommentListPanel.tsxmsgid "Unmark every comment"msgstr "تمام تبصروں کا انتخاب ہٹائیں"+#. placeholder {0}: docBasename(group.docName)+#: src/comments/CommentListPanel.tsx+msgid "Unmark every comment in {0}"+msgstr "{0} کے تمام تبصروں کا نشان ہٹائیں"+#: src/editor/slash-command/items.tsxmsgid "Unordered list of items."msgstr "آئٹمز کی غیر مرتب فہرست۔"@@ -13399,6 +13371,10 @@ msgstr "{name} دیکھیں"msgid "View as text"msgstr "متن کے طور پر دیکھیں"+#: src/comments/CommentSelectionAffordance.tsx+msgid "View comments"+msgstr "تبصرے دیکھیں"+#: src/components/ActivityPanelBurstRow.tsxmsgid "View diff for edit {burstNumber} of {docName}"msgstr "{docName} کی ترمیم {burstNumber} کا فرق دیکھیں"diff --git a/packages/app/src/locales/zh-Hans/messages.json b/packages/app/src/locales/zh-Hans/messages.jsonindex 564bd30e9..1c5df2fdb 100644--- a/packages/app/src/locales/zh-Hans/messages.json+++ b/packages/app/src/locales/zh-Hans/messages.json@@ -46,6 +46,7 @@"03wKPg": ["报告能帮我们找到原因。在你确认之前不会发送任何内容。"],"04RA0-": ["开启同步失败——", ["detail"]],"04XyCH": ["添加一个受管理的块到 ", ["0"]],+ "05F1GY": ["原始文本已被删除。你可以将此评论重新定位到选中的文本上。"],"05n5wS": ["文档提及建议"],"06SZfb": ["已创建模板“", ["trimmedTitle"], "”"],"07eGJB": ["无法移动技能:", ["0"]],@@ -112,7 +113,6 @@"11ukmX": ["重命名失败:", ["0"]],"12F9WL": ["(无 id)"],"151wvk": ["显示侧边栏"],- "15MMFT": ["显示这些评论"],"15ZHCt": ["这个版本没有正文改动。"],"161NCV": ["正在停止"],"16D5Zj": ["确定要删除 ", ["itemName"], " 吗?此操作无法撤销。"],@@ -181,7 +181,6 @@"2QM24L": ["所有标签"],"2RnFoM": ["无法恢复此对话:", ["0"]],"2Snes1": ["这会把链接地址发送到你的电脑之外"],- "2UgoBZ": ["已消失"],"2VSPan": ["已关闭 Terminal,为智能体面板腾出空间。"],"2XQ8Ww": ["智能体编辑时打开预览"],"2YOwme": ["已重启——现在运行的是 v", ["appRuntime"], "。"],@@ -202,6 +201,7 @@"2vIPtm": ["在新标签页中打开链接"],"2wTb8w": ["在「插件」下它自己的页面中进行设置。"],"2wxgft": ["重命名"],+ "2zvUIK": ["在评论面板中显示这些评论"],"322lyb": ["突出显示提示、警告和备注。"],"34qyH5": ["无法连接到服务器"],"36WXSC": ["无法删除模板:", ["error"]],@@ -297,7 +297,6 @@"4buZWd": ["继承自 ", ["path"]],"4c_a6S": ["还没有设置任何内容。"],"4d0VYJ": ["我们将根据此名称创建安全的主题 ID。"],- "4eO-iB": ["丢弃这条评论"],"4g19V6": ["更新属性失败"],"4h3e0H": ["无法更新技能共享设置——", ["detail"], "。"],"4hJhzz": ["表格"],@@ -315,7 +314,6 @@"4sKwf6": ["文件已存在"],"4sUdTJ": ["带主题的预览"],"4uNLmk": ["正在拉取"],- "4uaCUA": [["mins"], "分"],"4v2Yyz": ["当焦点在「文件」侧边栏时,选中文件树中所有可见的行。"],"4wo5UV": ["安装选中项"],"4xtLTl": ["已隐藏文件夹“", ["basename"], "”"],@@ -341,7 +339,6 @@"5ClEAu": ["用于跨文档归类的行内话题标签。"],"5D3Ior": ["隐藏文件夹"],"5F5HYj": ["领先 ", ["ahead"], " 个,落后 ", ["behind"], " 个"],- "5GBQ-F": ["在属性中选中这段文本"],"5GKMSz": ["增加或减少当前列表项的缩进。"],"5GRxoA": ["在当前工作区中搜索文件、文件夹和命令。"],"5HJpFY": ["排在当前回合之后"],@@ -363,6 +360,11 @@"这个端点忽略了你配置的向量维度。移除 <0>search.semantic.dimensions</0> 即可使用模型自己的维度。"],"5Tk8Fb": ["正在加载文件"],+ "5TmrYN": [+ ["count", "plural", { "other": ["#", " 条评论"] }],+ ",分布在 ",+ ["0", "plural", { "other": ["#", " 个文件"] }]+ ],"5Umg9i": ["关闭外部链接预览"],"5WDhAk": ["链接到某个页面或外部 URL。"],"5Y17qa": ["适用于(glob 模式;以 ! 开头表示排除;留空表示所有文档)"],@@ -840,6 +842,7 @@"DbILZA": ["没有匹配项。部分文件不参与搜索(隐藏或被忽略的文件)。"],"DcFr-y": ["OpenKnowledge 删除了一个文档"],"DcLaew": ["自定义主题"],+ "Dd6j2Q": ["查看评论"],"DeDYLr": ["无法识别的维基链接"],"DgcGrb": [["fileCount", "plural", { "other": ["文件"] }]],"DhLHEb": ["加载动态失败"],@@ -985,6 +988,7 @@"FgQ7XZ": ["无法加载你的错误报告。"],"FgRAvd": ["日志与系统信息"],"Fhp4Gn": ["查看插件"],+ "FiyNln": ["跳到属性中选中的文本"],"FjkaiT": ["缩小"],"FqGWeR": ["无法连接到智能体注册表。"],"FqTpiN": ["鸟类维基"],@@ -1006,7 +1010,6 @@"G0YZ-I": ["增加或减少列表项缩进"],"G1Gw0v": ["新建模板"],"G1XxbZ": ["复选框"],- "G1zJlD": ["隐藏已解决的评论"],"G4m8rL": ["对所选内容发表评论"],"G6Lrs_": ["让 ", ["0"], " 不再读取这个技能"],"G7-rf8": ["模式语法错误:", ["message"]],@@ -1174,6 +1177,7 @@"JAQ09e": ["正在回味…"],"JCxGEX": ["没有孤立页面。只有既无入链又无出链的页面才会出现在这里。"],"JDHcCM": ["正在加载热门技能"],+ "JDQ5I5": ["该文档未能及时打开。请在同步完成后重试。"],"JE21eh": ["指向 ", ["targetPath"], " 的符号链接"],"JG_8KT": ["无法从 GitHub 拉取。请检查你的网络连接和登录状态,然后重试。"],"JHf6qZ": ["[email protected]"],@@ -1243,6 +1247,7 @@"KZLdgR": ["最新的规格见 <0>#design-docs</0>。"],"K_vT1F": ["上游同步"],"KaFCD3": ["在新标签页中打开这个链接并折叠关系图。"],+ "KeXgA-": ["找不到该段落 — 它所在的文本可能已更改。"],"Kf7GG5": ["正在重启服务器…"],"Kge76t": ["行选项"],"Kh1n4a": ["<", ["componentName"], "> 不是已知的组件。复制源码以便在别处使用,或删除这个块。"],@@ -1344,7 +1349,6 @@"M92_0q": ["关闭评论"],"M9597s": ["正在准备共享 URL…"],"MBKkUy": ["skills.sh 不可用;改为显示 GitHub 结果(没有安装量排名)。"],- "MBe6TE": ["被引用的文本已不在文档中——会告知智能体。"],"MCjC9A": ["删除 ", ["deleteDescriptorLabel"]],"MDBJwN": ["不好用"],"MDZSJe": ["智能体执行定时任务的时间。"],@@ -1446,7 +1450,6 @@"NeY1Np": ["Slidev 启动超时。请重试。"],"NfraGd": ["安装 Slidev 的其他方式"],"NgZwB0": ["已开启 ", ["enabledCount"], "/", ["0"]],- "NiGIcB": ["打开评论"],"NjrIak": ["文件:<0>", ["fixedName"], ".md</0>"],"NkNfSr": ["编辑 ", ["tag"]],"NkXEFS": ["恢复失败——文档未改变"],@@ -1545,6 +1548,7 @@"PBxg_E": ["暂时不用"],"PCSkw2": ["技能"],"PGPGsL": ["添加描述"],+ "PHHEuH": ["隐藏已解决的评论(", ["0"], ")"],"PIMM5l": ["订阅成功!"],"PKLY-1": ["正在打开…"],"PKjGhT": ["标题"],@@ -1638,7 +1642,6 @@"QlxHAH": ["正在显示 \"", ["semanticResultsLabel"], "\" 的结果"],"QohqVL": ["此智能体不提供斜杠命令"],"QpSqAP": ["本项目未启用真实 shell。启用后,命令将以你的用户账户的完整权限运行。"],- "Qpfxa1": [["secs"], "秒"],"QqBQu1": ["标签 <0>(可见的链接文本)</0>"],"Qvls7J": ["工程规格"],"Qw-7Ie": [@@ -1758,6 +1761,7 @@],"T-654M": ["正在加载 PDF"],"T0OVm7": ["默认分支受保护——推送需要通过 pull request。"],+ "T2fvhw": ["取消勾选 ", ["0"], " 中的所有评论"],"T3Mld1": ["窗口"],"T3j-7o": ["例如:同步过程中切换了项目"],"TBfy1C": ["无法启动 Slidev。"],@@ -1807,7 +1811,6 @@"UDFrWm": ["正在检查 GitHub 连接…"],"UD_onR": ["正在琢磨…"],"UDb2YD": ["React"],- "UEdTEN": ["孤立"],"UGeJuP": ["允许的值(留空 = 任意)"],"UGtPix": ["GitHub 连接已过期。请重新连接以继续。"],"UH0Zqw": ["这不是常规主题文件"],@@ -1869,7 +1872,6 @@"UkQGhd": ["隐藏替换"],"UlVARL": ["启用 Slidev"],"Uobeu9": ["把技能添加到 ", ["rootRel"], "——", ["0"], " 也会读取该处"],- "Uoux8m": ["下次发送时包含这条评论"],"Up2_7p": ["复制完整路径"],"UpCz01": ["这个文档"],"UpOct_": ["把你的评论写在这条消息里"],@@ -1984,6 +1986,7 @@"Wh0im4": ["正在编辑 [[", ["realCurrentDoc"], "]]"],"WhOsNE": ["删除线"],"Wi-VWy": ["无法发送报告"],+ "WkQ0Z_": ["勾选 ", ["0"], " 中的所有评论以发送"],"WkTLN7": ["只显示 markdown 文件"],"WkyP2p": ["技能区"],"WmPbvm": ["把产品动态发到你的邮箱。"],@@ -2031,7 +2034,6 @@"XV5sC0": ["打开 worktree"],"XVnIvs": ["安装技能"],"XW18jo": ["页面标题响应不符合成功时的架构"],- "XWEqQj": [["days"], "天"],"XXA1b_": [["componentLabel"], "(空)"],"XYZ7tp": ["无法解析"],"XYlJJT": ["正在设置"],@@ -2246,7 +2248,6 @@"_W-elG": ["(内联)"],"_WPP7e": ["来自另一个文档的 MirrorSource 块的只读副本。在来源处编辑,这里会实时更新。"],"_XWY2J": ["终端已禁用"],- "_YEyHO": ["显示已解决的评论"],"_YWqV2": ["OpenKnowledge 解决了一个冲突"],"_ayOfA": ["遵循 Google Open Knowledge Format 的知识库,一种整理知识的通用方式。如果你希望自己的笔记能与理解该格式的其他工具良好协作,请选这个。"@@ -2258,7 +2259,6 @@"_gO_m8": ["正在等待你的批准"],"_gkGSK": ["已删除模板"],"_mcDqU": ["此来源有 ", ["count"], " 个技能"],- "_oqig9": [["hours"], "小时"],"_pY_Vq": ["这个仓库被移动、重命名或删除了。"],"_qD6mn": ["选择你克隆到的那个文件夹。"],"_rP3HI": [["minutes"], " 分钟前"],@@ -2633,6 +2633,7 @@"gBbxn_": ["正在检查登录状态"],"gGVP4q": ["依次点击 <0>+</0> <1/> <2>创建技能</2> <3/> <4>上传技能</4>。"],"gHSAWT": ["创建 worktree <0>“<1>", ["typedName"], "</1>”</0>"],+ "gHb5bB": ["显示已解决的评论(", ["0"], ")"],"gITz7o": ["通过 CodeMirror 标准的源码编辑器导航按键映射移动光标或扩展选区。"],"gJR87V": ["无法创建项目文件夹。请换一个文件夹。"],"gKi-a_": ["新建项目"],@@ -2825,7 +2826,6 @@"iy64Li": ["完全同步——你的编辑会自动提交并推送到你的远程仓库。"],"iycx_A": ["正在推送"],"iz1LdD": ["自上次在这里写入后,它在 OK 之外被改动过——显示的是磁盘上现在的状态"],- "j0ItfO": ["显示已解决的(", ["0"], ")"],"j15ZSH": ["把评论发送到"],"j2229h": ["正在删除 OpenKnowledge 的文件…"],"j2kt1j": [@@ -2923,7 +2923,6 @@["targetNoun"],"就会出现。"],- "kMKqP_": ["隐藏这些评论"],"kNGLX6": ["正在重试…"],"kNqMMd": ["文件夹"],"kRTXGw": [@@ -3123,7 +3122,6 @@"nBgzKO": ["把这里设为来源——技能的真实文件夹会移到这里"],"nCzR-G": ["复制验证码 ", ["userCode"]],"nDT8qt": ["已初始化 ", ["0"], ",但无法打开它。"],- "nG-XA9": ["锚定的文本已经不见了。你可以把它重新定位到选中的文本上。"],"nMSYz5": ["这个路径位于外置卷(/Volumes/...)。驱动器弹出后,OpenKnowledge 会跟丢这些文件。"],"nNYV3Y": ["另外还有 ", ["remaining"], " 个"],"nOEDQs": ["更新同步模式失败——", ["detail"]],@@ -3173,6 +3171,7 @@"nzaV6Q": ["页面缩略图"],"o0bHtA": ["来自 OpenKnowledge"],"o49mDZ": ["正在加载时间线历史"],+ "o7AkQ0": ["显示已解决"],"o9CrsQ": ["research-note"],"o9fPtM": ["从来源自动更新"],"o9yN4T": ["移到回收站"],@@ -3394,7 +3393,6 @@"roAe2K": ["链接 URL"],"roiUQQ": ["这个页面还没有链接到任何地方。"],"rppgXF": ["正在断开连接"],- "rscgd_": ["在 ", ["0"], " 中查看这条评论"],"rssK8c": ["忽略模式(纯文本)"],"rtdR4v": ["显示或隐藏「文件」"],"rtir7c": ["未知"],diff --git a/packages/app/src/locales/zh-Hans/messages.po b/packages/app/src/locales/zh-Hans/messages.poindex ce572999a..80ee6b1da 100644--- a/packages/app/src/locales/zh-Hans/messages.po+++ b/packages/app/src/locales/zh-Hans/messages.po@@ -511,6 +511,11 @@ msgstr "{conflictCount, plural, other {# 个文件有冲突}}"msgid "{count, plural, one {# comment} other {# comments}}"msgstr "{count, plural, other {# 条评论}}"+#. placeholder {0}: docs.length+#: src/comments/comment-chips.tsx+msgid "{count, plural, one {# comment} other {# comments}} across {0, plural, one {# file} other {# files}}"+msgstr "{count, plural, other {# 条评论}},分布在 {0, plural, other {# 个文件}}"+#: src/components/settings/applies-to-folder-picker.tsxmsgid "{count, plural, one {# doc} other {# docs}}"msgstr "{count, plural, other {# 个文档}}"@@ -559,10 +564,6 @@ msgstr "此来源有 {count} 个技能"msgid "{days, plural, one {# day ago} other {# days ago}}"msgstr "{days, plural, other {# 天前}}"-#: src/comments/ThreadCard.tsx-msgid "{days}d"-msgstr "{days}天"-#: src/components/acp/ThreadHistoryMenu.tsxmsgid "{days}d ago"msgstr "{days} 天前"@@ -657,10 +658,6 @@ msgstr "{folderCount, plural, other {文件夹}}"msgid "{formatted} GitHub stars"msgstr "{formatted} 个 GitHub star"-#: src/comments/ThreadCard.tsx-msgid "{hours}h"-msgstr "{hours}小时"-#: src/components/acp/ThreadHistoryMenu.tsx#: src/components/ActivityModeContent.tsx#: src/components/ActivityPanelFileRow.tsx@@ -727,10 +724,6 @@ msgstr "第 {displayLine} 行:{localizedMessage}"msgid "{mins, plural, one {# min ago} other {# min ago}}"msgstr "{mins, plural, other {# 分钟前}}"-#: src/comments/ThreadCard.tsx-msgid "{mins}m"-msgstr "{mins}分"-#: src/components/SyncStatusBadge.tsxmsgid "{minutes} min ago"msgstr "{minutes} 分钟前"@@ -813,10 +806,6 @@ msgstr "{propPanelDescriptorLabel} 属性"msgid "{seconds}s ago"msgstr "{seconds} 秒前"-#: src/comments/ThreadCard.tsx-msgid "{secs}s"-msgstr "{secs}秒"-#: src/editor/extensions/JsxComponentView.tsxmsgid "{settingsDescriptorLabel} properties"msgstr "{settingsDescriptorLabel} 属性"@@ -2500,7 +2489,6 @@ msgstr "正在克隆 {repoName}…"msgid "Cloning..."msgstr "正在克隆…"-#: src/comments/ThreadCard.tsx#: src/components/EditorTabs.tsx#: src/components/FeedbackForm.tsx#: src/components/InstallInClaudeDesktopDialog.tsx@@ -3391,6 +3379,10 @@ msgstr "无法断开连接——请重试。"msgid "Couldn't duplicate \"{0}\": {1}"msgstr "无法复制 \"{0}\":{1}"+#: src/comments/reveal-comment.ts+msgid "Couldn't find that passage — the text it was on may have changed."+msgstr "找不到该段落 — 它所在的文本可能已更改。"+#. placeholder {0}: item.displayName#: src/components/acp/ThreadView.tsxmsgid "Couldn't finish installing {0} — see below."@@ -4323,10 +4315,6 @@ msgstr "用于在菜单中区分名称相近的模板。"msgid "Discard local edits, restore the installed version"msgstr "丢弃本地编辑,恢复已安装的版本"-#: src/comments/CommentSelectionAffordance.tsx-msgid "Discard this comment"-msgstr "丢弃这条评论"-#: src/components/settings/AccountSection.tsxmsgid "Disconnect"msgstr "断开连接"@@ -4426,7 +4414,6 @@ msgstr "带 <0>#{tagName}</0> 标签的文档"msgid "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."msgstr "没看到<0>技能</0>?请先启用<1>设置 <2/> 功能 <3/> 代码执行与文件创建</1>。"-#: src/comments/comment-chips.tsx#: src/comments/ThreadCard.tsxmsgid "Don't send this comment"msgstr "不要发送这条评论"@@ -5842,15 +5829,6 @@ msgstr "跳转到第 {0} 行"msgid "Go to line {0} in {1}"msgstr "跳转到 {1} 的第 {0} 行"-#. placeholder {0}: docBasename(thread.docName)-#: src/comments/comment-chips.tsx-msgid "Go to this comment in {0}"-msgstr "在 {0} 中查看这条评论"--#: src/comments/comment-chips.tsx-msgid "gone"-msgstr "已消失"-#: src/components/FeedbackForm.tsxmsgid "Good"msgstr "良好"@@ -6062,9 +6040,10 @@ msgstr "隐藏替换"msgid "Hide resolved"msgstr "隐藏已解决的"+#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Hide resolved comments"-msgstr "隐藏已解决的评论"+msgid "Hide resolved comments ({0})"+msgstr "隐藏已解决的评论({0})"#: src/components/BottomComposer.tsxmsgid "Hide selection preview"@@ -6079,10 +6058,6 @@ msgstr "隐藏侧边栏"msgid "Hide Terminal"msgstr "隐藏 Terminal"-#: src/comments/comment-chips.tsx-msgid "Hide these comments"-msgstr "隐藏这些评论"-#: src/components/EditorTabTargetMenuItems.tsx#: src/components/FileTree.tsxmsgid "Hide this file"@@ -6307,10 +6282,6 @@ msgstr "在应用内(beta)"msgid "In the Claude Desktop App"msgstr "在 Claude 桌面应用中"-#: src/comments/comment-chips.tsx-msgid "Include this comment in the next send"-msgstr "下次发送时包含这条评论"-#: src/lib/keyboard-shortcuts.tsmsgid "Indent or outdent list item"msgstr "增加或减少列表项缩进"@@ -6668,6 +6639,10 @@ msgstr "跳到最后一个标签页"msgid "Jump to page {pageNumber}"msgstr "跳到第 {pageNumber} 页"+#: src/comments/ThreadCard.tsx+msgid "Jump to selected text in property"+msgstr "跳到属性中选中的文本"+#: src/lib/keyboard-shortcuts.tsmsgid "Jump to tab 1-8"msgstr "跳到第 1-8 个标签页"@@ -7165,7 +7140,12 @@ msgstr "梳理架构"msgid "Mark a block as the source of truth. Mirrors elsewhere update live as you edit it."msgstr "把某个块标记为事实来源。你编辑它时,别处的镜像会实时更新。"-#: src/comments/CommentSendFooter.tsx+#. placeholder {0}: docBasename(group.docName)+#: src/comments/CommentListPanel.tsx+msgid "Mark every comment in {0} to send"+msgstr "勾选 {0} 中的所有评论以发送"++#: src/comments/CommentListPanel.tsxmsgid "Mark every comment to send"msgstr "勾选全部评论以发送"@@ -8405,10 +8385,6 @@ msgstr "打开 CodeMirror 的检查诊断面板。"msgid "Open comment"msgstr "打开评论"-#: src/comments/CommentSelectionAffordance.tsx-msgid "Open Comments"-msgstr "打开评论"-#: src/components/command-palette-commands.ts#: src/lib/platform-labels.tsmsgid "Open containing folder"@@ -8882,10 +8858,6 @@ msgstr "原始文件——这个智能体编辑之前的版本。"msgid "Orphan mode"msgstr "孤立页模式"-#: src/comments/ThreadCard.tsx-msgid "Orphaned"-msgstr "孤立"-#: src/components/GraphPanel.tsxmsgid "Orphans"msgstr "孤立页"@@ -9370,7 +9342,6 @@ msgid "project"msgstr "项目"#: src/components/CommandPalette.tsx-#: src/components/PanelScopeHeader.tsx#: src/components/settings/ScopeBadge.tsx#: src/lib/skill-scope.tsmsgid "Project"@@ -10681,10 +10652,6 @@ msgstr "选中下一处出现"msgid "Select the full source document."msgstr "选中整个源码文档。"-#: src/comments/ThreadCard.tsx-msgid "Select this text in the property"-msgstr "在属性中选中这段文本"-#: src/lib/keyboard-shortcuts.tsmsgid "Select, enter, or leave block components and fallback source blocks from keyboard boundaries."msgstr "从键盘边界选中、进入或离开块组件和回退源码块。"@@ -11143,14 +11110,14 @@ msgstr "显示问题标记"msgid "Show replace"msgstr "显示替换"-#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Show resolved ({0})"-msgstr "显示已解决的({0})"+msgid "Show resolved"+msgstr "显示已解决"+#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Show resolved comments"-msgstr "显示已解决的评论"+msgid "Show resolved comments ({0})"+msgstr "显示已解决的评论({0})"#: src/components/BottomComposer.tsxmsgid "Show selection preview"@@ -11170,8 +11137,8 @@ msgid "Show Terminal"msgstr "显示 Terminal"#: src/comments/comment-chips.tsx-msgid "Show these comments"-msgstr "显示这些评论"+msgid "Show these comments in the Comments panel"+msgstr "在评论面板中显示这些评论"#: src/editor/components/Pdf.tsxmsgid "Show thumbnails"@@ -12067,6 +12034,10 @@ msgstr "感谢你的报告!"msgid "That branch is already open in another worktree."msgstr "那个分支已经在另一个 worktree 中打开了。"+#: src/comments/reveal-comment.ts+msgid "That document didn't open in time. Try again once it has synced."+msgstr "该文档未能及时打开。请在同步完成后重试。"+#: src/components/settings/SearchSection.tsxmsgid "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."msgstr "无法使用那个端点。请输入 https:// 的 URL——http:// 只允许用于 localhost。"@@ -12112,10 +12083,6 @@ msgstr "智能体没有停止。强制停止将关闭此对话并退出智能体msgid "The agent's persona, values, and voice."msgstr "智能体的人设、价值观和语气。"-#: src/comments/ThreadCard.tsx-msgid "The anchored text is gone. You can re-place it on selected text."-msgstr "锚定的文本已经不见了。你可以把它重新定位到选中的文本上。"-#: src/components/ProblemsPanel.tsxmsgid "The audit could not be completed. Try again."msgstr "审查未能完成。请重试。"@@ -12194,6 +12161,10 @@ msgstr "你的端点提供的模型 id。它的向量维度会自动检测——msgid "the open agent"msgstr "已打开的智能体"+#: src/comments/ThreadCard.tsx+msgid "The original text was deleted. You can re-place this comment on selected text."+msgstr "原始文本已被删除。你可以将此评论重新定位到选中的文本上。"+#: src/editor/components/PreviewBlockedNotice.tsxmsgid "The preview blocks resources that don't meet its security rules (for example plain http:// URLs, or code that uses eval). The content above may render incompletely."msgstr "预览会拦截不符合其安全规则的资源(例如纯 http:// 的 URL,或使用了 eval 的代码)。上面的内容可能渲染不完整。"@@ -12219,10 +12190,6 @@ msgstr "服务提供方拒绝了这个请求(HTTP {0})。请检查 API 密msgid "The provider rejected the request. Check the API key and the model id."msgstr "服务提供方拒绝了这个请求。请检查 API 密钥和模型 id。"-#: src/comments/comment-chips.tsx-msgid "The quoted text is no longer in the document — the agent will be told."-msgstr "被引用的文本已不在文档中——会告知智能体。"-#: src/components/ReportBugDialogBody.tsxmsgid "The report service couldn't be reached."msgstr "无法连接到报告服务。"@@ -12599,7 +12566,7 @@ msgstr "此操作会从“{2}”技能中永久删除 {0}/{1}。SKILL.md 中指msgid "This permanently removes {path}. Agents that reference this template by name will fail until it's recreated or replaced by one in a parent folder."msgstr "这会永久移除 {path}。在重新创建它,或者由上级文件夹中的同名模板取代之前,按名称引用这个模板的智能体都会失败。"-#: src/comments/CommentsTab.tsx+#: src/components/PanelScopeHeader.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "This project"msgstr "本项目"@@ -13090,10 +13057,15 @@ msgstr "未知错误"msgid "unlink"msgstr "取消链接"-#: src/comments/CommentSendFooter.tsx+#: src/comments/CommentListPanel.tsxmsgid "Unmark every comment"msgstr "取消勾选全部评论"+#. placeholder {0}: docBasename(group.docName)+#: src/comments/CommentListPanel.tsx+msgid "Unmark every comment in {0}"+msgstr "取消勾选 {0} 中的所有评论"+#: src/editor/slash-command/items.tsxmsgid "Unordered list of items."msgstr "不带编号的项目列表。"@@ -13399,6 +13371,10 @@ msgstr "查看 {name}"msgid "View as text"msgstr "以文本方式查看"+#: src/comments/CommentSelectionAffordance.tsx+msgid "View comments"+msgstr "查看评论"+#: src/components/ActivityPanelBurstRow.tsxmsgid "View diff for edit {burstNumber} of {docName}"msgstr "查看 {docName} 第 {burstNumber} 次编辑的差异"diff --git a/packages/app/src/locales/zh-Hant/messages.json b/packages/app/src/locales/zh-Hant/messages.jsonindex fc6a4e82e..d3bfe4feb 100644--- a/packages/app/src/locales/zh-Hant/messages.json+++ b/packages/app/src/locales/zh-Hant/messages.json@@ -46,6 +46,7 @@"03wKPg": ["回報能幫我們找出原因。在你檢查過之前不會送出任何內容。"],"04RA0-": ["開啟同步失敗——", ["detail"]],"04XyCH": ["加入一個受管理的區塊到 ", ["0"]],+ "05F1GY": ["原始文字已被刪除。你可以將此註解重新定位到選取的文字上。"],"05n5wS": ["文件提及建議"],"06SZfb": ["已建立範本「", ["trimmedTitle"], "」"],"07eGJB": ["無法移動技能:", ["0"]],@@ -112,7 +113,6 @@"11ukmX": ["重新命名失敗:", ["0"]],"12F9WL": ["(無 id)"],"151wvk": ["顯示側邊欄"],- "15MMFT": ["顯示這些註解"],"15ZHCt": ["這個版本沒有內文變更。"],"161NCV": ["正在停止"],"16D5Zj": ["確定要刪除 ", ["itemName"], " 嗎?這個動作無法復原。"],@@ -183,7 +183,6 @@"2QM24L": ["所有標籤"],"2RnFoM": ["無法恢復此對話:", ["0"]],"2Snes1": ["這會把連結的網址送出你的電腦"],- "2UgoBZ": ["已不存在"],"2VSPan": ["已關閉 Terminal,為智慧代理面板騰出空間。"],"2XQ8Ww": ["代理編輯時開啟預覽"],"2YOwme": ["已重新啟動——現在執行的是 v", ["appRuntime"], "。"],@@ -204,6 +203,7 @@"2vIPtm": ["在新分頁中開啟連結"],"2wTb8w": ["在「外掛」底下它自己的頁面中設定。"],"2wxgft": ["重新命名"],+ "2zvUIK": ["在註解面板中顯示這些註解"],"322lyb": ["凸顯提示、警告和備註。"],"34qyH5": ["無法連上伺服器"],"36WXSC": ["無法刪除範本:", ["error"]],@@ -299,7 +299,6 @@"4buZWd": ["繼承自 ", ["path"]],"4c_a6S": ["還沒有設定任何東西。"],"4d0VYJ": ["我們會根據這個名稱建立安全的主題 ID。"],- "4eO-iB": ["捨棄這則註解"],"4g19V6": ["更新屬性失敗"],"4h3e0H": ["無法更新技能分享設定——", ["detail"], "。"],"4hJhzz": ["表格"],@@ -317,7 +316,6 @@"4sKwf6": ["檔案已存在"],"4sUdTJ": ["帶主題的預覽"],"4uNLmk": ["正在拉取"],- "4uaCUA": [["mins"], "分"],"4v2Yyz": ["當焦點在「檔案」側邊欄時,選取檔案樹中所有看得到的列。"],"4wo5UV": ["安裝選取項"],"4xtLTl": ["已隱藏資料夾「", ["basename"], "」"],@@ -343,7 +341,6 @@"5ClEAu": ["用來跨文件分組的行內主題標籤。"],"5D3Ior": ["隱藏資料夾"],"5F5HYj": ["領先 ", ["ahead"], " 個,落後 ", ["behind"], " 個"],- "5GBQ-F": ["在屬性中選取這段文字"],"5GKMSz": ["增加或減少目前清單項目的縮排。"],"5GRxoA": ["在目前的工作區中搜尋檔案、資料夾和指令。"],"5HJpFY": ["排在目前回合之後"],@@ -365,6 +362,11 @@"這個端點忽略了你設定的向量維度。移除 <0>search.semantic.dimensions</0> 就會改用模型自己的維度。"],"5Tk8Fb": ["正在載入檔案"],+ "5TmrYN": [+ ["count", "plural", { "other": ["#", " 則註解"] }],+ ",分布在 ",+ ["0", "plural", { "other": ["#", " 個檔案"] }]+ ],"5Umg9i": ["關閉外部連結預覽"],"5WDhAk": ["連到某個頁面或外部 URL。"],"5Y17qa": ["適用於(glob 模式;開頭的 ! 表示排除;留空表示所有文件)"],@@ -844,6 +846,7 @@"DbILZA": ["沒有相符項。有些檔案不會納入搜尋(隱藏或被忽略的檔案)。"],"DcFr-y": ["OpenKnowledge 刪除了一個文件"],"DcLaew": ["自訂主題"],+ "Dd6j2Q": ["檢視註解"],"DeDYLr": ["無法辨識的維基連結"],"DgcGrb": [["fileCount", "plural", { "other": ["檔案"] }]],"DhLHEb": ["載入動態失敗"],@@ -991,6 +994,7 @@"FgQ7XZ": ["無法載入你的錯誤回報。"],"FgRAvd": ["記錄與系統資訊"],"Fhp4Gn": ["檢視外掛"],+ "FiyNln": ["跳到屬性中選取的文字"],"FjkaiT": ["縮小"],"FqGWeR": ["無法連上代理登錄檔。"],"FqTpiN": ["鳥類維基"],@@ -1012,7 +1016,6 @@"G0YZ-I": ["增加或減少清單項目縮排"],"G1Gw0v": ["新增範本"],"G1XxbZ": ["核取方塊"],- "G1zJlD": ["隱藏已解決的註解"],"G4m8rL": ["對選取內容加上註解"],"G6Lrs_": ["讓 ", ["0"], " 不再讀取這個技能"],"G7-rf8": ["模式語法錯誤:", ["message"]],@@ -1182,6 +1185,7 @@"JAQ09e": ["回味中…"],"JCxGEX": ["沒有孤立的頁面。只有既沒有連入也沒有連出關係圖邊的頁面才會出現在這裡。"],"JDHcCM": ["正在載入熱門技能"],+ "JDQ5I5": ["該文件未能及時開啟。請在同步完成後重試。"],"JE21eh": ["指向 ", ["targetPath"], " 的符號連結"],"JG_8KT": ["無法從 GitHub 拉取。請檢查你的網路連線和登入狀態,然後再試一次。"],"JHf6qZ": ["[email protected]"],@@ -1251,6 +1255,7 @@"KZLdgR": ["最新的規格見 <0>#design-docs</0>。"],"K_vT1F": ["上游同步"],"KaFCD3": ["在新分頁中開啟這個連結並摺疊關係圖。"],+ "KeXgA-": ["找不到該段落 — 它所在的文字可能已變更。"],"Kf7GG5": ["正在重新啟動伺服器…"],"Kge76t": ["列選項"],"Kh1n4a": [@@ -1362,7 +1367,6 @@"M92_0q": ["關閉註解"],"M9597s": ["正在準備分享 URL…"],"MBKkUy": ["skills.sh 無法使用;改為顯示 GitHub 結果(沒有安裝次數排名)。"],- "MBe6TE": ["被引用的文字已經不在文件中了——會告訴代理。"],"MCjC9A": ["刪除 ", ["deleteDescriptorLabel"]],"MDBJwN": ["不好用"],"MDZSJe": ["代理執行排程工作的時間。"],@@ -1464,7 +1468,6 @@"NeY1Np": ["Slidev 啟動逾時。請再試一次。"],"NfraGd": ["安裝 Slidev 的其他方式"],"NgZwB0": ["已開啟 ", ["enabledCount"], "/", ["0"]],- "NiGIcB": ["開啟註解"],"NjrIak": ["檔案:<0>", ["fixedName"], ".md</0>"],"NkNfSr": ["編輯 ", ["tag"]],"NkXEFS": ["還原失敗——文件沒有變動"],@@ -1565,6 +1568,7 @@"PBxg_E": ["現在不用"],"PCSkw2": ["技能"],"PGPGsL": ["新增描述"],+ "PHHEuH": ["隱藏已解決的註解(", ["0"], ")"],"PIMM5l": ["訂閱成功!"],"PKLY-1": ["正在開啟…"],"PKjGhT": ["標題"],@@ -1658,7 +1662,6 @@"QlxHAH": ["正在顯示「", ["semanticResultsLabel"], "」的結果"],"QohqVL": ["此智慧代理不提供斜線指令"],"QpSqAP": ["本專案未啟用真實 shell。啟用後,命令會以你的使用者帳戶的完整權限執行。"],- "Qpfxa1": [["secs"], "秒"],"QqBQu1": ["標籤 <0>(可見的連結文字)</0>"],"Qvls7J": ["工程規格"],"Qw-7Ie": [@@ -1778,6 +1781,7 @@],"T-654M": ["正在載入 PDF"],"T0OVm7": ["預設分支受保護——推送需要透過 pull request。"],+ "T2fvhw": ["取消勾選 ", ["0"], " 中的所有註解"],"T3Mld1": ["視窗"],"T3j-7o": ["例如:同步進行到一半時切換了專案"],"TBfy1C": ["無法啟動 Slidev。"],@@ -1827,7 +1831,6 @@"UDFrWm": ["正在檢查 GitHub 連線…"],"UD_onR": ["琢磨中…"],"UDb2YD": ["React"],- "UEdTEN": ["孤立"],"UGeJuP": ["允許的值(留空 = 任意)"],"UGtPix": ["GitHub 連線已過期。請重新連線以繼續。"],"UH0Zqw": ["這不是一般的主題檔案"],@@ -1889,7 +1892,6 @@"UkQGhd": ["隱藏取代"],"UlVARL": ["啟用 Slidev"],"Uobeu9": ["把技能加到 ", ["rootRel"], "——", ["0"], " 也會讀取該處"],- "Uoux8m": ["下次傳送時包含這則註解"],"Up2_7p": ["複製完整路徑"],"UpCz01": ["這份文件"],"UpOct_": ["把你的註解寫在這則訊息裡"],@@ -2006,6 +2008,7 @@"Wh0im4": ["正在編輯 [[", ["realCurrentDoc"], "]]"],"WhOsNE": ["刪除線"],"Wi-VWy": ["無法送出回報"],+ "WkQ0Z_": ["勾選 ", ["0"], " 中的所有註解以傳送"],"WkTLN7": ["只顯示 markdown 檔案"],"WkyP2p": ["技能區"],"WmPbvm": ["把產品動態寄到你的信箱。"],@@ -2053,7 +2056,6 @@"XV5sC0": ["開啟 worktree"],"XVnIvs": ["安裝技能"],"XW18jo": ["頁面標題回應不符合成功時的結構描述"],- "XWEqQj": [["days"], "天"],"XXA1b_": [["componentLabel"], "(空的)"],"XYZ7tp": ["無法解析"],"XYlJJT": ["正在設定"],@@ -2266,7 +2268,6 @@"_W-elG": ["(行內)"],"_WPP7e": ["來自另一份文件的 MirrorSource 區塊的唯讀副本。在來源處編輯,這裡會即時更新。"],"_XWY2J": ["終端機已停用"],- "_YEyHO": ["顯示已解決的註解"],"_YWqV2": ["OpenKnowledge 解決了一個衝突"],"_ayOfA": ["遵循 Google Open Knowledge Format 的知識庫,一種整理知識的共通做法。如果你希望自己的筆記能和看得懂這個格式的其他工具好好搭配,請選這個。"@@ -2278,7 +2279,6 @@"_gO_m8": ["正在等你核准"],"_gkGSK": ["已刪除範本"],"_mcDqU": ["這個來源有 ", ["count"], " 個技能"],- "_oqig9": [["hours"], "小時"],"_pY_Vq": ["這個儲存庫被移動、重新命名或刪除了。"],"_qD6mn": ["挑你複製下來的那個資料夾。"],"_rP3HI": [["minutes"], " 分鐘前"],@@ -2653,6 +2653,7 @@"gBbxn_": ["正在檢查登入狀態"],"gGVP4q": ["依序點 <0>+</0> <1/> <2>建立技能</2> <3/> <4>上傳技能</4>。"],"gHSAWT": ["建立 worktree <0>「<1>", ["typedName"], "</1>」</0>"],+ "gHb5bB": ["顯示已解決的註解(", ["0"], ")"],"gITz7o": ["透過 CodeMirror 標準的原始碼編輯器導覽按鍵對應來移動游標或延伸選取範圍。"],"gJR87V": ["無法建立專案資料夾。請換一個資料夾。"],"gKi-a_": ["新增專案"],@@ -2849,7 +2850,6 @@"iy64Li": ["完全同步——你的編輯會自動提交並推送到你的遠端。"],"iycx_A": ["正在推送"],"iz1LdD": ["自從它上次寫入這裡之後,在 OK 之外被改動過——顯示的是磁碟上現在的狀態"],- "j0ItfO": ["顯示已解決的(", ["0"], ")"],"j15ZSH": ["把註解傳送到"],"j2229h": ["正在移除 OpenKnowledge 的檔案…"],"j2kt1j": [@@ -2947,7 +2947,6 @@["targetNoun"],"就會出現。"],- "kMKqP_": ["隱藏這些註解"],"kNGLX6": ["正在重試…"],"kNqMMd": ["資料夾"],"kRTXGw": [@@ -3147,7 +3146,6 @@"nBgzKO": ["把這裡設為來源——技能真正的資料夾會搬到這裡"],"nCzR-G": ["複製驗證碼 ", ["userCode"]],"nDT8qt": ["已初始化 ", ["0"], ",但無法開啟它。"],- "nG-XA9": ["錨定的文字已經不見了。你可以把它重新定位到選取的文字上。"],"nMSYz5": ["這個路徑在外接磁碟區(/Volumes/...)上。磁碟退出後,OpenKnowledge 會找不到這些檔案。"],@@ -3199,6 +3197,7 @@"nzaV6Q": ["頁面縮圖"],"o0bHtA": ["由 OpenKnowledge 提供"],"o49mDZ": ["正在載入時間軸記錄"],+ "o7AkQ0": ["顯示已解決"],"o9CrsQ": ["research-note"],"o9fPtM": ["從來源自動更新"],"o9yN4T": ["移到資源回收筒"],@@ -3420,7 +3419,6 @@"roAe2K": ["連結 URL"],"roiUQQ": ["這個頁面還沒有連到任何地方。"],"rppgXF": ["正在中斷連接"],- "rscgd_": ["在 ", ["0"], " 中查看這則註解"],"rssK8c": ["忽略模式(純文字)"],"rtdR4v": ["顯示或隱藏「檔案」"],"rtir7c": ["未知"],diff --git a/packages/app/src/locales/zh-Hant/messages.po b/packages/app/src/locales/zh-Hant/messages.poindex 33f948575..8044adb15 100644--- a/packages/app/src/locales/zh-Hant/messages.po+++ b/packages/app/src/locales/zh-Hant/messages.po@@ -511,6 +511,11 @@ msgstr "{conflictCount, plural, other {# 個檔案有衝突}}"msgid "{count, plural, one {# comment} other {# comments}}"msgstr "{count, plural, other {# 則註解}}"+#. placeholder {0}: docs.length+#: src/comments/comment-chips.tsx+msgid "{count, plural, one {# comment} other {# comments}} across {0, plural, one {# file} other {# files}}"+msgstr "{count, plural, other {# 則註解}},分布在 {0, plural, other {# 個檔案}}"+#: src/components/settings/applies-to-folder-picker.tsxmsgid "{count, plural, one {# doc} other {# docs}}"msgstr "{count, plural, other {# 個文件}}"@@ -559,10 +564,6 @@ msgstr "這個來源有 {count} 個技能"msgid "{days, plural, one {# day ago} other {# days ago}}"msgstr "{days, plural, other {# 天前}}"-#: src/comments/ThreadCard.tsx-msgid "{days}d"-msgstr "{days}天"-#: src/components/acp/ThreadHistoryMenu.tsxmsgid "{days}d ago"msgstr "{days} 天前"@@ -657,10 +658,6 @@ msgstr "{folderCount, plural, other {資料夾}}"msgid "{formatted} GitHub stars"msgstr "{formatted} 個 GitHub star"-#: src/comments/ThreadCard.tsx-msgid "{hours}h"-msgstr "{hours}小時"-#: src/components/acp/ThreadHistoryMenu.tsx#: src/components/ActivityModeContent.tsx#: src/components/ActivityPanelFileRow.tsx@@ -727,10 +724,6 @@ msgstr "第 {displayLine} 行:{localizedMessage}"msgid "{mins, plural, one {# min ago} other {# min ago}}"msgstr "{mins, plural, other {# 分鐘前}}"-#: src/comments/ThreadCard.tsx-msgid "{mins}m"-msgstr "{mins}分"-#: src/components/SyncStatusBadge.tsxmsgid "{minutes} min ago"msgstr "{minutes} 分鐘前"@@ -813,10 +806,6 @@ msgstr "{propPanelDescriptorLabel} 屬性"msgid "{seconds}s ago"msgstr "{seconds} 秒前"-#: src/comments/ThreadCard.tsx-msgid "{secs}s"-msgstr "{secs}秒"-#: src/editor/extensions/JsxComponentView.tsxmsgid "{settingsDescriptorLabel} properties"msgstr "{settingsDescriptorLabel} 屬性"@@ -2500,7 +2489,6 @@ msgstr "正在複製 {repoName}…"msgid "Cloning..."msgstr "正在複製…"-#: src/comments/ThreadCard.tsx#: src/components/EditorTabs.tsx#: src/components/FeedbackForm.tsx#: src/components/InstallInClaudeDesktopDialog.tsx@@ -3391,6 +3379,10 @@ msgstr "無法中斷連接——請再試一次。"msgid "Couldn't duplicate \"{0}\": {1}"msgstr "無法複製「{0}」:{1}"+#: src/comments/reveal-comment.ts+msgid "Couldn't find that passage — the text it was on may have changed."+msgstr "找不到該段落 — 它所在的文字可能已變更。"+#. placeholder {0}: item.displayName#: src/components/acp/ThreadView.tsxmsgid "Couldn't finish installing {0} — see below."@@ -4323,10 +4315,6 @@ msgstr "用來在選單中區分名稱相近的範本。"msgid "Discard local edits, restore the installed version"msgstr "捨棄本機編輯,還原成已安裝的版本"-#: src/comments/CommentSelectionAffordance.tsx-msgid "Discard this comment"-msgstr "捨棄這則註解"-#: src/components/settings/AccountSection.tsxmsgid "Disconnect"msgstr "中斷連接"@@ -4426,7 +4414,6 @@ msgstr "標了 <0>#{tagName}</0> 的文件"msgid "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."msgstr "沒看到<0>技能</0>嗎?請先啟用<1>設定 <2/> 功能 <3/> 程式碼執行與檔案建立</1>。"-#: src/comments/comment-chips.tsx#: src/comments/ThreadCard.tsxmsgid "Don't send this comment"msgstr "不要傳送這則註解"@@ -5842,15 +5829,6 @@ msgstr "移至第 {0} 行"msgid "Go to line {0} in {1}"msgstr "移至 {1} 的第 {0} 行"-#. placeholder {0}: docBasename(thread.docName)-#: src/comments/comment-chips.tsx-msgid "Go to this comment in {0}"-msgstr "在 {0} 中查看這則註解"--#: src/comments/comment-chips.tsx-msgid "gone"-msgstr "已不存在"-#: src/components/FeedbackForm.tsxmsgid "Good"msgstr "良好"@@ -6062,9 +6040,10 @@ msgstr "隱藏取代"msgid "Hide resolved"msgstr "隱藏已解決的"+#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Hide resolved comments"-msgstr "隱藏已解決的註解"+msgid "Hide resolved comments ({0})"+msgstr "隱藏已解決的註解({0})"#: src/components/BottomComposer.tsxmsgid "Hide selection preview"@@ -6079,10 +6058,6 @@ msgstr "隱藏側邊欄"msgid "Hide Terminal"msgstr "隱藏 Terminal"-#: src/comments/comment-chips.tsx-msgid "Hide these comments"-msgstr "隱藏這些註解"-#: src/components/EditorTabTargetMenuItems.tsx#: src/components/FileTree.tsxmsgid "Hide this file"@@ -6307,10 +6282,6 @@ msgstr "在應用程式內(beta)"msgid "In the Claude Desktop App"msgstr "在 Claude Desktop App 中"-#: src/comments/comment-chips.tsx-msgid "Include this comment in the next send"-msgstr "下次傳送時包含這則註解"-#: src/lib/keyboard-shortcuts.tsmsgid "Indent or outdent list item"msgstr "增加或減少清單項目縮排"@@ -6668,6 +6639,10 @@ msgstr "跳到最後一個分頁"msgid "Jump to page {pageNumber}"msgstr "跳到第 {pageNumber} 頁"+#: src/comments/ThreadCard.tsx+msgid "Jump to selected text in property"+msgstr "跳到屬性中選取的文字"+#: src/lib/keyboard-shortcuts.tsmsgid "Jump to tab 1-8"msgstr "跳到第 1-8 個分頁"@@ -7165,7 +7140,12 @@ msgstr "梳理架構"msgid "Mark a block as the source of truth. Mirrors elsewhere update live as you edit it."msgstr "把某個區塊標記為事實來源。你編輯它的時候,別處的鏡像會即時更新。"-#: src/comments/CommentSendFooter.tsx+#. placeholder {0}: docBasename(group.docName)+#: src/comments/CommentListPanel.tsx+msgid "Mark every comment in {0} to send"+msgstr "勾選 {0} 中的所有註解以傳送"++#: src/comments/CommentListPanel.tsxmsgid "Mark every comment to send"msgstr "勾選全部註解以傳送"@@ -8405,10 +8385,6 @@ msgstr "開啟 CodeMirror 的檢查診斷面板。"msgid "Open comment"msgstr "開啟註解"-#: src/comments/CommentSelectionAffordance.tsx-msgid "Open Comments"-msgstr "開啟註解"-#: src/components/command-palette-commands.ts#: src/lib/platform-labels.tsmsgid "Open containing folder"@@ -8882,10 +8858,6 @@ msgstr "原始檔案——這個代理編輯之前的樣子。"msgid "Orphan mode"msgstr "孤立頁模式"-#: src/comments/ThreadCard.tsx-msgid "Orphaned"-msgstr "孤立"-#: src/components/GraphPanel.tsxmsgid "Orphans"msgstr "孤立頁"@@ -9370,7 +9342,6 @@ msgid "project"msgstr "專案"#: src/components/CommandPalette.tsx-#: src/components/PanelScopeHeader.tsx#: src/components/settings/ScopeBadge.tsx#: src/lib/skill-scope.tsmsgid "Project"@@ -10681,10 +10652,6 @@ msgstr "選取下一個出現的位置"msgid "Select the full source document."msgstr "選取整份原始碼文件。"-#: src/comments/ThreadCard.tsx-msgid "Select this text in the property"-msgstr "在屬性中選取這段文字"-#: src/lib/keyboard-shortcuts.tsmsgid "Select, enter, or leave block components and fallback source blocks from keyboard boundaries."msgstr "從鍵盤邊界選取、進入或離開區塊元件和備用的原始碼區塊。"@@ -11143,14 +11110,14 @@ msgstr "顯示問題標記"msgid "Show replace"msgstr "顯示取代"-#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Show resolved ({0})"-msgstr "顯示已解決的({0})"+msgid "Show resolved"+msgstr "顯示已解決"+#. placeholder {0}: resolved.length#: src/comments/CommentListPanel.tsx-msgid "Show resolved comments"-msgstr "顯示已解決的註解"+msgid "Show resolved comments ({0})"+msgstr "顯示已解決的註解({0})"#: src/components/BottomComposer.tsxmsgid "Show selection preview"@@ -11170,8 +11137,8 @@ msgid "Show Terminal"msgstr "顯示 Terminal"#: src/comments/comment-chips.tsx-msgid "Show these comments"-msgstr "顯示這些註解"+msgid "Show these comments in the Comments panel"+msgstr "在註解面板中顯示這些註解"#: src/editor/components/Pdf.tsxmsgid "Show thumbnails"@@ -12067,6 +12034,10 @@ msgstr "謝謝你的回報!"msgid "That branch is already open in another worktree."msgstr "那個分支已經在另一個 worktree 中開啟了。"+#: src/comments/reveal-comment.ts+msgid "That document didn't open in time. Try again once it has synced."+msgstr "該文件未能及時開啟。請在同步完成後重試。"+#: src/components/settings/SearchSection.tsxmsgid "That endpoint can't be used. Enter an https:// URL — http:// is only allowed for localhost."msgstr "無法使用那個端點。請輸入 https:// 的 URL——http:// 只允許用在 localhost。"@@ -12112,10 +12083,6 @@ msgstr "智慧代理沒有停止。強制停止將關閉此對話並結束智慧msgid "The agent's persona, values, and voice."msgstr "代理的人設、價值觀和語氣。"-#: src/comments/ThreadCard.tsx-msgid "The anchored text is gone. You can re-place it on selected text."-msgstr "錨定的文字已經不見了。你可以把它重新定位到選取的文字上。"-#: src/components/ProblemsPanel.tsxmsgid "The audit could not be completed. Try again."msgstr "稽核未能完成。請再試一次。"@@ -12194,6 +12161,10 @@ msgstr "你的端點提供的模型 id。它的向量維度會自動偵測——msgid "the open agent"msgstr "已開啟的代理"+#: src/comments/ThreadCard.tsx+msgid "The original text was deleted. You can re-place this comment on selected text."+msgstr "原始文字已被刪除。你可以將此註解重新定位到選取的文字上。"+#: src/editor/components/PreviewBlockedNotice.tsxmsgid "The preview blocks resources that don't meet its security rules (for example plain http:// URLs, or code that uses eval). The content above may render incompletely."msgstr "預覽會擋掉不符合它安全性規則的資源(例如純 http:// 的 URL,或用了 eval 的程式碼)。上面的內容可能顯示不完整。"@@ -12219,10 +12190,6 @@ msgstr "供應商拒絕了這個要求(HTTP {0})。請檢查 API 金鑰和msgid "The provider rejected the request. Check the API key and the model id."msgstr "供應商拒絕了這個要求。請檢查 API 金鑰和模型 id。"-#: src/comments/comment-chips.tsx-msgid "The quoted text is no longer in the document — the agent will be told."-msgstr "被引用的文字已經不在文件中了——會告訴代理。"-#: src/components/ReportBugDialogBody.tsxmsgid "The report service couldn't be reached."msgstr "連不上回報服務。"@@ -12599,7 +12566,7 @@ msgstr "此操作會從「{2}」技能中永久刪除 {0}/{1}。SKILL.md 中指msgid "This permanently removes {path}. Agents that reference this template by name will fail until it's recreated or replaced by one in a parent folder."msgstr "這會永久移除 {path}。在重新建立它,或由上層資料夾中的同名範本取代之前,用名稱參照這個範本的代理都會失敗。"-#: src/comments/CommentsTab.tsx+#: src/components/PanelScopeHeader.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "This project"msgstr "這個專案"@@ -13090,10 +13057,15 @@ msgstr "未知的錯誤"msgid "unlink"msgstr "取消連結"-#: src/comments/CommentSendFooter.tsx+#: src/comments/CommentListPanel.tsxmsgid "Unmark every comment"msgstr "取消勾選全部註解"+#. placeholder {0}: docBasename(group.docName)+#: src/comments/CommentListPanel.tsx+msgid "Unmark every comment in {0}"+msgstr "取消勾選 {0} 中的所有註解"+#: src/editor/slash-command/items.tsxmsgid "Unordered list of items."msgstr "沒有編號的項目清單。"@@ -13399,6 +13371,10 @@ msgstr "檢視 {name}"msgid "View as text"msgstr "以文字方式檢視"+#: src/comments/CommentSelectionAffordance.tsx+msgid "View comments"+msgstr "檢視註解"+#: src/components/ActivityPanelBurstRow.tsxmsgid "View diff for edit {burstNumber} of {docName}"msgstr "檢視 {docName} 第 {burstNumber} 次編輯的差異"diff --git a/packages/app/src/test-utils/visual-contract.ts b/packages/app/src/test-utils/visual-contract.tsindex 59f008462..3deb27fc9 100644--- a/packages/app/src/test-utils/visual-contract.ts+++ b/packages/app/src/test-utils/visual-contract.ts@@ -4,11 +4,28 @@ import { expect } from 'vitest';// so use this helper only for CSS behavior jsdom cannot execute directly.type ClassNameValue = string | null | undefined;+/**+ * Whitespace-split, because a class list is a SET of tokens and not a string to+ * search. Substring matching quietly reads a token as present whenever it is+ * spelled inside a longer one — `h-12` inside `min-h-12`, `w-4` inside `w-40`,+ * `border` inside `border-t` — which turns an absence contract into an+ * assertion that no class merely CONTAINS those characters. A shared floor+ * added to a base component then fails a test about a variant's own sizing.+ *+ * Expected entries are split the same way, so a caller may pass several tokens+ * as one string and have each checked in its own right.+ */+function classTokens(value: string): string[] {+ return value.split(/\s+/).filter((token) => token.length > 0);+}+export function expectVisualClassTokens(className: ClassNameValue, tokens: readonly string[]) {- const actualClassName = className ?? '';+ const actualTokens = classTokens(className ?? '');- for (const token of tokens) {- expect(actualClassName).toContain(token);+ for (const entry of tokens) {+ for (const token of classTokens(entry)) {+ expect(actualTokens).toContain(token);+ }}}@@ -16,9 +33,11 @@ export function expectVisualClassTokensAbsent(className: ClassNameValue,tokens: readonly string[],) {- const actualClassName = className ?? '';+ const actualTokens = classTokens(className ?? '');- for (const token of tokens) {- expect(actualClassName).not.toContain(token);+ for (const entry of tokens) {+ for (const token of classTokens(entry)) {+ expect(actualTokens).not.toContain(token);+ }}}diff --git a/packages/core/src/comments/passage-match.test.ts b/packages/core/src/comments/passage-match.test.tsindex b3064ebea..a6fed98c5 100644--- a/packages/core/src/comments/passage-match.test.ts+++ b/packages/core/src/comments/passage-match.test.ts@@ -485,3 +485,44 @@ describe('rewriteCeiling', () => {}});});++/**+ * Whitespace is elastic on both sides everywhere else in the matcher, but the+ * scan loop can only skip a needle's whitespace while there is still haystack+ * left to compare against. A needle ending in whitespace therefore failed at the+ * very end of the text.+ *+ * The field case: a comment on a document's LAST passage. Rendered editor text+ * carries no trailing newline, while a stored suffix that ran off the end of the+ * markdown body is exactly "\n" — so the deletion probe in the editor's+ * `findRangeInIndex` saw `prefix + suffix` match and `prefix + quote + suffix`+ * not, concluded the passage had been deleted where it stood, and dropped the+ * highlight. The server, whose haystack is the body and does end in a newline,+ * went on reporting the thread as anchored.+ */+describe('a needle ending in whitespace, at the end of the haystack', () => {+ const rendered = 'Serve withWarm tortillas or a dollop of yogurt/crema';+ const prefix = 'tortillas or a dollop of yogurt/';++ test('completes when the haystack is exhausted', () => {+ expect(findAllPassages(rendered, `${prefix}crema\n`, { syntaxIn: 'needle' })).toEqual([+ { start: rendered.indexOf(prefix), end: rendered.length },+ ]);+ });++ test('agrees with the same needle one character short of the end', () => {+ // Both must match, or the deletion probe reads a document-final passage as+ // deleted purely because of where it sits.+ expect(findAllPassages(rendered, `${prefix}\n`, { syntaxIn: 'needle' }).length).toBe(1);+ expect(findAllPassages(rendered, `${prefix}crema\n`, { syntaxIn: 'needle' }).length).toBe(1);+ });++ test('does not invent a match for trailing content', () => {+ // Only whitespace is forgiven at the edge. A needle asking for real+ // characters the haystack does not have must still fail.+ expect(findAllPassages(rendered, `${prefix}crema and rice`, { syntaxIn: 'needle' })).toEqual(+ [],+ );+ expect(findAllPassages(rendered, `${prefix}crema\n.`, { syntaxIn: 'needle' })).toEqual([]);+ });+});diff --git a/packages/core/src/comments/passage-match.ts b/packages/core/src/comments/passage-match.tsindex 1641cb720..420245933 100644--- a/packages/core/src/comments/passage-match.ts+++ b/packages/core/src/comments/passage-match.ts@@ -354,6 +354,20 @@ export function findAllPassages(}break;}+ // Whitespace left over in the needle once the haystack is exhausted. The+ // loop above can only skip it while there is still haystack to compare+ // against, so a needle ending in whitespace never completed at the very end+ // of the text — even though whitespace is elastic everywhere else.+ //+ // A comment on a document's LAST passage is the case that reached users.+ // Rendered text carries no trailing newline, while a stored suffix that ran+ // off the end of the markdown body is exactly "\n" — so `prefix + suffix`+ // matched (its "\n" was skipped mid-haystack) while `prefix + quote ++ // suffix` did not, and the deletion probe in `findRangeInIndex` read the+ // passage as deleted where it stood. The comment stayed `anchored`+ // server-side,+ // where the body does end in a newline, and silently lost its highlight.+ while (ni < needle.length && isSpace(needle[ni] as string)) ni += 1;if (ni === needle.length) out.push({ start, end: hi });}return out;@@ -393,6 +407,26 @@ export function findPassage(export interface ContextMatchOptions {/** `'haystack'` when `text` is markdown; `'none'` when it is rendered text. */readonly syntaxIn: 'haystack' | 'none';+ /**+ * Whether the stored `prefix`/`suffix` themselves carry markdown syntax —+ * independent of the haystack, because the two sides come from different+ * places. A STORED anchor's context is a slice of the markdown body, so it+ * arrives with `## `, `1. `, `**` in it; the context a client captures around+ * a live selection is rendered text and has none.+ *+ * Condensing a markdown context as though it were rendered was a silent+ * scoring collapse, not a rounding error: a 32-character window reaches past+ * its own block in ordinary prose, so it almost always contains a heading or+ * list marker, and one such character at the seam takes the common-run length+ * to zero — `## Steps\n\n1. ` condenses to `##Steps1.` against a rendered+ * `…Steps`, sharing nothing at the end. Every candidate scored 0, the+ * evidence floor could never be met, and re-find fell through to the+ * exact-literal bracket recovery for anchors that should have resolved on+ * their quote. The visible symptom was a highlight vanishing when text NEAR+ * the passage — inside the stored context window, but not inside the quote —+ * was edited.+ */+ readonly syntaxInContext?: boolean;}/**@@ -447,7 +481,7 @@ export function contextMatchScore(text: string,span: { readonly start: number; readonly end: number },context: { readonly prefix?: string; readonly suffix?: string },- { syntaxIn }: ContextMatchOptions,+ { syntaxIn, syntaxInContext = false }: ContextMatchOptions,): number {const prefix = context.prefix ?? '';const suffix = context.suffix ?? '';@@ -456,20 +490,58 @@ export function contextMatchScore(if (prefix.length > 0) {const window = prefix.length * CONTEXT_WINDOW_FACTOR + CONTEXT_WINDOW_FLOOR;score += commonSuffixLen(- condense(prefix, 0, prefix.length, false),+ condense(prefix, 0, prefix.length, syntaxInContext),condense(text, span.start - window, span.start, syntax),);}if (suffix.length > 0) {const window = suffix.length * CONTEXT_WINDOW_FACTOR + CONTEXT_WINDOW_FLOOR;score += commonPrefixLen(- condense(suffix, 0, suffix.length, false),+ condense(suffix, 0, suffix.length, syntaxInContext),condense(text, span.end, span.end + window, syntax),);}return score;}+/**+ * The least context agreement a re-find may accept a quote hit on, in the+ * condensed characters {@link contextMatchScore} counts. Zero when too little+ * context is stored to demand anything (a quote hugging both document edges).+ *+ * This is what stands between a comment and an impostor. Deleting a commented+ * passage while an identical phrase survives elsewhere leaves the survivor as a+ * lone, clean hit of the quote — and a re-find that accepts a lone hit+ * unexamined re-anchors the comment onto words nobody commented on, with the+ * stored context in open disagreement. Any acceptance must therefore show a+ * TRACE of the recorded neighbourhood.+ *+ * A floor, not a match requirement: the surroundings may legitimately have been+ * edited, so it asks for a fragment, well under the stored context's length.+ * Above zero because unrelated locations share stray seam characters — a+ * period, a closing word — and a gate those satisfy is no gate. The cost is+ * deliberate and documented: a passage MOVED somewhere entirely new fails the+ * floor and orphans (its old neighbours, left behind and now adjacent, read as+ * a deletion) — "exact-match-or-orphan, never guess" is the contract, and+ * re-placing an orphan is one click.+ */+export function contextEvidenceFloor(+ context: {+ readonly prefix?: string;+ readonly suffix?: string;+ },+ { syntaxInContext = false }: { readonly syntaxInContext?: boolean } = {},+): number {+ const MAX_FLOOR = 8;+ // Condensed the same way `contextMatchScore` condenses this context, or the+ // floor asks for more agreement than the score can ever report — a context+ // that is mostly markers would demand characters scoring has already dropped.+ const available =+ condense(context.prefix ?? '', 0, Number.POSITIVE_INFINITY, syntaxInContext).length ++ condense(context.suffix ?? '', 0, Number.POSITIVE_INFINITY, syntaxInContext).length;+ return Math.min(MAX_FLOOR, available);+}+/*** The longest a passage may become when recovered from the context brackets* still surrounding it.diff --git a/packages/core/src/index.ts b/packages/core/src/index.tsindex 8a9aeb399..5c3e2d88f 100644--- a/packages/core/src/index.ts+++ b/packages/core/src/index.ts@@ -112,6 +112,7 @@ export {export { commentLeafText, commentQuoteText } from './comments/leaf-text.ts';export {type ContextMatchOptions,+ contextEvidenceFloor,contextMatchScore,findAllPassages,findPassage,diff --git a/packages/core/src/schemas/api/comments.ts b/packages/core/src/schemas/api/comments.tsindex 4571fa960..eed9d5f2a 100644--- a/packages/core/src/schemas/api/comments.ts+++ b/packages/core/src/schemas/api/comments.ts@@ -104,6 +104,17 @@ export const CommentThreadMetaSchema = z.object({latestComment: z.string(),createdBy: z.string().min(1),createdAt: z.number(),+ /**+ * When the comment text was last revised — absent on a thread nobody has+ * edited, which is most of them.+ *+ * Optional rather than defaulted to `createdAt`: a card that shows when a+ * comment was last touched has to be able to tell "written then" from+ * "rewritten then", and a filler value erases that difference on every thread+ * ever created. Optional also lets threads written before this field existed+ * parse unchanged.+ */+ updatedAt: z.number().optional(),});export type CommentThreadMeta = z.infer<typeof CommentThreadMetaSchema>;diff --git a/packages/server/src/comments/anchor.test.ts b/packages/server/src/comments/anchor.test.tsindex 872b17a7c..856b60cb4 100644--- a/packages/server/src/comments/anchor.test.ts+++ b/packages/server/src/comments/anchor.test.ts@@ -114,6 +114,91 @@ describe('refind', () => {});});+describe('refind — a deleted passage with an identical twin elsewhere', () => {+ // The reported bug: delete the commented passage while the same words exist+ // somewhere else. The survivor is a lone, clean hit of the quote, and a lone+ // hit used to be accepted without consulting the stored context at all — the+ // comment re-anchored onto words nobody commented on, with prefix and suffix+ // in open disagreement.+ const doc =+ 'The northern site reports TARGET PHRASE beside the river delta. ' ++ 'Unrelated closing notes mention TARGET PHRASE near the archive vault.';++ test('orphans instead of sliding onto the surviving twin', () => {+ const first = doc.indexOf('TARGET PHRASE');+ const a = createAnchor(doc, first, first + 'TARGET PHRASE'.length);+ // Delete the commented occurrence (and its neighbourhood, so no bracket+ // survives to recover from); the twin remains untouched.+ const afterDelete = doc.slice(doc.indexOf('Unrelated'));+ const res = refind(afterDelete, a);+ expect(res.status).toBe('orphaned');+ });++ test('still follows the commented occurrence when it is the one that survives', () => {+ const second = doc.indexOf('TARGET PHRASE', doc.indexOf('TARGET PHRASE') + 1);+ const a = createAnchor(doc, second, second + 'TARGET PHRASE'.length);+ // The OTHER copy is deleted; the commented one keeps its neighbourhood.+ const afterDelete = doc.slice(doc.indexOf('Unrelated'));+ const res = refind(afterDelete, a);+ expect(res.status).toBe('anchored');+ if (res.status === 'anchored') {+ expect(afterDelete.slice(res.start, res.end)).toBe('TARGET PHRASE');+ expect(afterDelete.slice(0, res.start).endsWith('mention ')).toBe(true);+ }+ });++ test('a unique passage whose surroundings were rewritten is still followed', () => {+ // The floor asks for a TRACE, not preservation: editing around a passage is+ // normal and must not orphan it.+ const body = 'Alpha beta gamma UNIQUE WORDS delta epsilon zeta.';+ const at = body.indexOf('UNIQUE WORDS');+ const a = createAnchor(body, at, at + 'UNIQUE WORDS'.length);+ const edited = 'Alpha beta gamma UNIQUE WORDS delta and considerably more text.';+ const res = refind(edited, a);+ expect(res.status).toBe('anchored');+ if (res.status === 'anchored') {+ expect(edited.slice(res.start, res.end)).toBe('UNIQUE WORDS');+ }+ });+});++describe('refind — deleting the selection leaves a seam', () => {+ // The stronger version of the twin problem: the passage's WHOLE neighbourhood+ // is duplicated (a sentence copied elsewhere after the comment was made), so+ // the twin's context matches the stored context honestly and no context+ // score can tell them apart. What does: deleting exactly the selected text+ // closes the gap between the stored prefix and suffix, and that seam at the+ // old spot is positive evidence of the deletion.+ const sentence = 'The chord stages into the agents panel specifically, naming its target.';+ const body = `Intro paragraph first. ${sentence} Later, the decision restates it: ${sentence}`;++ test('orphans on the seam even though the twin matches the context honestly', () => {+ const first = body.indexOf('the agents panel');+ const a = createAnchor(body, first, first + 'the agents panel'.length);+ // The COMMENTED occurrence is deleted exactly; the twin keeps the same+ // sentence, so its surroundings genuinely match the stored context.+ const afterDelete = body.slice(0, first) + body.slice(first + 'the agents panel'.length);+ const res = refind(afterDelete, a);+ expect(res.status).toBe('orphaned');+ });++ test('typing into the seam is an edit again, not a deletion', () => {+ // No twin here: the point is the probe's own boundary. Once the gap holds+ // content, `prefix + suffix` is no longer literal in the body, so the probe+ // stands down and the bracket recovery resolves the rewrite as before.+ const unique = 'Setup text sits here. The chord stages into the agents panel today. Done.';+ const at = unique.indexOf('the agents panel');+ const a = createAnchor(unique, at, at + 'the agents panel'.length);+ const rewritten = `${unique.slice(0, at)}the sessions dock${unique.slice(at + 'the agents panel'.length)}`;+ const res = refind(rewritten, a);+ expect(res.status).toBe('anchored');+ if (res.status === 'anchored') {+ expect(rewritten.slice(res.start, res.end)).toBe('the sessions dock');+ expect(res.rewritten).toBe(true);+ }+ });+});+describe('refind — a passage that was edited, not removed', () => {// The reported behaviour: commenting on "needs space", then editing it to// "needs more space", dropped the comment. Editing the text you commented on@@ -252,3 +337,54 @@ describe('bestByContext across a block seam', () => {expect(ranked[0]?.start).toBe(at + 2);});});++describe('refind — a passage whose NEIGHBOURS were edited', () => {+ // Sister to the editor's `anchor-nearby-edit.test.ts`. A stored context is+ // sliced out of the body, so around a list item it carries that item's `1. `+ // and its neighbour's `2. `; scoring it as though it were rendered text put a+ // marker at the seam and zeroed every candidate, so the evidence gate could+ // never be met and re-find fell through to bracket recovery — which needs the+ // surroundings intact. Editing beside a comment then orphaned it.+ const BODY = [+ '## Steps',+ '',+ '1. Toss the chicken with the coconut milk and curry powder. Rest 15 minutes.',+ '2. Thread onto skewers if using.',+ '3. Sear in a hot grill pan until charred.',+ ].join('\n');+ const QUOTE = 'Toss the chicken with the coconut milk and curry powder. Rest 15 minutes.';++ function anchorOn(body = BODY) {+ const at = body.indexOf(QUOTE);+ return createAnchor(body, at, at + QUOTE.length);+ }++ /**+ * Every case prepends a paragraph, far enough away to leave the stored context+ * untouched. It moves the passage off its saved offsets, so the fast path+ * cannot answer and the quote search — the thing the gate guards — has to.+ */+ function editedFar(...edits: readonly (readonly [string, string])[]): string {+ return edits.reduce((body, [from, to]) => body.replace(from, to), `Intro.\n\n${BODY}`);+ }++ /** Asserts re-find lands on the quote itself, not merely somewhere. */+ function expectResolvesTo(edited: string) {+ const result = refind(edited, anchorOn());+ expect(result.status).toBe('anchored');+ if (result.status !== 'anchored') return;+ expect(edited.slice(result.start, result.end)).toBe(QUOTE);+ }++ test('the passage still resolves when the item after it is truncated', () => {+ expectResolvesTo(editedFar(['2. Thread onto skewers if using.', '2. Thread onto ske']));+ });++ test('the passage still resolves when the heading above it is rewritten', () => {+ expectResolvesTo(editedFar(['## Steps', '## Method here']));+ });++ test('a distant edit alone does not disturb it', () => {+ expectResolvesTo(editedFar());+ });+});diff --git a/packages/server/src/comments/anchor.ts b/packages/server/src/comments/anchor.tsindex 98d4c786d..6aba18b04 100644--- a/packages/server/src/comments/anchor.ts+++ b/packages/server/src/comments/anchor.ts@@ -8,7 +8,11 @@* between multiple exact hits.*/-import { contextMatchScore, rewriteCeiling } from '@inkeep/open-knowledge-core';+import {+ contextEvidenceFloor,+ contextMatchScore,+ rewriteCeiling,+} from '@inkeep/open-knowledge-core';import type { Anchor } from './types.ts';/** Hypothesis uses 32 chars of context for web text; a reasonable markdown default. */@@ -104,11 +108,18 @@ export function literalSpans(haystack: string, needle: string): Span[] {* a single `\n` and the body has `\n\n`, `- `, `> ` or `#`. It scored zero for* every candidate on any context reaching past its own block, which is most of* them, and the ranking silently did nothing.+ *+ * `contextIsMarkdown` says where the caller's context came from, and the two+ * callers differ: a STORED anchor's context is a slice of the body and carries+ * its syntax, while the context a client sends with a fresh selection is+ * rendered text. Getting this wrong reintroduces the same collapse one side+ * over — see `syntaxInContext`.*/export function bestByContext<T extends Span>(body: string,hits: readonly T[],context: { prefix?: string; suffix?: string },+ { contextIsMarkdown = false }: { contextIsMarkdown?: boolean } = {},): T[] {const prefix = context.prefix ?? '';const suffix = context.suffix ?? '';@@ -116,7 +127,12 @@ export function bestByContext<T extends Span>(let bestScore = -1;for (const hit of hits) {// `body` is markdown, so syntax is elastic here as well as whitespace.- const score = contextMatchScore(body, hit, { prefix, suffix }, { syntaxIn: 'haystack' });+ const score = contextMatchScore(+ body,+ hit,+ { prefix, suffix },+ { syntaxIn: 'haystack', syntaxInContext: contextIsMarkdown },+ );if (score > bestScore) {bestScore = score;best = [hit];@@ -130,9 +146,11 @@ export function bestByContext<T extends Span>(/*** Locate the anchor in the current `body`. Ordered, stop at first hit:* 1. fast path — the quote is still at the saved offsets;- * 2. quote search — find the quote; disambiguate multiple hits by context,+ * 2. deletion probe — the stored surroundings, now TOUCHING, prove the+ * passage was removed where it stood;+ * 3. quote search — find the quote; disambiguate multiple hits by context,* then by nearest-to-old-position;- * 3. orphan — nothing matched, or still ambiguous. Never guesses.+ * 4. orphan — nothing matched, or still ambiguous. Never guesses.*/export function refind(body: string, anchor: Anchor): RefindResult {const { exact, prefix, suffix, start } = anchor;@@ -143,11 +161,57 @@ export function refind(body: string, anchor: Anchor): RefindResult {return { status: 'anchored', start, end };}- // (2) quote search+ // (2) deletion probe. Deleting exactly the selected text does not remove the+ // stored context — it closes the gap between prefix and suffix, leaving the+ // two concatenated at the old spot. Finding that seam is POSITIVE evidence of+ // an in-place deletion, and it outranks any surviving occurrence of the+ // quote: when the deleted passage's whole neighbourhood was duplicated+ // elsewhere (a copied sentence, a repeated heading), the twin's surroundings+ // legitimately match the stored context and no amount of context scoring can+ // tell it from the original. The seam can.+ //+ // Two qualifiers keep the probe honest. Both context sides must exist — a+ // one-sided context is a document edge, not a seam. And the full+ // prefix+quote+suffix triple must be GONE: when the quote's own neighbours+ // repeat the quote ("hi hi hi"), the seam string exists even with the+ // passage intact, so adjacency alone proves nothing while the triple's+ // absence does.+ if (+ prefix !== '' &&+ suffix !== '' &&+ !body.includes(prefix + exact + suffix) &&+ body.includes(prefix + suffix)+ ) {+ return { status: 'orphaned' };+ }++ // (3) quote searchconst hits = allOccurrences(body, exact);if (hits.length === 0) return refindBetweenBrackets(body, anchor);+ // Every acceptance below must show a trace of the stored surroundings. This+ // is what keeps a deleted passage from re-anchoring onto an identical phrase+ // elsewhere: the survivor is a lone, clean hit of the quote, and before this+ // gate a lone hit was accepted without consulting the context at all — the+ // exact "never guesses" this module's header promises, broken in the one+ // case where guessing is invisible.+ // A stored anchor's context was sliced out of the body, so it carries the+ // body's markdown syntax and is condensed the same way the body is.+ const floor = contextEvidenceFloor(anchor, { syntaxInContext: true });+ const evidence = (span: Span): boolean =>+ floor === 0 ||+ contextMatchScore(+ body,+ span,+ { prefix, suffix },+ { syntaxIn: 'haystack', syntaxInContext: true },+ ) >= floor;if (hits.length === 1) {- return { status: 'anchored', start: hits[0], end: hits[0] + exact.length };+ const span = { start: hits[0], end: hits[0] + exact.length };+ // Not straight to orphaned: the true passage may have been EDITED (its+ // quote no longer literal) while an untouched twin still matches — the+ // bracket recovery can still find the real one by its intact surroundings.+ if (!evidence(span)) return refindBetweenBrackets(body, anchor);+ return { status: 'anchored', start: span.start, end: span.end };}// disambiguate by how much of the stored context still surrounds each hit@@ -155,7 +219,12 @@ export function refind(body: string, anchor: Anchor): RefindResult {body,hits.map((h) => ({ start: h, end: h + exact.length })),{ prefix, suffix },+ { contextIsMarkdown: true },);+ // Ranking says which candidate is LEAST bad; only the gate says whether the+ // winner is any good. With the commented occurrence gone, every surviving+ // twin scores near zero and the winner is an arbitrary wrong answer.+ if (!evidence(best[0])) return refindBetweenBrackets(body, anchor);if (best.length === 1) {return { status: 'anchored', start: best[0].start, end: best[0].end };}diff --git a/packages/server/src/comments/comment-service.test.ts b/packages/server/src/comments/comment-service.test.tsindex ec816519f..92beae69f 100644--- a/packages/server/src/comments/comment-service.test.ts+++ b/packages/server/src/comments/comment-service.test.ts@@ -521,6 +521,26 @@ describe('CommentService — refindDoc (document settled)', () => {expect(docBodyReads).toBe(0);});+ test('editing the anchored passage re-captures the quote the panel shows', async () => {+ // The reported gap: the highlight follows an edited passage live (bracket+ // recovery), but this pass kept only the anchored/orphaned bit — so the+ // card's quote named text no longer in the document until some later+ // dispatch re-found. A rewritten quote is user-visible state: persist it+ // and say so, so clients refetch.+ // Mid-document, so both stored brackets are substantial — a quote at the+ // very end gets a one-character suffix ("."), which is legitimately too+ // ambiguous for the recovery to accept.+ const { threadId } = await makeThread('scheduled');+ // Edit INSIDE the passage: the quote is no longer literal, but the stored+ // context still brackets it.+ bodies.set('notes/rollout', ORIGINAL.replace('scheduled', 'penciled in'));++ expect(await svc.refindDoc('notes/rollout')).toBe(true);+ const after = await svc.readThread(threadId);+ expect(after.state).toBe('anchored');+ expect(after.anchor?.exact).toBe('penciled in');+ });+test('resolved threads are skipped', async () => {const { threadId } = await makeThread();await svc.resolve(threadId);@@ -749,6 +769,32 @@ describe('CommentService — dispatch (client-delivered, resolve-on-send)', () =const meta = await svc.reopen(threadId);expect(meta.state).toBe('anchored');});++ test('reopening re-queues, so the next send carries it without a second click', async () => {+ // A send clears `queued` on its way to `resolved`. Reopening is the+ // correction for a send that did not settle the thing, so the comment comes+ // back in the batch rather than waiting to be ticked again.+ const { threadId } = await makeThread();+ await svc.prepareDispatch(threadId);+ await svc.completeDispatch(threadId);+ expect((await svc.readThread(threadId)).queued).toBe(false);++ expect((await svc.reopen(threadId)).queued).toBe(true);+ });++ test('a reopened thread that lost its passage is queued and orphaned', async () => {+ // Reopen re-finds, and a resolved thread's anchor is not maintained — so the+ // passage can be gone by now. It still ships: the dispatch tells the agent+ // the anchor was lost, which is more use than a comment silently held back.+ const { threadId } = await makeThread();+ await svc.prepareDispatch(threadId);+ await svc.completeDispatch(threadId);+ bodies.set('notes/rollout', 'Nothing of the original passage survives here.');++ const meta = await svc.reopen(threadId);+ expect(meta.state).toBe('orphaned');+ expect(meta.queued).toBe(true);+ });});describe('CommentService — renameDoc (US-12)', () => {diff --git a/packages/server/src/comments/comment-service.ts b/packages/server/src/comments/comment-service.tsindex e6274dfee..b46571ab0 100644--- a/packages/server/src/comments/comment-service.ts+++ b/packages/server/src/comments/comment-service.ts@@ -360,7 +360,10 @@ export class CommentService {* that is an identity gate, not attribution, and nothing here can record it.*/async editComment(threadId: string, body: string): Promise<CommentThreadMeta> {- return this.mutate(threadId, { latestComment: body });+ // Stamped only here. Resolving, queueing, and re-anchoring all change the+ // thread, but the card reads this as "when this text was last written" —+ // moving it on a resolve would say the words changed when they did not.+ return this.mutate(threadId, { latestComment: body, updatedAt: this.now() });}async resolve(threadId: string): Promise<CommentThreadMeta> {@@ -371,9 +374,16 @@ export class CommentService {* Reopen a closed thread. Its anchor state was not preserved under `resolved`* — deliberately, since a closed thread's anchor is moot — so the re-find* immediately re-establishes whether the passage is still there.+ *+ * Comes back QUEUED, the state a send cleared. Reopening is the correction for+ * a send that did not settle the thing, so the next act is another send; the+ * whole feature already queues on write rather than asking twice, and this was+ * the one place it asked twice. A reviewer who reopened only to read unticks in+ * one click, which is the cheap direction — a comment silently left out of a+ * batch the reviewer thought they had built is the expensive one.*/async reopen(threadId: string): Promise<CommentThreadMeta> {- await this.mutate(threadId, { state: 'anchored' });+ await this.mutate(threadId, { state: 'anchored', queued: true });return this.refindOnLoad(threadId);}@@ -627,22 +637,44 @@ export class CommentService {let changed = false;for (const meta of threads) {- let state: 'anchored' | 'orphaned';if (meta.target.kind === 'property') {// Unreadable frontmatter is not evidence the address is gone; skip,// exactly as an unreadable body leaves every body thread alone above.const result = await this.refindProperty(docName, meta.target, meta.anchor, frontmatter);if (result === null) continue;- state = result.state;- } else {- // A body thread without an anchor is malformed rather than orphaned —- // leave it as it is instead of reporting a loss the document didn't cause.- if (meta.anchor === null) continue;- state = refind(docBody, meta.anchor).status === 'anchored' ? 'anchored' : 'orphaned';+ if (result.state === meta.state) continue;+ await this.mutate(meta.threadId, { state: result.state });+ changed = true;+ continue;+ }+ // A body thread without an anchor is malformed rather than orphaned —+ // leave it as it is instead of reporting a loss the document didn't cause.+ if (meta.anchor === null) continue;+ const result = refind(docBody, meta.anchor);+ if (result.status === 'orphaned') {+ if (meta.state === 'orphaned') continue;+ await this.mutate(meta.threadId, { state: 'orphaned' });+ changed = true;+ continue;}- if (state === meta.state) continue;- await this.mutate(meta.threadId, { state });- changed = true;+ // A REWRITTEN quote is persisted and broadcast — editing the anchored+ // passage recovers through the brackets, and keeping only the+ // anchored/orphaned bit (as this pass once did) left the stored quote+ // naming text no longer in the document: the panel card showed the old+ // words until some later dispatch happened to re-find. Re-captured whole,+ // context included, exactly as `refindOnLoad` does.+ //+ // A mere position drift is deliberately NOT persisted here. This pass+ // runs on every settle of every document, so a hint write per thread per+ // keystroke burst is real load for a value that is only a hint — the+ // rare `refindOnLoad` refreshes it. The quote is different: the panel+ // RENDERS it, so staleness there is user-visible.+ const anchor =+ result.rewritten === true ? createAnchor(docBody, result.start, result.end) : undefined;+ const stateChanged = meta.state !== 'anchored';+ if (anchor === undefined && !stateChanged) continue;+ await this.mutate(meta.threadId, { ...(anchor ? { anchor } : {}), state: 'anchored' });+ if (stateChanged || anchor !== undefined) changed = true;}return changed;}@@ -751,6 +783,8 @@ export class CommentService {literal.length > 0 ? literal : findAllPassages(docBody, quote, { syntaxIn: 'haystack' });if (hits.length === 0) throw new PassageNotFoundError(quote);if (hits.length === 1) return hits[0];+ // No `contextIsMarkdown` here, unlike `refind`: this context came from the+ // editor and is rendered text, so it carries no syntax to be elastic about.return bestByContext(docBody, hits, { prefix: input.prefix, suffix: input.suffix })[0];}diff --git a/packages/server/src/comments/thread-store.ts b/packages/server/src/comments/thread-store.tsindex 887bd37e1..f3c7328f0 100644--- a/packages/server/src/comments/thread-store.ts+++ b/packages/server/src/comments/thread-store.ts@@ -200,13 +200,14 @@ export class CommentThreadStore {* by mistake or through an `as` cast.*/function patchable(patch: CommentThreadPatch): CommentThreadPatch {- const { docName, anchor, state, queued, latestComment } = patch;+ const { docName, anchor, state, queued, latestComment, updatedAt } = patch;return {...(docName !== undefined && { docName }),...(anchor !== undefined && { anchor }),...(state !== undefined && { state }),...(queued !== undefined && { queued }),...(latestComment !== undefined && { latestComment }),+ ...(updatedAt !== undefined && { updatedAt }),};}diff --git a/packages/server/src/comments/types.ts b/packages/server/src/comments/types.tsindex 57a233424..0bc6ca786 100644--- a/packages/server/src/comments/types.ts+++ b/packages/server/src/comments/types.ts@@ -41,7 +41,11 @@ export {type PropertyPath,} from '@inkeep/open-knowledge-core';-/** The fields a caller may change. Identity and provenance are not among them. */+/**+ * The fields a caller may change. Identity and provenance are not among them —+ * `updatedAt` is the one time field here because it records a change rather than+ * the thread's origin.+ */export type CommentThreadPatch = Partial<- Pick<CommentThreadMeta, 'docName' | 'anchor' | 'state' | 'queued' | 'latestComment'>+ Pick<CommentThreadMeta, 'docName' | 'anchor' | 'state' | 'queued' | 'latestComment' | 'updatedAt'>>;