Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

Add copy and edit actions to sent messages in agent chat (#3908)

miles-kt-inkeep1ba04ab325d3
diff --git a/.changeset/acp-user-message-actions.md b/.changeset/acp-user-message-actions.md
new file mode 100644
index 000000000..6071443fa
--- /dev/null
+++ b/.changeset/acp-user-message-actions.md
@@ -0,0 +1,11 @@
+---
+"@inkeep/open-knowledge": patch
+---
+
+Messages you send in an agent chat now carry their own actions:
+
+- **Send the same prompt to a different agent.** Editing a message opens a Send menu that can route it to a brand-new chat, or to a new chat with any other agent you have enabled — a second opinion on a prompt without retyping it. Anything the original carried, such as an attached image, rides along.
+- **Copy and edit a sent message.** Hovering a sent message shows when it was sent, a button to copy its text, and a button to edit it. The newest message keeps its actions on screen so the send menu is findable.
+- **Editing files a new turn rather than rewriting the original.** The agent has already answered what you first said, and that reply has to keep making sense, so the original message stays where it is. Edits open in the same field the composer uses, so `@`-mentions still work.
+
+Also fixes a bug in that shared field: seeding it with existing text (editing a comment, or opening one of the starter prompts) dropped every line break and swallowed anything written in angle brackets.
diff --git a/packages/app/src/components/CopyButton.dom.test.tsx b/packages/app/src/components/CopyButton.dom.test.tsx
index b161f2918..14c7fb5ac 100644
--- a/packages/app/src/components/CopyButton.dom.test.tsx
+++ b/packages/app/src/components/CopyButton.dom.test.tsx
@@ -17,6 +17,7 @@
*/
import { cleanup, fireEvent, render, screen, waitFor } from '@testing-library/react';
+import userEvent from '@testing-library/user-event';
import { afterEach, beforeEach, describe, expect, test } from 'vitest';
// CopyButton mounts a Radix Tooltip (focus-scope) which reaches for DOM globals
@@ -42,7 +43,10 @@ if (globalWithDomShims.ResizeObserver === undefined) {
}
const { CopyButton } = await import('./CopyButton');
-const { TooltipProvider } = await import('@/components/ui/tooltip');
+const { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } = await import(
+ '@/components/ui/tooltip'
+);
+const { Button } = await import('@/components/ui/button');
function renderCopyButton(props: Parameters<typeof CopyButton>[0]) {
return render(
@@ -65,6 +69,31 @@ describe('CopyButton', () => {
cleanup();
});
+ test('leaving Copy for a flush neighbor hands the tooltip off', async () => {
+ // Pins `disableHoverableContent`: without it, leaving the trigger arms the
+ // grace polygon and sets the provider's in-transit flag before the
+ // neighbor's trigger sees its first pointermove, so the neighbor's tooltip
+ // never opens on that move. The prop produces no DOM difference at rest,
+ // so this hand-off is the only honest place to catch its deletion.
+ const user = userEvent.setup();
+ render(
+ <TooltipProvider>
+ <CopyButton copyContent="x" ariaLabel="Copy message" />
+ <Tooltip>
+ <TooltipTrigger asChild>
+ <Button type="button" size="icon-xs" variant="ghost" aria-label="Edit" />
+ </TooltipTrigger>
+ <TooltipContent>Edit</TooltipContent>
+ </Tooltip>
+ </TooltipProvider>,
+ );
+
+ await user.hover(screen.getByRole('button', { name: 'Copy message' }));
+ await user.hover(screen.getByRole('button', { name: 'Edit' }));
+
+ expect(screen.getByRole('tooltip').textContent).toBe('Edit');
+ });
+
test('mounts in the Copy state by default', () => {
renderCopyButton({ copyContent: 'https://openknowledge.ai/d/Share123' });
diff --git a/packages/app/src/components/CopyButton.tsx b/packages/app/src/components/CopyButton.tsx
index 2f55c18f7..ec700f841 100644
--- a/packages/app/src/components/CopyButton.tsx
+++ b/packages/app/src/components/CopyButton.tsx
@@ -14,6 +14,7 @@
import { useLingui } from '@lingui/react/macro';
import { Check, Copy } from 'lucide-react';
+import type * as React from 'react';
import { useEffect, useState } from 'react';
import { Button } from '@/components/ui/button';
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip';
@@ -42,12 +43,26 @@ export interface CopyButtonProps {
* standard reset window.
*/
initialCopied?: boolean;
+ /** Button size, for hosts whose row is tighter than the default. Narrowed to
+ * the icon sizes because this renders a bare glyph with no label, and taken
+ * from `Button` so a renamed variant stops compiling here too. */
+ size?: Extract<React.ComponentProps<typeof Button>['size'], 'icon-xs' | 'icon-sm'>;
+ /**
+ * Accessible name in the idle state, when "Copy" alone is ambiguous — a
+ * transcript full of copyable things needs to say WHICH one. The copied
+ * state keeps the shared "Copied!" either way.
+ */
+ ariaLabel?: string;
+ testId?: string;
}
export function CopyButton({
copyContent,
clipboardWrite = defaultClipboardWrite,
initialCopied = false,
+ size = 'icon-sm',
+ ariaLabel,
+ testId,
}: CopyButtonProps) {
const { t } = useLingui();
// A monotonic tick rather than a boolean so a re-click while already
@@ -74,17 +89,23 @@ export function CopyButton({
);
};
- const label = copied ? t`Copied!` : t`Copy`;
+ const buttonLabel = copied ? t`Copied!` : (ariaLabel ?? t`Copy`);
return (
- <Tooltip>
+ // The content only echoes the button's accessible name, so keeping it
+ // hoverable buys nothing and its grace polygon costs: with the content
+ // flush to the trigger, the polygon covers a neighboring button's near
+ // edge, holding this tooltip open there and suppressing the neighbor's
+ // from opening. Convention note: ui/tooltip.tsx.
+ <Tooltip disableHoverableContent>
<TooltipTrigger asChild>
<Button
type="button"
- size="icon-sm"
+ size={size}
variant="ghost"
- aria-label={label}
+ aria-label={buttonLabel}
onClick={handleClick}
+ data-testid={testId}
>
{copied ? (
<Check className="size-3.5" aria-hidden="true" />
@@ -93,7 +114,7 @@ export function CopyButton({
)}
</Button>
</TooltipTrigger>
- <TooltipContent>{label}</TooltipContent>
+ <TooltipContent>{buttonLabel}</TooltipContent>
</Tooltip>
);
}
diff --git a/packages/app/src/components/SessionsHost.agents.dom.test.tsx b/packages/app/src/components/SessionsHost.agents.dom.test.tsx
index 32515c652..0733d1714 100644
--- a/packages/app/src/components/SessionsHost.agents.dom.test.tsx
+++ b/packages/app/src/components/SessionsHost.agents.dom.test.tsx
@@ -178,9 +178,17 @@ vi.doMock('@/lib/acp/registered-agents', () => ({
// settles. Tests drive the settle — a success lands a thread (setOpenThreads), a
// failure just clears the set — by flipping this back to false.
let mockInflightLaunch = false;
+/** Settles the way the real module does, so a caller that reads the outcome
+ * (the thread-launch effect does, to report a swallowed one) gets a promise. */
+let mockLaunchOutcome: 'started' | 'deduped' | 'failed' = 'started';
const launchAgentThread = vi.fn(() => {
mockInflightLaunch = true;
+ return Promise.resolve(mockLaunchOutcome);
});
+const toastError = vi.fn((_message: string) => {});
+vi.doMock('sonner', () => ({
+ toast: { error: toastError, info: vi.fn(), success: vi.fn(), warning: vi.fn(), message: vi.fn() },
+}));
vi.doMock('@/lib/acp/launch-agent-thread', () => ({
launchAgentThread,
hasInflightThreadLaunch: () => mockInflightLaunch,
@@ -300,6 +308,8 @@ describe('SessionsHost — agents panel (web / no bridge)', () => {
openArchivedThread.mockClear();
deleteThread.mockClear();
launchAgentThread.mockClear();
+ mockLaunchOutcome = 'started';
+ toastError.mockClear();
mockInflightLaunch = false;
registerAgent.mockClear();
catalogData = undefined;
@@ -920,6 +930,51 @@ describe('SessionsHost — agents panel (web / no bridge)', () => {
});
});
+ // A launch intent spends its nonce on dispatch, so the prompt the user just
+ // typed gets exactly one attempt. A swallowed one has to say so.
+ describe('a swallowed launch intent', () => {
+ test('reports a collision rather than eating the typed prompt', async () => {
+ window.location.hash = '';
+ mockLaunchOutcome = 'deduped';
+ mockRegisteredAgent = { source: 'registry', id: 'claude-acp', name: 'Claude Agent' };
+ render(
+ <Harness
+ threadLaunch={{
+ agentSource: 'registry',
+ agentId: 'claude-acp',
+ prompt: 'the words I just typed',
+ docName: null,
+ titleHint: null,
+ nonce: 1,
+ }}
+ />,
+ );
+
+ await vi.waitFor(() => expect(toastError).toHaveBeenCalledTimes(1));
+ });
+
+ test('a launch that starts says nothing', async () => {
+ window.location.hash = '';
+ mockLaunchOutcome = 'started';
+ mockRegisteredAgent = { source: 'registry', id: 'claude-acp', name: 'Claude Agent' };
+ render(
+ <Harness
+ threadLaunch={{
+ agentSource: 'registry',
+ agentId: 'claude-acp',
+ prompt: 'the words I just typed',
+ docName: null,
+ titleHint: null,
+ nonce: 1,
+ }}
+ />,
+ );
+
+ await vi.waitFor(() => expect(launchAgentThread).toHaveBeenCalledTimes(1));
+ expect(toastError).not.toHaveBeenCalled();
+ });
+ });
+
// Revealing an empty agents panel starts the same lead agent the New picker
// shows — but a passive reveal must never pop the catalog, so a panel with no
// agent to launch simply stays empty.
diff --git a/packages/app/src/components/SessionsHost.tsx b/packages/app/src/components/SessionsHost.tsx
index fa33c2971..0339e210a 100644
--- a/packages/app/src/components/SessionsHost.tsx
+++ b/packages/app/src/components/SessionsHost.tsx
@@ -18,6 +18,7 @@ import {
useState,
} from 'react';
import { createPortal } from 'react-dom';
+import { toast } from 'sonner';
import { RegisteredAgentIcon } from '@/components/acp/RegisteredAgentIcon';
import { ArchivedThreadChooser, ThreadHistoryMenu } from '@/components/acp/ThreadHistoryMenu';
import { publishReusableSession } from '@/components/reusable-session-store';
@@ -692,7 +693,7 @@ export function SessionsHost({
if (newSessionChoice.kind === 'terminal') openSession(null);
else if (newSessionChoice.kind === 'cli') openNewChatSession(newSessionChoice.cli);
else if (newSessionChoice.kind === 'agent' && newSessionChoice.agent != null)
- launchAgentThread(
+ void launchAgentThread(
{ source: newSessionChoice.agent.source, id: newSessionChoice.agent.id },
null,
null,
@@ -717,7 +718,7 @@ export function SessionsHost({
function seedOnReveal(): boolean {
if (hostThreads) {
if (newSessionChoice.kind !== 'agent' || newSessionChoice.agent == null) return false;
- launchAgentThread(
+ void launchAgentThread(
{ source: newSessionChoice.agent.source, id: newSessionChoice.agent.id },
null,
null,
@@ -972,8 +973,8 @@ export function SessionsHost({
const agent = { source: selection.agent.source, id: selection.agent.id };
// `prompt` runs on creation, `stageDraft` waits — the thread twins of the
// launch intent's `prompt` / `stagePaste`.
- if (submit) launchAgentThread(agent, text, null, null, null);
- else launchAgentThread(agent, null, null, null, text);
+ if (submit) void launchAgentThread(agent, text, null, null, null);
+ else void launchAgentThread(agent, null, null, null, text);
} else if (selection.kind === 'cli') {
requestTerminalLaunch(text, selection.cli, { stage: !submit });
} else {
@@ -1009,7 +1010,7 @@ export function SessionsHost({
registerAgent(agent);
writePreferBareTerminal(false);
saveStickyAgent(threadAgentId(agent));
- launchAgentThread({ source: agent.source, id: agent.id }, null, null, null);
+ void launchAgentThread({ source: agent.source, id: agent.id }, null, null, null);
}
// Record a terminal session's OSC 0/2 title. Same same-reference bailout as the
@@ -1409,8 +1410,21 @@ export function SessionsHost({
return;
}
lastHandledThreadNonceRef.current = threadLaunch.nonce;
- launchAgentThread(agent, threadLaunch.prompt, threadLaunch.docName, threadLaunch.titleHint);
- }, [threadLaunch, hostThreads, effectiveDefaultAgent]);
+ // The nonce is spent on the line above, so this intent gets exactly one
+ // attempt. `prompt` here is the instruction the user just typed into a
+ // "Start an agent" affordance and it survives nowhere else, so a launch the
+ // dedup guard swallows would take it with no retry and nothing said.
+ void launchAgentThread(
+ agent,
+ threadLaunch.prompt,
+ threadLaunch.docName,
+ threadLaunch.titleHint,
+ ).then((outcome) => {
+ if (outcome === 'deduped') {
+ toast.error(t`Already starting a chat with this agent — try again in a moment.`);
+ }
+ });
+ }, [threadLaunch, hostThreads, effectiveDefaultAgent, t]);
// Reload rehydration (capable bridge only): rebuild one terminal tab per PTY
// survivor and read the persisted unified order + active key, so restored tabs
diff --git a/packages/app/src/components/TerminalDock.dom.test.tsx b/packages/app/src/components/TerminalDock.dom.test.tsx
index 63472bb65..0ca3af74d 100644
--- a/packages/app/src/components/TerminalDock.dom.test.tsx
+++ b/packages/app/src/components/TerminalDock.dom.test.tsx
@@ -165,7 +165,7 @@ vi.doMock('./TerminalGate', () => ({
// agents-panel launch happens to be in flight.
let mockInflightThreadLaunch = false;
vi.doMock('@/lib/acp/launch-agent-thread', () => ({
- launchAgentThread: () => {},
+ launchAgentThread: () => Promise.resolve('started' as const),
hasInflightThreadLaunch: () => mockInflightThreadLaunch,
}));
diff --git a/packages/app/src/components/acp/ThreadView.tsx b/packages/app/src/components/acp/ThreadView.tsx
index e5b4ab830..0950eb76b 100644
--- a/packages/app/src/components/acp/ThreadView.tsx
+++ b/packages/app/src/components/acp/ThreadView.tsx
@@ -125,6 +125,7 @@ import {
fileToAttachment,
} from '@/lib/acp/image-attachment';
import { computeDiffRows } from '@/lib/acp/inline-diff';
+import { launchAgentThread } from '@/lib/acp/launch-agent-thread';
import { isPermissiveMode } from '@/lib/acp/permissive-mode';
import { parseSignInOutput, shortenUrl } from '@/lib/acp/sign-in-output';
import { renderTerminalText } from '@/lib/acp/terminal-text';
@@ -163,6 +164,7 @@ import { PlanChecklist } from './PlanChecklist';
import { appendPresenceWrite, latestAgentWrite, type PresenceWrite } from './presence-follow';
import { RegisteredAgentIcon } from './RegisteredAgentIcon';
import { transcriptItemId } from './transcript-item-id';
+import { type ResendTarget, UserMessageActions, UserMessageEditor } from './UserMessageActions';
import { activeToolKind, useThinkingLine, workingStatusText } from './working-status';
/**
@@ -809,6 +811,52 @@ export function ThreadView({
.finally(() => setResumePending(false));
};
+ /**
+ * Send a revision of an already-sent message, either back into this
+ * conversation or into a fresh one.
+ *
+ * The original turn is left alone. A transcript is the record of what the
+ * agent was actually told, and the agent has already answered — rewriting the
+ * bubble in place would leave its reply answering words that no longer appear
+ * anywhere. So a revision is a new turn, which is also what lets it go to a
+ * different thread at all.
+ */
+ const resendMessage = async (
+ text: string,
+ target: ResendTarget,
+ attachments: readonly AttachmentPart[],
+ ): Promise<boolean> => {
+ if (target.kind === 'this-thread') {
+ // `sendText` reports its own outcome: a live thread resolves true once the
+ // prompt is dispatched, and an archived one resolves FALSE when the resume
+ // it needs first fails.
+ //
+ // Null failure text, the escape hatch `failureText` documents for a caller
+ // whose content survives elsewhere: on a failed resume the editor stays
+ // open holding this revision AND its attachments, so also stashing it as a
+ // failed prompt would offer a second, attachment-less copy of the same
+ // words through the amber banner.
+ return sendText(text, null, attachments);
+ }
+ // A new thread activates its own dock tab on arrival, so the revision lands
+ // in front of the user without this surface reaching for focus.
+ const outcome = await launchAgentThread(
+ { source: target.agent.source, id: target.agent.id },
+ text,
+ null,
+ null,
+ null,
+ attachments,
+ );
+ // A failed creation already toasted. A deduped one said nothing at all, and
+ // here the revision exists nowhere but the field the caller is about to tear
+ // down — so silence would read as the click doing nothing and lose it.
+ if (outcome === 'deduped') {
+ toast.error(t`Already starting a chat with this agent — try again in a moment.`);
+ }
+ return outcome === 'started';
+ };
+
const submit = (): void => {
const text = composerText();
const attachments = composerAttachments();
@@ -975,11 +1023,25 @@ export function ThreadView({
// aligned indices with the transcript the reverse-scan walks), then hide
// pairs the user reverted this session. `visibleItems` is what renders and
// what `retryNoticeIndex` / `restoreNoticeIndex` index against.
- const foldedItems =
+ const foldedEntries =
model === null
? []
- : model.items.filter((item) => item.kind !== 'notice' || item.superseded !== true);
- const visibleItems = foldedItems.filter((_, index) => !revertedPositions.has(index));
+ : model.items.flatMap((item, modelIndex) =>
+ item.kind !== 'notice' || item.superseded !== true ? [{ item, modelIndex }] : [],
+ );
+ const foldedItems = foldedEntries.map((entry) => entry.item);
+ // Each visible row keeps the `model.items` position it came from, rather than
+ // that being rebuilt alongside and re-paired by ordinal. Both filters remove
+ // items, so a visible position shifts when one lands ahead of it, and the
+ // React key is what holds a bubble (and the revision being typed in it)
+ // mounted. Of the three index spaces only `model.items` is append-only, and
+ // only for as long as the thread's model builder lives: archiving a live
+ // thread discards it, which unmounts the whole view rather than a row.
+ //
+ // `foldedItems` and the visible ordinal both stay, since six index maps read
+ // those.
+ const visibleEntries = foldedEntries.filter((_, index) => !revertedPositions.has(index));
+ const visibleItems = visibleEntries.map((entry) => entry.item);
let retryNoticeIndex = -1;
if (canRetry) {
for (let index = visibleItems.length - 1; index >= 0; index -= 1) {
@@ -1048,6 +1110,20 @@ export function ThreadView({
return -1;
};
+ // The newest sent message keeps its actions on screen rather than waiting for
+ // a hover. Sending a revision to a DIFFERENT agent is a capability nothing
+ // else in the app points at, so hiding every entry point behind a hover would
+ // leave it undiscovered; showing it on one turn surfaces it per thread
+ // without doubling the chrome down a long transcript.
+ let lastUserTurnIndex = -1;
+ for (let index = visibleItems.length - 1; index >= 0; index -= 1) {
+ const item = visibleItems[index];
+ if (item?.kind === 'message' && item.role === 'user') {
+ lastUserTurnIndex = index;
+ break;
+ }
+ }
+
// A thread waiting on sign-in has nothing else to show: it never opened a
// session, so its transcript is startup diagnostics the sign-in supersedes.
// The prompt takes the whole pane rather than sitting under a stack of alert
@@ -1185,8 +1261,8 @@ export function ThreadView({
data-testid="agent-thread-transcript"
>
<MessageScrollerContent className="gap-2 [&>[data-tool-call]+[data-tool-call]]:-mt-1">
- {visibleItems.map((item, index) => {
- const id = transcriptItemId(item, index);
+ {visibleEntries.map(({ item, modelIndex }, index) => {
+ const id = transcriptItemId(item, modelIndex);
return (
<MessageScrollerItem
key={id}
@@ -1217,6 +1293,14 @@ export function ThreadView({
onRetry={retryThread}
showRestore={index === restoreNoticeIndex}
onRestore={() => restoreFailedPromptToComposer(index)}
+ onResend={resendMessage}
+ // Only the "send it here" destination needs this
+ // thread alive. A revision handed to a fresh thread
+ // never touches it — and a crashed agent is exactly
+ // when handing the prompt to a different one is
+ // worth the most.
+ canSendHere={canPrompt || canQueue}
+ isLatestUserTurn={index === lastUserTurnIndex}
/>
</MessageScrollerItem>
);
@@ -2015,6 +2099,9 @@ function ThreadItem({
onRetry,
showRestore,
onRestore,
+ onResend,
+ canSendHere,
+ isLatestUserTurn,
}: {
item: RenderedItem;
threadId: string;
@@ -2032,10 +2119,33 @@ function ThreadItem({
/** This notice is the one that offers Edit-and-resend (at most one). */
showRestore: boolean;
onRestore: () => void;
+ /** Re-send a revision of a sent message. Settles false when the send demonstrably
+ * did not happen: a deduped or failed launch, or an archived thread whose resume
+ * rejected. True on a live thread means dispatched, not acknowledged. */
+ onResend: (
+ text: string,
+ target: ResendTarget,
+ attachments: readonly AttachmentPart[],
+ ) => Promise<boolean>;
+ /** Whether THIS thread still accepts sends. Gates only the same-thread
+ * destination; the new-thread ones never needed it. */
+ canSendHere: boolean;
+ /** This is the transcript's last sent message. Its actions stay visible
+ * rather than waiting for a hover. */
+ isLatestUserTurn: boolean;
}): ReactNode {
switch (item.kind) {
case 'message':
- return <MessageBubble item={item} streaming={streaming} />;
+ return (
+ <MessageBubble
+ item={item}
+ streaming={streaming}
+ agent={agent}
+ onResend={onResend}
+ canSendHere={canSendHere}
+ isLatestUserTurn={isLatestUserTurn}
+ />
+ );
case 'tool_call':
return (
<ToolCallCard
@@ -2539,43 +2649,147 @@ function ThreadNotice({
function MessageBubble({
item,
streaming,
+ agent,
+ onResend,
+ canSendHere,
+ isLatestUserTurn,
}: {
item: Extract<RenderedItem, { kind: 'message' }>;
streaming?: boolean;
+ /** The agent answering this thread — the "new chat" default in the editor's
+ * send menu. */
+ agent: ThreadInfo['agent'];
+ /** Re-send a revision of this message. Resolves false when the send demonstrably
+ * did not happen: a launch the dedup guard swallowed or that failed to create,
+ * or an archived thread whose resume rejected. On a live thread the prompt is
+ * dispatched fire-and-forget, so true there means handed to the socket, not
+ * acknowledged. */
+ onResend: (
+ text: string,
+ target: ResendTarget,
+ attachments: readonly AttachmentPart[],
+ ) => Promise<boolean>;
+ /** Whether this thread still accepts sends. Only the same-thread destination
+ * is withdrawn without it — Edit stays, because a revision can still be
+ * handed to a fresh thread. */
+ canSendHere: boolean;
+ /** The transcript's last sent message keeps its actions on screen. */
+ isLatestUserTurn: boolean;
}): ReactNode {
+ const [editing, setEditing] = useState(false);
+ // Assigned by every close, so it always describes the most recent one rather
+ // than latching. State rather than an unconditional autofocus because a bubble
+ // that remounts for any other reason must not pull focus out of wherever the
+ // reader actually is.
+ const [restoreFocus, setRestoreFocus] = useState(false);
+ // Bumped by every open and every close. `onSend` awaits, so its continuation
+ // outlives the editor that started it: cancelling a slow send, reopening and
+ // retyping would otherwise let the abandoned one tear down the SECOND editor
+ // and take that revision with it.
+ const editSession = useRef(0);
+ const openEditor = (): void => {
+ editSession.current += 1;
+ setEditing(true);
+ };
+ const closeEditor = (restore: boolean): void => {
+ editSession.current += 1;
+ setEditing(false);
+ setRestoreFocus(restore);
+ };
if (item.role === 'thought') {
return <ThoughtBlock item={item} streaming={streaming === true} />;
}
- const isUser = item.role === 'user';
- const attachments = isUser ? item.attachments : undefined;
+ if (item.role !== 'user') {
+ return (
+ // Agent reply reads as full-width prose — no bubble, no fill.
+ <div
+ className="w-full wrap-break-word text-sm text-foreground"
+ data-testid="agent-thread-agent-message"
+ >
+ {/* Rendered as markdown, by the same renderer that sanitizes the
+ transcript's other prose. */}
+ <AgentMarkdown text={item.text} />
+ </div>
+ );
+ }
+ const attachments = item.attachments;
return (
+ // The hover scope spans the bubble AND the action row beneath it, so
+ // travelling from the words to the buttons never crosses un-hovered ground
+ // and blinks them away. Extra vertical 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 stay tight.
<div
className={cn(
- 'wrap-break-word text-sm text-foreground',
- isUser
- ? // Sent-message bubble: light-gray fill, right-aligned, with the
- // squared bottom-right corner (the sender-side "tail"). Extra bottom
- // 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.
- // 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',
+ 'group/user-message my-3 ml-auto flex flex-col',
+ // Editing needs the room the read view doesn't: a revision is typed,
+ // not skimmed, and 85% of a docked panel is a column too narrow to work
+ // a paragraph in.
+ editing ? 'w-full' : 'max-w-[85%]',
)}
- data-testid={isUser ? 'agent-thread-user-message' : 'agent-thread-agent-message'}
>
- {/* 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}
+ <div
+ className={cn(
+ // Sent-message bubble: light-gray fill, right-aligned, with the
+ // squared bottom-right corner (the sender-side "tail").
+ // 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.
+ 'wrap-break-word rounded-2xl rounded-br-xs bg-muted text-sm text-foreground',
+ editing ? 'p-2' : 'px-3 py-1.5',
+ )}
+ data-testid="agent-thread-user-message"
+ >
+ {editing ? (
+ <UserMessageEditor
+ initialText={item.text}
+ currentAgent={agent}
+ canSendHere={canSendHere}
+ onCancel={() => closeEditor(true)}
+ onSend={async (text, target, chips) => {
+ // The original message's parts ride along: a revision of "look at
+ // this screenshot and…" that arrived without the screenshot is a
+ // different ask. Chips typed into the revision itself are added,
+ // not substituted.
+ //
+ // Awaited, so a send that reports back as not-having-happened
+ // leaves the field standing. The revision exists nowhere else, so
+ // closing on a launch that turns out to be swallowed would delete
+ // what was typed.
+ const session = editSession.current;
+ if (!(await onResend(text, target, [...(attachments ?? []), ...chips]))) return;
+ // Whoever is in the field now did not start this send.
+ if (editSession.current !== session) return;
+ // Focus goes back to the turn only when the answer arrives here.
+ // A new thread activates its own dock tab and moves focus into
+ // that composer, so reaching for it would teleport twice and land
+ // the user on a control that no longer describes their state.
+ closeEditor(target.kind === 'this-thread');
+ }}
+ />
+ ) : (
+ <>
+ {/* 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. */}
+ <AgentMarkdown text={item.text} />
+ {attachments !== undefined && attachments.length > 0 ? (
+ <UserMessageAttachments attachments={attachments} />
+ ) : null}
+ </>
+ )}
+ </div>
+ {editing ? null : (
+ <UserMessageActions
+ text={item.text}
+ sentAt={item.sentAt}
+ alwaysVisible={isLatestUserTurn}
+ restoreFocus={restoreFocus}
+ onEdit={openEditor}
+ />
+ )}
</div>
);
}
diff --git a/packages/app/src/components/acp/ThreadView.user-message-actions.dom.test.tsx b/packages/app/src/components/acp/ThreadView.user-message-actions.dom.test.tsx
new file mode 100644
index 000000000..c8a1e5e39
--- /dev/null
+++ b/packages/app/src/components/acp/ThreadView.user-message-actions.dom.test.tsx
@@ -0,0 +1,655 @@
+/**
+ * RTL mount tests for the per-message actions on a sent user turn: Copy, and
+ * Edit-and-resend with its destination menu (this conversation, a new one, or a
+ * new one with a different agent).
+ *
+ * The subject is where a revision GOES and what rides with it — the editor
+ * field's own behavior (chips, `@`-typeahead, key handling) belongs to
+ * `ComposerMentionInput.dom.test.tsx`, and this suite drives the textarea
+ * double instead.
+ */
+
+import type { ThreadInfo } from '@inkeep/open-knowledge-core/acp/thread-protocol';
+import { act, cleanup, render as rtlRender, screen, within } from '@testing-library/react';
+import userEvent from '@testing-library/user-event';
+import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';
+import { TooltipProvider } from '@/components/ui/tooltip';
+import type { RenderedItem, ThreadRenderModel } from '@/lib/acp/thread-event-model';
+import { MockComposerMentionInput } from './composer-mention-input.test-helper';
+
+const render = (ui: Parameters<typeof rtlRender>[0]) => rtlRender(ui, { wrapper: TooltipProvider });
+
+let model: ThreadRenderModel | null = null;
+const prompt = vi.fn((_threadId: string, _content: string, _attachments?: unknown) => {});
+/** What the mocked launcher settles on. `deduped` stands in for the guard
+ * swallowing the call, which in the real module returns before `createThread`
+ * and so says nothing on its own; `failed` has already toasted by the time it
+ * settles. Both mean the revision never went. */
+let launchOutcome: 'started' | 'deduped' | 'failed' = 'started';
+/** Set to hold a launch in flight; the test resolves it when it wants the
+ * editor's awaited close to run. Creation really does take tens of seconds. */
+let heldLaunch: { promise: Promise<'started' | 'deduped' | 'failed'>; settle: () => void } | null =
+ null;
+function holdNextLaunch(): void {
+ let release!: () => void;
+ const promise = new Promise<'started' | 'deduped' | 'failed'>((resolve) => {
+ release = () => resolve(launchOutcome);
+ });
+ heldLaunch = { promise, settle: release };
+}
+const launchAgentThread = vi.fn(
+ (
+ _agent: { source: string; id: string },
+ _prompt: string | null,
+ _docName: string | null,
+ _titleHint: string | null,
+ _stageDraft?: string | null,
+ _attachments?: unknown,
+ ) => heldLaunch?.promise ?? Promise.resolve(launchOutcome),
+);
+const toastError = vi.fn((_message: string) => {});
+const resumeThread = vi.fn((..._args: unknown[]) => {});
+const createThread = vi.fn((_args: { prompt?: string }) => {});
+/** Archived threads must resume before they accept a send; this is that failing. */
+let resumeRejects = false;
+/** The agents the picker offers, as the registration store would report them. */
+let registeredAgents: readonly {
+ source: 'registry' | 'custom';
+ id: string;
+ name: string;
+}[] = [];
+
+vi.doMock('@/lib/acp/thread-client', () => ({
+ getAgentThreadClient: () => ({
+ respondPermission: () => {},
+ respondRuntimeConsent: () => {},
+ cancel: () => {},
+ prompt,
+ steer: () => {},
+ editQueued: async () => {},
+ holdQueued: () => {},
+ removeQueued: () => {},
+ setMode: () => {},
+ setConfigOption: () => {},
+ closeThread: () => {},
+ createThread: async (args: { prompt?: string }) => {
+ createThread(args);
+ return { threadId: 'thread-2' };
+ },
+ resumeThread: async (..._args: unknown[]) => {
+ resumeThread(..._args);
+ if (resumeRejects) throw new Error('resume failed');
+ },
+ retryThread: async () => {},
+ authenticateThread: async () => {},
+ }),
+ ThreadResumeError: class ThreadResumeError extends Error {
+ readonly code: string;
+ constructor(code: string, message: string) {
+ super(message);
+ this.code = code;
+ }
+ },
+ useAgentThread: () => ({ info: undefined, events: [], lastSeq: 5 }),
+ useAgentThreadModel: () => model,
+}));
+
+vi.doMock('@/lib/acp/launch-agent-thread', () => ({
+ launchAgentThread,
+ hasInflightThreadLaunch: () => false,
+}));
+
+vi.doMock('@/lib/acp/registered-agents', () => ({
+ useRegisteredAgents: () => registeredAgents,
+ useDefaultRegisteredAgent: () => null,
+ registerAgent: () => {},
+ pickEffectiveDefaultAgent: () => null,
+}));
+
+// `enabled-agents` is NOT mocked: `agent-visibility` reads its `resolveEnabled`
+// too, and the real store's no-override default (a registered agent is shown)
+// is exactly the state these tests want.
+
+vi.doMock('sonner', () => ({
+ toast: { error: toastError, success: vi.fn(), info: vi.fn() },
+}));
+
+vi.doMock('@/editor/DocumentContext', () => ({
+ useDocumentContext: () => ({ systemProvider: null }),
+}));
+
+vi.doMock('@/lib/use-workspace', () => ({
+ useWorkspace: () => null,
+}));
+
+vi.doMock('@/components/acp/AgentMarkdown', () => ({
+ AgentMarkdown: ({ text }: { text: string }) => <div data-testid="rendered-markdown">{text}</div>,
+}));
+
+vi.doMock('@/editor/ComposerMentionInput', () => ({
+ ComposerMentionInput: MockComposerMentionInput,
+}));
+
+const { ThreadView } = await import('./ThreadView');
+
+function makeInfo(overrides?: Partial<ThreadInfo>): ThreadInfo {
+ return {
+ threadId: 'thread-1',
+ agent: { id: 'claude', name: 'Claude Agent', source: 'registry' },
+ title: 'Test thread',
+ // `ready` with no active turn is the state that accepts a send.
+ status: 'ready',
+ createdAt: 1,
+ lastActivityAt: 2,
+ lastSeq: 5,
+ archived: false,
+ ...overrides,
+ };
+}
+
+function userMessage(overrides?: Partial<Extract<RenderedItem, { kind: 'message' }>>) {
+ return {
+ kind: 'message' as const,
+ role: 'user' as const,
+ text: 'explain this to me',
+ messageId: 'user-0',
+ ...overrides,
+ };
+}
+
+function mountWith(items: RenderedItem[], info?: Partial<ThreadInfo>) {
+ model = {
+ items,
+ plan: [],
+ turnActive: false,
+ tokenUsage: null,
+ terminals: {},
+ permissionsByToolCall: {},
+ };
+ return render(<ThreadView info={makeInfo(info)} />);
+}
+
+/** Open the editor on the one user turn on screen. */
+async function startEditing(): Promise<void> {
+ await userEvent.click(screen.getByTestId('agent-thread-user-message-edit'));
+}
+
+/** Replace the editor's text, the way typing over a selection would. */
+async function rewriteTo(text: string): Promise<void> {
+ const field = screen.getByTestId('agent-thread-user-message-edit-field');
+ await userEvent.clear(field);
+ await userEvent.type(field, text);
+}
+
+beforeEach(() => {
+ registeredAgents = [
+ { source: 'registry', id: 'claude', name: 'Claude Agent' },
+ { source: 'registry', id: 'codex-acp', name: 'Codex' },
+ ];
+});
+
+afterEach(() => {
+ cleanup();
+ prompt.mockClear();
+ launchAgentThread.mockClear();
+ toastError.mockClear();
+ launchOutcome = 'started';
+ heldLaunch = null;
+ resumeRejects = false;
+ resumeThread.mockClear();
+ createThread.mockClear();
+ model = null;
+});
+
+describe('sent-message actions', () => {
+ test('a sent message offers Copy and Edit; an agent reply offers neither', () => {
+ mountWith([
+ userMessage(),
+ { kind: 'message', role: 'agent', text: 'here you go', messageId: 'a-0' },
+ ]);
+ // One action row, on the one user turn — the agent's reply is prose, not a
+ // thing you resend.
+ expect(screen.getAllByTestId('agent-thread-user-message-actions')).toHaveLength(1);
+ expect(screen.getByTestId('agent-thread-user-message-copy')).toBeDefined();
+ expect(screen.getByTestId('agent-thread-user-message-edit')).toBeDefined();
+ });
+
+ test('Copy puts the message text on the clipboard and acknowledges it', async () => {
+ const writeText = vi.fn(async () => {});
+ vi.stubGlobal('navigator', { ...navigator, clipboard: { writeText } });
+ mountWith([userMessage({ text: 'the exact words I sent' })]);
+ await userEvent.click(screen.getByTestId('agent-thread-user-message-copy'));
+ expect(writeText).toHaveBeenCalledWith('the exact words I sent');
+ // The icon swap is the whole feedback — without the label change there is
+ // nothing for a screen reader to announce.
+ expect(await screen.findByRole('button', { name: 'Copied!' })).toBeDefined();
+ vi.unstubAllGlobals();
+ });
+
+ test('a sent message carries the time it was sent', () => {
+ mountWith([userMessage({ sentAt: Date.now() })]);
+ expect(screen.getByTestId('agent-thread-user-message-sent-at').textContent).not.toBe('');
+ });
+
+ test('a thread that can take no further sends still offers Copy and Edit', () => {
+ // A revision handed to a FRESH thread never touches this one, so a dead
+ // thread is no reason to withdraw the whole affordance — and a crashed
+ // agent is when handing the prompt to a different one is worth the most.
+ mountWith([userMessage()], { status: 'exited' });
+ expect(screen.getByTestId('agent-thread-user-message-copy')).toBeDefined();
+ expect(screen.getByTestId('agent-thread-user-message-edit')).toBeDefined();
+ });
+});
+
+describe('edit and resend', () => {
+ test('the editor opens seeded with the message, and Cancel leaves the turn as it was', async () => {
+ mountWith([userMessage({ text: 'explain this to me' })]);
+ await startEditing();
+ expect(
+ (screen.getByTestId('agent-thread-user-message-edit-field') as HTMLTextAreaElement).value,
+ ).toBe('explain this to me');
+ await userEvent.click(screen.getByTestId('agent-thread-user-message-edit-cancel'));
+ expect(screen.queryByTestId('agent-thread-user-message-editor')).toBeNull();
+ expect(prompt).not.toHaveBeenCalled();
+ // The original is still in the transcript — an abandoned edit changes
+ // nothing about what was said.
+ expect(screen.getByTestId('agent-thread-user-message')).toBeDefined();
+ });
+
+ test('closing the editor hands focus back to the Edit button that opened it', async () => {
+ // The editor is the focused node; when it unmounts focus falls to <body>,
+ // and a keyboard reader resumes from the top of the transcript rather than
+ // the turn they were working on.
+ mountWith([userMessage()]);
+ await startEditing();
+ await userEvent.click(screen.getByTestId('agent-thread-user-message-edit-cancel'));
+ expect(document.activeElement).toBe(screen.getByTestId('agent-thread-user-message-edit'));
+ });
+
+ test('sending a revision also returns focus to the turn it came from', async () => {
+ mountWith([userMessage()]);
+ await startEditing();
+ await rewriteTo('explain this to me, briefly');
+ await userEvent.click(screen.getByTestId('agent-thread-user-message-edit-send'));
+ expect(document.activeElement).toBe(screen.getByTestId('agent-thread-user-message-edit'));
+ });
+
+ test('Send puts the revision into this conversation as a new turn', async () => {
+ mountWith([userMessage()]);
+ await startEditing();
+ await rewriteTo('explain this to me, briefly');
+ await userEvent.click(screen.getByTestId('agent-thread-user-message-edit-send'));
+ expect(prompt).toHaveBeenCalledWith('thread-1', 'explain this to me, briefly', undefined);
+ // Re-sending never starts a thread — the destination menu is what does.
+ expect(launchAgentThread).not.toHaveBeenCalled();
+ });
+
+ test('the original turn survives the resend rather than being rewritten', async () => {
+ // The agent has already answered what was said; editing the bubble in place
+ // would leave that reply answering words no longer on screen.
+ mountWith([userMessage({ text: 'original wording' })]);
+ await startEditing();
+ await rewriteTo('revised wording');
+ await userEvent.click(screen.getByTestId('agent-thread-user-message-edit-send'));
+ expect(screen.getByTestId('rendered-markdown').textContent).toBe('original wording');
+ });
+
+ test('an emptied revision has nothing to send, and Send says so', async () => {
+ mountWith([userMessage()]);
+ await startEditing();
+ await userEvent.clear(screen.getByTestId('agent-thread-user-message-edit-field'));
+ expect(
+ (screen.getByTestId('agent-thread-user-message-edit-send') as HTMLButtonElement).disabled,
+ ).toBe(true);
+ expect(prompt).not.toHaveBeenCalled();
+ });
+
+ test("a message's attachments ride the resend", async () => {
+ // A revision of "look at this screenshot and…" that arrives without the
+ // screenshot is a different ask.
+ const attachment = {
+ kind: 'image' as const,
+ name: 'shot.png',
+ mimeType: 'image/png',
+ data: 'AAAA',
+ };
+ mountWith([userMessage({ attachments: [attachment] })]);
+ await startEditing();
+ await rewriteTo('and now the other half');
+ await userEvent.click(screen.getByTestId('agent-thread-user-message-edit-send'));
+ expect(prompt).toHaveBeenCalledWith('thread-1', 'and now the other half', [attachment]);
+ });
+});
+
+describe('sending a revision somewhere else', () => {
+ async function openSendMenu(): Promise<void> {
+ await userEvent.click(screen.getByTestId('agent-thread-user-message-edit-send-menu'));
+ }
+
+ test('the menu offers this conversation, a new one, and each other agent', async () => {
+ mountWith([userMessage()]);
+ await startEditing();
+ await openSendMenu();
+ expect(screen.getByTestId('agent-thread-send-target-this-thread')).toBeDefined();
+ expect(screen.getByTestId('agent-thread-send-target-new-thread')).toBeDefined();
+ expect(screen.getByTestId('agent-thread-send-target-agent-registry:codex-acp')).toBeDefined();
+ // This thread's own agent heads the new-chat list once, as the default —
+ // listing it again below would read as two different destinations.
+ expect(screen.queryByTestId('agent-thread-send-target-agent-registry:claude')).toBeNull();
+ });
+
+ test('a new chat runs the revision on a fresh thread with this thread’s agent', async () => {
+ mountWith([userMessage()]);
+ await startEditing();
+ await rewriteTo('try again from scratch');
+ await openSendMenu();
+ await userEvent.click(screen.getByTestId('agent-thread-send-target-new-thread'));
+ expect(launchAgentThread).toHaveBeenCalledWith(
+ { source: 'registry', id: 'claude' },
+ 'try again from scratch',
+ null,
+ null,
+ null,
+ [],
+ );
+ // Nothing lands back in the conversation the message came from.
+ expect(prompt).not.toHaveBeenCalled();
+ });
+
+ test('picking a different agent starts that agent on the revision', async () => {
+ mountWith([userMessage()]);
+ await startEditing();
+ await rewriteTo('second opinion please');
+ await openSendMenu();
+ await userEvent.click(screen.getByTestId('agent-thread-send-target-agent-registry:codex-acp'));
+ expect(launchAgentThread).toHaveBeenCalledWith(
+ { source: 'registry', id: 'codex-acp' },
+ 'second opinion please',
+ null,
+ null,
+ null,
+ [],
+ );
+ expect(prompt).not.toHaveBeenCalled();
+ });
+
+ test('a thread whose agent is the only one registered still offers a new chat', async () => {
+ registeredAgents = [{ source: 'registry', id: 'claude', name: 'Claude Agent' }];
+ mountWith([userMessage()]);
+ await startEditing();
+ await openSendMenu();
+ expect(screen.getByTestId('agent-thread-send-target-new-thread')).toBeDefined();
+ });
+
+ test('attachments follow the revision into a new chat', async () => {
+ const attachment = {
+ kind: 'image' as const,
+ name: 'shot.png',
+ mimeType: 'image/png',
+ data: 'AAAA',
+ };
+ mountWith([userMessage({ attachments: [attachment] })]);
+ await startEditing();
+ await rewriteTo('what do you make of this');
+ await openSendMenu();
+ await userEvent.click(screen.getByTestId('agent-thread-send-target-agent-registry:codex-acp'));
+ expect(launchAgentThread).toHaveBeenCalledWith(
+ { source: 'registry', id: 'codex-acp' },
+ 'what do you make of this',
+ null,
+ null,
+ null,
+ [attachment],
+ );
+ });
+});
+
+describe('a revision is never destroyed by something other than sending it', () => {
+ test('a thread that stops accepting sends mid-edit leaves the editor and the words alone', async () => {
+ // The editor and the action row used to be gated on different conditions,
+ // so a status change under an open editor unmounted it — discarding the
+ // typed revision — and left the row hidden forever, taking Copy with it.
+ const { rerender } = mountWith([userMessage()]);
+ await startEditing();
+ await rewriteTo('most of a long revision');
+
+ rerender(<ThreadView info={makeInfo({ status: 'exited' })} />);
+
+ const field = screen.getByTestId('agent-thread-user-message-edit-field');
+ expect((field as HTMLTextAreaElement).value).toBe('most of a long revision');
+ // Only the destination that needs this thread is withdrawn.
+ expect(
+ (screen.getByTestId('agent-thread-user-message-edit-send') as HTMLButtonElement).disabled,
+ ).toBe(true);
+ });
+
+ test('cancelling an edit on a dead thread hands the row back with Copy on it', async () => {
+ const { rerender } = mountWith([userMessage()]);
+ await startEditing();
+ rerender(<ThreadView info={makeInfo({ status: 'exited' })} />);
+ await userEvent.click(screen.getByTestId('agent-thread-user-message-edit-cancel'));
+
+ expect(screen.getByTestId('agent-thread-user-message-actions')).toBeDefined();
+ expect(screen.getByTestId('agent-thread-user-message-copy')).toBeDefined();
+ });
+
+ test('a launch the dedup guard swallows keeps the editor open and says so', async () => {
+ // The guard returns before `createThread`, so nothing else reports it: no
+ // promise, no toast. Closing the editor on that would delete the only copy
+ // of what was typed and read as the click doing nothing.
+ launchOutcome = 'deduped';
+ mountWith([userMessage()]);
+ await startEditing();
+ await rewriteTo('the only copy of this text');
+ await userEvent.click(screen.getByTestId('agent-thread-user-message-edit-send-menu'));
+ await userEvent.click(screen.getByTestId('agent-thread-send-target-new-thread'));
+
+ expect(
+ (screen.getByTestId('agent-thread-user-message-edit-field') as HTMLTextAreaElement).value,
+ ).toBe('the only copy of this text');
+ expect(toastError).toHaveBeenCalled();
+ // The editor survived its own send, so the sending reset is observable
+ // here: the region has emptied again, where an ungated label would still
+ // be announcing.
+ expect(
+ within(screen.getByTestId('agent-thread-user-message-editor'))
+ .queryAllByRole('status')
+ .map((node) => node.textContent),
+ ).not.toContain('Sending…');
+ });
+
+ test('a send in flight holds the field shut against a second dispatch', async () => {
+ // Creation takes tens of seconds. Without the guard the second click reaches
+ // the launcher's dedup guard and reports a collision for a send that is
+ // about to succeed.
+ holdNextLaunch();
+ mountWith([userMessage()]);
+ await startEditing();
+ await rewriteTo('one send only');
+
+ // Mounted empty from the editor's first render and scoped to it, so the
+ // announcement is not lost to a region that appears and fills in the same
+ // cycle, and the unrelated always-mounted drop notice cannot stand in.
+ const editorRegions = (): HTMLElement[] =>
+ within(screen.getByTestId('agent-thread-user-message-editor')).queryAllByRole('status');
+ expect(editorRegions()).toHaveLength(1);
+ const statusRegion = editorRegions()[0];
+ expect(statusRegion?.textContent).toBe('');
+
+ await userEvent.click(screen.getByTestId('agent-thread-user-message-edit-send-menu'));
+ await userEvent.click(screen.getByTestId('agent-thread-send-target-new-thread'));
+
+ // Still open, and saying so rather than just greying out.
+ const sendButton = screen.getByTestId(
+ 'agent-thread-user-message-edit-send',
+ ) as HTMLButtonElement;
+ expect(sendButton.disabled).toBe(true);
+ expect(sendButton.getAttribute('aria-busy')).toBe('true');
+ // Enter bypasses `disabled` entirely, so the imperative guard is what this
+ // reaches.
+ await userEvent.type(screen.getByTestId('agent-thread-user-message-edit-field'), '{Enter}');
+ expect(launchAgentThread).toHaveBeenCalledTimes(1);
+ expect(prompt).not.toHaveBeenCalled();
+
+ // The disabled button's label swap announces nothing on its own; the region
+ // populating on start is what carries the news — the same node, so the
+ // announcement did not come from a region that mounted already filled.
+ expect(statusRegion?.textContent).toBe('Sending…');
+
+ await act(async () => {
+ heldLaunch?.settle();
+ });
+ expect(screen.queryByTestId('agent-thread-user-message-editor')).toBeNull();
+ });
+
+ test('a send the user gave up on cannot delete the revision they typed next', async () => {
+ // Nothing on screen said the first send was still running, so they cancelled
+ // and started over. The abandoned completion must not tear down the editor
+ // that now belongs to a different revision.
+ holdNextLaunch();
+ mountWith([userMessage()]);
+ await startEditing();
+ await rewriteTo('revision A');
+ await userEvent.click(screen.getByTestId('agent-thread-user-message-edit-send-menu'));
+ await userEvent.click(screen.getByTestId('agent-thread-send-target-new-thread'));
+
+ await userEvent.click(screen.getByTestId('agent-thread-user-message-edit-cancel'));
+ await startEditing();
+ await rewriteTo('revision B');
+
+ await act(async () => {
+ heldLaunch?.settle();
+ });
+
+ expect(screen.queryByTestId('agent-thread-user-message-editor')).not.toBeNull();
+ expect(
+ (screen.getByTestId('agent-thread-user-message-edit-field') as HTMLTextAreaElement).value,
+ ).toBe('revision B');
+ });
+
+ test('an archived thread whose resume fails keeps the revision in the field', async () => {
+ // The one path where `sendText` itself reports false: the thread has to
+ // resume before it can take a send, and that resume rejected.
+ resumeRejects = true;
+ mountWith([userMessage()], { archived: true });
+ await startEditing();
+ await rewriteTo('words that must survive');
+ await userEvent.click(screen.getByTestId('agent-thread-user-message-edit-send'));
+
+ expect(resumeThread).toHaveBeenCalled();
+ expect(
+ (screen.getByTestId('agent-thread-user-message-edit-field') as HTMLTextAreaElement).value,
+ ).toBe('words that must survive');
+
+ // And the banner's fallback must not carry a second copy: the editor holds
+ // this revision WITH its attachments, so a stashed failed prompt would offer
+ // the same words again minus them, and taking both would run one revision as
+ // two threads.
+ await userEvent.click(await screen.findByTestId('agent-thread-resume-fallback-new'));
+ const fallback = createThread.mock.calls[0]?.[0];
+ // The banner really did reach the client: without this, a fallback that
+ // stopped creating threads at all would satisfy the check below.
+ expect(fallback).toBeDefined();
+ expect(fallback?.prompt).toBeUndefined();
+ });
+
+ test('superseding a notice ahead of an open editor does not remount it away', async () => {
+ // The React key is derived from a model.items position for this reason: the
+ // folded view drops the notice, every later row shifts down, and a key built
+ // on that position would remount the bubble and take the revision with it.
+ const notice = {
+ kind: 'notice' as const,
+ text: 'agent failed to start',
+ tone: 'error' as const,
+ failure: null,
+ attempts: 1,
+ superseded: false,
+ };
+ const message = userMessage();
+ const view = mountWith([notice, message] as RenderedItem[]);
+ await startEditing();
+ await rewriteTo('typed while the notice was still there');
+
+ // A later ready answers the failure, so the card stops describing anything.
+ notice.superseded = true;
+ view.rerender(<ThreadView info={makeInfo()} />);
+
+ // The fold dropped it, so every later row shifted. Without this the field
+ // assertion below also passes when nothing moved, which is the only thing
+ // that makes the key matter.
+ expect(screen.queryByTestId('agent-thread-notice')).toBeNull();
+ expect(
+ (screen.getByTestId('agent-thread-user-message-edit-field') as HTMLTextAreaElement).value,
+ ).toBe('typed while the notice was still there');
+ });
+
+ test('a new chat does not pull focus back to the turn that was left behind', async () => {
+ // The new thread activates its own dock tab and moves focus into that
+ // composer. Reaching for the old Edit button teleports the user twice and
+ // parks them on a control that no longer describes where they are.
+ mountWith([userMessage()]);
+ await startEditing();
+ await rewriteTo('off to someone else');
+ await userEvent.click(screen.getByTestId('agent-thread-user-message-edit-send-menu'));
+ await userEvent.click(screen.getByTestId('agent-thread-send-target-new-thread'));
+
+ expect(document.activeElement).not.toBe(screen.getByTestId('agent-thread-user-message-edit'));
+ });
+
+ test('a launch that starts closes the editor', async () => {
+ mountWith([userMessage()]);
+ await startEditing();
+ await rewriteTo('off it goes');
+ await userEvent.click(screen.getByTestId('agent-thread-user-message-edit-send-menu'));
+ await userEvent.click(screen.getByTestId('agent-thread-send-target-new-thread'));
+
+ expect(screen.queryByTestId('agent-thread-user-message-editor')).toBeNull();
+ expect(toastError).not.toHaveBeenCalled();
+ });
+});
+
+describe('a dead thread keeps the destinations that do not need it', () => {
+ test('the other-agent destination still sends from an exited thread', async () => {
+ mountWith([userMessage()], { status: 'exited' });
+ await startEditing();
+ await rewriteTo('the agent here crashed, you try');
+ await userEvent.click(screen.getByTestId('agent-thread-user-message-edit-send-menu'));
+ await userEvent.click(screen.getByTestId('agent-thread-send-target-agent-registry:codex-acp'));
+
+ expect(launchAgentThread).toHaveBeenCalledWith(
+ { source: 'registry', id: 'codex-acp' },
+ 'the agent here crashed, you try',
+ null,
+ null,
+ null,
+ [],
+ );
+ });
+
+ test('only the same-thread destination is withdrawn', async () => {
+ mountWith([userMessage()], { status: 'exited' });
+ await startEditing();
+ await userEvent.click(screen.getByTestId('agent-thread-user-message-edit-send-menu'));
+
+ expect(
+ screen.getByTestId('agent-thread-send-target-this-thread').getAttribute('aria-disabled'),
+ ).toBe('true');
+ expect(screen.getByTestId('agent-thread-send-target-new-thread')).toBeDefined();
+ });
+});
+
+describe('discoverability of the newest turn', () => {
+ test('the last sent message keeps its actions on screen; earlier ones wait for a hover', () => {
+ // Cross-agent dispatch is a capability nothing else in the app points at,
+ // so at least one entry point has to be visible without a hover.
+ mountWith([
+ userMessage({ text: 'first', messageId: 'user-0' }),
+ { kind: 'message', role: 'agent', text: 'reply', messageId: 'a-0' },
+ userMessage({ text: 'second', messageId: 'user-1' }),
+ ]);
+ const rows = screen.getAllByTestId('agent-thread-user-message-actions');
+ expect(rows).toHaveLength(2);
+ expect(rows[0]?.className).toContain('opacity-0');
+ expect(rows[1]?.className).not.toContain('opacity-0');
+ });
+});
diff --git a/packages/app/src/components/acp/UserMessageActions.tsx b/packages/app/src/components/acp/UserMessageActions.tsx
new file mode 100644
index 000000000..c13e17fa2
--- /dev/null
+++ b/packages/app/src/components/acp/UserMessageActions.tsx
@@ -0,0 +1,342 @@
+/**
+ * Per-message actions on a sent user turn: the stamp + Copy + Edit row that
+ * sits under the bubble, and the editor that replaces the bubble's text when
+ * Edit is pressed.
+ *
+ * Editing a sent message does NOT rewrite history — the transcript is the log
+ * of what was actually said to the agent, and a turn the agent already answered
+ * can't be un-said. Edit re-sends: the original stays where it is and the
+ * revision lands as a new turn. That is also what makes "send it somewhere
+ * else" coherent, since the destination thread has no such history to rewrite.
+ */
+
+import type { AttachmentPart } from '@inkeep/open-knowledge-core/acp/thread-protocol';
+import { Trans, useLingui } from '@lingui/react/macro';
+import { ChevronDown, Pencil } from 'lucide-react';
+import { type ReactNode, useEffect, useRef, useState } from 'react';
+import { useCalendarDayNow } from '@/components/acp/calendar-day-store';
+import { RegisteredAgentIcon } from '@/components/acp/RegisteredAgentIcon';
+import { formatSentAt } from '@/components/acp/sent-at';
+import { CopyButton } from '@/components/CopyButton';
+import { Button } from '@/components/ui/button';
+import { ButtonGroup } from '@/components/ui/button-group';
+import {
+ DropdownMenu,
+ DropdownMenuContent,
+ DropdownMenuGroup,
+ DropdownMenuItem,
+ DropdownMenuLabel,
+ DropdownMenuSeparator,
+ DropdownMenuTrigger,
+} from '@/components/ui/dropdown-menu';
+import { Spinner } from '@/components/ui/spinner';
+import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip';
+import {
+ ComposerMentionInput,
+ type ComposerMentionInputHandle,
+} from '@/editor/ComposerMentionInput';
+import { useEnabledOverrides } from '@/lib/acp/enabled-agents';
+import { enabledThreadAgents } from '@/lib/acp/launcher-selection';
+import { type RegisteredAgent, useRegisteredAgents } from '@/lib/acp/registered-agents';
+import { scheduleClipboardWrite } from '@/lib/share/clipboard-adapter';
+import { cn } from '@/lib/utils';
+
+/** Where a revised message goes. `this-thread` re-sends into the conversation
+ * it came from; `new-thread` starts a fresh one with the named agent. */
+export type ResendTarget =
+ | { kind: 'this-thread' }
+ | { kind: 'new-thread'; agent: Pick<RegisteredAgent, 'source' | 'id'> };
+
+/**
+ * The stamp + actions under a sent bubble.
+ *
+ * Hidden until hover or focus everywhere except the newest turn: a transcript
+ * is read far more often than it is acted on, and a permanent pair of icons
+ * under every turn competes with the words. The newest turn is the exception
+ * because sending a revision to a DIFFERENT agent is a capability nothing else
+ * in the app points at — behind a hover on every turn it would go undiscovered.
+ * `focus-within` is what keeps the hidden ones reachable by keyboard.
+ */
+export function UserMessageActions({
+ text,
+ sentAt,
+ alwaysVisible = false,
+ restoreFocus = false,
+ onEdit,
+}: {
+ text: string;
+ sentAt?: number;
+ alwaysVisible?: boolean;
+ /** The row is coming back because the editor it replaced just closed. Focus
+ * returns to the Edit button that opened it — otherwise the focused node
+ * unmounts, focus falls to `<body>`, and a keyboard reader restarts from
+ * the top of the transcript instead of the turn they were working on. */
+ restoreFocus?: boolean;
+ onEdit: () => void;
+}): ReactNode {
+ const { t, i18n } = useLingui();
+ const now = useCalendarDayNow();
+ const editRef = useRef<HTMLButtonElement>(null);
+
+ useEffect(() => {
+ // `preventScroll` because sending re-engages the transcript's live edge:
+ // scrolling the edited turn back into view would undo that and park the
+ // reader on their own words while the reply streams off-screen.
+ if (restoreFocus) editRef.current?.focus({ preventScroll: true });
+ }, [restoreFocus]);
+
+ return (
+ <div
+ className={cn(
+ 'mt-1 flex items-center justify-end gap-1 text-muted-foreground',
+ alwaysVisible
+ ? null
+ : 'opacity-0 transition-opacity focus-within:opacity-100 group-hover/user-message:opacity-100',
+ )}
+ data-testid="agent-thread-user-message-actions"
+ >
+ {sentAt !== undefined ? (
+ // `title` carries the exact instant the abbreviated stamp drops, the
+ // same escape hatch the comment stamp offers.
+ <time
+ dateTime={new Date(sentAt).toISOString()}
+ title={new Date(sentAt).toLocaleString(i18n.locale || undefined)}
+ className="me-1 text-xs"
+ data-testid="agent-thread-user-message-sent-at"
+ >
+ {formatSentAt(sentAt, now, i18n.locale || undefined)}
+ </time>
+ ) : null}
+ {/* The shared button, not a local one: it routes through the clipboard
+ adapter, which prefers the Electron IPC bridge (unconditionally
+ reliable in the desktop app, where the browser API's transient-
+ activation gate is not) and falls back to `execCommand` where an
+ embedding host's Permissions-Policy denies `clipboard-write`. */}
+ <CopyButton
+ copyContent={text}
+ clipboardWrite={scheduleClipboardWrite}
+ size="icon-xs"
+ ariaLabel={t`Copy message`}
+ testId="agent-thread-user-message-copy"
+ />
+ {/* disableHoverableContent for the same reason as CopyButton: this
+ content only echoes the button's accessible name, and its grace
+ polygon would otherwise hold the tooltip open over Copy's near
+ edge. */}
+ <Tooltip disableHoverableContent>
+ <TooltipTrigger asChild>
+ <Button
+ ref={editRef}
+ type="button"
+ size="icon-xs"
+ variant="ghost"
+ aria-label={t`Edit and send again`}
+ onClick={onEdit}
+ data-testid="agent-thread-user-message-edit"
+ >
+ <Pencil className="size-3.5" aria-hidden="true" />
+ </Button>
+ </TooltipTrigger>
+ <TooltipContent>{t`Edit and send again`}</TooltipContent>
+ </Tooltip>
+ </div>
+ );
+}
+
+/**
+ * The bubble in edit mode: the message text in the same `@`-mention field the
+ * composer uses, over a Cancel / Send pair.
+ *
+ * Send is split because the revision has two decisions in it, not one — what it
+ * says, and who reads it. The primary half keeps the common case one click
+ * (back into this conversation); the menu is where a revision goes to a clean
+ * thread, or to a different agent, without retyping it there.
+ */
+export function UserMessageEditor({
+ initialText,
+ currentAgent,
+ canSendHere,
+ onCancel,
+ onSend,
+}: {
+ initialText: string;
+ /** The agent answering this thread — the "new chat" default. */
+ currentAgent: { source: 'registry' | 'custom'; id: string; name: string; iconUrl?: string };
+ /**
+ * Whether this thread still accepts sends. False withdraws only the
+ * same-thread destination — a revision handed to a fresh thread never touches
+ * this one, and a crashed agent is exactly when that is worth the most.
+ */
+ canSendHere: boolean;
+ onCancel: () => void;
+ /** `chips` are `@`-mentions typed into the revision itself; the caller adds
+ * back whatever the original message carried. The field stays put until this
+ * settles; settling does NOT mean the send was acknowledged. */
+ onSend: (text: string, target: ResendTarget, chips: readonly AttachmentPart[]) => Promise<void>;
+}): ReactNode {
+ const { t } = useLingui();
+ const fieldRef = useRef<ComposerMentionInputHandle>(null);
+ const [draftEmpty, setDraftEmpty] = useState(initialText.trim() === '');
+ // Creating a thread takes seconds, and the field now stays open across that
+ // wait. Without this, a second click reaches the launcher's dedup guard and
+ // reports a collision for a send that is about to succeed.
+ const [sending, setSending] = useState(false);
+ const otherAgents = useOtherResendAgents(currentAgent);
+
+ // Seed the field and put the caret AFTER the text. Plain focus lands at
+ // offset 0, so an edit would open standing in front of your own sentence.
+ useEffect(() => {
+ fieldRef.current?.setText(initialText);
+ fieldRef.current?.focusEnd();
+ }, [initialText]);
+
+ const send = (target: ResendTarget): void => {
+ if (sending) return;
+ const content = fieldRef.current?.getContent();
+ const next = content?.instruction.trim() ?? '';
+ if (next === '') return;
+ setSending(true);
+ void onSend(next, target, content?.attachments ?? []).finally(() => setSending(false));
+ };
+
+ const sendHere = (): void => {
+ if (!canSendHere) return;
+ send({ kind: 'this-thread' });
+ };
+
+ return (
+ <div className="flex flex-col gap-2" data-testid="agent-thread-user-message-editor">
+ <ComposerMentionInput
+ ref={fieldRef}
+ ariaLabel={t`Edit and send again`}
+ placeholder={t`Edit and send again`}
+ onEmptyChange={setDraftEmpty}
+ onSubmit={sendHere}
+ onEscape={onCancel}
+ className="max-h-60 overflow-y-auto text-sm"
+ testId="agent-thread-user-message-edit-field"
+ />
+ <div className="flex items-center justify-end gap-1.5">
+ <Button
+ type="button"
+ size="sm"
+ variant="outline"
+ onClick={onCancel}
+ data-testid="agent-thread-user-message-edit-cancel"
+ >
+ <Trans>Cancel</Trans>
+ </Button>
+ <ButtonGroup>
+ <Button
+ type="button"
+ size="sm"
+ disabled={draftEmpty || !canSendHere || sending}
+ aria-busy={sending}
+ onClick={sendHere}
+ data-testid="agent-thread-user-message-edit-send"
+ >
+ {sending ? (
+ <>
+ <Spinner className="size-3" aria-hidden="true" />
+ {t`Sending…`}
+ </>
+ ) : (
+ t`Send`
+ )}
+ </Button>
+ <DropdownMenu modal={false}>
+ <DropdownMenuTrigger asChild>
+ <Button
+ type="button"
+ size="sm"
+ disabled={draftEmpty || sending}
+ aria-label={t`Choose where to send this message`}
+ data-testid="agent-thread-user-message-edit-send-menu"
+ >
+ <ChevronDown className="size-3.5" aria-hidden="true" />
+ </Button>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent
+ align="end"
+ className="max-h-80 min-w-[220px]"
+ data-testid="agent-thread-user-message-send-targets"
+ >
+ <DropdownMenuItem
+ disabled={!canSendHere}
+ onSelect={sendHere}
+ data-testid="agent-thread-send-target-this-thread"
+ >
+ <span className="flex-1">
+ <Trans>Send in this chat</Trans>
+ </span>
+ </DropdownMenuItem>
+ <DropdownMenuSeparator />
+ <DropdownMenuGroup aria-label={t`Send to a new chat`}>
+ <DropdownMenuLabel>
+ <Trans>Send to a new chat</Trans>
+ </DropdownMenuLabel>
+ <DropdownMenuItem
+ onSelect={() => send({ kind: 'new-thread', agent: currentAgent })}
+ data-testid="agent-thread-send-target-new-thread"
+ >
+ <RegisteredAgentIcon
+ agentId={currentAgent.id}
+ iconUrl={currentAgent.iconUrl}
+ className="size-4"
+ />
+ <span className="flex-1 truncate">{currentAgent.name}</span>
+ </DropdownMenuItem>
+ {otherAgents.map((agent) => (
+ <DropdownMenuItem
+ key={`${agent.source}:${agent.id}`}
+ onSelect={() => send({ kind: 'new-thread', agent })}
+ data-testid={`agent-thread-send-target-agent-${agent.source}:${agent.id}`}
+ >
+ <RegisteredAgentIcon
+ agentId={agent.id}
+ iconUrl={agent.iconUrl}
+ className="size-4"
+ />
+ <span className="flex-1 truncate">{agent.name}</span>
+ </DropdownMenuItem>
+ ))}
+ </DropdownMenuGroup>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ </ButtonGroup>
+ {/* A disabled control's silent label swap is invisible to screen
+ readers, so a region populating on start is what carries the news,
+ mounted empty from the editor's first render so the announcement is
+ not lost to a region that appears and fills in the same cycle.
+ Activating Send blurs it to the body, the menu path has no focusable
+ trigger to return to, and submitting with Enter never leaves the
+ field — in none of the three is anything focused watching the button
+ whose label just changed. */}
+ <span role="status" aria-live="polite" className="sr-only">
+ {sending ? t`Sending…` : null}
+ </span>
+ </div>
+ </div>
+ );
+}
+
+/**
+ * The enabled in-app agents other than the one answering this thread — the rest
+ * of the "new chat" menu.
+ *
+ * Picking one here does NOT re-register it or move the sticky default the way
+ * the launcher pickers do. This is one message's destination, not a change of
+ * mind about which agent you work with, and quietly repointing the composer
+ * because a turn was resent elsewhere is a side effect nothing on screen
+ * predicts.
+ */
+function useOtherResendAgents(current: {
+ source: 'registry' | 'custom';
+ id: string;
+}): readonly RegisteredAgent[] {
+ const overrides = useEnabledOverrides();
+ const registeredAgents = useRegisteredAgents();
+ return enabledThreadAgents(registeredAgents, overrides).filter(
+ (agent) => !(agent.source === current.source && agent.id === current.id),
+ );
+}
diff --git a/packages/app/src/components/acp/calendar-day-store.dom.test.tsx b/packages/app/src/components/acp/calendar-day-store.dom.test.tsx
new file mode 100644
index 000000000..4babcac36
--- /dev/null
+++ b/packages/app/src/components/acp/calendar-day-store.dom.test.tsx
@@ -0,0 +1,69 @@
+/**
+ * The clock behind every sent-message stamp. `formatSentAt` is pure and tested
+ * on its own; what needed pinning is the `now` it is handed, because the store
+ * arms its timer at the subscribe edge and the value it serves before the first
+ * midnight tick comes from whenever the module happened to load.
+ */
+
+import { renderHook } from '@testing-library/react';
+import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';
+
+/** A fresh module per test: the store is module-scope by design, so the only
+ * honest way to exercise a cold load is to load it cold. */
+async function loadStore() {
+ vi.resetModules();
+ return await import('@/components/acp/calendar-day-store');
+}
+
+const dayOf = (ms: number) => new Date(ms).getDate();
+
+beforeEach(() => {
+ vi.useFakeTimers();
+});
+
+afterEach(() => {
+ vi.useRealTimers();
+});
+
+describe('useCalendarDayNow', () => {
+ test('a stamp mounting the next morning reads today, not whenever the chunk loaded', async () => {
+ // The lazy thread chunk loads when the panel opens; the first stamp mounts
+ // only once a thread has a user turn, which can be the next day.
+ vi.setSystemTime(new Date(2026, 2, 3, 23, 40));
+ const { useCalendarDayNow } = await loadStore();
+
+ vi.setSystemTime(new Date(2026, 2, 4, 10, 3));
+ const { result } = renderHook(() => useCalendarDayNow());
+
+ // Serving last night here would date-stamp a message sent seconds ago,
+ // which reads worse than the mount-time capture this store replaced.
+ expect(dayOf(result.current)).toBe(4);
+ });
+
+ test('the timer survives one of two stamps unmounting', async () => {
+ vi.setSystemTime(new Date(2026, 2, 3, 23, 59, 30));
+ const { useCalendarDayNow } = await loadStore();
+ const first = renderHook(() => useCalendarDayNow());
+ const second = renderHook(() => useCalendarDayNow());
+
+ first.unmount();
+ // Past midnight: the surviving stamp must still be told the day turned.
+ await vi.advanceTimersByTimeAsync(60_000);
+
+ expect(dayOf(second.result.current)).toBe(4);
+ });
+
+ test('a stamp resubscribing after the last one left is current again', async () => {
+ vi.setSystemTime(new Date(2026, 2, 3, 20, 0));
+ const { useCalendarDayNow } = await loadStore();
+ const only = renderHook(() => useCalendarDayNow());
+ // Closing the last thread with user turns drains the listeners and clears
+ // the timer, so nothing advances the value while nothing is watching.
+ only.unmount();
+
+ vi.setSystemTime(new Date(2026, 2, 4, 9, 15));
+ const reopened = renderHook(() => useCalendarDayNow());
+
+ expect(dayOf(reopened.result.current)).toBe(4);
+ });
+});
diff --git a/packages/app/src/components/acp/calendar-day-store.ts b/packages/app/src/components/acp/calendar-day-store.ts
new file mode 100644
index 000000000..67f188d4b
--- /dev/null
+++ b/packages/app/src/components/acp/calendar-day-store.ts
@@ -0,0 +1,72 @@
+/**
+ * A clock that advances at local midnight, for stamps whose only question of
+ * `now` is which calendar day it is.
+ *
+ * Capturing `now` once per mount would be wrong for a transcript: nothing
+ * unmounts a bubble — every open thread stays mounted, the scroller doesn't
+ * virtualize, and a hidden `<Activity>` keeps its subtree — so in a desktop app
+ * left open overnight a turn sent 11:50 PM Monday would still render a bare
+ * "11:50 PM" on Tuesday, indistinguishable from today.
+ *
+ * Module-scope store + `useSyncExternalStore`, the package's established shape,
+ * so one timer serves every stamp on screen rather than one per bubble.
+ */
+
+import { useSyncExternalStore } from 'react';
+
+let calendarDayNow = Date.now();
+let midnightTimer: ReturnType<typeof setTimeout> | null = null;
+const dayListeners = new Set<() => void>();
+
+function msUntilNextLocalMidnight(from: number): number {
+ const next = new Date(from);
+ next.setHours(24, 0, 0, 0);
+ // Floored because the re-arm reads the clock again after the timer fires, and
+ // a timer that comes back a hair early leaves `Date.now()` still just short of
+ // midnight. The unfloored delay would then be a fraction of a millisecond and
+ // the timer would re-arm in a tight loop until the clock caught up.
+ return Math.max(next.getTime() - from, 1_000);
+}
+
+/**
+ * Reads the clock on every arm, not just on the midnight tick.
+ *
+ * The timer is armed when the first listener subscribes and cleared when the
+ * last one leaves, so the value would otherwise be whatever it was when this
+ * module was evaluated (a lazy chunk loaded long before the first stamp mounts)
+ * or when the last stamp unmounted. Both go stale across a day boundary, and a
+ * `now` behind the message it is measuring reads worse than a mount-time
+ * capture: a turn sent seconds ago would render with a date on it.
+ *
+ * Safe to write during `subscribe` — React re-reads the snapshot right after
+ * the subscribe effect and re-renders if it moved.
+ */
+function armMidnightTimer(): void {
+ calendarDayNow = Date.now();
+ midnightTimer = setTimeout(() => {
+ armMidnightTimer();
+ for (const listener of dayListeners) listener();
+ }, msUntilNextLocalMidnight(Date.now()));
+}
+
+function subscribeCalendarDay(listener: () => void): () => void {
+ dayListeners.add(listener);
+ if (midnightTimer === null) armMidnightTimer();
+ return () => {
+ dayListeners.delete(listener);
+ if (dayListeners.size === 0 && midnightTimer !== null) {
+ clearTimeout(midnightTimer);
+ midnightTimer = null;
+ }
+ };
+}
+
+/** Stable between midnights, so React can memoize on it. */
+function getCalendarDayNow(): number {
+ return calendarDayNow;
+}
+
+/** The `now` a calendar-granularity stamp should format against. */
+export function useCalendarDayNow(): number {
+ return useSyncExternalStore(subscribeCalendarDay, getCalendarDayNow, getCalendarDayNow);
+}
diff --git a/packages/app/src/components/acp/sent-at.test.ts b/packages/app/src/components/acp/sent-at.test.ts
new file mode 100644
index 000000000..ce53cf7d0
--- /dev/null
+++ b/packages/app/src/components/acp/sent-at.test.ts
@@ -0,0 +1,81 @@
+/**
+ * The sent-message stamp: how much date each age gets. Assertions read the
+ * shape (does it carry a weekday / a month / a year) rather than exact
+ * punctuation, which is the runtime locale's business.
+ */
+
+import { describe, expect, test } from 'vitest';
+import { formatSentAt } from './sent-at';
+
+const NOW = new Date('2026-08-25T18:48:00').getTime();
+
+/** The locale-rendered weekday for a timestamp, to compare a stamp against. */
+function weekdayOf(at: number): string {
+ return new Date(at).toLocaleString(undefined, { weekday: 'long' });
+}
+
+describe('formatSentAt', () => {
+ test("a turn from today carries no date at all — 'today' is what the reader is in", () => {
+ const at = new Date('2026-08-25T09:12:00').getTime();
+ const stamp = formatSentAt(at, NOW);
+ expect(stamp).toContain(new Date(at).toLocaleTimeString(undefined, { minute: '2-digit' }));
+ expect(stamp).not.toContain(weekdayOf(at));
+ expect(stamp).not.toMatch(/2026/);
+ });
+
+ test('a turn from earlier this week is named by its weekday', () => {
+ const at = new Date('2026-08-19T18:48:00').getTime();
+ expect(formatSentAt(at, NOW)).toContain(weekdayOf(at));
+ });
+
+ test('a weekday would be ambiguous past a week, so an older turn gets the date', () => {
+ const at = new Date('2026-08-11T18:48:00').getTime();
+ const stamp = formatSentAt(at, NOW);
+ expect(stamp).not.toContain(weekdayOf(at));
+ expect(stamp).toMatch(/11/);
+ });
+
+ test('the year appears only outside the current one', () => {
+ expect(formatSentAt(new Date('2026-02-02T10:00:00').getTime(), NOW)).not.toMatch(/2026/);
+ expect(formatSentAt(new Date('2025-12-30T10:00:00').getTime(), NOW)).toMatch(/2025/);
+ });
+
+ test('the weekday window is exclusive at exactly seven days', () => {
+ // The `<` vs `<=` an off-by-one would flip: at the boundary itself and one
+ // millisecond either side.
+ const sevenDays = 7 * 24 * 60 * 60 * 1000;
+ const atBoundary = NOW - sevenDays;
+ expect(formatSentAt(atBoundary + 1, NOW)).toContain(weekdayOf(atBoundary + 1));
+ expect(formatSentAt(atBoundary, NOW)).not.toContain(weekdayOf(atBoundary));
+ expect(formatSentAt(atBoundary - 1, NOW)).not.toContain(weekdayOf(atBoundary - 1));
+ });
+
+ test('a stamp equal to now is today, not a zero-age weekday', () => {
+ // `age === 0` sits outside the `age > 0` guard, so the same-day branch has
+ // to be what catches it.
+ expect(formatSentAt(NOW, NOW)).toBe(
+ new Date(NOW).toLocaleTimeString(undefined, {
+ hour: 'numeric',
+ minute: '2-digit',
+ }),
+ );
+ });
+
+ test('an explicit locale is honoured over the machine default', () => {
+ // The weekday branch is the exposed one: a full English "Wednesday" beside
+ // Arabic interface copy is what passing the app's locale prevents.
+ const at = new Date('2026-08-19T18:48:00').getTime();
+ expect(formatSentAt(at, NOW, 'fr-FR')).toContain(
+ new Date(at).toLocaleString('fr-FR', { weekday: 'long' }),
+ );
+ });
+
+ test('a future stamp falls back to the date rather than claiming a weekday just passed', () => {
+ // Clock skew and replayed logs both produce these. "Wednesday 6:48 PM" for
+ // something not yet sent reads as a moment the reader already missed.
+ const at = new Date('2026-08-27T18:48:00').getTime();
+ const stamp = formatSentAt(at, NOW);
+ expect(stamp).not.toContain(weekdayOf(at));
+ expect(stamp).toMatch(/27/);
+ });
+});
diff --git a/packages/app/src/components/acp/sent-at.ts b/packages/app/src/components/acp/sent-at.ts
new file mode 100644
index 000000000..f38d4d1ba
--- /dev/null
+++ b/packages/app/src/components/acp/sent-at.ts
@@ -0,0 +1,47 @@
+/**
+ * When a sent message was sent, as a stamp that reads the same every time you
+ * look at it. An age ("20m") answers how long ago and nothing else: two
+ * messages from the same sitting both read "20m", and the string silently
+ * changes under a transcript left open overnight.
+ *
+ * Only as much date as the reader doesn't already have. Today's turns show the
+ * time alone; the last week gets a weekday, which is how people refer to recent
+ * work out loud; older turns need the calendar date, and the year only once
+ * outside this one.
+ *
+ * Rendered in the machine's own timezone. The LOCALE is the app's, not the
+ * OS's: interface language is independently selectable here, and the weekday
+ * branch is the exposed case — a full English "Wednesday" beside Arabic copy
+ * is what `BugReportHistory` already carries a regression test to prevent.
+ * (`ThreadCard`'s comment stamp still formats against the OS locale; the two
+ * disagree, so don't read either as the house rule.)
+ */
+
+const WEEKDAY_WINDOW_MS = 7 * 24 * 60 * 60 * 1000;
+
+export function formatSentAt(at: number, now: number, locale?: string): string {
+ const date = new Date(at);
+ const today = new Date(now);
+ const time = { hour: 'numeric', minute: '2-digit' } as const;
+ const sameDay =
+ date.getFullYear() === today.getFullYear() &&
+ date.getMonth() === today.getMonth() &&
+ date.getDate() === today.getDate();
+ if (sameDay) return date.toLocaleTimeString(locale, time);
+ // Bounded on BOTH sides: a clock skew or a replayed log can stamp a turn in
+ // the future, and "Wednesday 6:48 PM" for something not yet sent reads as a
+ // date the reader already missed.
+ const age = now - at;
+ if (age > 0 && age < WEEKDAY_WINDOW_MS) {
+ return date.toLocaleString(locale, { weekday: 'long', ...time });
+ }
+ if (date.getFullYear() === today.getFullYear()) {
+ return date.toLocaleString(locale, { month: 'short', day: 'numeric', ...time });
+ }
+ return date.toLocaleString(locale, {
+ year: 'numeric',
+ month: 'short',
+ day: 'numeric',
+ ...time,
+ });
+}
diff --git a/packages/app/src/components/acp/transcript-item-id.ts b/packages/app/src/components/acp/transcript-item-id.ts
index 4bb630bac..61b973405 100644
--- a/packages/app/src/components/acp/transcript-item-id.ts
+++ b/packages/app/src/components/acp/transcript-item-id.ts
@@ -5,8 +5,10 @@ import type { RenderedItem } from '@/lib/acp/thread-event-model';
// a unique domain id. A message's `messageId` is NOT unique — adapters that send
// none all key to 'default', and a fresh block starts whenever anything
// interrupts the tail — and notices have none at all, so both fold in the index.
-// The index is stable because the transcript is append-only and coalescing
-// rewrites an item in place at the same position.
+// `index` MUST be a position in `model.items`, which is append-only and where
+// coalescing rewrites an item in place rather than moving it. A position in a
+// filtered view (the folded or visible transcript) shifts whenever something
+// ahead of it is removed, which renumbers every later key and remounts the row.
export function transcriptItemId(item: RenderedItem, index: number): string {
switch (item.kind) {
case 'message':
diff --git a/packages/app/src/components/ui/tooltip.tsx b/packages/app/src/components/ui/tooltip.tsx
index e170f7070..6a7d0e517 100644
--- a/packages/app/src/components/ui/tooltip.tsx
+++ b/packages/app/src/components/ui/tooltip.tsx
@@ -18,6 +18,15 @@ function TooltipProvider({
);
}
+/**
+ * In a row of flush icon buttons, pass `disableHoverableContent` on each
+ * sibling whose content merely echoes the trigger's accessible name: an open
+ * tooltip's hover grace polygon covers the neighboring trigger's near edge,
+ * holding the stale tooltip open there and suppressing the neighbor's from
+ * opening until the pointer moves well inside. Keep hoverable content where
+ * the tooltip carries text the trigger truncates (the link PropPanels' full
+ * path tooltips), where the reader needs to reach the content.
+ */
function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>) {
return <TooltipPrimitive.Root data-slot="tooltip" {...props} />;
}
diff --git a/packages/app/src/editor/ComposerMentionInput.dom.test.tsx b/packages/app/src/editor/ComposerMentionInput.dom.test.tsx
index 6eb84f77a..96c622a1d 100644
--- a/packages/app/src/editor/ComposerMentionInput.dom.test.tsx
+++ b/packages/app/src/editor/ComposerMentionInput.dom.test.tsx
@@ -12,7 +12,7 @@
* document editor (which selection-as-passage reads from).
*/
-import { cleanup, fireEvent, render, screen } from '@testing-library/react';
+import { act, cleanup, fireEvent, render, screen } from '@testing-library/react';
import type { Content, JSONContent } from '@tiptap/core';
import { Editor } from '@tiptap/core';
import { createRef } from 'react';
@@ -660,3 +660,39 @@ describe('ComposerMentionInput — Enter during IME composition', () => {
expect(onSubmit).toHaveBeenCalledTimes(1);
});
});
+
+/**
+ * `setText` is how every host seeds this field with prose the user already
+ * wrote — a comment being revised, a starter brief, a sent message being
+ * edited. It has to hand back what it was given.
+ */
+describe('ComposerMentionInput — setText round-trips the text it was given', () => {
+ test('newlines survive, and angle brackets are not parsed as markup', () => {
+ // `setContent` treats a bare string as HTML: seeding this way used to
+ // collapse every line break and swallow anything that looked like a tag,
+ // so a host reading the draft straight back got different words out.
+ const ref = createRef<ComposerMentionInputHandle>();
+ render(<ComposerMentionInput ref={ref} ariaLabel="Ask AI" onEmptyChange={() => {}} />);
+
+ const seeded = 'first line\nsecond <b>line</b>\n\nfourth line';
+ act(() => ref.current?.setText(seeded));
+
+ expect(ref.current?.getContent().instruction).toBe(seeded);
+ });
+
+ test('seeding announces emptiness, the way appending does', () => {
+ // The two halves of the same handle disagreed: a host that gated its Send
+ // button on `onEmptyChange` stayed disabled on a field it had just filled.
+ const onEmptyChange = vi.fn((_isEmpty: boolean) => {});
+ const ref = createRef<ComposerMentionInputHandle>();
+ render(<ComposerMentionInput ref={ref} ariaLabel="Ask AI" onEmptyChange={onEmptyChange} />);
+
+ onEmptyChange.mockClear();
+ act(() => ref.current?.setText('some words'));
+ expect(onEmptyChange).toHaveBeenCalledWith(false);
+
+ onEmptyChange.mockClear();
+ act(() => ref.current?.setText(''));
+ expect(onEmptyChange).toHaveBeenCalledWith(true);
+ });
+});
diff --git a/packages/app/src/editor/ComposerMentionInput.tsx b/packages/app/src/editor/ComposerMentionInput.tsx
index 474f436ab..5cc2344e7 100644
--- a/packages/app/src/editor/ComposerMentionInput.tsx
+++ b/packages/app/src/editor/ComposerMentionInput.tsx
@@ -377,10 +377,18 @@ export function ComposerMentionInput({
clear: () => editor?.commands.clearContent(true),
setText: (text: string) => {
if (!editor) return;
- editor.commands.setContent(text);
+ // Structured paragraphs, not the raw string: `setContent` parses a
+ // string as HTML, so seeding a field with prose the user actually
+ // typed dropped every newline and ate anything angle-bracketed. Every
+ // caller here seeds plain text (a comment body, a starter brief, a
+ // sent message being revised).
+ editor.commands.setContent(textToParagraphs(text));
// `setContent` does not reliably fire `onUpdate`, so mirror the resulting
// doc into the shared draft + inline-mention set here — otherwise a
// prefilled starter brief wouldn't carry to the other placement.
+ // `onEmptyChange` for the same reason `appendText` sends it: seeding
+ // flips the host's send-enabled state and `setContent` won't announce it.
+ onEmptyChangeRef.current(isComposerEmpty(editor));
onContentChangeRef.current?.(editor.getJSON());
onMentionsChangeRef.current?.(serializeComposerContent(editor).mentions);
setSlashHint(
diff --git a/packages/app/src/editor/extensions/InternalLinkPropPanel.tsx b/packages/app/src/editor/extensions/InternalLinkPropPanel.tsx
index 4a1b5cb92..9201063ae 100644
--- a/packages/app/src/editor/extensions/InternalLinkPropPanel.tsx
+++ b/packages/app/src/editor/extensions/InternalLinkPropPanel.tsx
@@ -738,7 +738,7 @@ export function InternalLinkPropPanel({
</Button>
) : null}
{canEditDestination ? (
- <Tooltip>
+ <Tooltip disableHoverableContent>
<TooltipTrigger asChild>
<Button
type="button"
@@ -757,7 +757,7 @@ export function InternalLinkPropPanel({
</Tooltip>
) : null}
<CopyButton copyContent={href} />
- <Tooltip>
+ <Tooltip disableHoverableContent>
<TooltipTrigger asChild>
<Button
type="button"
diff --git a/packages/app/src/editor/extensions/WikiLinkPropPanel.tsx b/packages/app/src/editor/extensions/WikiLinkPropPanel.tsx
index 693fcf3f3..7f5d0294f 100644
--- a/packages/app/src/editor/extensions/WikiLinkPropPanel.tsx
+++ b/packages/app/src/editor/extensions/WikiLinkPropPanel.tsx
@@ -626,7 +626,7 @@ export function WikiLinkPropPanel({ editor, getPos, onClose, onNavigate }: WikiL
{isCreating ? <Trans>Creating...</Trans> : <Trans>Create page</Trans>}
</Button>
) : null}
- <Tooltip>
+ <Tooltip disableHoverableContent>
<TooltipTrigger asChild>
<Button
type="button"
@@ -644,7 +644,7 @@ export function WikiLinkPropPanel({ editor, getPos, onClose, onNavigate }: WikiL
</TooltipContent>
</Tooltip>
<CopyButton copyContent={copyContent} />
- <Tooltip>
+ <Tooltip disableHoverableContent>
<TooltipTrigger asChild>
<Button
type="button"
diff --git a/packages/app/src/lib/acp/launch-agent-thread.test.ts b/packages/app/src/lib/acp/launch-agent-thread.test.ts
new file mode 100644
index 000000000..a4b96a5cb
--- /dev/null
+++ b/packages/app/src/lib/acp/launch-agent-thread.test.ts
@@ -0,0 +1,103 @@
+/**
+ * The dedup guard's contract, exercised against the real `inflightLaunches`
+ * Set. Every consumer suite mocks this module out and substitutes its own
+ * outcome, so without this the guard, the key comparison and the `finally`
+ * cleanup run nowhere: a `finally` that stopped clearing the key would wedge
+ * every launch for that agent forever and leave those suites green.
+ */
+
+import { beforeEach, describe, expect, test, vi } from 'vitest';
+
+const createThread = vi.fn();
+const toastError = vi.fn((_message: string) => {});
+
+vi.mock('@/lib/acp/thread-client', () => ({
+ getAgentThreadClient: () => ({ createThread }),
+ ThreadChannelUnavailableError: class extends Error {},
+}));
+vi.mock('@/lib/acp/thread-draft-staging', () => ({ stageThreadDraft: vi.fn() }));
+vi.mock('sonner', () => ({ toast: { error: toastError, info: vi.fn(), success: vi.fn() } }));
+
+const { launchAgentThread } = await import('@/lib/acp/launch-agent-thread');
+
+/** `inflightLaunches` is module-scope and deliberately survives everything, so
+ * each test takes its own agent id rather than trying to reset it. */
+let agentSeq = 0;
+function nextAgent(): { source: 'registry'; id: string } {
+ agentSeq += 1;
+ return { source: 'registry', id: `agent-${agentSeq}` };
+}
+
+/** A promise this test decides the fate of, so a launch can be held in flight. */
+function deferred<T>(): {
+ promise: Promise<T>;
+ resolve: (v: T) => void;
+ reject: (e: unknown) => void;
+} {
+ let resolve!: (v: T) => void;
+ let reject!: (e: unknown) => void;
+ const promise = new Promise<T>((res, rej) => {
+ resolve = res;
+ reject = rej;
+ });
+ return { promise, resolve, reject };
+}
+
+beforeEach(() => {
+ createThread.mockReset();
+ toastError.mockClear();
+});
+
+describe('launchAgentThread dedup guard', () => {
+ test('a second launch for the same agent while one is in flight is dropped, not duplicated', async () => {
+ const agent = nextAgent();
+ const first = deferred<{ threadId: string }>();
+ createThread.mockReturnValueOnce(first.promise);
+
+ const inFlight = launchAgentThread(agent, 'first prompt', null, null);
+ // Creation takes seconds in reality, so the collision window is wide open.
+ const collided = await launchAgentThread(agent, 'second prompt', null, null);
+
+ expect(collided).toBe('deduped');
+ // The point of the guard: no second agent spawned on the customer's account.
+ expect(createThread).toHaveBeenCalledTimes(1);
+
+ first.resolve({ threadId: 't1' });
+ expect(await inFlight).toBe('started');
+ });
+
+ test('a different agent is never blocked by the first one', async () => {
+ const held = deferred<{ threadId: string }>();
+ createThread.mockReturnValue(held.promise);
+ const first = launchAgentThread(nextAgent(), 'prompt', null, null);
+ const other = launchAgentThread(nextAgent(), 'prompt', null, null);
+
+ // The guard is keyed per agent, so the second one reaches the client.
+ expect(createThread).toHaveBeenCalledTimes(2);
+ held.resolve({ threadId: 't1' });
+ expect(await first).toBe('started');
+ expect(await other).toBe('started');
+ });
+
+ test('the key is released once a launch settles — on success', async () => {
+ const agent = nextAgent();
+ createThread.mockResolvedValueOnce({ threadId: 't1' });
+ expect(await launchAgentThread(agent, 'prompt', null, null)).toBe('started');
+
+ createThread.mockResolvedValueOnce({ threadId: 't2' });
+ expect(await launchAgentThread(agent, 'prompt', null, null)).toBe('started');
+ expect(createThread).toHaveBeenCalledTimes(2);
+ });
+
+ test('the key is released once a launch settles — on failure too', async () => {
+ // The path that would wedge the agent permanently if `finally` regressed:
+ // a single failed launch would make every later one report a collision.
+ const agent = nextAgent();
+ createThread.mockRejectedValueOnce(new Error('spawn failed'));
+ expect(await launchAgentThread(agent, 'prompt', null, null)).toBe('failed');
+ expect(toastError).toHaveBeenCalled();
+
+ createThread.mockResolvedValueOnce({ threadId: 't2' });
+ expect(await launchAgentThread(agent, 'prompt', null, null)).toBe('started');
+ });
+});
diff --git a/packages/app/src/lib/acp/launch-agent-thread.ts b/packages/app/src/lib/acp/launch-agent-thread.ts
index a8d6a43a5..3eae7be05 100644
--- a/packages/app/src/lib/acp/launch-agent-thread.ts
+++ b/packages/app/src/lib/acp/launch-agent-thread.ts
@@ -8,6 +8,7 @@
* launch bus can both invoke it without re-implementing the in-flight guard.
*/
+import type { AttachmentPart } from '@inkeep/open-knowledge-core/acp/thread-protocol';
import { t } from '@lingui/core/macro';
import { toast } from 'sonner';
import { getAgentThreadClient, ThreadChannelUnavailableError } from '@/lib/acp/thread-client';
@@ -22,6 +23,9 @@ import { stageThreadDraft } from '@/lib/acp/thread-draft-staging';
*/
const inflightLaunches = new Set<string>();
+/** What a launch attempt came back as; see `launchAgentThread`. */
+export type ThreadLaunchOutcome = 'started' | 'deduped' | 'failed';
+
/**
* Create a thread for a concrete agent. Agent-level failures stream into the dock
* as thread status events; the catch fires only when no thread was created at all,
@@ -32,6 +36,22 @@ const inflightLaunches = new Set<string>();
* deliberately separate from `prompt`: a prompt runs on creation, a staged draft
* waits on the user's send. Passing both is legal but unusual — the prompt runs
* and the draft sits under it as the follow-up.
+ *
+ * `attachments` ride the `prompt` — the parts a message carried when it was
+ * composed elsewhere (a transcript turn being re-sent into a fresh thread).
+ * They belong to the prompt, not the staged draft: a draft the user has yet to
+ * send has no send to attach them to.
+ *
+ * Resolves to what happened, distinguishing the two ways nothing was created:
+ * `failed` already toasted, while `deduped` is otherwise SILENT — the guard
+ * returns before `createThread`, so there is no promise to reject. The two are
+ * separate outcomes rather than one `false` because only the caller knows
+ * whether a swallowed double-click is worth saying anything about.
+ *
+ * Callers whose `prompt` is the only copy of the text — freshly-typed prose,
+ * rather than a document selection that still exists on screen — must await this
+ * before discarding what the user typed. Fire-and-forget callers, whose text
+ * survives elsewhere, ignore it with `void`.
*/
export function launchAgentThread(
agent: { source: 'registry' | 'custom'; id: string },
@@ -39,16 +59,18 @@ export function launchAgentThread(
docName: string | null,
titleHint: string | null,
stageDraft?: string | null,
-): void {
+ attachments?: readonly AttachmentPart[],
+): Promise<ThreadLaunchOutcome> {
const launchKey = `${agent.source}:${agent.id}`;
- if (inflightLaunches.has(launchKey)) return;
+ if (inflightLaunches.has(launchKey)) return Promise.resolve('deduped');
inflightLaunches.add(launchKey);
- void getAgentThreadClient()
+ return getAgentThreadClient()
.createThread({
agent,
prompt: prompt ?? undefined,
docName: docName ?? undefined,
titleHint: titleHint ?? undefined,
+ ...(attachments !== undefined && attachments.length > 0 ? { attachments } : {}),
})
.then((info) => {
// Staged only once the server has minted the id the composer is keyed by.
@@ -62,6 +84,7 @@ export function launchAgentThread(
console.error('[agent-threads] draft staging failed for', info.threadId, err);
}
}
+ return 'started' as const;
})
.catch((err) => {
console.error('[agent-threads] launch failed:', err);
@@ -70,6 +93,7 @@ export function launchAgentThread(
? t`Couldn't connect to the agent service. Make sure the OpenKnowledge server is running and up to date (restart it if it was already running), then try again.`
: t`Couldn't start the agent thread — please try again.`,
);
+ return 'failed' as const;
})
.finally(() => {
inflightLaunches.delete(launchKey);
diff --git a/packages/app/src/lib/acp/thread-event-model.test.ts b/packages/app/src/lib/acp/thread-event-model.test.ts
index 974a92b49..d81eb381e 100644
--- a/packages/app/src/lib/acp/thread-event-model.test.ts
+++ b/packages/app/src/lib/acp/thread-event-model.test.ts
@@ -789,3 +789,33 @@ describe('startup failures a later ready retires', () => {
expect(model.items.filter((i) => i.kind === 'notice' && i.superseded !== true)).toHaveLength(1);
});
});
+
+describe('sent-message timestamps', () => {
+ test('a user turn keeps the instant its event was logged', () => {
+ const model = buildThreadRenderModel([
+ ev({ kind: 'user_message', content: 'hi', ts: 1_700_000_000_000 }),
+ ]);
+
+ const message = model.items[0];
+ if (message?.kind !== 'message') throw new Error('unreachable');
+ expect(message.sentAt).toBe(1_700_000_000_000);
+ });
+
+ test('agent text carries no instant — it arrives as chunks, not a moment', () => {
+ const model = buildThreadRenderModel([
+ ev({
+ kind: 'session_update',
+ ts: 3,
+ update: {
+ sessionUpdate: 'agent_message_chunk',
+ messageId: 'm1',
+ content: { type: 'text', text: 'Hello' },
+ } as never,
+ }),
+ ]);
+
+ const message = model.items[0];
+ if (message?.kind !== 'message') throw new Error('unreachable');
+ expect(message.sentAt).toBeUndefined();
+ });
+});
diff --git a/packages/app/src/lib/acp/thread-event-model.ts b/packages/app/src/lib/acp/thread-event-model.ts
index de96eae61..47cffa369 100644
--- a/packages/app/src/lib/acp/thread-event-model.ts
+++ b/packages/app/src/lib/acp/thread-event-model.ts
@@ -30,16 +30,30 @@ import type {
} from '@inkeep/open-knowledge-core/acp/thread-protocol';
import { t } from '@lingui/core/macro';
-interface RenderedMessage {
- kind: 'message';
- role: 'user' | 'agent' | 'thought';
- text: string;
- messageId: string;
- /** Attachment parts that rode this message on send — user turns only, and
- * omitted for the streaming agent variants. Frozen at send time by the
- * server so a replayed transcript renders exactly what was sent. */
- attachments?: readonly import('@inkeep/open-knowledge-core/acp/thread-protocol').AttachmentPart[];
-}
+/**
+ * A rendered turn. Discriminated on `role` so the compiler holds the
+ * "user turns only" rule the two extra fields carry, rather than a comment:
+ * agent text arrives as chunks that coalesce into one bubble, so no single
+ * instant describes it, and it never carries attachment parts.
+ */
+type RenderedMessage =
+ | {
+ kind: 'message';
+ role: 'user';
+ text: string;
+ messageId: string;
+ /** Attachment parts that rode this message on send. Frozen at send time
+ * by the server so a replayed transcript renders exactly what was sent. */
+ attachments?: readonly import('@inkeep/open-knowledge-core/acp/thread-protocol').AttachmentPart[];
+ /** When the event carrying this message was logged. */
+ sentAt?: number;
+ }
+ | {
+ kind: 'message';
+ role: 'agent' | 'thought';
+ text: string;
+ messageId: string;
+ };
export interface RenderedToolCall {
kind: 'tool_call';
@@ -328,6 +342,7 @@ export class ThreadRenderModelBuilder {
role: 'user',
text: event.content,
messageId: `user-${this.items.length}`,
+ sentAt: event.ts,
};
if (event.attachments !== undefined && event.attachments.length > 0) {
message.attachments = event.attachments;
diff --git a/packages/app/src/locales/ar/messages.json b/packages/app/src/locales/ar/messages.json
index 99a458fae..5e5431310 100644
--- a/packages/app/src/locales/ar/messages.json
+++ b/packages/app/src/locales/ar/messages.json
@@ -1428,6 +1428,7 @@
"Fhp4Gn": ["عرض الإضافة"],
"FiyNln": ["الانتقال إلى النص المحدد في الخاصية"],
"FjkaiT": ["تصغير"],
+ "Fjz6aJ": ["إرسال إلى محادثة جديدة"],
"FqGWeR": ["تعذّر الوصول إلى سجل الوكلاء."],
"FqTpiN": ["ويكي الطيور"],
"Fqr8BP": [
@@ -1860,6 +1861,7 @@
"LE7t79": ["استنساخ إلى مجلد جديد"],
"LGvaif": ["عرض مستودع الإضافة ", ["plugin"]],
"LHH461": ["إنهاء الإعداد"],
+ "LJHTS5": ["اختيار وجهة إرسال هذه الرسالة"],
"LJXDjm": ["تعذّر حفظ تفضيل السمة لديك."],
"LJeFU6": [
"شغّل OpenKnowledge من أي طرفية — <0>ok</0> يفتح مشروعًا، و<1>ok init</1> يربط وكلاءك."
@@ -2519,6 +2521,7 @@
"SXCSQd": ["تم نسخ المسار"],
"SXEdCq": ["هل تنقله إلى ", ["0"], "؟"],
"SYfHmN": ["إلغاء تثبيت التبويب"],
+ "Sad2tK": ["جارٍ الإرسال…"],
"Sbb90e": [
[
"unknownPathCount",
@@ -3068,6 +3071,7 @@
"YLMBSd": ["مثال: تجمّد المحرر بعد لصق جدول كبير"],
"YMlS7s": ["فتح في التطبيق الافتراضي"],
"YPFBfr": [["detail"], " - لا يزال ", ["kind"], " «", ["createdPath"], "» موجودًا على القرص"],
+ "YPJfPD": ["إرسال في هذه المحادثة"],
"YRavYS": [
"منتقي سمة ألوان شخصي — غير مشترك مع مشروعك. عند تفعيله يظهر ضمن «الإضافات» في الشريط الجانبي."
],
@@ -3656,6 +3660,7 @@
}
]
],
+ "eCOktA": ["يجري بالفعل بدء محادثة مع هذا الوكيل — أعد المحاولة بعد قليل."],
"eFJkVt": ["فشل الاستنساخ: ", ["cloneError"]],
"eG8Jsg": ["تبديل وضع تركيز مفتاح Tab في المصدر"],
"eGUbmF": ["نسخ الملف أو المجلد المحدد"],
@@ -4196,6 +4201,7 @@
"kNGLX6": ["جارٍ إعادة المحاولة…"],
"kNiQp6": ["مثبّتة"],
"kNqMMd": ["مجلد"],
+ "kPOw9O": ["نسخ الرسالة"],
"kRTXGw": [
"وجّه البحث الدلالي إلى أي نقطة نهاية تضمينات متوافقة مع OpenAI — خادم ذاتي الاستضافة أو مزوّد آخر. مفتاح API أعلاه يخص أي نقطة نهاية تضبطها هنا."
],
@@ -4949,6 +4955,7 @@
"sKEgGd": ["الإرسال إلى المحادثة"],
"sKHiNR": [["count"], " للخلف"],
"sNeKjP": ["فشل تخزين الرمز — أعد المحاولة"],
+ "sOafXU": ["تحرير وإرسال مرة أخرى"],
"sOxZaS": ["فشل تحميل الرسم البياني"],
"sQoLn0": ["إنهاء"],
"sR0I-f": ["طيّ كل الملفات"],
diff --git a/packages/app/src/locales/ar/messages.po b/packages/app/src/locales/ar/messages.po
index 7dc7cf619..c0a7f5657 100644
--- a/packages/app/src/locales/ar/messages.po
+++ b/packages/app/src/locales/ar/messages.po
@@ -1737,6 +1737,11 @@ msgstr "مُعدّ بالفعل — الأمر ok متاح في طرفيتك"
msgid "Already signed in?"
msgstr "هل سجّلت الدخول بالفعل؟"
+#: src/components/acp/ThreadView.tsx
+#: src/components/SessionsHost.tsx
+msgid "Already starting a chat with this agent — try again in a moment."
+msgstr "يجري بالفعل بدء محادثة مع هذا الوكيل — أعد المحاولة بعد قليل."
+
#: src/components/ReportBugDialogBody.tsx
msgid "Always included"
msgstr "مُدرج دائمًا"
@@ -2365,6 +2370,7 @@ msgstr "تعذّرت مشاركة هذا المسار."
#: src/comments/PropertyCommentButton.tsx
#: src/comments/ThreadCard.tsx
#: src/components/acp/ThreadHistoryMenu.tsx
+#: src/components/acp/UserMessageActions.tsx
#: src/components/ActivityPanelBurstRow.tsx
#: src/components/AuthModal.tsx
#: src/components/CloneDialog.tsx
@@ -2611,6 +2617,10 @@ msgstr "اختر ما تبدأ به علامة تبويب جديدة"
msgid "Choose where to send these comments"
msgstr "اختر إلى أين تُرسل هذه التعليقات"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Choose where to send this message"
+msgstr "اختيار وجهة إرسال هذه الرسالة"
+
#: src/components/settings/SharingSection.tsx
msgid "Choose whether this project's OpenKnowledge setup, including its AI-tool connections, is saved with the project so teammates get it too, or kept only on your computer."
msgstr "اختر ما إذا كان إعداد OpenKnowledge لهذا المشروع، بما فيه اتصالات أدوات الذكاء الاصطناعي، يُحفظ مع المشروع ليحصل عليه زملاؤك أيضًا، أم يبقى على جهازك وحده."
@@ -3397,6 +3407,10 @@ msgstr "النسخ إلى هنا"
msgid "Copy link"
msgstr "نسخ الرابط"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Copy message"
+msgstr "نسخ الرسالة"
+
#: src/components/AppMenubar.tsx
#: src/components/FileTargetMenuItems.tsx
msgid "Copy path"
@@ -5013,6 +5027,10 @@ msgstr "تحرير نسخة"
msgid "Edit and resend"
msgstr "تعديل وإعادة الإرسال"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Edit and send again"
+msgstr "تحرير وإرسال مرة أخرى"
+
#: src/components/settings/rule-option-field.tsx
msgid "Edit in config file"
msgstr "التحرير في ملف الإعداد"
@@ -11614,6 +11632,7 @@ msgid "Semantic search is on, but no API key is set — search falls back to key
msgstr "البحث الدلالي مفعّل، لكن لم يُضبط مفتاح API — يعود البحث إلى مطابقة الكلمات المفتاحية. أضف واحدًا أدناه."
#: src/components/acp/ThreadView.tsx
+#: src/components/acp/UserMessageActions.tsx
#: src/components/FeedbackForm.tsx
msgid "Send"
msgstr "إرسال"
@@ -11639,6 +11658,10 @@ msgstr "إرسال ملاحظات"
msgid "Send feedback…"
msgstr "إرسال ملاحظات…"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Send in this chat"
+msgstr "إرسال في هذه المحادثة"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Send report"
msgstr "إرسال التقرير"
@@ -11647,6 +11670,10 @@ msgstr "إرسال التقرير"
msgid "Send this comment"
msgstr "إرسال هذا التعليق"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Send to a new chat"
+msgstr "إرسال إلى محادثة جديدة"
+
#: src/comments/CommentSendFooter.tsx
msgid "Send to chat"
msgstr "الإرسال إلى المحادثة"
@@ -11673,6 +11700,10 @@ msgstr "يجري الإرسال"
msgid "Sending report"
msgstr "يجري إرسال التقرير"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Sending…"
+msgstr "جارٍ الإرسال…"
+
#: src/components/BugReportHistory.tsx
msgid "Sent"
msgstr "أُرسل"
diff --git a/packages/app/src/locales/bn/messages.json b/packages/app/src/locales/bn/messages.json
index 39059e599..62edafd30 100644
--- a/packages/app/src/locales/bn/messages.json
+++ b/packages/app/src/locales/bn/messages.json
@@ -1215,6 +1215,7 @@
"Fhp4Gn": ["প্লাগইন দেখুন"],
"FiyNln": ["প্রপার্টিতে নির্বাচিত লেখায় যান"],
"FjkaiT": ["ছোট করুন"],
+ "Fjz6aJ": ["নতুন চ্যাটে পাঠান"],
"FqGWeR": ["এজেন্ট রেজিস্ট্রির নাগাল পাওয়া যায়নি।"],
"FqTpiN": ["পাখি উইকি"],
"Fqr8BP": ["টুলবার নিয়ন্ত্রণসহ বহু-পাতার PDF দর্শক (থাম্বনেইল, পাতা নেভিগেশন, জুম)।"],
@@ -1587,6 +1588,7 @@
"LE7t79": ["নতুন একটি ফোল্ডারে ক্লোন করুন"],
"LGvaif": [["plugin"], " প্লাগইনের রিপোজিটরি দেখুন"],
"LHH461": ["সেটআপ শেষ করুন"],
+ "LJHTS5": ["এই বার্তাটি কোথায় পাঠাবেন তা বেছে নিন"],
"LJXDjm": ["আপনার থিম পছন্দ সংরক্ষণ করা যায়নি।"],
"LJeFU6": [
"যেকোনো টার্মিনাল থেকে OpenKnowledge চালু করুন — <0>ok</0> প্রকল্প খোলে, <1>ok init</1> আপনার এজেন্ট যুক্ত করে।"
@@ -2172,6 +2174,7 @@
"SXCSQd": ["পথ কপি হয়েছে"],
"SXEdCq": [["0"], "-এ সরাবেন?"],
"SYfHmN": ["ট্যাব আনপিন করুন"],
+ "Sad2tK": ["পাঠানো হচ্ছে…"],
"Sbb90e": [
[
"unknownPathCount",
@@ -2601,6 +2604,7 @@
"YLMBSd": ["যেমন একটি বড় টেবিল পেস্ট করার পর সম্পাদক জমে গিয়েছিল"],
"YMlS7s": ["ডিফল্ট অ্যাপে খুলুন"],
"YPFBfr": [["detail"], " - ", ["kind"], " \"", ["createdPath"], "\" এখনও ডিস্কে আছে"],
+ "YPJfPD": ["এই চ্যাটেই পাঠান"],
"YRavYS": [
"একটি ব্যক্তিগত রঙ-থিম নির্বাচক — আপনার প্রকল্পের সঙ্গে ভাগ করা হয় না। চালু থাকলে এটি সাইডবারে Plugins-এর নিচে দেখা যায়।"
],
@@ -3094,6 +3098,7 @@
"e9sHSO": ["যেখানে ছেড়েছিলেন সেখান থেকেই শুরু করুন"],
"eBIT9h": ["পেস্ট ব্যর্থ।", ["restoreSuffix"]],
"eCDwNN": [["total", "plural", { "one": ["#", " সমস্যা"], "other": ["#", " সমস্যা"] }]],
+ "eCOktA": ["এই এজেন্টের সাথে ইতিমধ্যেই একটি চ্যাট শুরু হচ্ছে — একটু পরে আবার চেষ্টা করুন।"],
"eFJkVt": ["ক্লোন ব্যর্থ: ", ["cloneError"]],
"eG8Jsg": ["সোর্স ট্যাব ফোকাস মোড চালু বা বন্ধ করুন"],
"eGUbmF": ["নির্বাচিত ফাইল বা ফোল্ডার কপি করুন"],
@@ -3595,6 +3600,7 @@
"kNGLX6": ["পুনরায় চেষ্টা করা হচ্ছে…"],
"kNiQp6": ["পিন করা"],
"kNqMMd": ["ফোল্ডার"],
+ "kPOw9O": ["বার্তা কপি করুন"],
"kRTXGw": [
"অর্থভিত্তিক অনুসন্ধানকে যেকোনো OpenAI-সঙ্গতিপূর্ণ এমবেডিং এন্ডপয়েন্টে লাগান — নিজে হোস্ট করা সার্ভার বা অন্য কোনো সরবরাহকারী। উপরের API কী-টি আপনি এখানে যে এন্ডপয়েন্ট নির্ধারণ করেন তার জন্যই।"
],
@@ -4229,6 +4235,7 @@
"sKEgGd": ["আলাপে পাঠান"],
"sKHiNR": [["count"], " পিছিয়ে"],
"sNeKjP": ["টোকেন সংরক্ষণ করতে ব্যর্থ — আবার চেষ্টা করুন"],
+ "sOafXU": ["সম্পাদনা করে আবার পাঠান"],
"sOxZaS": ["গ্রাফ লোড করতে ব্যর্থ"],
"sQoLn0": ["প্রস্থান"],
"sR0I-f": ["সব ফাইল গুটিয়ে নিন"],
diff --git a/packages/app/src/locales/bn/messages.po b/packages/app/src/locales/bn/messages.po
index be381fbf8..3037e49df 100644
--- a/packages/app/src/locales/bn/messages.po
+++ b/packages/app/src/locales/bn/messages.po
@@ -1733,6 +1733,11 @@ msgstr "আগে থেকেই সেট আপ করা — ok আপনা
msgid "Already signed in?"
msgstr "আগে থেকেই সাইন ইন করা আছে?"
+#: src/components/acp/ThreadView.tsx
+#: src/components/SessionsHost.tsx
+msgid "Already starting a chat with this agent — try again in a moment."
+msgstr "এই এজেন্টের সাথে ইতিমধ্যেই একটি চ্যাট শুরু হচ্ছে — একটু পরে আবার চেষ্টা করুন।"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Always included"
msgstr "সবসময় অন্তর্ভুক্ত"
@@ -2361,6 +2366,7 @@ msgstr "এই পাথ শেয়ার করা যাচ্ছে না
#: src/comments/PropertyCommentButton.tsx
#: src/comments/ThreadCard.tsx
#: src/components/acp/ThreadHistoryMenu.tsx
+#: src/components/acp/UserMessageActions.tsx
#: src/components/ActivityPanelBurstRow.tsx
#: src/components/AuthModal.tsx
#: src/components/CloneDialog.tsx
@@ -2607,6 +2613,10 @@ msgstr "নতুন ট্যাব কী চালু করবে তা ব
msgid "Choose where to send these comments"
msgstr "এই মন্তব্যগুলো কোথায় পাঠাবেন তা বাছুন"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Choose where to send this message"
+msgstr "এই বার্তাটি কোথায় পাঠাবেন তা বেছে নিন"
+
#: src/components/settings/SharingSection.tsx
msgid "Choose whether this project's OpenKnowledge setup, including its AI-tool connections, is saved with the project so teammates get it too, or kept only on your computer."
msgstr "বাছুন এই প্রকল্পের OpenKnowledge সেটআপ, তার AI-টুল সংযোগসহ, প্রকল্পের সঙ্গে সংরক্ষিত হবে যাতে সহকর্মীরাও তা পান, নাকি শুধু আপনার কম্পিউটারেই রাখা হবে।"
@@ -3393,6 +3403,10 @@ msgstr "এখানে কপি করুন"
msgid "Copy link"
msgstr "লিংক কপি করুন"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Copy message"
+msgstr "বার্তা কপি করুন"
+
#: src/components/AppMenubar.tsx
#: src/components/FileTargetMenuItems.tsx
msgid "Copy path"
@@ -5009,6 +5023,10 @@ msgstr "একটি অনুলিপি সম্পাদনা করুন
msgid "Edit and resend"
msgstr "সম্পাদনা করে আবার পাঠান"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Edit and send again"
+msgstr "সম্পাদনা করে আবার পাঠান"
+
#: src/components/settings/rule-option-field.tsx
msgid "Edit in config file"
msgstr "কনফিগ ফাইলে সম্পাদনা করুন"
@@ -11610,6 +11628,7 @@ msgid "Semantic search is on, but no API key is set — search falls back to key
msgstr "অর্থভিত্তিক অনুসন্ধান চালু, কিন্তু কোনো API কী নির্ধারিত নেই — অনুসন্ধান কীওয়ার্ড মিলানোয় ফিরে যায়। নিচে একটি যোগ করুন।"
#: src/components/acp/ThreadView.tsx
+#: src/components/acp/UserMessageActions.tsx
#: src/components/FeedbackForm.tsx
msgid "Send"
msgstr "পাঠান"
@@ -11635,6 +11654,10 @@ msgstr "মতামত পাঠান"
msgid "Send feedback…"
msgstr "মতামত পাঠান…"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Send in this chat"
+msgstr "এই চ্যাটেই পাঠান"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Send report"
msgstr "রিপোর্ট পাঠান"
@@ -11643,6 +11666,10 @@ msgstr "রিপোর্ট পাঠান"
msgid "Send this comment"
msgstr "এই মন্তব্যটি পাঠান"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Send to a new chat"
+msgstr "নতুন চ্যাটে পাঠান"
+
#: src/comments/CommentSendFooter.tsx
msgid "Send to chat"
msgstr "আলাপে পাঠান"
@@ -11669,6 +11696,10 @@ msgstr "পাঠানো হচ্ছে"
msgid "Sending report"
msgstr "রিপোর্ট পাঠানো হচ্ছে"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Sending…"
+msgstr "পাঠানো হচ্ছে…"
+
#: src/components/BugReportHistory.tsx
msgid "Sent"
msgstr "পাঠানো হয়েছে"
diff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.json
index 983fe7553..2860e57d6 100644
--- a/packages/app/src/locales/en/messages.json
+++ b/packages/app/src/locales/en/messages.json
@@ -1245,6 +1245,7 @@
"Fhp4Gn": ["View plugin"],
"FiyNln": ["Jump to selected text in property"],
"FjkaiT": ["Zoom out"],
+ "Fjz6aJ": ["Send to a new chat"],
"FqGWeR": ["Couldn't reach the agent registry."],
"FqTpiN": ["Bird wiki"],
"Fqr8BP": ["Multi-page PDF viewer with toolbar controls (thumbnails, page nav, zoom)."],
@@ -1631,6 +1632,7 @@
"LE7t79": ["Clone to a new folder"],
"LGvaif": ["View the ", ["plugin"], " plugin repo"],
"LHH461": ["Finish setup"],
+ "LJHTS5": ["Choose where to send this message"],
"LJXDjm": ["Couldn't save your theme preference."],
"LJeFU6": [
"Launch OpenKnowledge from any terminal — <0>ok</0> opens a project, <1>ok init</1> connects your agents."
@@ -2223,6 +2225,7 @@
"SXCSQd": ["Copied path"],
"SXEdCq": ["Move to ", ["0"], "?"],
"SYfHmN": ["Unpin tab"],
+ "Sad2tK": ["Sending…"],
"Sbb90e": [
[
"unknownPathCount",
@@ -2658,6 +2661,7 @@
"YLMBSd": ["e.g. The editor froze after I pasted a large table"],
"YMlS7s": ["Open in default app"],
"YPFBfr": [["detail"], " - ", ["kind"], " \"", ["createdPath"], "\" still exists on disk"],
+ "YPJfPD": ["Send in this chat"],
"YRavYS": [
"A personal color-theme picker — not shared with your project. When on, it appears under Plugins in the sidebar."
],
@@ -3175,6 +3179,7 @@
"e9sHSO": ["Pick up where you left off"],
"eBIT9h": ["Paste failed.", ["restoreSuffix"]],
"eCDwNN": [["total", "plural", { "one": ["#", " problem"], "other": ["#", " problems"] }]],
+ "eCOktA": ["Already starting a chat with this agent — try again in a moment."],
"eFJkVt": ["Clone failed: ", ["cloneError"]],
"eG8Jsg": ["Toggle source tab focus mode"],
"eGUbmF": ["Copy selected file or folder"],
@@ -3699,6 +3704,7 @@
"kNGLX6": ["Retrying…"],
"kNiQp6": ["Pinned"],
"kNqMMd": ["Folder"],
+ "kPOw9O": ["Copy message"],
"kRTXGw": [
"Point semantic search at any OpenAI-compatible embeddings endpoint — a self-hosted server or another provider. The API key above is for whichever endpoint you set here."
],
@@ -4361,6 +4367,7 @@
"sKEgGd": ["Send to chat"],
"sKHiNR": [["count"], " behind"],
"sNeKjP": ["Failed to store the token — try again"],
+ "sOafXU": ["Edit and send again"],
"sOxZaS": ["Failed to load graph"],
"sQoLn0": ["Quit"],
"sR0I-f": ["Collapse all files"],
diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.po
index b50b260df..94db289e3 100644
--- a/packages/app/src/locales/en/messages.po
+++ b/packages/app/src/locales/en/messages.po
@@ -1737,6 +1737,11 @@ msgstr "Already set up — ok is available in your terminal"
msgid "Already signed in?"
msgstr "Already signed in?"
+#: src/components/acp/ThreadView.tsx
+#: src/components/SessionsHost.tsx
+msgid "Already starting a chat with this agent — try again in a moment."
+msgstr "Already starting a chat with this agent — try again in a moment."
+
#: src/components/ReportBugDialogBody.tsx
msgid "Always included"
msgstr "Always included"
@@ -2365,6 +2370,7 @@ msgstr "Can't share this path."
#: src/comments/PropertyCommentButton.tsx
#: src/comments/ThreadCard.tsx
#: src/components/acp/ThreadHistoryMenu.tsx
+#: src/components/acp/UserMessageActions.tsx
#: src/components/ActivityPanelBurstRow.tsx
#: src/components/AuthModal.tsx
#: src/components/CloneDialog.tsx
@@ -2611,6 +2617,10 @@ msgstr "Choose what a new tab starts"
msgid "Choose where to send these comments"
msgstr "Choose where to send these comments"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Choose where to send this message"
+msgstr "Choose where to send this message"
+
#: src/components/settings/SharingSection.tsx
msgid "Choose whether this project's OpenKnowledge setup, including its AI-tool connections, is saved with the project so teammates get it too, or kept only on your computer."
msgstr "Choose whether this project's OpenKnowledge setup, including its AI-tool connections, is saved with the project so teammates get it too, or kept only on your computer."
@@ -3397,6 +3407,10 @@ msgstr "Copy in"
msgid "Copy link"
msgstr "Copy link"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Copy message"
+msgstr "Copy message"
+
#: src/components/AppMenubar.tsx
#: src/components/FileTargetMenuItems.tsx
msgid "Copy path"
@@ -5013,6 +5027,10 @@ msgstr "Edit a copy"
msgid "Edit and resend"
msgstr "Edit and resend"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Edit and send again"
+msgstr "Edit and send again"
+
#: src/components/settings/rule-option-field.tsx
msgid "Edit in config file"
msgstr "Edit in config file"
@@ -11614,6 +11632,7 @@ msgid "Semantic search is on, but no API key is set — search falls back to key
msgstr "Semantic search is on, but no API key is set — search falls back to keyword matching. Add one below."
#: src/components/acp/ThreadView.tsx
+#: src/components/acp/UserMessageActions.tsx
#: src/components/FeedbackForm.tsx
msgid "Send"
msgstr "Send"
@@ -11639,6 +11658,10 @@ msgstr "Send feedback"
msgid "Send feedback…"
msgstr "Send feedback…"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Send in this chat"
+msgstr "Send in this chat"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Send report"
msgstr "Send report"
@@ -11647,6 +11670,10 @@ msgstr "Send report"
msgid "Send this comment"
msgstr "Send this comment"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Send to a new chat"
+msgstr "Send to a new chat"
+
#: src/comments/CommentSendFooter.tsx
msgid "Send to chat"
msgstr "Send to chat"
@@ -11673,6 +11700,10 @@ msgstr "Sending"
msgid "Sending report"
msgstr "Sending report"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Sending…"
+msgstr "Sending…"
+
#: src/components/BugReportHistory.tsx
msgid "Sent"
msgstr "Sent"
diff --git a/packages/app/src/locales/es/messages.json b/packages/app/src/locales/es/messages.json
index 3a7a3f7f0..8522672d8 100644
--- a/packages/app/src/locales/es/messages.json
+++ b/packages/app/src/locales/es/messages.json
@@ -1440,6 +1440,7 @@
"Fhp4Gn": ["Ver el complemento"],
"FiyNln": ["Ir al texto seleccionado en la propiedad"],
"FjkaiT": ["Alejar"],
+ "Fjz6aJ": ["Enviar a un chat nuevo"],
"FqGWeR": ["No se pudo contactar con el registro de agentes."],
"FqTpiN": ["Wiki de aves"],
"Fqr8BP": [
@@ -1902,6 +1903,7 @@
"LE7t79": ["Clonar en una carpeta nueva"],
"LGvaif": ["Ver el repositorio del complemento ", ["plugin"]],
"LHH461": ["Finalizar configuración"],
+ "LJHTS5": ["Elegir a dónde enviar este mensaje"],
"LJXDjm": ["No se pudo guardar tu preferencia de tema."],
"LJeFU6": [
"Inicia OpenKnowledge desde cualquier terminal: <0>ok</0> abre un proyecto y <1>ok init</1> conecta tus agentes."
@@ -2554,6 +2556,7 @@
"SXCSQd": ["Ruta copiada"],
"SXEdCq": ["¿Mover a ", ["0"], "?"],
"SYfHmN": ["Dejar de fijar la pestaña"],
+ "Sad2tK": ["Enviando…"],
"Sbb90e": [
[
"unknownPathCount",
@@ -3109,6 +3112,7 @@
["createdPath"],
"\" sigue existiendo en el disco"
],
+ "YPJfPD": ["Enviar en este chat"],
"YRavYS": [
"Un selector de tema de color personal, no compartido con tu proyecto. Al activarlo aparece en Complementos, en la barra lateral."
],
@@ -3707,6 +3711,7 @@
{ "one": ["#", " problema"], "many": ["#", " problemas"], "other": ["#", " problemas"] }
]
],
+ "eCOktA": ["Ya se está iniciando un chat con este agente; inténtalo de nuevo en un momento."],
"eFJkVt": ["No se pudo clonar: ", ["cloneError"]],
"eG8Jsg": ["Activar o desactivar el modo de foco del tabulador en el código"],
"eGUbmF": ["Copiar el archivo o la carpeta seleccionados"],
@@ -4292,6 +4297,7 @@
"kNGLX6": ["Reintentando…"],
"kNiQp6": ["Fijados"],
"kNqMMd": ["Carpeta"],
+ "kPOw9O": ["Copiar el mensaje"],
"kRTXGw": [
"Apunta la búsqueda semántica a cualquier endpoint de embeddings compatible con OpenAI: un servidor propio u otro proveedor. La clave de API de arriba vale para el endpoint que definas aquí."
],
@@ -5029,6 +5035,7 @@
"sKEgGd": ["Enviar al chat"],
"sKHiNR": [["count"], " por detrás"],
"sNeKjP": ["No se pudo guardar el token: inténtalo de nuevo"],
+ "sOafXU": ["Editar y enviar de nuevo"],
"sOxZaS": ["No se pudo cargar el grafo"],
"sQoLn0": ["Salir"],
"sR0I-f": ["Contraer todos los archivos"],
diff --git a/packages/app/src/locales/es/messages.po b/packages/app/src/locales/es/messages.po
index 3c8ea8d87..b1751797e 100644
--- a/packages/app/src/locales/es/messages.po
+++ b/packages/app/src/locales/es/messages.po
@@ -1737,6 +1737,11 @@ msgstr "Ya está configurado: ok está disponible en tu terminal"
msgid "Already signed in?"
msgstr "¿Ya iniciaste sesión?"
+#: src/components/acp/ThreadView.tsx
+#: src/components/SessionsHost.tsx
+msgid "Already starting a chat with this agent — try again in a moment."
+msgstr "Ya se está iniciando un chat con este agente; inténtalo de nuevo en un momento."
+
#: src/components/ReportBugDialogBody.tsx
msgid "Always included"
msgstr "Siempre incluido"
@@ -2365,6 +2370,7 @@ msgstr "No se puede compartir esta ruta."
#: src/comments/PropertyCommentButton.tsx
#: src/comments/ThreadCard.tsx
#: src/components/acp/ThreadHistoryMenu.tsx
+#: src/components/acp/UserMessageActions.tsx
#: src/components/ActivityPanelBurstRow.tsx
#: src/components/AuthModal.tsx
#: src/components/CloneDialog.tsx
@@ -2611,6 +2617,10 @@ msgstr "Elige qué inicia una pestaña nueva"
msgid "Choose where to send these comments"
msgstr "Elige a dónde enviar estos comentarios"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Choose where to send this message"
+msgstr "Elegir a dónde enviar este mensaje"
+
#: src/components/settings/SharingSection.tsx
msgid "Choose whether this project's OpenKnowledge setup, including its AI-tool connections, is saved with the project so teammates get it too, or kept only on your computer."
msgstr "Elige si la configuración de OpenKnowledge de este proyecto, incluidas sus conexiones con herramientas de IA, se guarda con el proyecto para que tus compañeros también la reciban, o se queda solo en tu equipo."
@@ -3397,6 +3407,10 @@ msgstr "Copiar aquí"
msgid "Copy link"
msgstr "Copiar enlace"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Copy message"
+msgstr "Copiar el mensaje"
+
#: src/components/AppMenubar.tsx
#: src/components/FileTargetMenuItems.tsx
msgid "Copy path"
@@ -5013,6 +5027,10 @@ msgstr "Editar una copia"
msgid "Edit and resend"
msgstr "Editar y reenviar"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Edit and send again"
+msgstr "Editar y enviar de nuevo"
+
#: src/components/settings/rule-option-field.tsx
msgid "Edit in config file"
msgstr "Editar en el archivo de configuración"
@@ -11614,6 +11632,7 @@ msgid "Semantic search is on, but no API key is set — search falls back to key
msgstr "La búsqueda semántica está activada, pero no hay ninguna clave de API definida: la búsqueda vuelve a coincidencia por palabras clave. Añade una abajo."
#: src/components/acp/ThreadView.tsx
+#: src/components/acp/UserMessageActions.tsx
#: src/components/FeedbackForm.tsx
msgid "Send"
msgstr "Enviar"
@@ -11639,6 +11658,10 @@ msgstr "Enviar comentarios"
msgid "Send feedback…"
msgstr "Enviar comentarios…"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Send in this chat"
+msgstr "Enviar en este chat"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Send report"
msgstr "Enviar el informe"
@@ -11647,6 +11670,10 @@ msgstr "Enviar el informe"
msgid "Send this comment"
msgstr "Enviar este comentario"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Send to a new chat"
+msgstr "Enviar a un chat nuevo"
+
#: src/comments/CommentSendFooter.tsx
msgid "Send to chat"
msgstr "Enviar al chat"
@@ -11673,6 +11700,10 @@ msgstr "Enviando"
msgid "Sending report"
msgstr "Enviando el informe"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Sending…"
+msgstr "Enviando…"
+
#: src/components/BugReportHistory.tsx
msgid "Sent"
msgstr "Enviado"
diff --git a/packages/app/src/locales/fr/messages.json b/packages/app/src/locales/fr/messages.json
index b97c27961..53163c081 100644
--- a/packages/app/src/locales/fr/messages.json
+++ b/packages/app/src/locales/fr/messages.json
@@ -1469,6 +1469,7 @@
"Fhp4Gn": ["Voir le plugin"],
"FiyNln": ["Aller au texte sélectionné dans la propriété"],
"FjkaiT": ["Zoom arrière"],
+ "Fjz6aJ": ["Envoyer dans un nouveau chat"],
"FqGWeR": ["Impossible de joindre le registre des agents."],
"FqTpiN": ["Wiki des oiseaux"],
"Fqr8BP": ["Visionneuse PDF multipage avec barre d'outils (miniatures, navigation, zoom)."],
@@ -1931,6 +1932,7 @@
"LE7t79": ["Cloner dans un nouveau dossier"],
"LGvaif": ["Voir le dépôt du plugin ", ["plugin"]],
"LHH461": ["Terminer la configuration"],
+ "LJHTS5": ["Choisir où envoyer ce message"],
"LJXDjm": ["Impossible d'enregistrer votre préférence de thème."],
"LJeFU6": [
"Lancez OpenKnowledge depuis n'importe quel terminal : <0>ok</0> ouvre un projet, <1>ok init</1> connecte vos agents."
@@ -2581,6 +2583,7 @@
"SXCSQd": ["Chemin copié"],
"SXEdCq": ["Déplacer vers ", ["0"], " ?"],
"SYfHmN": ["Détacher l'onglet"],
+ "Sad2tK": ["Envoi…"],
"Sbb90e": [
[
"unknownPathCount",
@@ -3136,6 +3139,7 @@
["createdPath"],
" » existe encore sur le disque"
],
+ "YPJfPD": ["Envoyer dans ce chat"],
"YRavYS": [
"Un sélecteur de thème de couleurs personnel — non partagé avec votre projet. Une fois activé, il apparaît sous Plugins dans la barre latérale."
],
@@ -3737,6 +3741,9 @@
{ "one": ["#", " problème"], "many": ["#", " problèmes"], "other": ["#", " problèmes"] }
]
],
+ "eCOktA": [
+ "Un chat avec cet agent est déjà en cours de démarrage — réessayez dans un instant."
+ ],
"eFJkVt": ["Échec du clonage : ", ["cloneError"]],
"eG8Jsg": ["Basculer le mode focus de la touche Tab dans la source"],
"eGUbmF": ["Copier le fichier ou dossier sélectionné"],
@@ -4320,6 +4327,7 @@
"kNGLX6": ["Nouvelle tentative…"],
"kNiQp6": ["Épinglés"],
"kNqMMd": ["Dossier"],
+ "kPOw9O": ["Copier le message"],
"kRTXGw": [
"Dirigez la recherche sémantique vers n'importe quel point de terminaison d'embeddings compatible OpenAI — un serveur auto-hébergé ou un autre fournisseur. La clé API ci-dessus vaut pour le point de terminaison que vous définissez ici."
],
@@ -5079,6 +5087,7 @@
"sKEgGd": ["Envoyer dans la discussion"],
"sKHiNR": [["count"], " en retard"],
"sNeKjP": ["Échec de l'enregistrement du jeton — réessayez"],
+ "sOafXU": ["Modifier et renvoyer"],
"sOxZaS": ["Échec du chargement du graphe"],
"sQoLn0": ["Quitter"],
"sR0I-f": ["Réduire tous les fichiers"],
diff --git a/packages/app/src/locales/fr/messages.po b/packages/app/src/locales/fr/messages.po
index a6ee0e73a..ed4c884d2 100644
--- a/packages/app/src/locales/fr/messages.po
+++ b/packages/app/src/locales/fr/messages.po
@@ -1737,6 +1737,11 @@ msgstr "Déjà configuré — ok est disponible dans votre terminal"
msgid "Already signed in?"
msgstr "Déjà connecté ?"
+#: src/components/acp/ThreadView.tsx
+#: src/components/SessionsHost.tsx
+msgid "Already starting a chat with this agent — try again in a moment."
+msgstr "Un chat avec cet agent est déjà en cours de démarrage — réessayez dans un instant."
+
#: src/components/ReportBugDialogBody.tsx
msgid "Always included"
msgstr "Toujours inclus"
@@ -2365,6 +2370,7 @@ msgstr "Impossible de partager ce chemin."
#: src/comments/PropertyCommentButton.tsx
#: src/comments/ThreadCard.tsx
#: src/components/acp/ThreadHistoryMenu.tsx
+#: src/components/acp/UserMessageActions.tsx
#: src/components/ActivityPanelBurstRow.tsx
#: src/components/AuthModal.tsx
#: src/components/CloneDialog.tsx
@@ -2611,6 +2617,10 @@ msgstr "Choisissez ce qu'ouvre un nouvel onglet"
msgid "Choose where to send these comments"
msgstr "Choisissez où envoyer ces commentaires"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Choose where to send this message"
+msgstr "Choisir où envoyer ce message"
+
#: src/components/settings/SharingSection.tsx
msgid "Choose whether this project's OpenKnowledge setup, including its AI-tool connections, is saved with the project so teammates get it too, or kept only on your computer."
msgstr "Choisissez si la configuration OpenKnowledge de ce projet, y compris ses connexions aux outils IA, est enregistrée avec le projet pour que vos coéquipiers l'obtiennent aussi, ou conservée uniquement sur votre ordinateur."
@@ -3397,6 +3407,10 @@ msgstr "Copier ici"
msgid "Copy link"
msgstr "Copier le lien"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Copy message"
+msgstr "Copier le message"
+
#: src/components/AppMenubar.tsx
#: src/components/FileTargetMenuItems.tsx
msgid "Copy path"
@@ -5013,6 +5027,10 @@ msgstr "Modifier une copie"
msgid "Edit and resend"
msgstr "Modifier et renvoyer"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Edit and send again"
+msgstr "Modifier et renvoyer"
+
#: src/components/settings/rule-option-field.tsx
msgid "Edit in config file"
msgstr "Modifier dans le fichier de configuration"
@@ -11614,6 +11632,7 @@ msgid "Semantic search is on, but no API key is set — search falls back to key
msgstr "La recherche sémantique est activée, mais aucune clé API n'est définie — la recherche revient à la correspondance par mots-clés. Ajoutez-en une ci-dessous."
#: src/components/acp/ThreadView.tsx
+#: src/components/acp/UserMessageActions.tsx
#: src/components/FeedbackForm.tsx
msgid "Send"
msgstr "Envoyer"
@@ -11639,6 +11658,10 @@ msgstr "Envoyer un retour"
msgid "Send feedback…"
msgstr "Envoyer un retour…"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Send in this chat"
+msgstr "Envoyer dans ce chat"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Send report"
msgstr "Envoyer le rapport"
@@ -11647,6 +11670,10 @@ msgstr "Envoyer le rapport"
msgid "Send this comment"
msgstr "Envoyer ce commentaire"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Send to a new chat"
+msgstr "Envoyer dans un nouveau chat"
+
#: src/comments/CommentSendFooter.tsx
msgid "Send to chat"
msgstr "Envoyer dans la discussion"
@@ -11673,6 +11700,10 @@ msgstr "Envoi en cours"
msgid "Sending report"
msgstr "Envoi du rapport"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Sending…"
+msgstr "Envoi…"
+
#: src/components/BugReportHistory.tsx
msgid "Sent"
msgstr "Envoyé"
diff --git a/packages/app/src/locales/hi/messages.json b/packages/app/src/locales/hi/messages.json
index 893e8b616..531446aa7 100644
--- a/packages/app/src/locales/hi/messages.json
+++ b/packages/app/src/locales/hi/messages.json
@@ -1215,6 +1215,7 @@
"Fhp4Gn": ["प्लगइन देखें"],
"FiyNln": ["प्रॉपर्टी में चयनित पाठ पर जाएँ"],
"FjkaiT": ["छोटा करें"],
+ "Fjz6aJ": ["नई चैट में भेजें"],
"FqGWeR": ["एजेंट रजिस्ट्री तक नहीं पहुँचा जा सका।"],
"FqTpiN": ["पक्षी विकी"],
"Fqr8BP": ["टूलबार नियंत्रणों वाला बहु-पृष्ठ PDF दर्शक (थंबनेल, पेज नेविगेशन, ज़ूम)।"],
@@ -1587,6 +1588,7 @@
"LE7t79": ["किसी नए फ़ोल्डर में क्लोन करें"],
"LGvaif": [["plugin"], " प्लगइन का रिपॉज़िटरी देखें"],
"LHH461": ["सेटअप पूरा करें"],
+ "LJHTS5": ["चुनें कि यह संदेश कहाँ भेजना है"],
"LJXDjm": ["आपकी थीम प्राथमिकता सहेजी नहीं जा सकी।"],
"LJeFU6": [
"OpenKnowledge को किसी भी टर्मिनल से चलाएँ — <0>ok</0> प्रोजेक्ट खोलता है, <1>ok init</1> आपके एजेंट जोड़ता है।"
@@ -2160,6 +2162,7 @@
"SXCSQd": ["पथ कॉपी किया गया"],
"SXEdCq": [["0"], " में ले जाएँ?"],
"SYfHmN": ["टैब अनपिन करें"],
+ "Sad2tK": ["भेजा जा रहा है…"],
"Sbb90e": [
[
"unknownPathCount",
@@ -2585,6 +2588,7 @@
"YLMBSd": ["जैसे एक बड़ी तालिका चिपकाने के बाद संपादक जम गया"],
"YMlS7s": ["डिफ़ॉल्ट ऐप में खोलें"],
"YPFBfr": [["detail"], " - ", ["kind"], " \"", ["createdPath"], "\" अब भी डिस्क पर मौजूद है"],
+ "YPJfPD": ["इसी चैट में भेजें"],
"YRavYS": [
"एक निजी रंग-थीम चयनकर्ता — आपके प्रोजेक्ट के साथ साझा नहीं। चालू होने पर यह साइडबार में Plugins के नीचे दिखता है।"
],
@@ -3080,6 +3084,7 @@
"e9sHSO": ["जहाँ छोड़ा था वहीं से शुरू करें"],
"eBIT9h": ["चिपकाना विफल।", ["restoreSuffix"]],
"eCDwNN": [["total", "plural", { "one": ["#", " समस्या"], "other": ["#", " समस्याएँ"] }]],
+ "eCOktA": ["इस एजेंट के साथ पहले से ही एक चैट शुरू हो रही है — कुछ ही देर में फिर कोशिश करें।"],
"eFJkVt": ["क्लोन विफल: ", ["cloneError"]],
"eG8Jsg": ["स्रोत टैब फ़ोकस मोड चालू या बंद करें"],
"eGUbmF": ["चयनित फ़ाइल या फ़ोल्डर कॉपी करें"],
@@ -3586,6 +3591,7 @@
"kNGLX6": ["पुनः प्रयास किया जा रहा है…"],
"kNiQp6": ["पिन किए गए"],
"kNqMMd": ["फ़ोल्डर"],
+ "kPOw9O": ["संदेश कॉपी करें"],
"kRTXGw": [
"अर्थ-आधारित खोज को किसी भी OpenAI-संगत एम्बेडिंग एंडपॉइंट पर लगाएँ — कोई स्वयं-होस्ट किया सर्वर या कोई दूसरा प्रदाता। ऊपर दी API कुंजी उसी एंडपॉइंट के लिए है जो आप यहाँ सेट करते हैं।"
],
@@ -4208,6 +4214,7 @@
"sKEgGd": ["चैट में भेजें"],
"sKHiNR": [["count"], " पीछे"],
"sNeKjP": ["टोकन सहेजने में विफल — फिर कोशिश करें"],
+ "sOafXU": ["संपादित करके फिर भेजें"],
"sOxZaS": ["ग्राफ़ लोड करने में विफल"],
"sQoLn0": ["बाहर निकलें"],
"sR0I-f": ["सभी फ़ाइलें समेटें"],
diff --git a/packages/app/src/locales/hi/messages.po b/packages/app/src/locales/hi/messages.po
index 202be1986..f0e6312ed 100644
--- a/packages/app/src/locales/hi/messages.po
+++ b/packages/app/src/locales/hi/messages.po
@@ -1733,6 +1733,11 @@ msgstr "पहले से सेट अप है — ok आपके टर
msgid "Already signed in?"
msgstr "पहले से साइन इन हैं?"
+#: src/components/acp/ThreadView.tsx
+#: src/components/SessionsHost.tsx
+msgid "Already starting a chat with this agent — try again in a moment."
+msgstr "इस एजेंट के साथ पहले से ही एक चैट शुरू हो रही है — कुछ ही देर में फिर कोशिश करें।"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Always included"
msgstr "हमेशा शामिल"
@@ -2361,6 +2366,7 @@ msgstr "यह पथ साझा नहीं किया जा सकता
#: src/comments/PropertyCommentButton.tsx
#: src/comments/ThreadCard.tsx
#: src/components/acp/ThreadHistoryMenu.tsx
+#: src/components/acp/UserMessageActions.tsx
#: src/components/ActivityPanelBurstRow.tsx
#: src/components/AuthModal.tsx
#: src/components/CloneDialog.tsx
@@ -2607,6 +2613,10 @@ msgstr "चुनें कि नया टैब क्या शुरू क
msgid "Choose where to send these comments"
msgstr "चुनें कि ये टिप्पणियाँ कहाँ भेजनी हैं"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Choose where to send this message"
+msgstr "चुनें कि यह संदेश कहाँ भेजना है"
+
#: src/components/settings/SharingSection.tsx
msgid "Choose whether this project's OpenKnowledge setup, including its AI-tool connections, is saved with the project so teammates get it too, or kept only on your computer."
msgstr "चुनें कि इस प्रोजेक्ट का OpenKnowledge सेटअप, उसके AI-टूल कनेक्शन सहित, प्रोजेक्ट के साथ सहेजा जाए ताकि सहकर्मियों को भी मिले, या केवल आपके कंप्यूटर पर रखा जाए।"
@@ -3393,6 +3403,10 @@ msgstr "यहाँ कॉपी करें"
msgid "Copy link"
msgstr "लिंक कॉपी करें"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Copy message"
+msgstr "संदेश कॉपी करें"
+
#: src/components/AppMenubar.tsx
#: src/components/FileTargetMenuItems.tsx
msgid "Copy path"
@@ -5009,6 +5023,10 @@ msgstr "एक प्रति संपादित करें"
msgid "Edit and resend"
msgstr "संपादित करें और फिर से भेजें"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Edit and send again"
+msgstr "संपादित करके फिर भेजें"
+
#: src/components/settings/rule-option-field.tsx
msgid "Edit in config file"
msgstr "कॉन्फ़िग फ़ाइल में संपादित करें"
@@ -11610,6 +11628,7 @@ msgid "Semantic search is on, but no API key is set — search falls back to key
msgstr "अर्थ-आधारित खोज चालू है, पर कोई API कुंजी सेट नहीं है — खोज कीवर्ड मिलान पर लौट आती है। नीचे एक जोड़ें।"
#: src/components/acp/ThreadView.tsx
+#: src/components/acp/UserMessageActions.tsx
#: src/components/FeedbackForm.tsx
msgid "Send"
msgstr "भेजें"
@@ -11635,6 +11654,10 @@ msgstr "प्रतिक्रिया भेजें"
msgid "Send feedback…"
msgstr "प्रतिक्रिया भेजें…"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Send in this chat"
+msgstr "इसी चैट में भेजें"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Send report"
msgstr "रिपोर्ट भेजें"
@@ -11643,6 +11666,10 @@ msgstr "रिपोर्ट भेजें"
msgid "Send this comment"
msgstr "यह टिप्पणी भेजें"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Send to a new chat"
+msgstr "नई चैट में भेजें"
+
#: src/comments/CommentSendFooter.tsx
msgid "Send to chat"
msgstr "चैट में भेजें"
@@ -11669,6 +11696,10 @@ msgstr "भेजा जा रहा है"
msgid "Sending report"
msgstr "रिपोर्ट भेजी जा रही है"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Sending…"
+msgstr "भेजा जा रहा है…"
+
#: src/components/BugReportHistory.tsx
msgid "Sent"
msgstr "भेजा गया"
diff --git a/packages/app/src/locales/id/messages.json b/packages/app/src/locales/id/messages.json
index 3b59f9d99..1b4f5fccf 100644
--- a/packages/app/src/locales/id/messages.json
+++ b/packages/app/src/locales/id/messages.json
@@ -1241,6 +1241,7 @@
"Fhp4Gn": ["Lihat plugin"],
"FiyNln": ["Lompat ke teks terpilih di properti"],
"FjkaiT": ["Perkecil"],
+ "Fjz6aJ": ["Kirim ke obrolan baru"],
"FqGWeR": ["Registri agen tidak bisa dihubungi."],
"FqTpiN": ["Wiki burung"],
"Fqr8BP": [
@@ -1654,6 +1655,7 @@
"LE7t79": ["Kloning ke folder baru"],
"LGvaif": ["Lihat repositori plugin ", ["plugin"]],
"LHH461": ["Selesaikan penyiapan"],
+ "LJHTS5": ["Pilih ke mana pesan ini dikirim"],
"LJXDjm": ["Tidak dapat menyimpan preferensi tema Anda."],
"LJeFU6": [
"Jalankan OpenKnowledge dari terminal mana pun — <0>ok</0> membuka proyek, <1>ok init</1> menghubungkan agen Anda."
@@ -2224,6 +2226,7 @@
"SXCSQd": ["Jalur disalin"],
"SXEdCq": ["Pindahkan ke ", ["0"], "?"],
"SYfHmN": ["Lepas sematan tab"],
+ "Sad2tK": ["Mengirim…"],
"Sbb90e": [
[
"unknownPathCount",
@@ -2674,6 +2677,7 @@
"YLMBSd": ["mis. Penyunting membeku setelah saya menempelkan tabel besar"],
"YMlS7s": ["Buka di aplikasi bawaan"],
"YPFBfr": [["detail"], " - ", ["kind"], " \"", ["createdPath"], "\" masih ada di disk"],
+ "YPJfPD": ["Kirim di obrolan ini"],
"YRavYS": [
"Pemilih tema warna pribadi — tidak dibagikan dengan proyek Anda. Saat aktif, ia muncul di bawah Plugin pada bilah sisi."
],
@@ -3197,6 +3201,7 @@
"e9sHSO": ["Lanjutkan dari tempat Anda berhenti"],
"eBIT9h": ["Penempelan gagal.", ["restoreSuffix"]],
"eCDwNN": [["total", "plural", { "other": ["#", " masalah"] }]],
+ "eCOktA": ["Obrolan dengan agen ini sudah mulai dibuka — coba lagi sebentar lagi."],
"eFJkVt": ["Kloning gagal: ", ["cloneError"]],
"eG8Jsg": ["Alihkan mode fokus Tab di sumber"],
"eGUbmF": ["Salin berkas atau folder terpilih"],
@@ -3733,6 +3738,7 @@
"kNGLX6": ["Mencoba lagi…"],
"kNiQp6": ["Disematkan"],
"kNqMMd": ["Folder"],
+ "kPOw9O": ["Salin pesan"],
"kRTXGw": [
"Arahkan pencarian semantik ke endpoint embedding mana pun yang kompatibel dengan OpenAI — server milik sendiri atau penyedia lain. Kunci API di atas berlaku untuk endpoint mana pun yang Anda setel di sini."
],
@@ -4377,6 +4383,7 @@
"sKEgGd": ["Kirim ke obrolan"],
"sKHiNR": [["count"], " di belakang"],
"sNeKjP": ["Gagal menyimpan token — coba lagi"],
+ "sOafXU": ["Sunting dan kirim lagi"],
"sOxZaS": ["Gagal memuat graf"],
"sQoLn0": ["Keluar"],
"sR0I-f": ["Ciutkan semua berkas"],
diff --git a/packages/app/src/locales/id/messages.po b/packages/app/src/locales/id/messages.po
index a48aa1ed7..41cfbea22 100644
--- a/packages/app/src/locales/id/messages.po
+++ b/packages/app/src/locales/id/messages.po
@@ -1733,6 +1733,11 @@ msgstr "Sudah disiapkan — ok tersedia di terminal Anda"
msgid "Already signed in?"
msgstr "Sudah masuk?"
+#: src/components/acp/ThreadView.tsx
+#: src/components/SessionsHost.tsx
+msgid "Already starting a chat with this agent — try again in a moment."
+msgstr "Obrolan dengan agen ini sudah mulai dibuka — coba lagi sebentar lagi."
+
#: src/components/ReportBugDialogBody.tsx
msgid "Always included"
msgstr "Selalu disertakan"
@@ -2361,6 +2366,7 @@ msgstr "Tidak dapat membagikan jalur ini."
#: src/comments/PropertyCommentButton.tsx
#: src/comments/ThreadCard.tsx
#: src/components/acp/ThreadHistoryMenu.tsx
+#: src/components/acp/UserMessageActions.tsx
#: src/components/ActivityPanelBurstRow.tsx
#: src/components/AuthModal.tsx
#: src/components/CloneDialog.tsx
@@ -2607,6 +2613,10 @@ msgstr "Pilih apa yang dimulai tab baru"
msgid "Choose where to send these comments"
msgstr "Pilih ke mana komentar ini dikirim"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Choose where to send this message"
+msgstr "Pilih ke mana pesan ini dikirim"
+
#: src/components/settings/SharingSection.tsx
msgid "Choose whether this project's OpenKnowledge setup, including its AI-tool connections, is saved with the project so teammates get it too, or kept only on your computer."
msgstr "Pilih apakah penyiapan OpenKnowledge proyek ini, termasuk koneksi alat AI-nya, disimpan bersama proyek agar rekan tim juga mendapatkannya, atau disimpan hanya di komputer Anda."
@@ -3393,6 +3403,10 @@ msgstr "Salin ke sini"
msgid "Copy link"
msgstr "Salin tautan"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Copy message"
+msgstr "Salin pesan"
+
#: src/components/AppMenubar.tsx
#: src/components/FileTargetMenuItems.tsx
msgid "Copy path"
@@ -5009,6 +5023,10 @@ msgstr "Sunting salinan"
msgid "Edit and resend"
msgstr "Ubah dan kirim ulang"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Edit and send again"
+msgstr "Sunting dan kirim lagi"
+
#: src/components/settings/rule-option-field.tsx
msgid "Edit in config file"
msgstr "Sunting di berkas konfigurasi"
@@ -11610,6 +11628,7 @@ msgid "Semantic search is on, but no API key is set — search falls back to key
msgstr "Pencarian semantik aktif, tetapi tidak ada kunci API yang disetel — pencarian kembali ke pencocokan kata kunci. Tambahkan satu di bawah."
#: src/components/acp/ThreadView.tsx
+#: src/components/acp/UserMessageActions.tsx
#: src/components/FeedbackForm.tsx
msgid "Send"
msgstr "Kirim"
@@ -11635,6 +11654,10 @@ msgstr "Kirim masukan"
msgid "Send feedback…"
msgstr "Kirim masukan…"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Send in this chat"
+msgstr "Kirim di obrolan ini"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Send report"
msgstr "Kirim laporan"
@@ -11643,6 +11666,10 @@ msgstr "Kirim laporan"
msgid "Send this comment"
msgstr "Kirim komentar ini"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Send to a new chat"
+msgstr "Kirim ke obrolan baru"
+
#: src/comments/CommentSendFooter.tsx
msgid "Send to chat"
msgstr "Kirim ke obrolan"
@@ -11669,6 +11696,10 @@ msgstr "Mengirim"
msgid "Sending report"
msgstr "Mengirim laporan"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Sending…"
+msgstr "Mengirim…"
+
#: src/components/BugReportHistory.tsx
msgid "Sent"
msgstr "Terkirim"
diff --git a/packages/app/src/locales/ko/messages.json b/packages/app/src/locales/ko/messages.json
index c680fc519..447e38c61 100644
--- a/packages/app/src/locales/ko/messages.json
+++ b/packages/app/src/locales/ko/messages.json
@@ -1194,6 +1194,7 @@
"Fhp4Gn": ["플러그인 보기"],
"FiyNln": ["속성에서 선택한 텍스트로 이동"],
"FjkaiT": ["축소"],
+ "Fjz6aJ": ["새 채팅으로 전송"],
"FqGWeR": ["에이전트 레지스트리에 연결하지 못했습니다."],
"FqTpiN": ["조류 위키"],
"Fqr8BP": [
@@ -1590,6 +1591,7 @@
"LE7t79": ["새 폴더에 클론"],
"LGvaif": [["plugin"], " 플러그인 저장소 보기"],
"LHH461": ["설정 완료"],
+ "LJHTS5": ["이 메시지를 보낼 곳 선택"],
"LJXDjm": ["테마 설정을 저장하지 못했습니다."],
"LJeFU6": [
"어떤 터미널에서든 OpenKnowledge를 실행하세요 — <0>ok</0>는 프로젝트를 열고, <1>ok init</1>은 에이전트를 연결합니다."
@@ -2136,6 +2138,7 @@
"SXCSQd": ["복사된 경로"],
"SXEdCq": [["0"], "으로 이동할까요?"],
"SYfHmN": ["탭 고정 해제"],
+ "Sad2tK": ["보내는 중…"],
"Sbb90e": [
[
"unknownPathCount",
@@ -2572,6 +2575,7 @@
"YLMBSd": ["예: 큰 표를 붙여넣은 후 편집기가 멈춤"],
"YMlS7s": ["기본 앱에서 열기"],
"YPFBfr": [["detail"], " - ", ["kind"], " “", ["createdPath"], "”가 디스크에 그대로 있습니다"],
+ "YPJfPD": ["이 채팅에서 전송"],
"YRavYS": [
"개인 색상 테마 선택기입니다. 프로젝트와 공유되지 않으며, 켜면 사이드바의 플러그인 아래에 나타납니다."
],
@@ -3068,6 +3072,7 @@
"e9sHSO": ["중단한 지점부터 계속"],
"eBIT9h": ["붙여넣기에 실패했습니다.", ["restoreSuffix"]],
"eCDwNN": [["total", "plural", { "other": ["#", "개 문제"] }]],
+ "eCOktA": ["이 에이전트와의 채팅을 이미 시작하는 중입니다. 잠시 후 다시 시도하세요."],
"eFJkVt": ["클론 실패: ", ["cloneError"]],
"eG8Jsg": ["소스 탭 포커스 모드 전환"],
"eGUbmF": ["선택한 파일 또는 폴더 복사"],
@@ -3583,6 +3588,7 @@
"kNGLX6": ["다시 시도 중…"],
"kNiQp6": ["고정됨"],
"kNqMMd": ["폴더"],
+ "kPOw9O": ["메시지 복사"],
"kRTXGw": [
"의미 기반 검색을 OpenAI 호환 임베딩 엔드포인트에 연결합니다. 자체 호스팅 서버나 다른 제공업체를 사용할 수 있습니다. 위의 API 키는 여기서 설정한 엔드포인트에 사용됩니다."
],
@@ -4194,6 +4200,7 @@
"sKEgGd": ["채팅에 보내기"],
"sKHiNR": [["count"], "개 뒤처짐"],
"sNeKjP": ["토큰 저장 실패. 다시 시도하세요."],
+ "sOafXU": ["편집 후 다시 전송"],
"sOxZaS": ["그래프 불러오기 실패"],
"sQoLn0": ["종료"],
"sR0I-f": ["모든 파일 접기"],
diff --git a/packages/app/src/locales/ko/messages.po b/packages/app/src/locales/ko/messages.po
index 3d3cea09c..3337cd32c 100644
--- a/packages/app/src/locales/ko/messages.po
+++ b/packages/app/src/locales/ko/messages.po
@@ -1737,6 +1737,11 @@ msgstr "이미 설정됨. 터미널에서 ok 사용 가능"
msgid "Already signed in?"
msgstr "이미 로그인했나요?"
+#: src/components/acp/ThreadView.tsx
+#: src/components/SessionsHost.tsx
+msgid "Already starting a chat with this agent — try again in a moment."
+msgstr "이 에이전트와의 채팅을 이미 시작하는 중입니다. 잠시 후 다시 시도하세요."
+
#: src/components/ReportBugDialogBody.tsx
msgid "Always included"
msgstr "항상 포함"
@@ -2365,6 +2370,7 @@ msgstr "이 경로는 공유할 수 없습니다."
#: src/comments/PropertyCommentButton.tsx
#: src/comments/ThreadCard.tsx
#: src/components/acp/ThreadHistoryMenu.tsx
+#: src/components/acp/UserMessageActions.tsx
#: src/components/ActivityPanelBurstRow.tsx
#: src/components/AuthModal.tsx
#: src/components/CloneDialog.tsx
@@ -2611,6 +2617,10 @@ msgstr "새 탭 시작 화면 선택"
msgid "Choose where to send these comments"
msgstr "댓글 보낼 곳을 선택합니다"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Choose where to send this message"
+msgstr "이 메시지를 보낼 곳 선택"
+
#: src/components/settings/SharingSection.tsx
msgid "Choose whether this project's OpenKnowledge setup, including its AI-tool connections, is saved with the project so teammates get it too, or kept only on your computer."
msgstr "이 프로젝트의 OpenKnowledge 설정과 AI 도구 연결을 프로젝트와 함께 저장해 팀원도 사용하게 할지, 아니면 이 컴퓨터에만 보관할지 선택합니다."
@@ -3397,6 +3407,10 @@ msgstr "복사해 넣기"
msgid "Copy link"
msgstr "링크 복사"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Copy message"
+msgstr "메시지 복사"
+
#: src/components/AppMenubar.tsx
#: src/components/FileTargetMenuItems.tsx
msgid "Copy path"
@@ -5013,6 +5027,10 @@ msgstr "복사본 편집"
msgid "Edit and resend"
msgstr "편집하여 다시 보내기"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Edit and send again"
+msgstr "편집 후 다시 전송"
+
#: src/components/settings/rule-option-field.tsx
msgid "Edit in config file"
msgstr "config 파일에서 편집"
@@ -11614,6 +11632,7 @@ msgid "Semantic search is on, but no API key is set — search falls back to key
msgstr "의미 기반 검색이 켜져 있지만 API 키가 설정되지 않아 검색이 키워드 매칭으로 대체됩니다. 아래에 추가합니다."
#: src/components/acp/ThreadView.tsx
+#: src/components/acp/UserMessageActions.tsx
#: src/components/FeedbackForm.tsx
msgid "Send"
msgstr "전송"
@@ -11639,6 +11658,10 @@ msgstr "피드백 보내기"
msgid "Send feedback…"
msgstr "피드백 보내기…"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Send in this chat"
+msgstr "이 채팅에서 전송"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Send report"
msgstr "보고서 보내기"
@@ -11647,6 +11670,10 @@ msgstr "보고서 보내기"
msgid "Send this comment"
msgstr "이 댓글 보내기"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Send to a new chat"
+msgstr "새 채팅으로 전송"
+
#: src/comments/CommentSendFooter.tsx
msgid "Send to chat"
msgstr "채팅에 보내기"
@@ -11673,6 +11700,10 @@ msgstr "보내는 중"
msgid "Sending report"
msgstr "보고서 보내는 중"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Sending…"
+msgstr "보내는 중…"
+
#: src/components/BugReportHistory.tsx
msgid "Sent"
msgstr "전송됨"
diff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.json
index bd48a4d0f..2d01af973 100644
--- a/packages/app/src/locales/pseudo/messages.json
+++ b/packages/app/src/locales/pseudo/messages.json
@@ -1245,6 +1245,7 @@
"Fhp4Gn": ["Vĩēŵ ƥĺũĝĩń"],
"FiyNln": ["ĵũḿƥ ţō śēĺēćţēď ţēxţ ĩń ƥŕōƥēŕţŷ"],
"FjkaiT": ["Źōōḿ ōũţ"],
+ "Fjz6aJ": ["Śēńď ţō à ńēŵ ćĥàţ"],
"FqGWeR": ["Ćōũĺďń'ţ ŕēàćĥ ţĥē àĝēńţ ŕēĝĩśţŕŷ."],
"FqTpiN": ["ßĩŕď ŵĩķĩ"],
"Fqr8BP": ["Ḿũĺţĩ-ƥàĝē ƤĎƑ vĩēŵēŕ ŵĩţĥ ţōōĺƀàŕ ćōńţŕōĺś (ţĥũḿƀńàĩĺś, ƥàĝē ńàv, źōōḿ)."],
@@ -1631,6 +1632,7 @@
"LE7t79": ["Ćĺōńē ţō à ńēŵ ƒōĺďēŕ"],
"LGvaif": ["Vĩēŵ ţĥē ", ["plugin"], " ƥĺũĝĩń ŕēƥō"],
"LHH461": ["Ƒĩńĩśĥ śēţũƥ"],
+ "LJHTS5": ["Ćĥōōśē ŵĥēŕē ţō śēńď ţĥĩś ḿēśśàĝē"],
"LJXDjm": ["Ćōũĺďń'ţ śàvē ŷōũŕ ţĥēḿē ƥŕēƒēŕēńćē."],
"LJeFU6": [
"Ĺàũńćĥ ŌƥēńĶńōŵĺēďĝē ƒŕōḿ àńŷ ţēŕḿĩńàĺ — <0>ōķ</0> ōƥēńś à ƥŕōĴēćţ, <1>ōķ ĩńĩţ</1> ćōńńēćţś ŷōũŕ àĝēńţś."
@@ -2223,6 +2225,7 @@
"SXCSQd": ["Ćōƥĩēď ƥàţĥ"],
"SXEdCq": ["Ḿōvē ţō ", ["0"], "?"],
"SYfHmN": ["Ũńƥĩń ţàƀ"],
+ "Sad2tK": ["Śēńďĩńĝ…"],
"Sbb90e": [
[
"unknownPathCount",
@@ -2658,6 +2661,7 @@
"YLMBSd": ["ē.ĝ. Ţĥē ēďĩţōŕ ƒŕōźē àƒţēŕ Ĩ ƥàśţēď à ĺàŕĝē ţàƀĺē"],
"YMlS7s": ["Ōƥēń ĩń ďēƒàũĺţ àƥƥ"],
"YPFBfr": [["detail"], " - ", ["kind"], " \"", ["createdPath"], "\" śţĩĺĺ ēxĩśţś ōń ďĩśķ"],
+ "YPJfPD": ["Śēńď ĩń ţĥĩś ćĥàţ"],
"YRavYS": [
"À ƥēŕśōńàĺ ćōĺōŕ-ţĥēḿē ƥĩćķēŕ — ńōţ śĥàŕēď ŵĩţĥ ŷōũŕ ƥŕōĴēćţ. Ŵĥēń ōń, ĩţ àƥƥēàŕś ũńďēŕ Ƥĺũĝĩńś ĩń ţĥē śĩďēƀàŕ."
],
@@ -3175,6 +3179,7 @@
"e9sHSO": ["Ƥĩćķ ũƥ ŵĥēŕē ŷōũ ĺēƒţ ōƒƒ"],
"eBIT9h": ["Ƥàśţē ƒàĩĺēď.", ["restoreSuffix"]],
"eCDwNN": [["total", "plural", { "one": ["#", " ƥŕōƀĺēḿ"], "other": ["#", " ƥŕōƀĺēḿś"] }]],
+ "eCOktA": ["Àĺŕēàďŷ śţàŕţĩńĝ à ćĥàţ ŵĩţĥ ţĥĩś àĝēńţ — ţŕŷ àĝàĩń ĩń à ḿōḿēńţ."],
"eFJkVt": ["Ćĺōńē ƒàĩĺēď: ", ["cloneError"]],
"eG8Jsg": ["Ţōĝĝĺē śōũŕćē ţàƀ ƒōćũś ḿōďē"],
"eGUbmF": ["Ćōƥŷ śēĺēćţēď ƒĩĺē ōŕ ƒōĺďēŕ"],
@@ -3699,6 +3704,7 @@
"kNGLX6": ["Ŕēţŕŷĩńĝ…"],
"kNiQp6": ["Ƥĩńńēď"],
"kNqMMd": ["Ƒōĺďēŕ"],
+ "kPOw9O": ["Ćōƥŷ ḿēśśàĝē"],
"kRTXGw": [
"Ƥōĩńţ śēḿàńţĩć śēàŕćĥ àţ àńŷ ŌƥēńÀĨ-ćōḿƥàţĩƀĺē ēḿƀēďďĩńĝś ēńďƥōĩńţ — à śēĺƒ-ĥōśţēď śēŕvēŕ ōŕ àńōţĥēŕ ƥŕōvĩďēŕ. Ţĥē ÀƤĨ ķēŷ àƀōvē ĩś ƒōŕ ŵĥĩćĥēvēŕ ēńďƥōĩńţ ŷōũ śēţ ĥēŕē."
],
@@ -4361,6 +4367,7 @@
"sKEgGd": ["Śēńď ţō ćĥàţ"],
"sKHiNR": [["count"], " ƀēĥĩńď"],
"sNeKjP": ["Ƒàĩĺēď ţō śţōŕē ţĥē ţōķēń — ţŕŷ àĝàĩń"],
+ "sOafXU": ["Ēďĩţ àńď śēńď àĝàĩń"],
"sOxZaS": ["Ƒàĩĺēď ţō ĺōàď ĝŕàƥĥ"],
"sQoLn0": ["Ǫũĩţ"],
"sR0I-f": ["Ćōĺĺàƥśē àĺĺ ƒĩĺēś"],
diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.po
index f07e53094..1e7f0df2b 100644
--- a/packages/app/src/locales/pseudo/messages.po
+++ b/packages/app/src/locales/pseudo/messages.po
@@ -1733,6 +1733,11 @@ msgstr ""
msgid "Already signed in?"
msgstr ""
+#: src/components/acp/ThreadView.tsx
+#: src/components/SessionsHost.tsx
+msgid "Already starting a chat with this agent — try again in a moment."
+msgstr ""
+
#: src/components/ReportBugDialogBody.tsx
msgid "Always included"
msgstr ""
@@ -2361,6 +2366,7 @@ msgstr ""
#: src/comments/PropertyCommentButton.tsx
#: src/comments/ThreadCard.tsx
#: src/components/acp/ThreadHistoryMenu.tsx
+#: src/components/acp/UserMessageActions.tsx
#: src/components/ActivityPanelBurstRow.tsx
#: src/components/AuthModal.tsx
#: src/components/CloneDialog.tsx
@@ -2607,6 +2613,10 @@ msgstr ""
msgid "Choose where to send these comments"
msgstr ""
+#: src/components/acp/UserMessageActions.tsx
+msgid "Choose where to send this message"
+msgstr ""
+
#: src/components/settings/SharingSection.tsx
msgid "Choose whether this project's OpenKnowledge setup, including its AI-tool connections, is saved with the project so teammates get it too, or kept only on your computer."
msgstr ""
@@ -3393,6 +3403,10 @@ msgstr ""
msgid "Copy link"
msgstr ""
+#: src/components/acp/UserMessageActions.tsx
+msgid "Copy message"
+msgstr ""
+
#: src/components/AppMenubar.tsx
#: src/components/FileTargetMenuItems.tsx
msgid "Copy path"
@@ -5009,6 +5023,10 @@ msgstr ""
msgid "Edit and resend"
msgstr ""
+#: src/components/acp/UserMessageActions.tsx
+msgid "Edit and send again"
+msgstr ""
+
#: src/components/settings/rule-option-field.tsx
msgid "Edit in config file"
msgstr ""
@@ -11610,6 +11628,7 @@ msgid "Semantic search is on, but no API key is set — search falls back to key
msgstr ""
#: src/components/acp/ThreadView.tsx
+#: src/components/acp/UserMessageActions.tsx
#: src/components/FeedbackForm.tsx
msgid "Send"
msgstr ""
@@ -11635,6 +11654,10 @@ msgstr ""
msgid "Send feedback…"
msgstr ""
+#: src/components/acp/UserMessageActions.tsx
+msgid "Send in this chat"
+msgstr ""
+
#: src/components/ReportBugDialogBody.tsx
msgid "Send report"
msgstr ""
@@ -11643,6 +11666,10 @@ msgstr ""
msgid "Send this comment"
msgstr ""
+#: src/components/acp/UserMessageActions.tsx
+msgid "Send to a new chat"
+msgstr ""
+
#: src/comments/CommentSendFooter.tsx
msgid "Send to chat"
msgstr ""
@@ -11669,6 +11696,10 @@ msgstr ""
msgid "Sending report"
msgstr ""
+#: src/components/acp/UserMessageActions.tsx
+msgid "Sending…"
+msgstr ""
+
#: src/components/BugReportHistory.tsx
msgid "Sent"
msgstr ""
diff --git a/packages/app/src/locales/pt-BR/messages.json b/packages/app/src/locales/pt-BR/messages.json
index 00784a132..d9bac5ec3 100644
--- a/packages/app/src/locales/pt-BR/messages.json
+++ b/packages/app/src/locales/pt-BR/messages.json
@@ -1418,6 +1418,7 @@
"Fhp4Gn": ["Ver o plugin"],
"FiyNln": ["Ir para o texto selecionado na propriedade"],
"FjkaiT": ["Afastar"],
+ "Fjz6aJ": ["Enviar para um novo chat"],
"FqGWeR": ["Não deu para contatar o registro de agentes."],
"FqTpiN": ["Wiki de aves"],
"Fqr8BP": [
@@ -1870,6 +1871,7 @@
"LE7t79": ["Clonar em uma nova pasta"],
"LGvaif": ["Ver o repositório do plugin ", ["plugin"]],
"LHH461": ["Concluir configuração"],
+ "LJHTS5": ["Escolher para onde enviar esta mensagem"],
"LJXDjm": ["Não foi possível salvar sua preferência de tema."],
"LJeFU6": [
"Inicie o OpenKnowledge de qualquer terminal: <0>ok</0> abre um projeto e <1>ok init</1> conecta seus agentes."
@@ -2516,6 +2518,7 @@
"SXCSQd": ["Caminho copiado"],
"SXEdCq": ["Mover para ", ["0"], "?"],
"SYfHmN": ["Desafixar a aba"],
+ "Sad2tK": ["Enviando…"],
"Sbb90e": [
[
"unknownPathCount",
@@ -3042,6 +3045,7 @@
"YLMBSd": ["ex.: O editor travou depois que colei uma tabela grande"],
"YMlS7s": ["Abrir no aplicativo padrão"],
"YPFBfr": [["detail"], " - ", ["kind"], " \"", ["createdPath"], "\" ainda existe no disco"],
+ "YPJfPD": ["Enviar neste chat"],
"YRavYS": [
"Um seletor de tema de cores pessoal — não compartilhado com seu projeto. Quando ativado, aparece em Plugins na barra lateral."
],
@@ -3623,6 +3627,7 @@
{ "one": ["#", " problema"], "many": ["#", " problemas"], "other": ["#", " problemas"] }
]
],
+ "eCOktA": ["Já está sendo iniciado um chat com este agente; tente de novo em um instante."],
"eFJkVt": ["Falha ao clonar: ", ["cloneError"]],
"eG8Jsg": ["Ativar ou desativar o modo de foco do Tab no código"],
"eGUbmF": ["Copiar o arquivo ou a pasta selecionados"],
@@ -4200,6 +4205,7 @@
"kNGLX6": ["Tentando novamente…"],
"kNiQp6": ["Fixados"],
"kNqMMd": ["Pasta"],
+ "kPOw9O": ["Copiar a mensagem"],
"kRTXGw": [
"Aponte a busca semântica para qualquer endpoint de embeddings compatível com a OpenAI — um servidor próprio ou outro provedor. A chave de API acima vale para o endpoint que você definir aqui."
],
@@ -4925,6 +4931,7 @@
"sKEgGd": ["Enviar para o chat"],
"sKHiNR": [["count"], " atrás"],
"sNeKjP": ["Falha ao guardar o token — tente de novo"],
+ "sOafXU": ["Editar e enviar de novo"],
"sOxZaS": ["Falha ao carregar o grafo"],
"sQoLn0": ["Sair"],
"sR0I-f": ["Recolher todos os arquivos"],
diff --git a/packages/app/src/locales/pt-BR/messages.po b/packages/app/src/locales/pt-BR/messages.po
index 52399ef16..3fc1ae752 100644
--- a/packages/app/src/locales/pt-BR/messages.po
+++ b/packages/app/src/locales/pt-BR/messages.po
@@ -1733,6 +1733,11 @@ msgstr "Já configurado — ok está disponível no seu terminal"
msgid "Already signed in?"
msgstr "Já fez login?"
+#: src/components/acp/ThreadView.tsx
+#: src/components/SessionsHost.tsx
+msgid "Already starting a chat with this agent — try again in a moment."
+msgstr "Já está sendo iniciado um chat com este agente; tente de novo em um instante."
+
#: src/components/ReportBugDialogBody.tsx
msgid "Always included"
msgstr "Sempre incluído"
@@ -2361,6 +2366,7 @@ msgstr "Não é possível compartilhar este caminho."
#: src/comments/PropertyCommentButton.tsx
#: src/comments/ThreadCard.tsx
#: src/components/acp/ThreadHistoryMenu.tsx
+#: src/components/acp/UserMessageActions.tsx
#: src/components/ActivityPanelBurstRow.tsx
#: src/components/AuthModal.tsx
#: src/components/CloneDialog.tsx
@@ -2607,6 +2613,10 @@ msgstr "Escolha o que uma nova aba inicia"
msgid "Choose where to send these comments"
msgstr "Escolha para onde enviar estes comentários"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Choose where to send this message"
+msgstr "Escolher para onde enviar esta mensagem"
+
#: src/components/settings/SharingSection.tsx
msgid "Choose whether this project's OpenKnowledge setup, including its AI-tool connections, is saved with the project so teammates get it too, or kept only on your computer."
msgstr "Escolha se a configuração do OpenKnowledge deste projeto, incluindo as conexões com ferramentas de IA, é salva junto com o projeto para que os colegas também a recebam, ou fica só no seu computador."
@@ -3393,6 +3403,10 @@ msgstr "Copiar para cá"
msgid "Copy link"
msgstr "Copiar link"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Copy message"
+msgstr "Copiar a mensagem"
+
#: src/components/AppMenubar.tsx
#: src/components/FileTargetMenuItems.tsx
msgid "Copy path"
@@ -5009,6 +5023,10 @@ msgstr "Editar uma cópia"
msgid "Edit and resend"
msgstr "Editar e reenviar"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Edit and send again"
+msgstr "Editar e enviar de novo"
+
#: src/components/settings/rule-option-field.tsx
msgid "Edit in config file"
msgstr "Editar no arquivo de configuração"
@@ -11610,6 +11628,7 @@ msgid "Semantic search is on, but no API key is set — search falls back to key
msgstr "A busca semântica está ligada, mas nenhuma chave de API foi definida — a busca volta para correspondência por palavra-chave. Adicione uma abaixo."
#: src/components/acp/ThreadView.tsx
+#: src/components/acp/UserMessageActions.tsx
#: src/components/FeedbackForm.tsx
msgid "Send"
msgstr "Enviar"
@@ -11635,6 +11654,10 @@ msgstr "Enviar comentários"
msgid "Send feedback…"
msgstr "Enviar comentários…"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Send in this chat"
+msgstr "Enviar neste chat"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Send report"
msgstr "Enviar o relatório"
@@ -11643,6 +11666,10 @@ msgstr "Enviar o relatório"
msgid "Send this comment"
msgstr "Enviar este comentário"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Send to a new chat"
+msgstr "Enviar para um novo chat"
+
#: src/comments/CommentSendFooter.tsx
msgid "Send to chat"
msgstr "Enviar para o chat"
@@ -11669,6 +11696,10 @@ msgstr "Enviando"
msgid "Sending report"
msgstr "Enviando o relatório"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Sending…"
+msgstr "Enviando…"
+
#: src/components/BugReportHistory.tsx
msgid "Sent"
msgstr "Enviado"
diff --git a/packages/app/src/locales/ur/messages.json b/packages/app/src/locales/ur/messages.json
index fe7f58e85..9955b9f5f 100644
--- a/packages/app/src/locales/ur/messages.json
+++ b/packages/app/src/locales/ur/messages.json
@@ -1267,6 +1267,7 @@
"Fhp4Gn": ["پلگ اِن دیکھیں"],
"FiyNln": ["پراپرٹی میں منتخب متن پر جائیں"],
"FjkaiT": ["چھوٹا کریں"],
+ "Fjz6aJ": ["نئی چیٹ میں بھیجیں"],
"FqGWeR": ["ایجنٹ رجسٹری تک رسائی نہیں ہو سکی۔"],
"FqTpiN": ["پرندوں کی وکی"],
"Fqr8BP": [
@@ -1676,6 +1677,7 @@
"LE7t79": ["نئے فولڈر میں کلون کریں"],
"LGvaif": [["plugin"], " پلگ ان کا ریپازٹری دیکھیں"],
"LHH461": ["سیٹ اپ مکمل کریں"],
+ "LJHTS5": ["منتخب کریں کہ یہ پیغام کہاں بھیجنا ہے"],
"LJXDjm": ["آپ کی تھیم ترجیح محفوظ نہیں ہو سکی۔"],
"LJeFU6": [
"OpenKnowledge کو کسی بھی ٹرمینل سے چلائیں — <0>ok</0> پروجیکٹ کھولتا ہے، <1>ok init</1> آپ کے ایجنٹس کو جوڑتا ہے۔"
@@ -2276,6 +2278,7 @@
"SXCSQd": ["راستہ نقل ہو گیا"],
"SXEdCq": [["0"], " پر منتقل کریں؟"],
"SYfHmN": ["ٹیب کی پن ہٹائیں"],
+ "Sad2tK": ["بھیجا جا رہا ہے…"],
"Sbb90e": [
[
"unknownPathCount",
@@ -2726,6 +2729,7 @@
"YLMBSd": ["مثلاً بڑا ٹیبل چسپاں کرنے کے بعد ایڈیٹر جم گیا"],
"YMlS7s": ["ڈیفالٹ ایپ میں کھولیں"],
"YPFBfr": [["detail"], " - ", ["kind"], " «", ["createdPath"], "» اب بھی ڈسک پر موجود ہے"],
+ "YPJfPD": ["اسی چیٹ میں بھیجیں"],
"YRavYS": [
"ذاتی رنگ تھیم منتخب کنندہ — آپ کے پروجیکٹ کے ساتھ شیئر نہیں ہوتا۔ فعال ہونے پر یہ سائیڈ بار میں پلگ اِنز کے تحت ظاہر ہوتا ہے۔"
],
@@ -3260,6 +3264,7 @@
"e9sHSO": ["جہاں چھوڑا تھا وہیں سے شروع کریں"],
"eBIT9h": ["چسپاں کرنا ناکام رہا۔", ["restoreSuffix"]],
"eCDwNN": [["total", "plural", { "one": ["#", " مسئلہ"], "other": ["#", " مسائل"] }]],
+ "eCOktA": ["اس ایجنٹ کے ساتھ پہلے ہی چیٹ شروع ہو رہی ہے — تھوڑی دیر بعد دوبارہ کوشش کریں۔"],
"eFJkVt": ["کلون ناکام: ", ["cloneError"]],
"eG8Jsg": ["سورس ٹیب فوکس موڈ بدلیں"],
"eGUbmF": ["منتخب فائل یا فولڈر نقل کریں"],
@@ -3787,6 +3792,7 @@
"kNGLX6": ["دوبارہ کوشش جاری ہے…"],
"kNiQp6": ["پن شدہ"],
"kNqMMd": ["فولڈر"],
+ "kPOw9O": ["پیغام نقل کریں"],
"kRTXGw": [
"معنوی تلاش کو OpenAI سے ہم آہنگ کسی بھی ایمبیڈنگز اینڈ پوائنٹ کی طرف موڑیں — خود میزبان سرور یا کوئی دوسرا فراہم کنندہ۔ اوپر دی گئی API کلید اسی اینڈ پوائنٹ کے لیے ہے جو آپ یہاں مقرر کریں۔"
],
@@ -4442,6 +4448,7 @@
"sKEgGd": ["چیٹ میں بھیجیں"],
"sKHiNR": [["count"], " پیچھے"],
"sNeKjP": ["ٹوکن محفوظ نہیں ہو سکا — دوبارہ کوشش کریں"],
+ "sOafXU": ["ترمیم کر کے دوبارہ بھیجیں"],
"sOxZaS": ["گراف لوڈ نہیں ہو سکا"],
"sQoLn0": ["باہر نکلیں"],
"sR0I-f": ["سب فائلیں سکیڑیں"],
diff --git a/packages/app/src/locales/ur/messages.po b/packages/app/src/locales/ur/messages.po
index 995a95999..2cd145f3a 100644
--- a/packages/app/src/locales/ur/messages.po
+++ b/packages/app/src/locales/ur/messages.po
@@ -1737,6 +1737,11 @@ msgstr "پہلے سے ترتیب دیا جا چکا ہے — ok آپ کے ٹرم
msgid "Already signed in?"
msgstr "پہلے سے سائن اِن ہیں؟"
+#: src/components/acp/ThreadView.tsx
+#: src/components/SessionsHost.tsx
+msgid "Already starting a chat with this agent — try again in a moment."
+msgstr "اس ایجنٹ کے ساتھ پہلے ہی چیٹ شروع ہو رہی ہے — تھوڑی دیر بعد دوبارہ کوشش کریں۔"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Always included"
msgstr "ہمیشہ شامل"
@@ -2365,6 +2370,7 @@ msgstr "یہ راستہ شیئر نہیں کیا جا سکتا۔"
#: src/comments/PropertyCommentButton.tsx
#: src/comments/ThreadCard.tsx
#: src/components/acp/ThreadHistoryMenu.tsx
+#: src/components/acp/UserMessageActions.tsx
#: src/components/ActivityPanelBurstRow.tsx
#: src/components/AuthModal.tsx
#: src/components/CloneDialog.tsx
@@ -2611,6 +2617,10 @@ msgstr "منتخب کریں کہ نیا ٹیب کیا شروع کرے"
msgid "Choose where to send these comments"
msgstr "منتخب کریں کہ یہ تبصرے کہاں بھیجے جائیں"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Choose where to send this message"
+msgstr "منتخب کریں کہ یہ پیغام کہاں بھیجنا ہے"
+
#: src/components/settings/SharingSection.tsx
msgid "Choose whether this project's OpenKnowledge setup, including its AI-tool connections, is saved with the project so teammates get it too, or kept only on your computer."
msgstr "منتخب کریں کہ اس پروجیکٹ کا OpenKnowledge سیٹ اپ، بشمول اس کے AI ٹول کنکشنز، پروجیکٹ کے ساتھ محفوظ ہو تاکہ ساتھیوں کو بھی مل جائے، یا صرف آپ کے کمپیوٹر پر رہے۔"
@@ -3397,6 +3407,10 @@ msgstr "یہاں کاپی کریں"
msgid "Copy link"
msgstr "لنک کاپی کریں"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Copy message"
+msgstr "پیغام نقل کریں"
+
#: src/components/AppMenubar.tsx
#: src/components/FileTargetMenuItems.tsx
msgid "Copy path"
@@ -5013,6 +5027,10 @@ msgstr "ایک نقل میں ترمیم کریں"
msgid "Edit and resend"
msgstr "ترمیم کر کے دوبارہ بھیجیں"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Edit and send again"
+msgstr "ترمیم کر کے دوبارہ بھیجیں"
+
#: src/components/settings/rule-option-field.tsx
msgid "Edit in config file"
msgstr "کنفیگ فائل میں ترمیم کریں"
@@ -11614,6 +11632,7 @@ msgid "Semantic search is on, but no API key is set — search falls back to key
msgstr "معنوی تلاش فعال ہے، مگر کوئی API کلید مقرر نہیں — تلاش کلیدی الفاظ کی مماثلت پر واپس آ جاتی ہے۔ نیچے ایک شامل کریں۔"
#: src/components/acp/ThreadView.tsx
+#: src/components/acp/UserMessageActions.tsx
#: src/components/FeedbackForm.tsx
msgid "Send"
msgstr "بھیجیں"
@@ -11639,6 +11658,10 @@ msgstr "رائے بھیجیں"
msgid "Send feedback…"
msgstr "رائے بھیجیں…"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Send in this chat"
+msgstr "اسی چیٹ میں بھیجیں"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Send report"
msgstr "رپورٹ بھیجیں"
@@ -11647,6 +11670,10 @@ msgstr "رپورٹ بھیجیں"
msgid "Send this comment"
msgstr "یہ تبصرہ بھیجیں"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Send to a new chat"
+msgstr "نئی چیٹ میں بھیجیں"
+
#: src/comments/CommentSendFooter.tsx
msgid "Send to chat"
msgstr "چیٹ میں بھیجیں"
@@ -11673,6 +11700,10 @@ msgstr "بھیجا جا رہا ہے"
msgid "Sending report"
msgstr "رپورٹ بھیجی جا رہی ہے"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Sending…"
+msgstr "بھیجا جا رہا ہے…"
+
#: src/components/BugReportHistory.tsx
msgid "Sent"
msgstr "بھیج دیا گیا"
diff --git a/packages/app/src/locales/zh-Hans/messages.json b/packages/app/src/locales/zh-Hans/messages.json
index 4ecfcaa3e..3286d5dea 100644
--- a/packages/app/src/locales/zh-Hans/messages.json
+++ b/packages/app/src/locales/zh-Hans/messages.json
@@ -1102,6 +1102,7 @@
"Fhp4Gn": ["查看插件"],
"FiyNln": ["跳到属性中选中的文本"],
"FjkaiT": ["缩小"],
+ "Fjz6aJ": ["发送到新对话"],
"FqGWeR": ["无法连接到智能体注册表。"],
"FqTpiN": ["鸟类维基"],
"Fqr8BP": ["多页 PDF 查看器,带工具栏控件(缩略图、翻页、缩放)。"],
@@ -1438,6 +1439,7 @@
"LE7t79": ["克隆到新文件夹"],
"LGvaif": ["查看 ", ["plugin"], " 插件的代码仓库"],
"LHH461": ["完成设置"],
+ "LJHTS5": ["选择把这条消息发送到哪里"],
"LJXDjm": ["无法保存你的主题偏好。"],
"LJeFU6": [
"在任意终端中启动 OpenKnowledge——<0>ok</0> 打开项目,<1>ok init</1> 连接你的智能体。"
@@ -1950,6 +1952,7 @@
"SXCSQd": ["已复制路径"],
"SXEdCq": ["要移动到 ", ["0"], " 吗?"],
"SYfHmN": ["取消固定标签页"],
+ "Sad2tK": ["正在发送…"],
"Sbb90e": [
[
"unknownPathCount",
@@ -2347,6 +2350,7 @@
"YLMBSd": ["例如:粘贴一个很大的表格后编辑器卡住了"],
"YMlS7s": ["用默认应用打开"],
"YPFBfr": [["detail"], " - ", ["kind"], "“", ["createdPath"], "”在磁盘上仍然存在"],
+ "YPJfPD": ["在当前对话中发送"],
"YRavYS": ["个人配色主题选择器——不与你的项目共享。开启后会出现在侧边栏的「插件」下。"],
"YS9mSt": ["已从 ", ["0"], " 更新“", ["name"], "”"],
"YSFv5w": ["没有 git 仓库——配置共享在这里不适用。"],
@@ -2803,6 +2807,7 @@
"e9sHSO": ["从上次的位置继续"],
"eBIT9h": ["粘贴失败。", ["restoreSuffix"]],
"eCDwNN": [["total", "plural", { "other": ["#", " 个问题"] }]],
+ "eCOktA": ["已经在与该智能体开启对话了,请稍后再试。"],
"eFJkVt": ["克隆失败:", ["cloneError"]],
"eG8Jsg": ["切换源码 Tab 焦点模式"],
"eGUbmF": ["复制选中的文件或文件夹"],
@@ -3268,6 +3273,7 @@
"kNGLX6": ["正在重试…"],
"kNiQp6": ["已置顶"],
"kNqMMd": ["文件夹"],
+ "kPOw9O": ["复制消息"],
"kRTXGw": [
"把语义搜索指向任何兼容 OpenAI 的嵌入端点——自建服务器或其他提供方均可。上方的 API 密钥用于你在这里设置的端点。"
],
@@ -3826,6 +3832,7 @@
"sKEgGd": ["发送到对话"],
"sKHiNR": ["落后 ", ["count"], " 个提交"],
"sNeKjP": ["保存令牌失败——请重试"],
+ "sOafXU": ["编辑后重新发送"],
"sOxZaS": ["加载关系图失败"],
"sQoLn0": ["退出"],
"sR0I-f": ["折叠全部文件"],
diff --git a/packages/app/src/locales/zh-Hans/messages.po b/packages/app/src/locales/zh-Hans/messages.po
index 9fea6bf03..115ea2128 100644
--- a/packages/app/src/locales/zh-Hans/messages.po
+++ b/packages/app/src/locales/zh-Hans/messages.po
@@ -1737,6 +1737,11 @@ msgstr "已配置完成——ok 现在可以在你的终端中使用"
msgid "Already signed in?"
msgstr "已经登录了?"
+#: src/components/acp/ThreadView.tsx
+#: src/components/SessionsHost.tsx
+msgid "Already starting a chat with this agent — try again in a moment."
+msgstr "已经在与该智能体开启对话了,请稍后再试。"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Always included"
msgstr "始终包含"
@@ -2365,6 +2370,7 @@ msgstr "无法共享此路径。"
#: src/comments/PropertyCommentButton.tsx
#: src/comments/ThreadCard.tsx
#: src/components/acp/ThreadHistoryMenu.tsx
+#: src/components/acp/UserMessageActions.tsx
#: src/components/ActivityPanelBurstRow.tsx
#: src/components/AuthModal.tsx
#: src/components/CloneDialog.tsx
@@ -2611,6 +2617,10 @@ msgstr "选择新标签页启动的内容"
msgid "Choose where to send these comments"
msgstr "选择把这些评论发送到哪里"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Choose where to send this message"
+msgstr "选择把这条消息发送到哪里"
+
#: src/components/settings/SharingSection.tsx
msgid "Choose whether this project's OpenKnowledge setup, including its AI-tool connections, is saved with the project so teammates get it too, or kept only on your computer."
msgstr "选择这个项目的 OpenKnowledge 配置(包括它与 AI 工具的连接)是随项目一起保存、让队友也能获得,还是只留在你的电脑上。"
@@ -3397,6 +3407,10 @@ msgstr "复制进来"
msgid "Copy link"
msgstr "复制链接"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Copy message"
+msgstr "复制消息"
+
#: src/components/AppMenubar.tsx
#: src/components/FileTargetMenuItems.tsx
msgid "Copy path"
@@ -5013,6 +5027,10 @@ msgstr "编辑一份副本"
msgid "Edit and resend"
msgstr "编辑并重发"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Edit and send again"
+msgstr "编辑后重新发送"
+
#: src/components/settings/rule-option-field.tsx
msgid "Edit in config file"
msgstr "在配置文件中编辑"
@@ -11614,6 +11632,7 @@ msgid "Semantic search is on, but no API key is set — search falls back to key
msgstr "语义搜索已开启,但没有设置 API 密钥——搜索会退回到关键词匹配。请在下方添加一个。"
#: src/components/acp/ThreadView.tsx
+#: src/components/acp/UserMessageActions.tsx
#: src/components/FeedbackForm.tsx
msgid "Send"
msgstr "发送"
@@ -11639,6 +11658,10 @@ msgstr "发送反馈"
msgid "Send feedback…"
msgstr "发送反馈…"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Send in this chat"
+msgstr "在当前对话中发送"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Send report"
msgstr "发送报告"
@@ -11647,6 +11670,10 @@ msgstr "发送报告"
msgid "Send this comment"
msgstr "发送这条评论"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Send to a new chat"
+msgstr "发送到新对话"
+
#: src/comments/CommentSendFooter.tsx
msgid "Send to chat"
msgstr "发送到对话"
@@ -11673,6 +11700,10 @@ msgstr "正在发送"
msgid "Sending report"
msgstr "正在发送报告"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Sending…"
+msgstr "正在发送…"
+
#: src/components/BugReportHistory.tsx
msgid "Sent"
msgstr "已发送"
diff --git a/packages/app/src/locales/zh-Hant/messages.json b/packages/app/src/locales/zh-Hant/messages.json
index 8b7f09765..99549a505 100644
--- a/packages/app/src/locales/zh-Hant/messages.json
+++ b/packages/app/src/locales/zh-Hant/messages.json
@@ -1112,6 +1112,7 @@
"Fhp4Gn": ["檢視外掛"],
"FiyNln": ["跳到屬性中選取的文字"],
"FjkaiT": ["縮小"],
+ "Fjz6aJ": ["傳送到新對話"],
"FqGWeR": ["無法連上代理登錄檔。"],
"FqTpiN": ["鳥類維基"],
"Fqr8BP": ["多頁 PDF 檢視器,附工具列控制項(縮圖、翻頁、縮放)。"],
@@ -1456,6 +1457,7 @@
"LE7t79": ["複製到新的資料夾"],
"LGvaif": ["檢視 ", ["plugin"], " 外掛的程式碼儲存庫"],
"LHH461": ["完成設定"],
+ "LJHTS5": ["選擇要將這則訊息傳送到哪裡"],
"LJXDjm": ["無法儲存你的主題偏好。"],
"LJeFU6": [
"在任何終端機中啟動 OpenKnowledge——<0>ok</0> 開啟專案,<1>ok init</1> 連接你的智慧代理。"
@@ -1976,6 +1978,7 @@
"SXCSQd": ["已複製路徑"],
"SXEdCq": ["要移動到 ", ["0"], " 嗎?"],
"SYfHmN": ["取消釘選分頁"],
+ "Sad2tK": ["正在傳送…"],
"Sbb90e": [
[
"unknownPathCount",
@@ -2375,6 +2378,7 @@
"YLMBSd": ["例如:貼上一個很大的表格之後編輯器卡住了"],
"YMlS7s": ["用預設應用程式打開"],
"YPFBfr": [["detail"], " - ", ["kind"], "「", ["createdPath"], "」在磁碟上仍然存在"],
+ "YPJfPD": ["在目前對話中傳送"],
"YRavYS": ["個人配色主題選擇器——不會和你的專案共享。開啟後會出現在側邊欄的「外掛」下。"],
"YS9mSt": ["已從 ", ["0"], " 更新「", ["name"], "」"],
"YSFv5w": ["沒有 git 儲存庫——設定分享在這裡不適用。"],
@@ -2829,6 +2833,7 @@
"e9sHSO": ["從上次停下的地方繼續"],
"eBIT9h": ["貼上失敗。", ["restoreSuffix"]],
"eCDwNN": [["total", "plural", { "other": ["#", " 個問題"] }]],
+ "eCOktA": ["已經在與該代理開啟對話了,請稍後再試。"],
"eFJkVt": ["複製失敗:", ["cloneError"]],
"eG8Jsg": ["切換原始碼 Tab 焦點模式"],
"eGUbmF": ["複製選取的檔案或資料夾"],
@@ -3294,6 +3299,7 @@
"kNGLX6": ["正在重試…"],
"kNiQp6": ["已置頂"],
"kNqMMd": ["資料夾"],
+ "kPOw9O": ["複製訊息"],
"kRTXGw": [
"把語意搜尋指向任何相容 OpenAI 的嵌入端點——自架的伺服器或別家供應商都行。上面的 API 金鑰是給你在這裡設定的端點用的。"
],
@@ -3854,6 +3860,7 @@
"sKEgGd": ["傳送到對話"],
"sKHiNR": ["落後 ", ["count"], " 個提交"],
"sNeKjP": ["儲存權杖失敗——請再試一次"],
+ "sOafXU": ["編輯後重新傳送"],
"sOxZaS": ["載入關係圖失敗"],
"sQoLn0": ["結束"],
"sR0I-f": ["摺疊全部檔案"],
diff --git a/packages/app/src/locales/zh-Hant/messages.po b/packages/app/src/locales/zh-Hant/messages.po
index 37defe357..14a1f49f1 100644
--- a/packages/app/src/locales/zh-Hant/messages.po
+++ b/packages/app/src/locales/zh-Hant/messages.po
@@ -1737,6 +1737,11 @@ msgstr "已經設定好了——ok 現在可以在你的終端機中使用"
msgid "Already signed in?"
msgstr "已經登入了?"
+#: src/components/acp/ThreadView.tsx
+#: src/components/SessionsHost.tsx
+msgid "Already starting a chat with this agent — try again in a moment."
+msgstr "已經在與該代理開啟對話了,請稍後再試。"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Always included"
msgstr "一律包含"
@@ -2365,6 +2370,7 @@ msgstr "無法分享這個路徑。"
#: src/comments/PropertyCommentButton.tsx
#: src/comments/ThreadCard.tsx
#: src/components/acp/ThreadHistoryMenu.tsx
+#: src/components/acp/UserMessageActions.tsx
#: src/components/ActivityPanelBurstRow.tsx
#: src/components/AuthModal.tsx
#: src/components/CloneDialog.tsx
@@ -2611,6 +2617,10 @@ msgstr "選擇新分頁啟動的內容"
msgid "Choose where to send these comments"
msgstr "選擇要把這些註解送到哪裡"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Choose where to send this message"
+msgstr "選擇要將這則訊息傳送到哪裡"
+
#: src/components/settings/SharingSection.tsx
msgid "Choose whether this project's OpenKnowledge setup, including its AI-tool connections, is saved with the project so teammates get it too, or kept only on your computer."
msgstr "選擇這個專案的 OpenKnowledge 設定(包括它和 AI 工具的連接)要隨專案一起保存、讓隊友也能拿到,還是只留在你的電腦上。"
@@ -3397,6 +3407,10 @@ msgstr "複製進來"
msgid "Copy link"
msgstr "複製連結"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Copy message"
+msgstr "複製訊息"
+
#: src/components/AppMenubar.tsx
#: src/components/FileTargetMenuItems.tsx
msgid "Copy path"
@@ -5013,6 +5027,10 @@ msgstr "編輯一份副本"
msgid "Edit and resend"
msgstr "編輯並重新傳送"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Edit and send again"
+msgstr "編輯後重新傳送"
+
#: src/components/settings/rule-option-field.tsx
msgid "Edit in config file"
msgstr "在設定檔中編輯"
@@ -11614,6 +11632,7 @@ msgid "Semantic search is on, but no API key is set — search falls back to key
msgstr "語意搜尋已開啟,但沒有設定 API 金鑰——搜尋會退回關鍵字比對。請在下面加一個。"
#: src/components/acp/ThreadView.tsx
+#: src/components/acp/UserMessageActions.tsx
#: src/components/FeedbackForm.tsx
msgid "Send"
msgstr "傳送"
@@ -11639,6 +11658,10 @@ msgstr "傳送意見回饋"
msgid "Send feedback…"
msgstr "傳送意見回饋…"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Send in this chat"
+msgstr "在目前對話中傳送"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Send report"
msgstr "傳送回報"
@@ -11647,6 +11670,10 @@ msgstr "傳送回報"
msgid "Send this comment"
msgstr "傳送這則註解"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Send to a new chat"
+msgstr "傳送到新對話"
+
#: src/comments/CommentSendFooter.tsx
msgid "Send to chat"
msgstr "傳送到對話"
@@ -11673,6 +11700,10 @@ msgstr "正在傳送"
msgid "Sending report"
msgstr "正在傳送回報"
+#: src/components/acp/UserMessageActions.tsx
+msgid "Sending…"
+msgstr "正在傳送…"
+
#: src/components/BugReportHistory.tsx
msgid "Sent"
msgstr "已傳送"