Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

fix(ok): make the ACP auth card offer the action it names (PRD-8051) (#4317)

Abrahamec245841b2f9
diff --git a/.changeset/auth-card-offers-the-action-it-names.md b/.changeset/auth-card-offers-the-action-it-names.md
new file mode 100644
index 000000000..e207bc15f
--- /dev/null
+++ b/.changeset/auth-card-offers-the-action-it-names.md
@@ -0,0 +1,30 @@
+---
+"@inkeep/open-knowledge": patch
+---
+
+An in-app agent chat in the **Agents panel** that stopped for sign-in now offers the action its message names, instead of telling you to sign in and giving you nothing to press.
+
+Four states reached that dead end. An archived chat whose agent had asked you to sign in, a live chat whose agent had exited, a chat awaiting sign-in with nothing in its transcript yet, and a sign-in failure that carried no method you could click all rendered `Sign in to <agent> to continue.` with no sign-in button anywhere on the card. The only state that offered real sign-in buttons was the one the feature was built for.
+
+The message and the control now come from one decision, so a surface cannot claim an action it does not offer. An archived chat reads `<agent> needed you to sign in. Resume this chat to try again.` and offers `Resume chat`. An exited chat offers `New chat with <agent>`, the only thing its status permits. A chat awaiting sign-in with no clickable method offers `Retry`, and no longer claims that the retry is what signs you in, because it is not: it restarts the agent. A chat that has since recovered reads as history rather than as an instruction, and asks nothing of you.
+
+The message that ran into the sign-in wall is no longer stranded. It sat in the transcript unanswered, and the only way to get it to the agent was to type it again, because the app already knew how to hand a failed message back to the composer but only did so for delivery failures, never for a sign-in one. Once the chat can send again, that message offers `Edit and resend` like any other undelivered one, which returns it to the composer and clears the sign-in notice with it. It is offered only once sending actually works, so a chat still waiting on sign-in is not handed a resend that would fail.
+
+`Already signed in? Retry` now works for the agents that most needed it. An agent that opens its session first and only demands sign-in when you actually send something, which is what Claude does, left the chat holding a session id it could no longer use, and the retry refused to run because of it. Every press failed with `this thread already has an agent session`. The retry restarts the agent from scratch, so a session belonging to a process it is about to replace was never a reason to refuse, and the id is now cleared when that process is torn down rather than left pointing at something that is gone.
+
+Agents that sign you in through their own command-line tool now get a real sign-in action rather than an honest dead end. Claude, Codex and the rest reach OpenKnowledge through a CLI you already have installed, and several of them advertise no sign-in method the app can click, so the card had nothing to offer beyond a retry. Those chats now offer `Open terminal to sign in`, which opens that agent's own CLI in the terminal, where its sign-in flow runs. Sign in there, come back, and `Already signed in? Retry` picks up the credentials. The offer appears only when the app can see that CLI installed on the machine and the terminal is available, so it never opens a terminal onto a command that is not there.
+
+The most common shape of this bug was an archived chat that could never be resumed in the first place, because the agent asked for sign-in before the chat ever got a session. Those chats offered `Resume chat`, and pressing it did nothing useful. The server now reports whether a chat is resumable, from the session capabilities the agent advertised when it connected, so an archived chat that has nothing to return to offers `New chat with <agent>` up front, which is the control that actually gets you to a sign-in prompt. That answer is written to disk with the chat, so a restart no longer hands back a `Resume chat` the agent has already refused. Every chat comes back from a restart archived, including one that was still open when the app closed, and a chat written by an older build carries no answer at all, so it falls back to whether it ever opened a session.
+
+A resume the server turns down while the app is still waiting on it no longer costs you the tab. The chat stays where it was with its transcript intact and shows the explanation with its `New chat with <agent>` escape. It used to vanish from the chat strip, and reopening it from history left a chat that never finished loading until you reloaded the page.
+
+Both `New chat with <agent>` controls now behave identically. A message the chat failed to deliver is carried into the new chat and sent; text you only typed is carried over as a draft in the new chat's composer, unsent, rather than being fired off on your behalf. A new chat that cannot start because one is already starting says so instead of quietly doing nothing.
+
+Send is disabled on an archived chat the server says it cannot resume, so a message can no longer be swallowed by a resume that was never going to work. You can still type: only the send that had nowhere to go is blocked, and the chat now says why and offers `New chat with <agent>` rather than leaving a dead Send unexplained. A resume the agent turns down once is treated as the one-off it usually is, so a hiccup no longer retires the resume and the composer for the rest of the session.
+
+An archived chat is never offered a sign-in button, because the server refuses to authenticate an archived thread.
+
+A chat that died before it said anything no longer claims to be connecting. An empty transcript on a thread that exited or errored showed a pulsing `Connecting to <agent>…` forever, which was untrue and offered nothing; it now shows the same sentence and control the rest of the surface would give it, `New chat with <agent>` for an exited chat and `Retry` for an errored one. A chat genuinely still installing or starting keeps its progress message.
+
+Signing in also gets the time the server actually allows. The app gave up on a sign-in after three minutes while the server waits five, so a slow browser flow was cut short by the app with a generic timeout instead of finishing, or failing with the server's own reason.
+
diff --git a/packages/app/src/components/SessionsHost.agents.dom.test.tsx b/packages/app/src/components/SessionsHost.agents.dom.test.tsx
index f012ae989..60ff2c631 100644
--- a/packages/app/src/components/SessionsHost.agents.dom.test.tsx
+++ b/packages/app/src/components/SessionsHost.agents.dom.test.tsx
@@ -80,6 +80,7 @@ vi.doMock('@/lib/acp/thread-client', () => ({
deleteThread,
markThreadViewed: () => {},
}),
+ ThreadChannelUnavailableError: class ThreadChannelUnavailableError extends Error {},
}));
vi.doMock('@/components/acp/ThreadView', () => ({
diff --git a/packages/app/src/components/SessionsHost.terminal-rehydration.dom.test.tsx b/packages/app/src/components/SessionsHost.terminal-rehydration.dom.test.tsx
index 53a1c84a6..7f6483d54 100644
--- a/packages/app/src/components/SessionsHost.terminal-rehydration.dom.test.tsx
+++ b/packages/app/src/components/SessionsHost.terminal-rehydration.dom.test.tsx
@@ -17,6 +17,7 @@ vi.doMock('@/lib/acp/thread-client', () => ({
deleteThread: vi.fn(),
markThreadViewed: vi.fn(),
}),
+ ThreadChannelUnavailableError: class ThreadChannelUnavailableError extends Error {},
}));
vi.doMock('@/lib/acp/registered-agents', () => ({
diff --git a/packages/app/src/components/acp/ThreadView.comments.dom.test.tsx b/packages/app/src/components/acp/ThreadView.comments.dom.test.tsx
index b8e695199..3ea0afdf5 100644
--- a/packages/app/src/components/acp/ThreadView.comments.dom.test.tsx
+++ b/packages/app/src/components/acp/ThreadView.comments.dom.test.tsx
@@ -31,6 +31,7 @@ vi.doMock('@/lib/acp/thread-client', () => ({
resumeThread,
}),
ThreadResumeError: class ThreadResumeError extends Error {},
+ ThreadChannelUnavailableError: class ThreadChannelUnavailableError extends Error {},
useAgentThread: () => ({ info: undefined, events: [], lastSeq: 5 }),
useAgentThreadModel: () => model,
}));
@@ -114,6 +115,7 @@ vi.doMock('@/comments/store', () => ({
}));
const { ThreadView } = await import('./ThreadView');
+const { subscribeStagedThreadDraft } = await import('@/lib/acp/thread-draft-staging');
let model: ThreadRenderModel | null = null;
@@ -270,6 +272,10 @@ describe('ThreadView queued-comment chip', () => {
test('a failed resume never hands the composed batch to the new-thread fallback', async () => {
const user = userEvent.setup();
render(<ThreadView info={makeInfo({ archived: true })} />);
+ let staged: string | null = null;
+ const stopStaging = subscribeStagedThreadDraft('new', (text) => {
+ staged = text;
+ });
const field = screen.getByTestId('agent-thread-composer') as HTMLTextAreaElement;
await user.click(field);
@@ -281,7 +287,8 @@ describe('ThreadView queued-comment chip', () => {
await user.click(await screen.findByTestId('agent-thread-resume-fallback-new'));
const started = createThread.mock.calls[0]?.[0];
- expect(started?.prompt).toBe('look at these');
- expect(started?.prompt).not.toContain('tighten this');
+ expect(started?.prompt).toBeUndefined();
+ await waitFor(() => expect(staged).toBe('look at these'));
+ stopStaging();
});
});
diff --git a/packages/app/src/components/acp/ThreadView.dom.test.tsx b/packages/app/src/components/acp/ThreadView.dom.test.tsx
index cc078a49d..2530995d2 100644
--- a/packages/app/src/components/acp/ThreadView.dom.test.tsx
+++ b/packages/app/src/components/acp/ThreadView.dom.test.tsx
@@ -44,6 +44,14 @@ const removeQueued = vi.fn((_threadId: string, _id: string) => {});
const toastError = vi.fn((_message: string) => {});
const cancel = vi.fn((_threadId: string) => {});
const retryThread = vi.fn(async (_threadId: string) => {});
+const createThread = vi.fn(
+ async (_params: unknown): Promise<unknown> => ({
+ threadId: 'thread-2',
+ }),
+);
+const resumeThread = vi.fn(
+ async (_threadId: string, _prompt?: string, _attachments?: unknown) => {},
+);
let authenticateResult: Promise<void> = Promise.resolve();
const authenticateThread = vi.fn((_threadId: string, _methodId: string) => authenticateResult);
@@ -60,14 +68,12 @@ vi.doMock('@/lib/acp/thread-client', () => ({
setMode,
setConfigOption,
closeThread: () => {},
- createThread: async () => {
- throw new Error('unused');
- },
- resumeThread: async () => {
- throw new Error('unused');
- },
+ createThread,
+ resumeThread,
retryThread,
authenticateThread,
+ getThread: () => null,
+ subscribe: () => () => {},
}),
ThreadResumeError: class ThreadResumeError extends Error {
readonly code: string;
@@ -76,6 +82,7 @@ vi.doMock('@/lib/acp/thread-client', () => ({
this.code = code;
}
},
+ ThreadChannelUnavailableError: class ThreadChannelUnavailableError extends Error {},
useAgentThread: () => threadState,
useAgentThreadModel: () => model,
}));
@@ -101,6 +108,11 @@ vi.doMock('@/editor/ComposerMentionInput', () => ({
}));
const { ThreadView } = await import('./ThreadView');
+const { resetStagedThreadDrafts, subscribeStagedThreadDraft } = await import(
+ '@/lib/acp/thread-draft-staging'
+);
+const { launchAgentThread } = await import('@/lib/acp/launch-agent-thread');
+const { ThreadResumeError } = await import('@/lib/acp/thread-client');
const { agentSettingsKey, getRememberedAgentConfig, getRememberedAgentMode } = await import(
'@/lib/acp/agent-settings-store'
);
@@ -181,6 +193,9 @@ afterEach(() => {
toastError.mockClear();
cancel.mockClear();
retryThread.mockClear();
+ createThread.mockClear();
+ resumeThread.mockClear();
+ resetStagedThreadDrafts();
authenticateThread.mockClear();
authenticateResult = Promise.resolve();
model = null;
@@ -1905,6 +1920,40 @@ describe('ThreadView retry', () => {
expect(retryThread).toHaveBeenCalledWith('thread-1');
});
+ test('a message stranded by a sign-in failure comes back once the thread can send again', async () => {
+ model = makeModel({
+ turnActive: false,
+ items: [
+ { kind: 'message', role: 'user', text: 'summarise the standup', messageId: 'u1' },
+ failureNotice('auth-required'),
+ ],
+ });
+ render(<ThreadView info={makeInfo({ status: 'ready' })} />);
+
+ const composer = screen.getByTestId('agent-thread-composer') as HTMLTextAreaElement;
+ expect(composer.value).toBe('');
+
+ await userEvent.click(screen.getByTestId('agent-thread-restore'));
+
+ expect(composer.value).toBe('summarise the standup');
+ expect(screen.queryByTestId('agent-thread-user-message')).toBeNull();
+ expect(screen.queryByTestId('agent-thread-notice')).toBeNull();
+ });
+
+ test('a thread still parked on sign-in is not offered a resend it cannot deliver', () => {
+ model = makeModel({
+ turnActive: false,
+ items: [
+ { kind: 'message', role: 'user', text: 'summarise the standup', messageId: 'u1' },
+ failureNotice('auth-required'),
+ ],
+ });
+ render(<ThreadView info={makeInfo({ status: 'auth_required' })} />);
+
+ expect(screen.queryByTestId('agent-thread-restore')).toBeNull();
+ expect(screen.getByTestId('agent-thread-auth-status')).toBeDefined();
+ });
+
test('a prompt failure offers Edit and resend instead of Retry, seeds the composer, and hides the failed pair', async () => {
model = makeModel({
turnActive: false,
@@ -2463,6 +2512,7 @@ describe('ThreadView failure notices', () => {
const card = screen.getByTestId('agent-thread-notice');
expect(card.textContent).toContain('Sign in to Claude to continue');
+ expect(within(card).getAllByTestId('agent-thread-auth-method')).toHaveLength(1);
expect(card.textContent).toContain('Authentication required');
expect(card.textContent).not.toContain('run /login first');
expect(screen.queryByTestId('agent-thread-notice-details')).toBeNull();
@@ -2962,6 +3012,834 @@ describe('ThreadView plan approval wiring (PRD-8022)', () => {
});
});
+describe('ThreadView auth-required dead ends', () => {
+ type NoticeItem = Extract<RenderedItem, { kind: 'notice' }>;
+ type Failure = NonNullable<NoticeItem['failure']>;
+
+ const SIGN_IN_INSTRUCTION = /Sign in to .+ to continue/;
+ const LAUNCH_FAILED = "Couldn't start the agent thread — please try again.";
+
+ let stopStaging: (() => void) | null = null;
+ afterEach(() => {
+ stopStaging?.();
+ stopStaging = null;
+ });
+
+ function authNotice(failure?: Partial<Failure>): NoticeItem {
+ return {
+ kind: 'notice',
+ text: '',
+ tone: 'info',
+ failure: {
+ reason: 'auth-required',
+ agentMessage: 'Authentication required',
+ machineDetail: '{"detail":"run /login first"}',
+ authMethods: [{ id: 'test_login', name: 'Test Login' }],
+ ...failure,
+ },
+ attempts: 1,
+ };
+ }
+
+ function authSurface(): HTMLElement {
+ const cards = screen.queryAllByTestId('agent-thread-notice');
+ return cards[0] ?? screen.getByTestId('agent-thread-transcript');
+ }
+
+ function offerButton(): HTMLElement {
+ return within(authSurface()).getByTestId('agent-thread-auth-action');
+ }
+
+ test('an archived thread holding an auth failure offers the resume its copy names', () => {
+ model = makeModel({ turnActive: false, items: [authNotice()] });
+ render(<ThreadView info={makeInfo({ archived: true, status: 'exited' })} />);
+
+ const surface = authSurface();
+ expect(surface.textContent).toContain(
+ 'Claude needed you to sign in. Resume this chat to try again.',
+ );
+ expect(SIGN_IN_INSTRUCTION.test(surface.textContent ?? '')).toBe(false);
+ expect(offerButton().getAttribute('data-auth-offer-kind')).toBe('resume');
+ expect(within(surface).getByRole('button', { name: 'Resume chat' })).toBeTruthy();
+ });
+
+ test('an archived thread that never opened an agent session offers the new chat instead', () => {
+ model = makeModel({ turnActive: false, items: [authNotice()] });
+ render(<ThreadView info={makeInfo({ archived: true, status: 'exited', resumable: false })} />);
+
+ const surface = authSurface();
+ expect(surface.textContent).toContain("Claude isn't running. Start a new chat to sign in.");
+ expect(surface.textContent).not.toContain('Resume this chat to try again');
+ expect(SIGN_IN_INSTRUCTION.test(surface.textContent ?? '')).toBe(false);
+ expect(offerButton().getAttribute('data-auth-offer-kind')).toBe('new-chat');
+ expect(screen.queryByRole('button', { name: 'Resume chat' })).toBeNull();
+ });
+
+ test('the unresumable archived offer starts a fresh thread rather than a doomed resume', async () => {
+ model = makeModel({ turnActive: false, items: [authNotice()] });
+ render(<ThreadView info={makeInfo({ archived: true, status: 'exited', resumable: false })} />);
+
+ await userEvent.click(offerButton());
+ expect(resumeThread).not.toHaveBeenCalled();
+ expect(createThread).toHaveBeenCalledWith({
+ agent: { source: 'registry', id: 'claude' },
+ prompt: undefined,
+ });
+ });
+
+ test('a new chat that lost the race to another launch says so rather than going quiet', async () => {
+ let releaseCreate: (() => void) | undefined;
+ createThread.mockReturnValueOnce(
+ new Promise<void>((resolve) => {
+ releaseCreate = resolve;
+ }),
+ );
+ const inflight = launchAgentThread({ source: 'registry', id: 'claude' }, null, null, null);
+ model = makeModel({ turnActive: false, items: [authNotice()] });
+ render(<ThreadView info={makeInfo({ archived: true, status: 'exited', resumable: false })} />);
+
+ await userEvent.click(offerButton());
+ await waitFor(() =>
+ expect(toastError).toHaveBeenCalledWith(
+ 'Already starting a chat with this agent — try again in a moment.',
+ ),
+ );
+ expect(createThread).toHaveBeenCalledTimes(1);
+
+ await act(async () => {
+ releaseCreate?.();
+ await inflight;
+ });
+ });
+
+ test('an archived thread the server can still resume keeps the resume offer', () => {
+ model = makeModel({ turnActive: false, items: [authNotice()] });
+ render(<ThreadView info={makeInfo({ archived: true, status: 'exited', resumable: true })} />);
+
+ expect(offerButton().getAttribute('data-auth-offer-kind')).toBe('resume');
+ });
+
+ test('an archived thread does not offer a sign-in the server would refuse', () => {
+ model = makeModel({ turnActive: false, items: [authNotice()] });
+ render(<ThreadView info={makeInfo({ archived: true, status: 'exited' })} />);
+
+ expect(screen.queryAllByTestId('agent-thread-auth-method')).toHaveLength(0);
+ expect(offerButton()).toBeTruthy();
+ });
+
+ test('the archived offer resumes the chat when pressed', async () => {
+ model = makeModel({ turnActive: false, items: [authNotice()] });
+ render(<ThreadView info={makeInfo({ archived: true, status: 'exited' })} />);
+
+ await userEvent.click(offerButton());
+ expect(resumeThread).toHaveBeenCalledWith('thread-1', undefined, undefined);
+ });
+
+ test('a failed resume re-enables the offer and explains itself', async () => {
+ resumeThread.mockRejectedValueOnce(new Error('agent session is gone'));
+ model = makeModel({ turnActive: false, items: [authNotice()] });
+ render(<ThreadView info={makeInfo({ archived: true, status: 'exited' })} />);
+
+ await userEvent.click(offerButton());
+ await waitFor(() => expect(screen.getByTestId('agent-thread-resume-failed')).toBeTruthy());
+ expect(screen.getByTestId('agent-thread-resume-failed').textContent).toContain(
+ "Couldn't resume this chat: agent session is gone",
+ );
+ expect(offerButton().hasAttribute('disabled')).toBe(false);
+ });
+
+ test('an exited live thread holding an auth failure offers the new chat its copy names', () => {
+ model = makeModel({ turnActive: false, items: [authNotice()] });
+ render(<ThreadView info={makeInfo({ archived: false, status: 'exited' })} />);
+
+ const surface = authSurface();
+ expect(surface.textContent).toContain("Claude isn't running. Start a new chat to sign in.");
+ expect(SIGN_IN_INSTRUCTION.test(surface.textContent ?? '')).toBe(false);
+ expect(offerButton().getAttribute('data-auth-offer-kind')).toBe('new-chat');
+ expect(within(surface).getByRole('button', { name: 'New chat with Claude' })).toBeTruthy();
+ });
+
+ function stagedDraftFor(threadId: string): { text: string | null } {
+ const seen = { text: null as string | null };
+ stopStaging = subscribeStagedThreadDraft(threadId, (text) => {
+ seen.text = text;
+ });
+ return seen;
+ }
+
+ test('the exited offer carries an unsent draft into the new chat rather than sending it', async () => {
+ model = makeModel({ turnActive: false, items: [authNotice()] });
+ render(<ThreadView info={makeInfo({ archived: false, status: 'exited' })} />);
+ const staged = stagedDraftFor('thread-2');
+
+ const composer = screen.getByTestId('agent-thread-composer') as HTMLTextAreaElement;
+ fireEvent.change(composer, { target: { value: 'draft I have not sent yet' } });
+
+ await userEvent.click(offerButton());
+ expect(createThread).toHaveBeenCalledWith({
+ agent: { source: 'registry', id: 'claude' },
+ prompt: undefined,
+ });
+ await waitFor(() => expect(staged.text).toBe('draft I have not sent yet'));
+ expect(composer.value).toBe('draft I have not sent yet');
+ });
+
+ test('both New chat controls treat an unsent draft the same way', async () => {
+ resumeThread.mockRejectedValueOnce(
+ new ThreadResumeError('capacity', 'maximum of 8 concurrent agent threads'),
+ );
+ model = makeModel({ turnActive: false, items: [authNotice()] });
+ render(<ThreadView info={makeInfo({ archived: true, status: 'exited' })} />);
+ const staged = stagedDraftFor('thread-2');
+
+ await userEvent.click(offerButton());
+ await waitFor(() => expect(screen.getByTestId('agent-thread-resume-failed')).toBeTruthy());
+
+ const composer = screen.getByTestId('agent-thread-composer') as HTMLTextAreaElement;
+ fireEvent.change(composer, { target: { value: 'half-finished instruction' } });
+
+ await userEvent.click(screen.getByTestId('agent-thread-resume-fallback-new'));
+ expect(createThread).toHaveBeenCalledWith({
+ agent: { source: 'registry', id: 'claude' },
+ prompt: undefined,
+ });
+ await waitFor(() => expect(staged.text).toBe('half-finished instruction'));
+ expect(composer.value).toBe('half-finished instruction');
+ });
+
+ test('the banner New chat control resends the prompt the archived chat could not deliver', async () => {
+ resumeThread.mockRejectedValueOnce(
+ new ThreadResumeError('resume-unsupported', "couldn't resume the previous session"),
+ );
+ model = makeModel({ turnActive: false, items: [authNotice()] });
+ render(<ThreadView info={makeInfo({ archived: true, status: 'exited', resumable: true })} />);
+ const staged = stagedDraftFor('thread-2');
+
+ fireEvent.change(screen.getByTestId('agent-thread-composer'), {
+ target: { value: 'finish the migration' },
+ });
+ await userEvent.click(screen.getByTestId('agent-thread-send'));
+ await waitFor(() => expect(screen.getByTestId('agent-thread-resume-failed')).toBeTruthy());
+
+ await userEvent.click(screen.getByTestId('agent-thread-resume-fallback-new'));
+ await waitFor(() => expect(createThread).toHaveBeenCalledTimes(1));
+ expect(createThread).toHaveBeenLastCalledWith({
+ agent: { source: 'registry', id: 'claude' },
+ prompt: 'finish the migration',
+ });
+ expect(staged.text).toBeNull();
+ });
+
+ test('the card New chat control carries the draft an unresumable chat could never send', async () => {
+ model = makeModel({ turnActive: false, items: [authNotice()] });
+ render(<ThreadView info={makeInfo({ archived: true, status: 'exited', resumable: false })} />);
+ const staged = stagedDraftFor('thread-2');
+
+ const composer = screen.getByTestId('agent-thread-composer') as HTMLTextAreaElement;
+ fireEvent.change(composer, { target: { value: 'finish the migration' } });
+
+ await userEvent.click(offerButton());
+ await waitFor(() => expect(createThread).toHaveBeenCalledTimes(1));
+ expect(createThread).toHaveBeenLastCalledWith({
+ agent: { source: 'registry', id: 'claude' },
+ prompt: undefined,
+ });
+ await waitFor(() => expect(staged.text).toBe('finish the migration'));
+ });
+
+ const IN_FLIGHT_CASES = [
+ {
+ kind: 'new-chat',
+ info: { archived: false, status: 'exited' } as Partial<ThreadInfo>,
+ items: [authNotice()],
+ spy: () => createThread,
+ announcement: 'Starting Claude…',
+ },
+ {
+ kind: 'resume',
+ info: { archived: true, status: 'exited' } as Partial<ThreadInfo>,
+ items: [authNotice()],
+ spy: () => resumeThread,
+ announcement: 'Resuming the chat',
+ },
+ {
+ kind: 'retry',
+ info: { archived: false, status: 'auth_required' } as Partial<ThreadInfo>,
+ items: [],
+ spy: () => retryThread,
+ announcement: 'Retrying',
+ },
+ ] as const;
+
+ test.each(IN_FLIGHT_CASES)(
+ 'the $kind offer is disabled and announced while it is in flight',
+ async ({ info, items, spy, announcement }) => {
+ let release: (() => void) | undefined;
+ spy().mockReturnValueOnce(
+ new Promise<void>((resolve) => {
+ release = resolve;
+ }),
+ );
+ model = makeModel({ turnActive: false, items: [...items] });
+ render(<ThreadView info={makeInfo(info)} />);
+
+ await userEvent.click(offerButton());
+ expect(offerButton().hasAttribute('disabled')).toBe(true);
+ expect(offerButton().getAttribute('aria-busy')).toBe('true');
+ expect(screen.getByTestId('agent-thread-auth-status').textContent).toBe(announcement);
+
+ await userEvent.click(offerButton());
+ expect(spy()).toHaveBeenCalledTimes(1);
+
+ await act(async () => {
+ release?.();
+ });
+ await waitFor(() => expect(offerButton().hasAttribute('disabled')).toBe(false));
+ expect(offerButton().getAttribute('aria-busy')).toBe('false');
+ expect(screen.getByTestId('agent-thread-auth-status').textContent).toBe('');
+ },
+ );
+
+ test('a failed retry says so', async () => {
+ retryThread.mockRejectedValueOnce(new Error('agent binary is missing'));
+ model = makeModel({ turnActive: false, items: [] });
+ render(<ThreadView info={makeInfo({ archived: false, status: 'auth_required' })} />);
+
+ await userEvent.click(offerButton());
+ await waitFor(() =>
+ expect(toastError).toHaveBeenCalledWith("Couldn't start Claude: agent binary is missing"),
+ );
+ expect(offerButton().hasAttribute('disabled')).toBe(false);
+ });
+
+ test('a resume the server turns down explains itself and hands over the escape', async () => {
+ resumeThread.mockRejectedValueOnce(
+ new ThreadResumeError('resume-unsupported', 'this thread never completed an agent session'),
+ );
+ model = makeModel({ turnActive: false, items: [authNotice()] });
+ render(<ThreadView info={makeInfo({ archived: true, status: 'exited' })} />);
+
+ await userEvent.click(offerButton());
+ await waitFor(() =>
+ expect(screen.getByTestId('agent-thread-resume-failed').textContent).toContain(
+ 'this thread never completed an agent session',
+ ),
+ );
+ expect(screen.getByTestId('agent-thread-resume-failed').textContent).toContain(
+ "Couldn't resume this chat",
+ );
+ expect(screen.getByTestId('agent-thread-resume-failed').textContent).not.toContain(
+ "can't pick this chat back up",
+ );
+ expect(screen.getByTestId('agent-thread-resume-fallback-new')).toBeTruthy();
+ });
+
+ test('an unresumable archived chat explains itself without waiting for a failed attempt', () => {
+ model = makeModel({ turnActive: false, items: [] });
+ render(<ThreadView info={makeInfo({ archived: true, status: 'exited', resumable: false })} />);
+
+ expect(screen.queryByTestId('agent-thread-auth-action')).toBeNull();
+ const banner = screen.getByTestId('agent-thread-resume-failed');
+ expect(banner.textContent).toContain("Claude can't pick this chat back up");
+ expect(banner.textContent).toContain('The transcript is kept, so start a new chat to continue');
+ expect(screen.getByTestId('agent-thread-resume-fallback-new').hasAttribute('disabled')).toBe(
+ false,
+ );
+ expect(resumeThread).not.toHaveBeenCalled();
+ });
+
+ test('the escape on an unresumable archived chat starts a new chat with the same agent', async () => {
+ model = makeModel({ turnActive: false, items: [] });
+ render(<ThreadView info={makeInfo({ archived: true, status: 'exited', resumable: false })} />);
+
+ await userEvent.click(screen.getByTestId('agent-thread-resume-fallback-new'));
+ await waitFor(() => expect(createThread).toHaveBeenCalledTimes(1));
+ expect(createThread).toHaveBeenCalledWith({
+ agent: { source: 'registry', id: 'claude' },
+ prompt: undefined,
+ });
+ });
+
+ test('a thread the server says it cannot resume leaves no control that still says resume', async () => {
+ model = makeModel({ turnActive: false, items: [authNotice()] });
+ render(<ThreadView info={makeInfo({ archived: true, status: 'exited', resumable: false })} />);
+
+ const offers = screen.getAllByTestId('agent-thread-auth-action');
+ expect(offers.map((node) => node.getAttribute('data-auth-offer-kind'))).toEqual(['new-chat']);
+ expect(screen.queryByRole('button', { name: 'Resume chat' })).toBeNull();
+ await userEvent.click(offerButton());
+ expect(resumeThread).not.toHaveBeenCalled();
+ expect(createThread).toHaveBeenCalledWith({
+ agent: { source: 'registry', id: 'claude' },
+ prompt: undefined,
+ });
+ });
+
+ test('one rejection does not retire a resume the server still says is available', async () => {
+ resumeThread.mockRejectedValueOnce(
+ new ThreadResumeError('resume-unsupported', "couldn't resume the previous session"),
+ );
+ model = makeModel({ turnActive: false, items: [authNotice()] });
+ render(<ThreadView info={makeInfo({ archived: true, status: 'exited', resumable: true })} />);
+
+ await userEvent.click(offerButton());
+ await waitFor(() => expect(screen.getByTestId('agent-thread-resume-failed')).toBeTruthy());
+
+ expect(offerButton().getAttribute('data-auth-offer-kind')).toBe('resume');
+ expect(screen.getByTestId('agent-thread-resume-fallback-new')).toBeTruthy();
+
+ await userEvent.click(offerButton());
+ expect(resumeThread).toHaveBeenCalledTimes(2);
+ });
+
+ test('the resume-failure live region is mounted before there is a failure to announce', async () => {
+ resumeThread.mockRejectedValueOnce(
+ new ThreadResumeError('resume-unsupported', 'this thread never completed an agent session'),
+ );
+ model = makeModel({ turnActive: false, items: [authNotice()] });
+ render(<ThreadView info={makeInfo({ archived: true, status: 'exited' })} />);
+
+ const region = screen.getByTestId('agent-thread-resume-status');
+ expect(region.getAttribute('role')).toBe('status');
+ expect(region.getAttribute('aria-live')).toBe('polite');
+ expect(region.textContent).toBe('');
+ expect(screen.queryByTestId('agent-thread-resume-failed')).toBeNull();
+
+ await userEvent.click(offerButton());
+ await waitFor(() =>
+ expect(screen.getByTestId('agent-thread-resume-status').textContent).toContain(
+ 'this thread never completed an agent session',
+ ),
+ );
+ expect(screen.getByTestId('agent-thread-resume-status')).toBe(region);
+ });
+
+ test('an auth control is only busy while its own action is the one running', async () => {
+ resumeThread.mockRejectedValueOnce(
+ new ThreadResumeError('capacity', 'maximum of 8 concurrent agent threads'),
+ );
+ let releaseCreate: (() => void) | undefined;
+ createThread.mockReturnValueOnce(
+ new Promise<void>((resolve) => {
+ releaseCreate = resolve;
+ }),
+ );
+ model = makeModel({ turnActive: false, items: [authNotice()] });
+ render(<ThreadView info={makeInfo({ archived: true, status: 'exited' })} />);
+
+ await userEvent.click(offerButton());
+ await waitFor(() => expect(screen.getByTestId('agent-thread-resume-failed')).toBeTruthy());
+ expect(offerButton().getAttribute('data-auth-offer-kind')).toBe('resume');
+
+ await userEvent.click(screen.getByTestId('agent-thread-resume-fallback-new'));
+ expect(offerButton().hasAttribute('disabled')).toBe(true);
+ expect(offerButton().getAttribute('aria-busy')).toBe('false');
+ expect(within(offerButton()).queryByRole('status')).toBeNull();
+
+ await act(async () => {
+ releaseCreate?.();
+ });
+ await waitFor(() => expect(offerButton().hasAttribute('disabled')).toBe(false));
+ });
+
+ test('a transient resume failure keeps the offer and announces the action actually running', async () => {
+ resumeThread.mockRejectedValueOnce(
+ new ThreadResumeError('capacity', 'maximum of 8 concurrent agent threads'),
+ );
+ let releaseCreate: (() => void) | undefined;
+ createThread.mockReturnValueOnce(
+ new Promise<void>((resolve) => {
+ releaseCreate = resolve;
+ }),
+ );
+ model = makeModel({ turnActive: false, items: [authNotice()] });
+ render(<ThreadView info={makeInfo({ archived: true, status: 'exited' })} />);
+
+ await userEvent.click(offerButton());
+ await waitFor(() =>
+ expect(screen.getByTestId('agent-thread-resume-failed').textContent).toContain(
+ 'maximum of 8 concurrent agent threads',
+ ),
+ );
+ expect(offerButton().getAttribute('data-auth-offer-kind')).toBe('resume');
+
+ await userEvent.click(screen.getByTestId('agent-thread-resume-fallback-new'));
+ expect(screen.getByTestId('agent-thread-auth-status').textContent).toBe('Starting Claude…');
+ expect(offerButton().hasAttribute('disabled')).toBe(true);
+
+ await act(async () => {
+ releaseCreate?.();
+ });
+ await waitFor(() => expect(createThread).toHaveBeenCalledTimes(1));
+ });
+
+ test('an unresumable chat keeps its new-chat offer through the launch it starts', async () => {
+ let releaseCreate: (() => void) | undefined;
+ createThread.mockReturnValueOnce(
+ new Promise<void>((resolve) => {
+ releaseCreate = resolve;
+ }),
+ );
+ model = makeModel({ turnActive: false, items: [authNotice()] });
+ render(<ThreadView info={makeInfo({ archived: true, status: 'exited', resumable: false })} />);
+
+ await userEvent.click(offerButton());
+ expect(offerButton().getAttribute('data-auth-offer-kind')).toBe('new-chat');
+
+ await act(async () => {
+ releaseCreate?.();
+ });
+ await waitFor(() => expect(createThread).toHaveBeenCalledTimes(1));
+ expect(offerButton().getAttribute('data-auth-offer-kind')).toBe('new-chat');
+ expect(authSurface().textContent).not.toContain('Resume this chat to try again');
+ });
+
+ test('a new chat that fails from the recovery banner reports once and blames the right call', async () => {
+ resumeThread.mockRejectedValueOnce(
+ new ThreadResumeError('resume-unsupported', 'this thread never completed an agent session'),
+ );
+ createThread.mockRejectedValueOnce(new Error('at capacity'));
+ model = makeModel({ turnActive: false, items: [authNotice()] });
+ render(<ThreadView info={makeInfo({ archived: true, status: 'exited' })} />);
+
+ await userEvent.click(offerButton());
+ await waitFor(() => expect(screen.getByTestId('agent-thread-resume-failed')).toBeTruthy());
+
+ await userEvent.click(screen.getByTestId('agent-thread-resume-fallback-new'));
+ await waitFor(() => expect(toastError).toHaveBeenCalledWith(LAUNCH_FAILED));
+ expect(toastError).toHaveBeenCalledTimes(1);
+ const banner = screen.getByTestId('agent-thread-resume-failed');
+ expect(banner.textContent).toContain(
+ "Couldn't resume this chat: this thread never completed an agent session",
+ );
+ expect(banner.textContent).not.toContain(LAUNCH_FAILED);
+ });
+
+ test('a failed new chat says so instead of leaving the card silent', async () => {
+ createThread.mockRejectedValueOnce(new Error('at capacity'));
+ model = makeModel({ turnActive: false, items: [authNotice()] });
+ render(<ThreadView info={makeInfo({ archived: false, status: 'exited' })} />);
+
+ await userEvent.click(offerButton());
+ await waitFor(() => expect(toastError).toHaveBeenCalledWith(LAUNCH_FAILED));
+ expect(offerButton().hasAttribute('disabled')).toBe(false);
+ });
+
+ test('the banner control announces its launch and cannot be pressed twice', async () => {
+ resumeThread.mockRejectedValueOnce(
+ new ThreadResumeError('resume-unsupported', 'this thread never completed an agent session'),
+ );
+ let releaseCreate: (() => void) | undefined;
+ createThread.mockReturnValueOnce(
+ new Promise<void>((resolve) => {
+ releaseCreate = resolve;
+ }),
+ );
+ model = makeModel({ turnActive: false, items: [authNotice()] });
+ render(<ThreadView info={makeInfo({ archived: true, status: 'exited' })} />);
+
+ await userEvent.click(offerButton());
+ await waitFor(() => expect(screen.getByTestId('agent-thread-resume-failed')).toBeTruthy());
+
+ const banner = screen.getByTestId('agent-thread-resume-fallback-new');
+ expect(banner.hasAttribute('disabled')).toBe(false);
+ expect(banner.getAttribute('aria-busy')).toBe('false');
+
+ await userEvent.click(banner);
+ expect(screen.queryByTestId('agent-thread-resume-fallback-new')).toBeNull();
+ expect(screen.getByTestId('agent-thread-auth-status').textContent).toBe('Starting Claude…');
+ expect(offerButton().hasAttribute('disabled')).toBe(true);
+
+ await act(async () => {
+ releaseCreate?.();
+ });
+ await waitFor(() => expect(createThread).toHaveBeenCalledTimes(1));
+ });
+
+ test('an archived chat the server cannot resume will not send a message into that resume', async () => {
+ model = makeModel({ turnActive: false, items: [authNotice()] });
+ render(<ThreadView info={makeInfo({ archived: true, status: 'exited', resumable: false })} />);
+
+ const composer = screen.getByTestId('agent-thread-composer') as HTMLTextAreaElement;
+ fireEvent.change(composer, { target: { value: 'this would be lost' } });
+
+ expect(composer.hasAttribute('disabled')).toBe(false);
+ expect(screen.getByTestId('agent-thread-send').hasAttribute('disabled')).toBe(true);
+
+ fireEvent.keyDown(composer, { key: 'Enter' });
+ await waitFor(() => expect(resumeThread).not.toHaveBeenCalled());
+ });
+
+ test('a resume the agent turned down once leaves the composer usable', async () => {
+ resumeThread.mockRejectedValueOnce(
+ new ThreadResumeError('resume-unsupported', "couldn't resume the previous session"),
+ );
+ model = makeModel({ turnActive: false, items: [authNotice()] });
+ render(<ThreadView info={makeInfo({ archived: true, status: 'exited', resumable: true })} />);
+
+ fireEvent.change(screen.getByTestId('agent-thread-composer'), {
+ target: { value: 'try once more' },
+ });
+ expect(screen.getByTestId('agent-thread-send').hasAttribute('disabled')).toBe(false);
+
+ await userEvent.click(offerButton());
+ await waitFor(() => expect(screen.getByTestId('agent-thread-resume-failed')).toBeTruthy());
+
+ expect(screen.getByTestId('agent-thread-send').hasAttribute('disabled')).toBe(false);
+ expect(resumeThread).toHaveBeenCalledTimes(1);
+ });
+
+ test('only the last auth notice carries the offer', () => {
+ model = makeModel({
+ turnActive: false,
+ items: [
+ authNotice({ machineDetail: 'first stderr tail' }),
+ authNotice({ machineDetail: 'second stderr tail' }),
+ ],
+ });
+ render(<ThreadView info={makeInfo({ archived: true, status: 'exited' })} />);
+
+ const cards = screen.getAllByTestId('agent-thread-notice');
+ expect(cards).toHaveLength(2);
+ expect(screen.getAllByTestId('agent-thread-auth-action')).toHaveLength(1);
+ expect(within(cards[1] as HTMLElement).getByTestId('agent-thread-auth-action')).toBeTruthy();
+ expect(cards[0]?.textContent).toContain('Claude needed you to sign in.');
+ expect(cards[0]?.textContent).not.toContain('Resume this chat to try again');
+ });
+
+ test('a thread awaiting sign-in with nothing in its transcript offers the retry its copy names', () => {
+ model = makeModel({ turnActive: false, items: [] });
+ render(<ThreadView info={makeInfo({ archived: false, status: 'auth_required' })} />);
+
+ const surface = authSurface();
+ expect(surface.textContent).toContain('Claude needs you to sign in.');
+ expect(surface.textContent).not.toContain('Retry to sign in');
+ expect(SIGN_IN_INSTRUCTION.test(surface.textContent ?? '')).toBe(false);
+ expect(offerButton().getAttribute('data-auth-offer-kind')).toBe('retry');
+ expect(within(surface).getByRole('button', { name: 'Retry' })).toBeTruthy();
+ });
+
+ test('an empty transcript on a dead thread offers a way out instead of claiming it is connecting', () => {
+ for (const [status, kind, label] of [
+ ['exited', 'new-chat', 'New chat with Claude'],
+ ['error', 'retry', 'Retry'],
+ ] as const) {
+ const view = render(<ThreadView info={makeInfo({ archived: false, status })} />);
+ const surface = screen.getByTestId('agent-thread-transcript');
+ expect({ status, connecting: surface.textContent?.includes('Connecting to') }).toEqual({
+ status,
+ connecting: false,
+ });
+ const offer = screen.getByTestId('agent-thread-auth-action');
+ expect({
+ status,
+ kind: offer.getAttribute('data-auth-offer-kind'),
+ label: offer.textContent,
+ }).toEqual({ status, kind, label });
+ view.unmount();
+ }
+ });
+
+ test('a thread genuinely still starting keeps its progress message and offers nothing', () => {
+ for (const status of ['installing', 'spawning'] as const) {
+ const view = render(<ThreadView info={makeInfo({ archived: false, status })} />);
+ expect(screen.queryByTestId('agent-thread-auth-action')).toBeNull();
+ view.unmount();
+ }
+ });
+
+ test('an agent whose own CLI is installed offers to sign in in the terminal', async () => {
+ const launches: { prompt: unknown; cli: unknown }[] = [];
+ const onLaunch = (event: Event) => {
+ const { prompt, cli } = (event as CustomEvent).detail;
+ launches.push({ prompt, cli });
+ };
+ window.addEventListener('open-knowledge:terminal-launch', onLaunch);
+ Object.assign(window, {
+ okDesktop: {
+ config: { ptyAvailable: true },
+ terminal: { cliInstalledMap: () => Promise.resolve({ claude: true }) },
+ },
+ });
+ try {
+ model = makeModel({ turnActive: false, items: [] });
+ render(
+ <ThreadView
+ info={makeInfo({
+ archived: false,
+ status: 'auth_required',
+ agent: { id: 'claude-acp', name: 'Claude Agent', source: 'registry' },
+ })}
+ />,
+ );
+
+ await waitFor(() =>
+ expect(offerButton().getAttribute('data-auth-offer-kind')).toBe('terminal-sign-in'),
+ );
+ const surface = authSurface();
+ expect(surface.textContent).toContain('Claude needs you to sign in.');
+ expect(
+ within(surface).getByRole('button', { name: 'Open terminal to sign in' }),
+ ).toBeTruthy();
+
+ await userEvent.click(offerButton());
+ expect(launches).toEqual([{ prompt: '', cli: 'claude' }]);
+ expect(retryThread).not.toHaveBeenCalled();
+ } finally {
+ window.removeEventListener('open-knowledge:terminal-launch', onLaunch);
+ Reflect.deleteProperty(window, 'okDesktop');
+ }
+ });
+
+ test('the live auth card itself carries the terminal action, not just the sentence', async () => {
+ const launches: { prompt: unknown; cli: unknown }[] = [];
+ const onLaunch = (event: Event) => {
+ const { prompt, cli } = (event as CustomEvent).detail;
+ launches.push({ prompt, cli });
+ };
+ window.addEventListener('open-knowledge:terminal-launch', onLaunch);
+ Object.assign(window, {
+ okDesktop: {
+ config: { ptyAvailable: true },
+ terminal: { cliInstalledMap: () => Promise.resolve({ claude: true }) },
+ },
+ });
+ try {
+ const noMethods = authNotice({ authMethods: undefined, machineDetail: '' });
+ model = makeModel({ turnActive: false, items: [noMethods] });
+ render(
+ <ThreadView
+ info={makeInfo({
+ archived: false,
+ status: 'auth_required',
+ agent: { id: 'claude-acp', name: 'Claude Agent', source: 'registry' },
+ })}
+ />,
+ );
+
+ const surface = authSurface();
+ await waitFor(() =>
+ expect(within(surface).getByTestId('agent-thread-auth-action')).toBeTruthy(),
+ );
+ expect(
+ within(surface)
+ .getByTestId('agent-thread-auth-action')
+ .getAttribute('data-auth-offer-kind'),
+ ).toBe('terminal-sign-in');
+ expect(surface.textContent).toContain('Claude needs you to sign in.');
+
+ await userEvent.click(within(surface).getByTestId('agent-thread-auth-action'));
+ expect(launches).toEqual([{ prompt: '', cli: 'claude' }]);
+ } finally {
+ window.removeEventListener('open-knowledge:terminal-launch', onLaunch);
+ Reflect.deleteProperty(window, 'okDesktop');
+ }
+ });
+
+ test('a clickable sign-in method still wins over the terminal fallback', async () => {
+ Object.assign(window, {
+ okDesktop: {
+ config: { ptyAvailable: true },
+ terminal: { cliInstalledMap: () => Promise.resolve({ claude: true }) },
+ },
+ });
+ try {
+ model = makeModel({ turnActive: false, items: [authNotice({ machineDetail: '' })] });
+ render(
+ <ThreadView
+ info={makeInfo({
+ archived: false,
+ status: 'auth_required',
+ agent: { id: 'claude-acp', name: 'Claude Agent', source: 'registry' },
+ })}
+ />,
+ );
+
+ const surface = authSurface();
+ expect(within(surface).getAllByTestId('agent-thread-auth-method')).toHaveLength(1);
+ await waitFor(() =>
+ expect(within(surface).queryByTestId('agent-thread-auth-action')).toBeNull(),
+ );
+ expect(surface.textContent).toContain('Sign in to Claude to continue.');
+ } finally {
+ Reflect.deleteProperty(window, 'okDesktop');
+ }
+ });
+
+ test('an agent whose CLI is missing keeps the retry rather than a terminal it cannot open', async () => {
+ Object.assign(window, {
+ okDesktop: {
+ config: { ptyAvailable: true },
+ terminal: { cliInstalledMap: () => Promise.resolve({ claude: false }) },
+ },
+ });
+ try {
+ model = makeModel({ turnActive: false, items: [] });
+ render(
+ <ThreadView
+ info={makeInfo({
+ archived: false,
+ status: 'auth_required',
+ agent: { id: 'claude-acp', name: 'Claude Agent', source: 'registry' },
+ })}
+ />,
+ );
+
+ expect(offerButton().getAttribute('data-auth-offer-kind')).toBe('retry');
+ await waitFor(() => expect(offerButton().getAttribute('data-auth-offer-kind')).toBe('retry'));
+ } finally {
+ Reflect.deleteProperty(window, 'okDesktop');
+ }
+ });
+
+ test('the empty-transcript offer retries the thread when pressed', async () => {
+ model = makeModel({ turnActive: false, items: [] });
+ render(<ThreadView info={makeInfo({ archived: false, status: 'auth_required' })} />);
+
+ await userEvent.click(offerButton());
+ expect(retryThread).toHaveBeenCalledWith('thread-1');
+ });
+
+ test('an auth failure that carries no sign-in methods offers retry without the sign-in framing', () => {
+ const noMethods = authNotice({ authMethods: undefined, machineDetail: '' });
+ model = makeModel({ turnActive: false, items: [noMethods] });
+ render(<ThreadView info={makeInfo({ archived: false, status: 'auth_required' })} />);
+
+ const surface = authSurface();
+ expect(surface.textContent).toContain('Claude needs you to sign in.');
+ expect(surface.textContent).not.toContain('Retry to sign in');
+ expect(SIGN_IN_INSTRUCTION.test(surface.textContent ?? '')).toBe(false);
+ expect(surface.textContent).not.toContain('Already signed in?');
+ expect(within(surface).getByTestId('agent-thread-retry')).toBeTruthy();
+ });
+
+ test('an out-of-band sign-in method keeps the framing that names the order', () => {
+ const manualOnly = authNotice({
+ authMethods: [{ id: 'cli', name: 'CLI', kind: 'terminal', description: 'run /login' }],
+ machineDetail: '',
+ });
+ model = makeModel({ turnActive: false, items: [manualOnly] });
+ render(<ThreadView info={makeInfo({ archived: false, status: 'auth_required' })} />);
+
+ const surface = authSurface();
+ expect(within(surface).getAllByTestId('agent-thread-auth-manual')).toHaveLength(1);
+ expect(within(surface).queryAllByTestId('agent-thread-auth-method')).toHaveLength(0);
+ expect(surface.textContent).toContain('Claude needed you to sign in.');
+ expect(screen.queryByTestId('agent-thread-auth-action')).toBeNull();
+ expect(surface.textContent).toContain('Already signed in?');
+ });
+
+ test('a sign-in method the user can click keeps the sign-in copy and its framing', () => {
+ model = makeModel({ turnActive: false, items: [authNotice({ machineDetail: '' })] });
+ render(<ThreadView info={makeInfo({ archived: false, status: 'auth_required' })} />);
+
+ const surface = authSurface();
+ expect(surface.textContent).toContain('Sign in to Claude to continue.');
+ expect(within(surface).getAllByTestId('agent-thread-auth-method')).toHaveLength(1);
+ expect(surface.textContent).toContain('Already signed in?');
+ });
+});
+
describe('ThreadView attachment budget and clear fence (PRD-8453)', () => {
const makeDropTransfer = (files: readonly File[]) => ({
types: ['Files'],
diff --git a/packages/app/src/components/acp/ThreadView.tsx b/packages/app/src/components/acp/ThreadView.tsx
index c82874158..48493effb 100644
--- a/packages/app/src/components/acp/ThreadView.tsx
+++ b/packages/app/src/components/acp/ThreadView.tsx
@@ -66,6 +66,7 @@ import { dispatchComments, subscribeCommentPosted } from '@/comments/store';
import { ComposerContextChips } from '@/components/ComposerContextChips';
import { isExternalFileDrag } from '@/components/file-tree-adapter';
import { focusComposerInputOnCardPointer } from '@/components/focus-composer-on-card-pointer';
+import { requestTerminalLaunch } from '@/components/handoff/terminal-launch-events';
import { useOptionalPageList } from '@/components/PageListContext';
import { Badge } from '@/components/ui/badge';
import { Button } from '@/components/ui/button';
@@ -110,6 +111,7 @@ import {
rememberAgentMode,
} from '@/lib/acp/agent-settings-store';
import { configValueHint, resolveDefaultOptionLabel } from '@/lib/acp/config-value-hints';
+import { useHarnessTerminalCli } from '@/lib/acp/harness-terminal-cli';
import {
attachmentBudgetKb,
collectAllFiles,
@@ -163,6 +165,17 @@ import { type ImagePreview, ImagePreviewContext, PendingImageStrip } from './Pen
import { PlanChecklist } from './PlanChecklist';
import { appendPresenceWrite, latestAgentWrite, type PresenceWrite } from './presence-follow';
import { RegisteredAgentIcon } from './RegisteredAgentIcon';
+import {
+ clickableAuthMethods,
+ isThreadResumable,
+ manualAuthMethods,
+ type ThreadAuthActionKind,
+ type ThreadAuthOffer,
+ type ThreadAuthOfferWithoutSignIn,
+ threadAuthHistoryOffer,
+ threadAuthOffer,
+ threadAuthOfferWithoutSignInMethods,
+} from './thread-auth-offer';
import { transcriptItemId } from './transcript-item-id';
import { type ResendTarget, UserMessageActions, UserMessageEditor } from './UserMessageActions';
import { activeToolKind, useThinkingLine, workingStatusText } from './working-status';
@@ -408,10 +421,12 @@ export function ThreadView({
const model = useAgentThreadModel(info.threadId);
const status = info.status;
+ const agentName = agentDisplayName(info.agent.name);
const archived = info.archived === true;
const turnActive = model?.turnActive === true && !archived;
const thinkingLine = useThinkingLine(turnActive);
const [resumePending, setResumePending] = useState(false);
+ const [newChatPending, setNewChatPending] = useState(false);
const [resumeError, setResumeError] = useState<ThreadResumeError | null>(null);
const hasRecoverablePromptFailure =
!archived &&
@@ -420,12 +435,14 @@ export function ThreadView({
(item) =>
item.kind === 'notice' && item.superseded !== true && item.failure?.reason === 'prompt',
);
+ const resumable = isThreadResumable(info);
const canPrompt = archived
- ? !resumePending
+ ? !resumePending && resumable
: (status === 'ready' || hasRecoverablePromptFailure) && !turnActive;
const signingIn = status === 'authenticating';
const awaitingSignIn = status === 'auth_required' || signingIn;
const canRetry = !archived && (status === 'error' || awaitingSignIn);
+ const terminalCli = useHarnessTerminalCli(info.agent.id);
const [retryPending, setRetryPending] = useState(false);
const [revertedPositions, setRevertedPositions] = useState<ReadonlySet<number>>(new Set());
const canQueue = !archived && turnActive;
@@ -558,23 +575,17 @@ export function ThreadView({
const hasQueuedComments = selectedCommentCount > 0 && commentsAttached;
useEffect(() => subscribeCommentPosted(() => setCommentsAttached(true)), []);
- const sendText = (
- text: string,
- failureText: string | null = text,
- attachments: readonly AttachmentPart[] = [],
+ const resumeThreadNow = (
+ text?: string,
+ failureText: string | null = null,
+ attachments?: readonly AttachmentPart[],
): Promise<boolean> => {
- const parts = attachments.length > 0 ? attachments : undefined;
- if (!archived) {
- client.prompt(info.threadId, text, parts);
- scrollApiRef.current?.scrollToEnd();
- return Promise.resolve(true);
- }
setResumePending(true);
setResumeError(null);
setFailedPrompt(null);
scrollApiRef.current?.scrollToEnd();
return client
- .resumeThread(info.threadId, text, parts)
+ .resumeThread(info.threadId, text, attachments)
.then(() => true)
.catch((err) => {
setResumeError(
@@ -588,6 +599,20 @@ export function ThreadView({
.finally(() => setResumePending(false));
};
+ const sendText = (
+ text: string,
+ failureText: string | null = text,
+ attachments: readonly AttachmentPart[] = [],
+ ): Promise<boolean> => {
+ const parts = attachments.length > 0 ? attachments : undefined;
+ if (!archived) {
+ client.prompt(info.threadId, text, parts);
+ scrollApiRef.current?.scrollToEnd();
+ return Promise.resolve(true);
+ }
+ return resumeThreadNow(text, failureText, parts);
+ };
+
const resendMessage = async (
text: string,
target: ResendTarget,
@@ -673,7 +698,7 @@ export function ThreadView({
void client
.retryThread(info.threadId)
.catch((err: unknown) => {
- toast.error(t`Couldn't start ${info.agent.name}: ${errorText(err)}`);
+ toast.error(t`Couldn't start ${agentName}: ${errorText(err)}`);
})
.finally(() => setRetryPending(false));
};
@@ -683,23 +708,74 @@ export function ThreadView({
};
const startFreshThread = (): void => {
+ if (newChatPending) return;
+ const bannerBeforeNewChat = resumeError;
+ const promptBeforeNewChat = failedPrompt;
const draftText = composerText();
- const prompt = failedPrompt ?? (draftText === '' ? undefined : draftText);
+ setNewChatPending(true);
setResumeError(null);
setFailedPrompt(null);
- void client
- .createThread({
- agent: { source: info.agent.source, id: info.agent.id },
- prompt,
+ void launchAgentThread(
+ { source: info.agent.source, id: info.agent.id },
+ promptBeforeNewChat,
+ null,
+ null,
+ promptBeforeNewChat === null && draftText !== '' ? draftText : null,
+ )
+ .then((outcome) => {
+ if (outcome === 'started') return;
+ if (outcome === 'deduped') {
+ toast.error(t`Already starting a chat with this agent — try again in a moment.`);
+ }
+ setResumeError((current) => current ?? bannerBeforeNewChat);
+ setFailedPrompt((current) => current ?? promptBeforeNewChat);
})
- .catch((err) => {
- setResumeError(
- err instanceof ThreadResumeError
- ? err
- : new ThreadResumeError('internal', err instanceof Error ? err.message : String(err)),
- );
- setFailedPrompt(prompt ?? null);
- });
+ .finally(() => setNewChatPending(false));
+ };
+
+ const runningAuthAction: ThreadAuthActionKind | null = resumePending
+ ? 'resume'
+ : retryPending
+ ? 'retry'
+ : newChatPending
+ ? 'new-chat'
+ : null;
+ const authActionAnnouncement = (kind: ThreadAuthActionKind): string => {
+ switch (kind) {
+ case 'resume':
+ return t`Resuming the chat`;
+ case 'retry':
+ return t`Retrying`;
+ case 'new-chat':
+ return t`Starting ${agentName}…`;
+ case 'terminal-sign-in':
+ return '';
+ default: {
+ const exhaustive: never = kind;
+ void exhaustive;
+ return '';
+ }
+ }
+ };
+ const runAuthAction = (kind: ThreadAuthActionKind): void => {
+ switch (kind) {
+ case 'resume':
+ void resumeThreadNow();
+ return;
+ case 'retry':
+ retryThread();
+ return;
+ case 'new-chat':
+ startFreshThread();
+ return;
+ case 'terminal-sign-in':
+ if (terminalCli !== null) requestTerminalLaunch('', terminalCli);
+ return;
+ default: {
+ const exhaustive: never = kind;
+ void exhaustive;
+ }
+ }
};
const foldedEntries =
@@ -727,11 +803,31 @@ export function ThreadView({
}
}
}
+ const authHistoryOffer = threadAuthHistoryOffer(agentName);
+ const authOffer: ThreadAuthOfferWithoutSignIn = threadAuthOfferWithoutSignInMethods({
+ archived,
+ resumable,
+ status,
+ agentName,
+ terminalCli,
+ });
+ let authOfferNoticeIndex = -1;
+ if (authOffer.actionLabel !== null) {
+ for (let index = visibleItems.length - 1; index >= 0; index -= 1) {
+ const item = visibleItems[index];
+ if (item?.kind === 'notice' && item.failure?.reason === 'auth-required') {
+ authOfferNoticeIndex = index;
+ break;
+ }
+ }
+ }
let restoreNoticeIndex = -1;
if (!archived && status !== 'exited') {
for (let index = visibleItems.length - 1; index >= 0; index -= 1) {
const item = visibleItems[index];
- if (item?.kind === 'notice' && item.failure?.reason === 'prompt') {
+ if (item?.kind !== 'notice') continue;
+ const reason = item.failure?.reason;
+ if (reason === 'prompt' || (reason === 'auth-required' && canPrompt)) {
restoreNoticeIndex = index;
break;
}
@@ -776,6 +872,14 @@ export function ThreadView({
}
}
+ const resumeFailureMessage = !archived
+ ? ''
+ : !resumable
+ ? t`${agentName} can't pick this chat back up. The transcript is kept, so start a new chat to continue.`
+ : resumeError !== null
+ ? t`Couldn't resume this chat: ${resumeError.message}`
+ : '';
+
const items = visibleItems;
let authPrompt: ThreadFailureDetail | null = null;
if (awaitingSignIn && !archived) {
@@ -837,7 +941,7 @@ export function ThreadView({
{}
<AgentNoticeAnnouncer
notices={agentNotices}
- agentName={agentDisplayName(info.agent.name)}
+ agentName={agentName}
replayThroughSeq={state?.replayThroughSeq ?? Number.POSITIVE_INFINITY}
/>
{model !== null && model.plan.length > 0 ? (
@@ -879,18 +983,32 @@ export function ThreadView({
<div className="flex min-h-full items-center justify-center">
<ThreadAuthPrompt
failure={authPrompt}
+ offer={threadAuthOffer({
+ authMethods: authPrompt.authMethods ?? [],
+ agentName,
+ terminalCli,
+ })}
agent={info.agent}
- agentName={agentDisplayName(info.agent.name)}
+ agentName={agentName}
signingIn={signingIn}
signInOutput={info.signInOutput}
showRetry={canRetry}
retryPending={retryPending}
onRetry={retryThread}
+ onAuthAction={runAuthAction}
+ runningAuthAction={runningAuthAction}
onAuthenticate={authenticateThread}
/>
</div>
) : (
- <ThreadEmptyState status={status} archived={archived} agent={info.agent} />
+ <ThreadEmptyState
+ status={status}
+ archived={archived}
+ agent={info.agent}
+ authOffer={authOffer}
+ onAuthAction={runAuthAction}
+ runningAuthAction={runningAuthAction}
+ />
)}
</div>
) : (
@@ -926,6 +1044,11 @@ export function ThreadView({
onRetry={retryThread}
showRestore={index === restoreNoticeIndex}
onRestore={() => restoreFailedPromptToComposer(index)}
+ authOffer={
+ index === authOfferNoticeIndex ? authOffer : authHistoryOffer
+ }
+ onAuthAction={runAuthAction}
+ runningAuthAction={runningAuthAction}
onResend={resendMessage}
canSendHere={canPrompt || canQueue}
isLatestUserTurn={index === lastUserTurnIndex}
@@ -1014,25 +1137,42 @@ export function ThreadView({
</Button>
</div>
) : null}
- {archived && resumeError !== null ? (
+ <span
+ className="sr-only"
+ role="status"
+ aria-live="polite"
+ data-testid="agent-thread-auth-status"
+ >
+ {runningAuthAction === null ? '' : authActionAnnouncement(runningAuthAction)}
+ </span>
+ <span
+ className="sr-only"
+ role="status"
+ aria-live="polite"
+ data-testid="agent-thread-resume-status"
+ >
+ {resumeFailureMessage}
+ </span>
+ {resumeFailureMessage !== '' ? (
<div
className="flex items-center gap-2 border-amber-500/30 border-t bg-amber-500/5 px-3 py-1.5 text-amber-700 text-xs dark:text-amber-400"
data-testid="agent-thread-resume-failed"
>
- <span className="flex-1">
- {resumeError.code === 'resume-unsupported'
- ? t`${info.agent.name} can't continue this chat — the transcript is kept, but the agent session is gone.`
- : t`Couldn't resume this chat: ${resumeError.message}`}
- </span>
+ <span className="flex-1">{resumeFailureMessage}</span>
<Button
type="button"
size="sm"
variant="outline"
className="h-6 shrink-0 text-xs"
+ disabled={runningAuthAction !== null}
+ aria-busy={runningAuthAction === 'new-chat'}
onClick={startFreshThread}
data-testid="agent-thread-resume-fallback-new"
>
- {t`New chat with ${info.agent.name}`}
+ {runningAuthAction === 'new-chat' ? (
+ <Spinner className="size-3" aria-hidden="true" />
+ ) : null}
+ {t`New chat with ${agentName}`}
</Button>
</div>
) : null}
@@ -1526,14 +1666,49 @@ function ThreadTranscriptSkeleton(): ReactNode {
);
}
+function ThreadAuthOfferButton({
+ offer,
+ runningAuthAction,
+ onAction,
+}: {
+ offer: ThreadAuthOfferWithoutSignIn;
+ runningAuthAction: ThreadAuthActionKind | null;
+ onAction: (kind: ThreadAuthActionKind) => void;
+}): ReactNode {
+ if (offer.actionLabel === null) return null;
+ const busy = runningAuthAction === offer.kind;
+ return (
+ <Button
+ type="button"
+ variant="outline"
+ size="sm"
+ className="h-6 text-xs"
+ disabled={runningAuthAction !== null}
+ aria-busy={busy}
+ onClick={() => onAction(offer.kind)}
+ data-testid="agent-thread-auth-action"
+ data-auth-offer-kind={offer.kind}
+ >
+ {busy ? <Spinner className="size-3" aria-hidden="true" /> : null}
+ {offer.actionLabel}
+ </Button>
+ );
+}
+
function ThreadEmptyState({
status,
archived,
agent,
+ authOffer,
+ onAuthAction,
+ runningAuthAction,
}: {
status: ThreadInfo['status'];
archived: boolean;
agent: ThreadInfo['agent'];
+ authOffer: ThreadAuthOfferWithoutSignIn;
+ onAuthAction: (kind: ThreadAuthActionKind) => void;
+ runningAuthAction: ThreadAuthActionKind | null;
}): ReactNode {
const { t } = useLingui();
const agentName = agentDisplayName(agent.name);
@@ -1555,7 +1730,7 @@ function ThreadEmptyState({
);
}
- if (status === 'auth_required') {
+ if (authOffer.actionLabel !== null) {
return (
<div className="flex h-full flex-col items-center justify-center gap-3 px-6 text-center">
<RegisteredAgentIcon
@@ -1563,7 +1738,12 @@ function ThreadEmptyState({
iconUrl={agent.iconUrl}
className="size-12 opacity-25 grayscale"
/>
- <p className="text-muted-foreground text-sm">{t`Sign in to ${agentName} to continue.`}</p>
+ <p className="text-muted-foreground text-sm">{authOffer.headline}</p>
+ <ThreadAuthOfferButton
+ offer={authOffer}
+ runningAuthAction={runningAuthAction}
+ onAction={onAuthAction}
+ />
</div>
);
}
@@ -1616,6 +1796,9 @@ function ThreadItem({
onRetry,
showRestore,
onRestore,
+ authOffer,
+ onAuthAction,
+ runningAuthAction,
onResend,
canSendHere,
isLatestUserTurn,
@@ -1632,6 +1815,9 @@ function ThreadItem({
onRetry: () => void;
showRestore: boolean;
onRestore: () => void;
+ authOffer: ThreadAuthOfferWithoutSignIn;
+ onAuthAction: (kind: ThreadAuthActionKind) => void;
+ runningAuthAction: ThreadAuthActionKind | null;
onResend: (
text: string,
target: ResendTarget,
@@ -1678,6 +1864,9 @@ function ThreadItem({
onRetry={onRetry}
showRestore={showRestore}
onRestore={onRestore}
+ authOffer={authOffer}
+ onAuthAction={onAuthAction}
+ runningAuthAction={runningAuthAction}
/>
);
case 'agent_notice':
@@ -1820,6 +2009,7 @@ function SignInOutput({ output }: { output?: string[] }): ReactNode {
function ThreadAuthPrompt({
failure,
+ offer,
agent,
agentName,
signingIn,
@@ -1828,8 +2018,11 @@ function ThreadAuthPrompt({
retryPending,
onRetry,
onAuthenticate,
+ onAuthAction,
+ runningAuthAction,
}: {
failure: ThreadFailureDetail;
+ offer: ThreadAuthOffer;
agent: ThreadInfo['agent'];
agentName: string;
signingIn: boolean;
@@ -1838,16 +2031,22 @@ function ThreadAuthPrompt({
retryPending: boolean;
onRetry: () => void;
onAuthenticate: (methodId: string) => Promise<void>;
+ onAuthAction: (kind: ThreadAuthActionKind) => void;
+ runningAuthAction: ThreadAuthActionKind | null;
}): ReactNode {
const { t } = useLingui();
const [showDetail, setShowDetail] = useState(false);
const [authPending, setAuthPending] = useState<string | null>(null);
const authMethods = failure.authMethods ?? [];
- const signInMethods = authMethods.filter((m) => m.kind !== 'terminal' && m.kind !== 'env_var');
- const manualMethods = authMethods.filter((m) => m.kind === 'terminal' || m.kind === 'env_var');
+ const signInMethods = clickableAuthMethods(authMethods);
+ const manualMethods = manualAuthMethods(authMethods);
const agentMessage = failure.agentMessage ?? '';
const machineDetail = failure.machineDetail ?? '';
- const framedRetry = showRetry && machineDetail === '' && !signingIn;
+ const framedRetry =
+ showRetry &&
+ machineDetail === '' &&
+ !signingIn &&
+ (signInMethods.length > 0 || manualMethods.length > 0);
const signIn = (methodId: string): void => {
setAuthPending(methodId);
void onAuthenticate(methodId)
@@ -1878,7 +2077,7 @@ function ThreadAuthPrompt({
</>
) : (
<>
- <p className="font-medium text-foreground text-sm">{t`Sign in to ${agentName} to continue.`}</p>
+ <p className="font-medium text-foreground text-sm">{offer.headline}</p>
{agentMessage !== '' ? (
<p className="text-muted-foreground text-1sm">{agentMessage}</p>
) : null}
@@ -1908,6 +2107,13 @@ function ThreadAuthPrompt({
))}
</div>
) : null}
+ {!signingIn && signInMethods.length === 0 && offer.kind === 'terminal-sign-in' ? (
+ <ThreadAuthOfferButton
+ offer={offer}
+ runningAuthAction={runningAuthAction}
+ onAction={onAuthAction}
+ />
+ ) : null}
{!signingIn && manualMethods.length > 0 ? (
<ul className="flex flex-col gap-1 text-muted-foreground text-xs">
{manualMethods.map((method) => (
@@ -1979,6 +2185,9 @@ function ThreadNotice({
onRetry,
showRestore,
onRestore,
+ authOffer,
+ onAuthAction,
+ runningAuthAction,
}: {
item: Extract<RenderedItem, { kind: 'notice' }>;
agentName: string;
@@ -1987,6 +2196,9 @@ function ThreadNotice({
onRetry: () => void;
showRestore: boolean;
onRestore: () => void;
+ authOffer: ThreadAuthOfferWithoutSignIn;
+ onAuthAction: (kind: ThreadAuthActionKind) => void;
+ runningAuthAction: ThreadAuthActionKind | null;
}): ReactNode {
const { t } = useLingui();
const [showDetail, setShowDetail] = useState(false);
@@ -1994,7 +2206,7 @@ function ThreadNotice({
const failureHeadline = (reason: ThreadFailureDetail['reason']): string => {
switch (reason) {
case 'auth-required':
- return t`Sign in to ${agentName} to continue.`;
+ return authOffer.headline;
case 'connect':
return t`${agentName} couldn't start.`;
case 'session-setup':
@@ -2069,6 +2281,15 @@ function ThreadNotice({
) : null}
</>
) : null}
+ {failure.reason === 'auth-required' && !showRetry ? (
+ <div className="mt-1.5">
+ <ThreadAuthOfferButton
+ offer={authOffer}
+ runningAuthAction={runningAuthAction}
+ onAction={onAuthAction}
+ />
+ </div>
+ ) : null}
{showRetry ? (
<div className="mt-1.5">
<Button
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
index b988cf882..0dd7f5587 100644
--- 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
@@ -64,6 +64,7 @@ vi.doMock('@/lib/acp/thread-client', () => ({
retryThread: async () => {},
authenticateThread: async () => {},
}),
+ ThreadChannelUnavailableError: class ThreadChannelUnavailableError extends Error {},
ThreadResumeError: class ThreadResumeError extends Error {
readonly code: string;
constructor(code: string, message: string) {
@@ -469,9 +470,13 @@ describe('a revision is never destroyed by something other than sending it', ()
).toBe('words that must survive');
await userEvent.click(await screen.findByTestId('agent-thread-resume-fallback-new'));
- const fallback = createThread.mock.calls[0]?.[0];
- expect(fallback).toBeDefined();
- expect(fallback?.prompt).toBeUndefined();
+ expect(launchAgentThread).toHaveBeenCalledWith(
+ { source: 'registry', id: 'claude' },
+ null,
+ null,
+ null,
+ null,
+ );
});
test('superseding a notice ahead of an open editor does not remount it away', async () => {
diff --git a/packages/app/src/components/acp/ThreadView.working-loop.dom.test.tsx b/packages/app/src/components/acp/ThreadView.working-loop.dom.test.tsx
index 1c492e6f3..68f93ca57 100644
--- a/packages/app/src/components/acp/ThreadView.working-loop.dom.test.tsx
+++ b/packages/app/src/components/acp/ThreadView.working-loop.dom.test.tsx
@@ -27,6 +27,7 @@ vi.doMock('@/lib/acp/thread-client', () => ({
throw new Error('unused');
},
}),
+ ThreadChannelUnavailableError: class ThreadChannelUnavailableError extends Error {},
ThreadResumeError: class ThreadResumeError extends Error {
readonly code: string;
constructor(code: string, message: string) {
diff --git a/packages/app/src/components/acp/thread-auth-offer.test.ts b/packages/app/src/components/acp/thread-auth-offer.test.ts
new file mode 100644
index 000000000..817eec7e1
--- /dev/null
+++ b/packages/app/src/components/acp/thread-auth-offer.test.ts
@@ -0,0 +1,385 @@
+import type {
+ ThreadAuthMethod,
+ ThreadStatus,
+} from '@inkeep/open-knowledge-core/acp/thread-protocol';
+import { describe, expect, test } from 'vitest';
+import {
+ clickableAuthMethods,
+ isThreadResumable,
+ manualAuthMethods,
+ type ThreadAuthOffer,
+ threadAuthOffer,
+ threadAuthOfferWithoutSignInMethods,
+} from './thread-auth-offer';
+
+const CLICKABLE: readonly ThreadAuthMethod[] = [{ id: 'oauth', name: 'OAuth' }];
+const MANUAL_ONLY: readonly ThreadAuthMethod[] = [{ id: 'cli', name: 'CLI', kind: 'terminal' }];
+
+const STATUSES: readonly ThreadStatus[] = [
+ 'installing',
+ 'spawning',
+ 'ready',
+ 'auth_required',
+ 'authenticating',
+ 'running',
+ 'awaiting_permission',
+ 'exited',
+ 'error',
+];
+
+const SIGN_IN_INSTRUCTION = /Sign in to .+ to continue/;
+
+const METHOD_SETS: readonly (readonly ThreadAuthMethod[])[] = [[], CLICKABLE, MANUAL_ONLY];
+
+function everyOffer(): {
+ input: { clickableMethodCount: number; manualMethodCount: number };
+ offer: ThreadAuthOffer;
+}[] {
+ return METHOD_SETS.map((authMethods) => ({
+ input: {
+ clickableMethodCount: clickableAuthMethods(authMethods).length,
+ manualMethodCount: manualAuthMethods(authMethods).length,
+ },
+ offer: threadAuthOffer({ authMethods, agentName: 'Claude', terminalCli: null }),
+ }));
+}
+
+describe('clickableAuthMethods', () => {
+ const methods: readonly ThreadAuthMethod[] = [
+ { id: 'oauth', name: 'OAuth' },
+ { id: 'browser', name: 'Browser', kind: 'oauth' },
+ { id: 'cli', name: 'CLI', kind: 'terminal' },
+ { id: 'key', name: 'API key', kind: 'env_var' },
+ ];
+
+ test('keeps the methods a button can trigger', () => {
+ expect(clickableAuthMethods(methods).map((m) => m.id)).toEqual(['oauth', 'browser']);
+ });
+
+ test('manual methods are the exact complement', () => {
+ expect(manualAuthMethods(methods).map((m) => m.id)).toEqual(['cli', 'key']);
+ expect(clickableAuthMethods(methods).length + manualAuthMethods(methods).length).toBe(
+ methods.length,
+ );
+ });
+
+ test('an empty method list yields no offers on either side', () => {
+ expect(clickableAuthMethods([])).toEqual([]);
+ expect(manualAuthMethods([])).toEqual([]);
+ });
+});
+
+describe('threadAuthOffer', () => {
+ test('sign-in is offered exactly where a method is there to click', () => {
+ for (const { input, offer } of everyOffer()) {
+ expect({ ...input, signsIn: offer.kind === 'sign-in' }).toEqual({
+ ...input,
+ signsIn: input.clickableMethodCount > 0,
+ });
+ }
+ });
+
+ test('only the sign-in offer says to sign in to continue', () => {
+ for (const { input, offer } of everyOffer()) {
+ if (offer.kind === 'sign-in') continue;
+ expect({ ...input, claimsSignIn: SIGN_IN_INSTRUCTION.test(offer.headline) }).toEqual({
+ ...input,
+ claimsSignIn: false,
+ });
+ }
+ });
+
+ test('every offer reads as a complete instruction, label included', () => {
+ for (const { input, offer } of everyOffer()) {
+ expect({
+ ...input,
+ headlineEmpty: offer.headline.trim() === '',
+ labelEmpty: offer.actionLabel !== null && offer.actionLabel.trim() === '',
+ }).toEqual({ ...input, headlineEmpty: false, labelEmpty: false });
+ }
+ });
+
+ test('a live thread awaiting sign-in with no method at all offers retry', () => {
+ const offer = threadAuthOffer({ authMethods: [], agentName: 'Claude', terminalCli: null });
+ expect(offer.kind).toBe('retry');
+ expect(offer.headline).toBe('Claude needs you to sign in.');
+ });
+
+ test('a manual-only list gains a terminal action once the harness CLI is detected', () => {
+ const offer = threadAuthOffer({
+ authMethods: MANUAL_ONLY,
+ agentName: 'Claude',
+ terminalCli: 'claude',
+ });
+ expect(offer.kind).toBe('terminal-sign-in');
+ expect(offer.actionLabel).toBe('Open terminal to sign in');
+ });
+
+ test('an absent terminalCli never enables the terminal offer', () => {
+ const offer = threadAuthOffer({
+ authMethods: [],
+ agentName: 'Claude',
+ } as unknown as Parameters<typeof threadAuthOffer>[0]);
+ expect(offer.kind).toBe('retry');
+ });
+
+ test('a method the user runs elsewhere lets the method list say how, not the headline', () => {
+ const offer = threadAuthOffer({
+ authMethods: MANUAL_ONLY,
+ agentName: 'Claude',
+ terminalCli: null,
+ });
+ expect(offer.kind).toBe('none');
+ expect(offer.headline).toBe('Claude needed you to sign in.');
+ expect(offer.actionLabel).toBeNull();
+ });
+
+ test('a live thread awaiting sign-in with a clickable method keeps the sign-in copy', () => {
+ const offer = threadAuthOffer({
+ authMethods: CLICKABLE,
+ agentName: 'Claude',
+ terminalCli: null,
+ });
+ expect(offer.kind).toBe('sign-in');
+ expect(offer.headline).toBe('Sign in to Claude to continue.');
+ });
+});
+
+describe('threadAuthOfferWithoutSignInMethods', () => {
+ test('an archived thread offers resume and names it', () => {
+ const offer = threadAuthOfferWithoutSignInMethods({
+ archived: true,
+ resumable: true,
+ status: 'exited',
+ agentName: 'Claude',
+ terminalCli: null,
+ });
+ expect(offer.kind).toBe('resume');
+ expect(offer.headline).toBe('Claude needed you to sign in. Resume this chat to try again.');
+ expect(offer.actionLabel).toBe('Resume chat');
+ });
+
+ test('an archived thread the server cannot resume offers the new chat up front', () => {
+ const offer = threadAuthOfferWithoutSignInMethods({
+ archived: true,
+ resumable: false,
+ status: 'exited',
+ agentName: 'Claude',
+ terminalCli: null,
+ });
+ expect(offer.kind).toBe('new-chat');
+ expect(offer.headline).toBe("Claude isn't running. Start a new chat to sign in.");
+ expect(offer.actionLabel).toBe('New chat with Claude');
+ });
+
+ test('an unresumable archived thread never names a resume, whatever its status', () => {
+ for (const status of STATUSES) {
+ const offer = threadAuthOfferWithoutSignInMethods({
+ archived: true,
+ resumable: false,
+ status,
+ agentName: 'Claude',
+ terminalCli: null,
+ });
+ expect({
+ status,
+ kind: offer.kind,
+ actionLabel: offer.actionLabel,
+ namesResume: /Resume/.test(offer.headline),
+ }).toEqual({
+ status,
+ kind: 'new-chat',
+ actionLabel: 'New chat with Claude',
+ namesResume: false,
+ });
+ }
+ });
+
+ test('a server that reports no resumability at all keeps the resume on offer', () => {
+ for (const status of STATUSES) {
+ const offer = threadAuthOfferWithoutSignInMethods({
+ archived: true,
+ resumable: isThreadResumable({}),
+ status,
+ agentName: 'Claude',
+ terminalCli: null,
+ });
+ expect({ status, kind: offer.kind }).toEqual({ status, kind: 'resume' });
+ }
+ });
+
+ test('resumability is absent-means-yes, and only an explicit false retires the resume', () => {
+ expect(isThreadResumable({})).toBe(true);
+ expect(isThreadResumable({ resumable: undefined })).toBe(true);
+ expect(isThreadResumable({ resumable: true })).toBe(true);
+ expect(isThreadResumable({ resumable: false })).toBe(false);
+ });
+
+ test('an archived thread offers the resume only while resuming is still on the table', () => {
+ for (const status of STATUSES) {
+ for (const resumable of [false, true]) {
+ const offer = threadAuthOfferWithoutSignInMethods({
+ archived: true,
+ resumable,
+ status,
+ agentName: 'Claude',
+ terminalCli: null,
+ });
+ expect({ status, resumable, kind: offer.kind }).toEqual({
+ status,
+ resumable,
+ kind: resumable ? 'resume' : 'new-chat',
+ });
+ }
+ }
+ });
+
+ test('an exited thread offers a new chat, the only action its status permits', () => {
+ const offer = threadAuthOfferWithoutSignInMethods({
+ archived: false,
+ resumable: true,
+ status: 'exited',
+ agentName: 'Claude',
+ terminalCli: null,
+ });
+ expect(offer.kind).toBe('new-chat');
+ expect(offer.headline).toBe("Claude isn't running. Start a new chat to sign in.");
+ expect(offer.actionLabel).toBe('New chat with Claude');
+ });
+
+ test('a live thread stalled on sign-in states the fact and offers retry', () => {
+ for (const status of ['auth_required', 'authenticating'] as const) {
+ const offer = threadAuthOfferWithoutSignInMethods({
+ archived: false,
+ resumable: true,
+ status,
+ agentName: 'Claude',
+ terminalCli: null,
+ });
+ expect({ status, kind: offer.kind, actionLabel: offer.actionLabel }).toEqual({
+ status,
+ kind: 'retry',
+ actionLabel: 'Retry',
+ });
+ expect(offer.headline).toBe('Claude needs you to sign in.');
+ }
+ });
+
+ test('an errored thread names the error, not a sign-in the retry cannot perform', () => {
+ const offer = threadAuthOfferWithoutSignInMethods({
+ archived: false,
+ resumable: true,
+ status: 'error',
+ agentName: 'Claude',
+ terminalCli: null,
+ });
+ expect({ kind: offer.kind, actionLabel: offer.actionLabel }).toEqual({
+ kind: 'retry',
+ actionLabel: 'Retry',
+ });
+ expect(offer.headline).toBe('Claude stopped with an error.');
+ });
+
+ test('no retry headline ever claims the retry is what signs you in', () => {
+ for (const status of STATUSES) {
+ for (const terminalCli of [null, 'claude'] as const) {
+ const offer = threadAuthOfferWithoutSignInMethods({
+ archived: false,
+ resumable: true,
+ status,
+ agentName: 'Claude',
+ terminalCli,
+ });
+ if (offer.kind !== 'retry') continue;
+ expect({
+ status,
+ terminalCli,
+ claimsSignIn: /Retry to sign in/.test(offer.headline),
+ }).toEqual({ status, terminalCli, claimsSignIn: false });
+ }
+ }
+ });
+
+ test('a detected harness CLI turns the sign-in into an action the card can perform', () => {
+ for (const status of ['auth_required', 'authenticating'] as const) {
+ const offer = threadAuthOfferWithoutSignInMethods({
+ archived: false,
+ resumable: true,
+ status,
+ agentName: 'Claude',
+ terminalCli: 'claude',
+ });
+ expect({ status, kind: offer.kind, actionLabel: offer.actionLabel }).toEqual({
+ status,
+ kind: 'terminal-sign-in',
+ actionLabel: 'Open terminal to sign in',
+ });
+ }
+ });
+
+ test('a detected harness CLI does not rewrite the archived or errored offers', () => {
+ const archived = threadAuthOfferWithoutSignInMethods({
+ archived: true,
+ resumable: true,
+ status: 'exited',
+ agentName: 'Claude',
+ terminalCli: 'claude',
+ });
+ expect(archived.kind).toBe('resume');
+ const errored = threadAuthOfferWithoutSignInMethods({
+ archived: false,
+ resumable: true,
+ status: 'error',
+ agentName: 'Claude',
+ terminalCli: 'claude',
+ });
+ expect(errored.kind).toBe('retry');
+ });
+
+ test('a healthy thread reads the notice as history and owes no control', () => {
+ for (const status of ['installing', 'spawning', 'ready', 'running', 'awaiting_permission']) {
+ const offer = threadAuthOfferWithoutSignInMethods({
+ archived: false,
+ resumable: true,
+ status: status as ThreadStatus,
+ agentName: 'Claude',
+ terminalCli: null,
+ });
+ expect({ status, kind: offer.kind, actionLabel: offer.actionLabel }).toEqual({
+ status,
+ kind: 'none',
+ actionLabel: null,
+ });
+ expect(offer.headline).toBe('Claude needed you to sign in.');
+ }
+ });
+
+ test('a surface that renders no sign-in buttons can never be handed the sign-in copy', () => {
+ for (const status of STATUSES) {
+ for (const archived of [false, true]) {
+ for (const resumable of [false, true]) {
+ const offer = threadAuthOfferWithoutSignInMethods({
+ archived,
+ resumable,
+ status,
+ agentName: 'Claude',
+ terminalCli: null,
+ });
+ expect({
+ status,
+ archived,
+ resumable,
+ claimsSignIn: SIGN_IN_INSTRUCTION.test(offer.headline),
+ labelPaired: offer.actionLabel !== null || offer.kind === 'none',
+ }).toEqual({
+ status,
+ archived,
+ resumable,
+ claimsSignIn: false,
+ labelPaired: true,
+ });
+ }
+ }
+ }
+ });
+});
diff --git a/packages/app/src/components/acp/thread-auth-offer.ts b/packages/app/src/components/acp/thread-auth-offer.ts
new file mode 100644
index 000000000..4608fb0ab
--- /dev/null
+++ b/packages/app/src/components/acp/thread-auth-offer.ts
@@ -0,0 +1,155 @@
+import type { TerminalCli } from '@inkeep/open-knowledge-core';
+import type {
+ ThreadAuthMethod,
+ ThreadInfo,
+ ThreadStatus,
+} from '@inkeep/open-knowledge-core/acp/thread-protocol';
+import { t } from '@lingui/core/macro';
+
+export type ThreadAuthActionKind = 'resume' | 'retry' | 'new-chat' | 'terminal-sign-in';
+
+export type ThreadAuthOfferWithoutSignIn =
+ | {
+ readonly kind: ThreadAuthActionKind;
+ readonly headline: string;
+ readonly actionLabel: string;
+ }
+ | { readonly kind: 'none'; readonly headline: string; readonly actionLabel: null };
+
+export type ThreadAuthOffer =
+ | ThreadAuthOfferWithoutSignIn
+ | { readonly kind: 'sign-in'; readonly headline: string; readonly actionLabel: string };
+
+export interface ThreadAuthOfferInput {
+ readonly archived: boolean;
+ readonly resumable: boolean;
+ readonly status: ThreadStatus;
+ readonly authMethods: readonly ThreadAuthMethod[];
+ readonly agentName: string;
+ readonly terminalCli: TerminalCli | null;
+}
+
+export function isThreadResumable(info: Pick<ThreadInfo, 'resumable'>): boolean {
+ return info.resumable !== false;
+}
+
+function isClickable(method: ThreadAuthMethod): boolean {
+ return method.kind !== 'terminal' && method.kind !== 'env_var';
+}
+
+export function clickableAuthMethods(
+ methods: readonly ThreadAuthMethod[],
+): readonly ThreadAuthMethod[] {
+ return methods.filter(isClickable);
+}
+
+export function manualAuthMethods(
+ methods: readonly ThreadAuthMethod[],
+): readonly ThreadAuthMethod[] {
+ return methods.filter((method) => !isClickable(method));
+}
+
+export function threadAuthHistoryOffer(agentName: string): ThreadAuthOfferWithoutSignIn {
+ return {
+ kind: 'none',
+ headline: t`${agentName} needed you to sign in.`,
+ actionLabel: null,
+ };
+}
+
+function threadAuthNewChatOffer(agentName: string): ThreadAuthOfferWithoutSignIn {
+ return {
+ kind: 'new-chat',
+ headline: t`${agentName} isn't running. Start a new chat to sign in.`,
+ actionLabel: t`New chat with ${agentName}`,
+ };
+}
+
+function threadAuthTerminalOffer(agentName: string): ThreadAuthOfferWithoutSignIn {
+ return {
+ kind: 'terminal-sign-in',
+ headline: t`${agentName} needs you to sign in.`,
+ actionLabel: t`Open terminal to sign in`,
+ };
+}
+
+function threadAuthSignedOutOffer(
+ agentName: string,
+ terminalCli: TerminalCli | null,
+): ThreadAuthOfferWithoutSignIn {
+ if (terminalCli != null) return threadAuthTerminalOffer(agentName);
+ return {
+ kind: 'retry',
+ headline: t`${agentName} needs you to sign in.`,
+ actionLabel: t`Retry`,
+ };
+}
+
+export function threadAuthOfferWithoutSignInMethods({
+ archived,
+ resumable,
+ status,
+ agentName,
+ terminalCli,
+}: Omit<ThreadAuthOfferInput, 'authMethods'>): ThreadAuthOfferWithoutSignIn {
+ if (archived) {
+ if (!resumable) {
+ return threadAuthNewChatOffer(agentName);
+ }
+ return {
+ kind: 'resume',
+ headline: t`${agentName} needed you to sign in. Resume this chat to try again.`,
+ actionLabel: t`Resume chat`,
+ };
+ }
+ const history = threadAuthHistoryOffer(agentName);
+ switch (status) {
+ case 'auth_required':
+ case 'authenticating':
+ return threadAuthSignedOutOffer(agentName, terminalCli);
+ case 'error':
+ return {
+ kind: 'retry',
+ headline: t`${agentName} stopped with an error.`,
+ actionLabel: t`Retry`,
+ };
+ case 'exited':
+ return threadAuthNewChatOffer(agentName);
+ case 'installing':
+ case 'spawning':
+ case 'ready':
+ case 'running':
+ case 'awaiting_permission':
+ return history;
+ default: {
+ const exhaustive: never = status;
+ void exhaustive;
+ return history;
+ }
+ }
+}
+
+export function threadAuthOffer({
+ authMethods,
+ agentName,
+ terminalCli,
+}: Pick<ThreadAuthOfferInput, 'authMethods' | 'agentName' | 'terminalCli'>): ThreadAuthOffer {
+ if (clickableAuthMethods(authMethods).length > 0) {
+ return {
+ kind: 'sign-in',
+ headline: t`Sign in to ${agentName} to continue.`,
+ actionLabel: t`Sign in`,
+ };
+ }
+ if (manualAuthMethods(authMethods).length > 0) {
+ if (terminalCli != null) return threadAuthTerminalOffer(agentName);
+ return threadAuthHistoryOffer(agentName);
+ }
+ return threadAuthOfferWithoutSignInMethods({
+ archived: false,
+ resumable: true,
+ status: 'auth_required',
+ agentName,
+ terminalCli,
+ });
+}
diff --git a/packages/app/src/lib/acp/harness-terminal-cli.test.ts b/packages/app/src/lib/acp/harness-terminal-cli.test.ts
new file mode 100644
index 000000000..c7b3480ca
--- /dev/null
+++ b/packages/app/src/lib/acp/harness-terminal-cli.test.ts
@@ -0,0 +1,26 @@
+import { describe, expect, test } from 'vitest';
+import { harnessTerminalCli } from './harness-terminal-cli';
+
+describe('harnessTerminalCli', () => {
+ test('offers the CLI only when it is installed on this machine', () => {
+ for (const installed of [true, false, undefined]) {
+ expect({
+ installed,
+ cli: harnessTerminalCli('claude-acp', { claude: installed }, true),
+ }).toEqual({ installed, cli: installed === true ? 'claude' : null });
+ }
+ });
+
+ test('a machine with no terminal never gets the offer, however present the CLI', () => {
+ expect(harnessTerminalCli('claude-acp', { claude: true }, false)).toBeNull();
+ });
+
+ test('an agent with no harness CLI of its own yields nothing', () => {
+ expect(harnessTerminalCli('some-agent-with-no-cli', { claude: true }, true)).toBeNull();
+ });
+
+ test('the agent ids the registry maps all resolve to a launchable CLI', () => {
+ expect(harnessTerminalCli('claude-acp', { claude: true }, true)).toBe('claude');
+ expect(harnessTerminalCli('codex-acp', { codex: true }, true)).toBe('codex');
+ });
+});
diff --git a/packages/app/src/lib/acp/harness-terminal-cli.ts b/packages/app/src/lib/acp/harness-terminal-cli.ts
new file mode 100644
index 000000000..195eb0680
--- /dev/null
+++ b/packages/app/src/lib/acp/harness-terminal-cli.ts
@@ -0,0 +1,32 @@
+import {
+ ACP_AGENT_HARNESS_CLI_MAP,
+ TERMINAL_CLI_IDS,
+ type TerminalCli,
+} from '@inkeep/open-knowledge-core';
+import { useInstalledClis } from '@/hooks/use-installed-clis';
+import { isNoteWindow } from '@/lib/note-window-mode';
+
+export function harnessTerminalCli(
+ agentId: string,
+ installedClis: Partial<Record<TerminalCli, boolean>>,
+ terminalAvailable: boolean,
+): TerminalCli | null {
+ if (!terminalAvailable) return null;
+ const harness = ACP_AGENT_HARNESS_CLI_MAP[agentId];
+ if (harness === undefined) return null;
+ const launchable: readonly string[] = TERMINAL_CLI_IDS;
+ if (!launchable.includes(harness)) return null;
+ const cli = harness as TerminalCli;
+ return installedClis[cli] === true ? cli : null;
+}
+
+function terminalLaunchAvailable(): boolean {
+ if (typeof window === 'undefined' || isNoteWindow()) return false;
+ const bridge = window.okDesktop ?? null;
+ return bridge?.terminal != null && bridge.config.ptyAvailable === true;
+}
+
+export function useHarnessTerminalCli(agentId: string): TerminalCli | null {
+ const installedClis = useInstalledClis();
+ return harnessTerminalCli(agentId, installedClis, terminalLaunchAvailable());
+}
diff --git a/packages/app/src/lib/acp/thread-client.test.ts b/packages/app/src/lib/acp/thread-client.test.ts
index 1c077e836..c0c102dc7 100644
--- a/packages/app/src/lib/acp/thread-client.test.ts
+++ b/packages/app/src/lib/acp/thread-client.test.ts
@@ -1,10 +1,11 @@
import { readFileSync } from 'node:fs';
-import type {
- ThreadEvent,
- ThreadInfo,
- ThreadServerFrame,
+import {
+ THREAD_REOPEN_OP_TIMEOUT_MS,
+ type ThreadEvent,
+ type ThreadInfo,
+ type ThreadServerFrame,
} from '@inkeep/open-knowledge-core/acp/thread-protocol';
-import { describe, expect, test } from 'vitest';
+import { describe, expect, test, vi } from 'vitest';
import fixture from '../../../../../test-support/fixtures/codex-legacy-warning-envelopes.json' with {
type: 'json',
};
@@ -556,3 +557,219 @@ describe('render-model agent identity', () => {
expect(replayed.getThreadModel('ident-1')?.items).toHaveLength(2);
});
});
+
+describe('a refused resume keeps the archived thread open', () => {
+ const archivedInfo: ThreadInfo = {
+ threadId: 't1',
+ agent: { id: 'a', name: 'A', source: 'custom' },
+ title: 'A',
+ status: 'exited',
+ createdAt: 1,
+ lastActivityAt: 1,
+ lastSeq: 3,
+ archived: true,
+ resumable: false,
+ };
+
+ const ev = (i: number): ThreadEvent => ({ kind: 'user_message', content: `m${i}`, ts: i });
+ const flush = (): Promise<void> => new Promise((resolve) => setTimeout(resolve, 0));
+
+ function openedFromHistory(): {
+ client: AgentThreadClient;
+ sent: Array<Record<string, unknown>>;
+ frame: (f: ThreadServerFrame) => void;
+ } {
+ const client = new AgentThreadClient();
+ const sent: Array<Record<string, unknown>> = [];
+ const internals = client as unknown as {
+ ws: unknown;
+ handleFrame: (f: ThreadServerFrame) => void;
+ };
+ internals.ws = {
+ readyState: 1,
+ send: (raw: string) => sent.push(JSON.parse(raw) as Record<string, unknown>),
+ };
+ const frame = (f: ThreadServerFrame) => internals.handleFrame.call(client, f);
+ frame({ op: 'threads', threads: [archivedInfo] });
+ client.openArchivedThread('t1');
+ frame({ op: 'events', threadId: 't1', fromSeq: 0, events: [ev(0), ev(1), ev(2), ev(3)] });
+ return { client, sent, frame };
+ }
+
+ test('the tab and its transcript survive the server re-archiving the thread', async () => {
+ const { client, sent, frame } = openedFromHistory();
+ expect(client.getOpenTabs().map((info) => info.threadId)).toEqual(['t1']);
+
+ const pending = client.resumeThread('t1');
+ await flush();
+ const reqId = sent.find((f) => f.op === 'resume')?.reqId as string;
+
+ frame({ op: 'info', info: { ...archivedInfo, archived: false, status: 'installing' } });
+ frame({ op: 'info', info: { ...archivedInfo, archived: true, status: 'exited' } });
+ frame({
+ op: 'events',
+ threadId: 't1',
+ fromSeq: 4,
+ events: [
+ { kind: 'status', status: 'installing', ts: 4 },
+ { kind: 'status', status: 'exited', detail: 'resume failed', ts: 5 },
+ ],
+ });
+ frame({
+ op: 'error',
+ code: 'resume-unsupported',
+ message: "the agent doesn't support resuming",
+ reqId,
+ threadId: 't1',
+ });
+
+ await expect(pending).rejects.toThrow(/resuming/);
+ expect(client.getOpenTabs().map((info) => info.threadId)).toEqual(['t1']);
+ const state = client.getThread('t1');
+ expect(state?.lastSeq).toBe(5);
+ expect(state?.events).toHaveLength(6);
+ expect(
+ state?.events.some(
+ (event) => event.kind === 'agent_stderr' && /missing log/.test(event.line),
+ ),
+ ).toBe(false);
+ });
+
+ test('an archive that no resume asked for still closes the tab', () => {
+ const { client, frame } = openedFromHistory();
+ frame({ op: 'info', info: { ...archivedInfo, archived: false, status: 'ready' } });
+ expect(client.getOpenTabs().map((info) => info.threadId)).toEqual(['t1']);
+
+ frame({ op: 'info', info: { ...archivedInfo, archived: true, status: 'exited' } });
+ expect(client.getOpenTabs()).toEqual([]);
+ });
+
+ test('a late archive still finds the guard up after the client has given up waiting', async () => {
+ vi.useFakeTimers();
+ try {
+ const { client, frame } = openedFromHistory();
+ const settled = client.resumeThread('t1').then(
+ () => null,
+ (err: Error) => err,
+ );
+ await vi.advanceTimersByTimeAsync(0);
+ frame({ op: 'info', info: { ...archivedInfo, archived: false, status: 'installing' } });
+
+ await vi.advanceTimersByTimeAsync(THREAD_REOPEN_OP_TIMEOUT_MS + 1);
+ expect((await settled)?.message).toMatch(/timed out/);
+
+ frame({ op: 'info', info: { ...archivedInfo, archived: true, status: 'exited' } });
+ expect(client.getOpenTabs().map((info) => info.threadId)).toEqual(['t1']);
+ } finally {
+ vi.useRealTimers();
+ }
+ });
+
+ test('a resume that timed out locally still lets a later refusal bring the guard down', async () => {
+ vi.useFakeTimers();
+ try {
+ const { client, sent, frame } = openedFromHistory();
+ const settled = client.resumeThread('t1').then(
+ () => null,
+ (err: Error) => err,
+ );
+ await vi.advanceTimersByTimeAsync(0);
+ const reqId = sent.find((f) => f.op === 'resume')?.reqId as string;
+ frame({ op: 'info', info: { ...archivedInfo, archived: false, status: 'installing' } });
+
+ await vi.advanceTimersByTimeAsync(THREAD_REOPEN_OP_TIMEOUT_MS + 1);
+ expect((await settled)?.message).toMatch(/timed out/);
+
+ frame({
+ op: 'error',
+ code: 'resume-unsupported',
+ message: "the agent doesn't support resuming",
+ reqId,
+ threadId: 't1',
+ });
+ frame({ op: 'info', info: { ...archivedInfo, archived: true, status: 'exited' } });
+ expect(client.getOpenTabs()).toEqual([]);
+ } finally {
+ vi.useRealTimers();
+ }
+ });
+
+ test('a socket that drops mid-resume leaves no guard behind for the next archive', async () => {
+ const { client, frame } = openedFromHistory();
+ const settled = client.resumeThread('t1').then(
+ () => null,
+ (err: Error) => err,
+ );
+ await flush();
+ frame({ op: 'info', info: { ...archivedInfo, archived: false, status: 'installing' } });
+
+ (client as unknown as { url: string | null }).url = 'ws://example.invalid';
+ client.setUrl(null);
+ expect(await settled).toBeInstanceOf(ThreadChannelUnavailableError);
+
+ frame({ op: 'info', info: { ...archivedInfo, archived: true, status: 'exited' } });
+ expect(client.getOpenTabs()).toEqual([]);
+ });
+
+ test('an archive arriving after the server answered the resume still closes the tab', async () => {
+ const { client, sent, frame } = openedFromHistory();
+ const pending = client.resumeThread('t1');
+ await flush();
+ const reqId = sent.find((f) => f.op === 'resume')?.reqId as string;
+
+ frame({ op: 'info', info: { ...archivedInfo, archived: false, status: 'installing' } });
+ frame({
+ op: 'error',
+ code: 'resume-unsupported',
+ message: "the agent doesn't support resuming",
+ reqId,
+ threadId: 't1',
+ });
+ await expect(pending).rejects.toThrow(/resuming/);
+
+ frame({ op: 'info', info: { ...archivedInfo, archived: false, status: 'ready' } });
+ frame({ op: 'info', info: { ...archivedInfo, archived: true, status: 'exited' } });
+ expect(client.getOpenTabs()).toEqual([]);
+ });
+});
+
+describe('what the server says about resuming', () => {
+ const archivedInfo: ThreadInfo = {
+ threadId: 't1',
+ agent: { id: 'a', name: 'A', source: 'custom' },
+ title: 'A',
+ status: 'exited',
+ createdAt: 1,
+ lastActivityAt: 1,
+ lastSeq: -1,
+ archived: true,
+ };
+
+ function makeClient(): { client: AgentThreadClient; frame: (f: ThreadServerFrame) => void } {
+ const client = new AgentThreadClient();
+ const internals = client as unknown as {
+ ws: unknown;
+ handleFrame: (f: ThreadServerFrame) => void;
+ };
+ internals.ws = { readyState: 1, send: () => {} };
+ return { client, frame: (f) => internals.handleFrame.call(client, f) };
+ }
+
+ test('a thread the server calls unresumable reads back that way without anyone asking', () => {
+ const { client, frame } = makeClient();
+ frame({ op: 'threads', threads: [{ ...archivedInfo, resumable: false }] });
+ expect(client.getThread('t1')?.info.resumable).toBe(false);
+ });
+
+ test('a thread that opens a session reads back as resumable again', () => {
+ const { client, frame } = makeClient();
+ frame({ op: 'threads', threads: [{ ...archivedInfo, archived: false, resumable: false }] });
+ expect(client.getThread('t1')?.info.resumable).toBe(false);
+
+ frame({
+ op: 'info',
+ info: { ...archivedInfo, archived: false, status: 'ready', resumable: true },
+ });
+ expect(client.getThread('t1')?.info.resumable).toBe(true);
+ });
+});
diff --git a/packages/app/src/lib/acp/thread-client.ts b/packages/app/src/lib/acp/thread-client.ts
index cc5ccfd16..194a42876 100644
--- a/packages/app/src/lib/acp/thread-client.ts
+++ b/packages/app/src/lib/acp/thread-client.ts
@@ -1,6 +1,7 @@
import type {
AttachmentPart,
ThreadClientFrame,
+ ThreadErrorCode,
ThreadEvent,
ThreadInfo,
ThreadServerFrame,
@@ -48,13 +49,13 @@ const RECONNECT_MAX_MS = 15_000;
const CREATE_TIMEOUT_MS = 30_000;
const RESUME_TIMEOUT_MS = THREAD_REOPEN_OP_TIMEOUT_MS;
const RETRY_TIMEOUT_MS = THREAD_REOPEN_OP_TIMEOUT_MS;
-const AUTHENTICATE_TIMEOUT_MS = 180_000;
+const AUTHENTICATE_TIMEOUT_MS = 5 * 60 * 1000 + 30_000;
const CHANNEL_WAIT_MS = 8_000;
const QUEUE_EDIT_TIMEOUT_MS = 10_000;
export class ThreadResumeError extends Error {
- readonly code: string;
- constructor(code: string, message: string) {
+ readonly code: ThreadErrorCode | 'timeout';
+ constructor(code: ThreadErrorCode | 'timeout', message: string) {
super(message);
this.name = 'ThreadResumeError';
this.code = code;
@@ -82,6 +83,7 @@ export class AgentThreadClient {
private pendingQueueEdits = new Map<string, PendingQueueEdit>();
private openedArchived = new Set<string>();
private lastViewedByThread = new Map<string, number>();
+ private resumingThreads = new Set<string>();
private reqCounter = 0;
private status: ThreadConnectionStatus = 'idle';
private version = 0;
@@ -336,6 +338,7 @@ export class AgentThreadClient {
deleteThread(threadId: string): void {
this.send({ op: 'delete', threadId });
this.openedArchived.delete(threadId);
+ this.resumingThreads.delete(threadId);
this.modelBuilders.delete(threadId);
if (this.threads.delete(threadId)) this.bump();
}
@@ -356,6 +359,7 @@ export class AgentThreadClient {
}, RESUME_TIMEOUT_MS);
this.pendingResumes.set(reqId, { resolve, reject, timer });
});
+ this.resumingThreads.add(threadId);
this.send({
op: 'resume',
threadId,
@@ -474,6 +478,7 @@ export class AgentThreadClient {
pending.reject(new ThreadChannelUnavailableError());
}
this.pendingResumes.clear();
+ this.resumingThreads.clear();
for (const pending of this.pendingRetries.values()) {
clearTimeout(pending.timer);
pending.reject(new ThreadChannelUnavailableError());
@@ -554,6 +559,7 @@ export class AgentThreadClient {
this.threads.delete(threadId);
this.modelBuilders.delete(threadId);
this.openedArchived.delete(threadId);
+ this.resumingThreads.delete(threadId);
dropped = true;
}
}
@@ -561,6 +567,7 @@ export class AgentThreadClient {
return;
}
case 'resumed': {
+ this.resumingThreads.delete(frame.info.threadId);
const pending = this.pendingResumes.get(frame.reqId);
if (pending !== undefined) {
this.pendingResumes.delete(frame.reqId);
@@ -622,6 +629,9 @@ export class AgentThreadClient {
}
case 'error': {
if (frame.reqId !== undefined) {
+ if (frame.reqId.startsWith('resume-') && frame.threadId !== undefined) {
+ this.resumingThreads.delete(frame.threadId);
+ }
const pending = this.pendingCreates.get(frame.reqId);
if (pending !== undefined) {
this.pendingCreates.delete(frame.reqId);
@@ -713,7 +723,11 @@ export class AgentThreadClient {
if (!this.lastViewedByThread.has(info.threadId)) {
this.lastViewedByThread.set(info.threadId, info.lastActivityAt);
}
- } else if (info.archived === true && existing.info.archived !== true) {
+ } else if (
+ info.archived === true &&
+ existing.info.archived !== true &&
+ !this.resumingThreads.has(info.threadId)
+ ) {
this.openedArchived.delete(info.threadId);
this.modelBuilders.delete(info.threadId);
this.threads.set(info.threadId, {
diff --git a/packages/app/src/locales/ar/messages.json b/packages/app/src/locales/ar/messages.json
index 0275bc249..25e72f742 100644
--- a/packages/app/src/locales/ar/messages.json
+++ b/packages/app/src/locales/ar/messages.json
@@ -1111,6 +1111,7 @@
"ApeA0n": ["تم التراجع عن ", ["dropCount"], " تعديل في ", ["docName"]],
"Aq-O0x": ["الحالة"],
"AqnqMJ": ["تم ضبط مفتاح API"],
+ "Arr7LU": ["تعذّر تشغيل ", ["agentName"], ": ", ["0"]],
"AsqRE_": ["الموقع الافتراضي للمرفقات الجديدة"],
"AtBdnD": ["تعذّر حذف المهارة: ", ["error"]],
"AvqEDl": ["تعذّر إدراج بعض الملفات التي تم إفلاتها بأمان."],
@@ -2056,6 +2057,7 @@
]
],
"LKOLNn": ["لا توجد وكلاء ذكاء اصطناعي مثبَّتون"],
+ "LMVNT6": ["يحتاج ", ["agentName"], " إلى تسجيل دخولك."],
"LPAv9E": ["قبل ", ["days"], " يوم"],
"LPLWpO": ["محتوى اللوحة ليس مشهد Excalidraw صالحًا."],
"LQdLio": ["مخطط جديد"],
@@ -2330,6 +2332,7 @@
"O0Z2Xr": ["صادر"],
"O2UpM1": ["استعراض"],
"O3oNi5": ["البريد الإلكتروني"],
+ "O4rQ4h": ["كان ", ["agentName"], " بحاجة إلى تسجيل دخولك."],
"O6H89R": ["محلول"],
"O6yEPk": ["أنشئ مشروع OpenKnowledge جديدًا في المجلد الذي تختاره."],
"O7_W_a": ["الفتح بالذكاء الاصطناعي"],
@@ -2890,7 +2893,6 @@
]
],
"UIjjFa": ["اطلع على ما سيُضاف"],
- "UJEFJY": ["تعذّر تشغيل ", ["0"], ": ", ["1"]],
"UL-9ej": ["فتح OpenKnowledge المعاينة المباشرة"],
"UL8A9w": ["وسم"],
"UMT9C9": ["كيفية استخدام OpenKnowledge وأدوات MCP الخاصة به."],
@@ -3111,6 +3113,11 @@
" عنصرًا محددًا؟ ستُحذف المجلدات وكل الملفات بداخلها. لا يمكن التراجع عن هذا الإجراء."
],
"WMsoIm": ["هل سجّلت الدخول بالفعل؟"],
+ "WOY8rV": [
+ "كان ",
+ ["agentName"],
+ " بحاجة إلى تسجيل دخولك. استأنف هذه المحادثة لإعادة المحاولة."
+ ],
"WOfp4H": ["تعذّر تحديث فاصل المزامنة — ", ["detail"]],
"WOr-hW": ["توكنات"],
"WPwDin": ["فتح المجلد على القرص"],
@@ -3479,6 +3486,7 @@
"_9rYSZ": ["تم إصلاح تكامل MCP الخاص بـ ", ["names"]],
"_Bix3-": ["مواضع ظهور ", ["localizedFirstMessage"]],
"_DwR-n": ["جارٍ الإنشاء…"],
+ "_FqAty": ["استئناف المحادثة"],
"_G7A92": ["الحفاظ على index.md"],
"_GRWOJ": ["هل تريد تغيير مزوّد التضمينات؟"],
"_HgF9q": ["الترتيب حسب"],
@@ -3533,6 +3541,7 @@
"_tekeB": ["حدّث خصائص المجلد"],
"_tjopj": ["لصق نسخة"],
"_uxBz5": ["إضافة MCP ومهارة لـ ", ["rowLabel"]],
+ "_xWxLt": ["توقّف ", ["agentName"], " بسبب خطأ."],
"_yB-24": ["كل ما تحت أي مجلد ", ["0"], "/"],
"a-cKXz": ["تحديد كل المصدر"],
"a3LDKx": ["الأمان"],
@@ -4322,7 +4331,6 @@
"hFmYGU": ["ملفات السمات المرتبطة غير مدعومة"],
"hGmuTc": ["مستندات موسومة بـ #", ["tagDocsName"]],
"hHMv6l": ["حذف الكتلة"],
- "hHR0tt": ["محادثة جديدة مع ", ["0"]],
"hItdtk": ["استعراض مجلد"],
"hLKfZe": ["استخدم رمزًا بدلًا من ذلك"],
"hLod4_": ["تحويل إلى قالب"],
@@ -4419,6 +4427,7 @@
"iSLIjg": ["اتصال"],
"iSQTsg": ["قائمة مرتّبة"],
"iSWh95": ["هدف الصورة \"", ["shown"], "\" لا يشير إلى ملف موجود."],
+ "iSguIe": ["محادثة جديدة مع ", ["agentName"]],
"iSnkwB": ["فشل فتح المشروع المستنسخ."],
"iTylMl": ["القوالب"],
"iUwpZI": ["بلا مسافات — استخدم <0>-</0> بدلًا منها."],
@@ -4608,6 +4617,7 @@
"kNGLX6": ["جارٍ إعادة المحاولة…"],
"kNiQp6": ["مثبّتة"],
"kNqMMd": ["مجلد"],
+ "kNvMl7": ["افتح الطرفية لتسجيل الدخول"],
"kPOw9O": ["نسخ الرسالة"],
"kRTXGw": [
"وجّه البحث الدلالي إلى أي نقطة نهاية تضمينات متوافقة مع OpenAI — خادم ذاتي الاستضافة أو مزوّد آخر. مفتاح API أعلاه يخص أي نقطة نهاية تضبطها هنا."
@@ -4812,6 +4822,11 @@
"مزامنة Git متوقفة مؤقتًا لأن هناك عملية Git أو تعارضات لم تُحل تحتاج إلى معالجة. ما زالت تعديلاتك تُحفظ محليًا. أكمل العملية أو حل التعارضات في الطرفية، ثم أعد محاولة المزامنة."
],
"mPoOmg": ["ثبّت مهارة هنا أولاً"],
+ "mPwwPl": [
+ "لا يمكن لـ ",
+ ["agentName"],
+ " استئناف هذه المحادثة. يُحتفظ بنص المحادثة، لذا ابدأ محادثة جديدة للمتابعة."
+ ],
"mPy9lS": [
"نظّم مواصفاتي الحالية في فهرس مترابط مجمَّع حسب المجال، وأشِر إلى أي منها انحرف عن الكود الحالي."
],
@@ -4903,7 +4918,6 @@
["src"],
"</2>."
],
- "ms4r8V": [["0"], " لا يمكنه متابعة هذه المحادثة — النص محفوظ، لكن جلسة الوكيل لم تعد موجودة."],
"msOK6I": [
"قد تستمر المستودعات التي استنسختها بالفعل في المزامنة عبر بيانات اعتماد git المحفوظة، حتى بعد قطع اتصالك."
],
@@ -5581,6 +5595,7 @@
["trashNoun"],
". هل تريد الحذف نهائيًا بدلاً من ذلك؟"
],
+ "txGF-X": [["agentName"], " لا يعمل. ابدأ محادثة جديدة لتسجيل الدخول."],
"txUHO8": [["localizedMessage"], " في السطر ", ["displayLine"]],
"txmRmK": ["تغيير حجم لوحة المهارات"],
"tzGWeg": ["يجري التحضير لإلغاء تثبيت OpenKnowledge"],
diff --git a/packages/app/src/locales/ar/messages.po b/packages/app/src/locales/ar/messages.po
index 9fd9c1711..97d5acf01 100644
--- a/packages/app/src/locales/ar/messages.po
+++ b/packages/app/src/locales/ar/messages.po
@@ -302,11 +302,6 @@ msgstr "{0} يتصرف دون سؤال — لا يمكن لـ OpenKnowledge إض
msgid "{0} added, {1} removed"
msgstr "تمت إضافة {0}، وإزالة {1}"
-#. placeholder {0}: info.agent.name
-#: src/components/acp/ThreadView.tsx
-msgid "{0} can't continue this chat — the transcript is kept, but the agent session is gone."
-msgstr "{0} لا يمكنه متابعة هذه المحادثة — النص محفوظ، لكن جلسة الوكيل لم تعد موجودة."
-
#. placeholder {0}: info.agent.name
#: src/components/acp/ThreadView.tsx
msgid "{0} doesn't offer any settings to adjust"
@@ -549,6 +544,10 @@ msgstr "يقرأ {agent} إعدادات MCP لمساحة العمل التي ي
msgid "troubleshooting.openclaw.central-store-missing"
msgstr "مخزن المهارات المركزي لـ {agent} غير موجود بعد؛ شغّل {agent} مرة واحدة لينشئه، ثم أعد المحاولة."
+#: src/components/acp/ThreadView.tsx
+msgid "{agentName} can't pick this chat back up. The transcript is kept, so start a new chat to continue."
+msgstr "لا يمكن لـ {agentName} استئناف هذه المحادثة. يُحتفظ بنص المحادثة، لذا ابدأ محادثة جديدة للمتابعة."
+
#: src/components/acp/ThreadView.tsx
msgid "{agentName} couldn't start a conversation."
msgstr "تعذّر على {agentName} بدء محادثة."
@@ -562,10 +561,30 @@ msgstr "تعذّر تشغيل {agentName}."
msgid "{agentName} doesn't accept image attachments."
msgstr "{agentName} لا يقبل مرفقات الصور."
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} isn't running. Start a new chat to sign in."
+msgstr "{agentName} لا يعمل. ابدأ محادثة جديدة لتسجيل الدخول."
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needed you to sign in."
+msgstr "كان {agentName} بحاجة إلى تسجيل دخولك."
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needed you to sign in. Resume this chat to try again."
+msgstr "كان {agentName} بحاجة إلى تسجيل دخولك. استأنف هذه المحادثة لإعادة المحاولة."
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needs you to sign in."
+msgstr "يحتاج {agentName} إلى تسجيل دخولك."
+
#: src/components/acp/AgentNoticeAnnouncer.tsx
msgid "{agentName} reported: {headline}"
msgstr "{agentName} أبلغ: {headline}"
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} stopped with an error."
+msgstr "توقّف {agentName} بسبب خطأ."
+
#: src/components/SyncStatusBadge.tsx
msgid "{ahead} ahead"
msgstr "{ahead} أمام"
@@ -4312,11 +4331,10 @@ msgstr "تعذّر إرسال تعليقاتك — مساحة العمل غير
msgid "Couldn't send your prompt — please try again."
msgstr "تعذّر إرسال موجّهك — يرجى المحاولة مرة أخرى."
-#. placeholder {0}: info.agent.name
-#. placeholder {1}: errorText(err)
+#. placeholder {0}: errorText(err)
#: src/components/acp/ThreadView.tsx
-msgid "Couldn't start {0}: {1}"
-msgstr "تعذّر تشغيل {0}: {1}"
+msgid "Couldn't start {agentName}: {0}"
+msgstr "تعذّر تشغيل {agentName}: {0}"
#: src/components/SlidesToolbarControls.tsx
msgid "Couldn't start Slidev."
@@ -8677,10 +8695,10 @@ msgstr "سيُنشأ الفرع الجديد <0>{trimmed}</0> من الإيدا
msgid "New changes from your remote appear in your copy automatically."
msgstr "تظهر التغييرات الجديدة من مستودعك البعيد في نسختك تلقائيًا."
-#. placeholder {0}: info.agent.name
+#: src/components/acp/thread-auth-offer.ts
#: src/components/acp/ThreadView.tsx
-msgid "New chat with {0}"
-msgstr "محادثة جديدة مع {0}"
+msgid "New chat with {agentName}"
+msgstr "محادثة جديدة مع {agentName}"
#: src/components/AppMenubar.tsx
#: src/components/command-palette-commands.ts
@@ -9722,6 +9740,10 @@ msgstr "فتح المصدر: {mirrorSrc}"
msgid "Open terminal"
msgstr "فتح الطرفية"
+#: src/components/acp/thread-auth-offer.ts
+msgid "Open terminal to sign in"
+msgstr "افتح الطرفية لتسجيل الدخول"
+
#: src/components/ShareBranchSwitchDialog.tsx
msgid "Open that worktree instead"
msgstr "افتح شجرة العمل تلك بدلًا من ذلك"
@@ -11653,6 +11675,10 @@ msgstr "تمت الاستعادة إلى نسخة {0}"
msgid "Results capped — this workspace has more files than search can index. A missing file may be a cap artifact, not a typo."
msgstr "النتائج محدودة — تحتوي مساحة العمل هذه على ملفات أكثر مما يستطيع البحث فهرسته. قد يكون الملف المفقود أثرًا للحد، لا خطأً إملائيًا."
+#: src/components/acp/thread-auth-offer.ts
+msgid "Resume chat"
+msgstr "استئناف المحادثة"
+
#: src/components/acp/ThreadView.tsx
msgid "Resuming the chat"
msgstr "جارٍ استئناف المحادثة"
@@ -11661,6 +11687,7 @@ msgstr "جارٍ استئناف المحادثة"
msgid "Retrieving…"
msgstr "يجري الاسترجاع…"
+#: src/components/acp/thread-auth-offer.ts
#: src/components/acp/ThreadView.tsx
#: src/components/ActivityModeContent.tsx
#: src/components/BugReportHistory.tsx
@@ -11676,6 +11703,7 @@ msgstr "إعادة المحاولة"
msgid "Retry push"
msgstr "إعادة محاولة الدفع"
+#: src/components/acp/ThreadView.tsx
#: src/components/TrashFailureModal.tsx
msgid "Retrying"
msgstr "تجري إعادة المحاولة"
@@ -12672,6 +12700,7 @@ msgstr "يظهر فوق متن الكود. يُحفظ ويُستعاد كـ `tit
msgid "Sifting…"
msgstr "يجري الغربلة…"
+#: src/components/acp/thread-auth-offer.ts
#: src/components/settings/AccountSection.tsx
#: src/components/settings/SyncSection.tsx
#: src/components/ShareBranchSwitchDialog.tsx
@@ -12683,7 +12712,7 @@ msgstr "تسجيل الدخول"
msgid "Sign in to {agentName} first"
msgstr "سجّل الدخول إلى {agentName} أولًا"
-#: src/components/acp/ThreadView.tsx
+#: src/components/acp/thread-auth-offer.ts
msgid "Sign in to {agentName} to continue."
msgstr "سجّل الدخول إلى {agentName} للمتابعة."
diff --git a/packages/app/src/locales/bn/messages.json b/packages/app/src/locales/bn/messages.json
index bec53a2ae..c24a314a4 100644
--- a/packages/app/src/locales/bn/messages.json
+++ b/packages/app/src/locales/bn/messages.json
@@ -912,6 +912,7 @@
"ApeA0n": [["docName"], "-এর ", ["dropCount"], "টি সম্পাদনা পূর্বাবস্থায় ফেরানো হয়েছে"],
"Aq-O0x": ["অবস্থা"],
"AqnqMJ": ["API কী নির্ধারিত"],
+ "Arr7LU": [["agentName"], " শুরু করা যায়নি: ", ["0"]],
"AsqRE_": ["নতুন সংযুক্তির ডিফল্ট জায়গা"],
"AtBdnD": ["স্কিল মুছে ফেলা যায়নি: ", ["error"]],
"AvqEDl": ["ফেলে দেওয়া কিছু ফাইল নিরাপদে সন্নিবেশ করা যায়নি।"],
@@ -1731,6 +1732,7 @@
]
],
"LKOLNn": ["কোনো AI এজেন্ট ইনস্টল করা নেই"],
+ "LMVNT6": [["agentName"], "-এর জন্য আপনার সাইন ইন প্রয়োজন।"],
"LPAv9E": [["days"], " দিন আগে"],
"LPLWpO": ["বোর্ডের বিষয়বস্তু কোনো বৈধ Excalidraw দৃশ্য নয়।"],
"LQdLio": ["নতুন স্কিমা"],
@@ -1947,6 +1949,7 @@
"O0Z2Xr": ["বহির্গামী"],
"O2UpM1": ["ব্রাউজ করুন"],
"O3oNi5": ["ইমেইল"],
+ "O4rQ4h": [["agentName"], "-এর জন্য আপনার সাইন ইন প্রয়োজন ছিল।"],
"O6H89R": ["মীমাংসিত"],
"O6yEPk": ["আপনার পছন্দের ফোল্ডারে একটি নতুন OpenKnowledge প্রকল্প তৈরি করুন।"],
"O7_W_a": ["AI দিয়ে খুলুন"],
@@ -2437,7 +2440,6 @@
],
"UI0WPT": [["propertyCount", "plural", { "one": ["#", " প্রপার্টি"], "other": ["#", " প্রপার্টি"] }]],
"UIjjFa": ["কী যুক্ত হবে দেখুন"],
- "UJEFJY": [["0"], " শুরু করা যায়নি: ", ["1"]],
"UL-9ej": ["OpenKnowledge সরাসরি প্রিভিউ খুলেছে"],
"UL8A9w": ["ট্যাগ"],
"UMT9C9": ["OpenKnowledge এবং এর MCP টুল কীভাবে ব্যবহার করবেন।"],
@@ -2601,6 +2603,7 @@
"টি আইটেম মুছে ফেলতে চান? ফোল্ডার ও তার ভেতরের সব ফাইল মুছে যাবে। এই কাজ ফেরানো যাবে না।"
],
"WMsoIm": ["আগে থেকেই সাইন ইন করা আছে?"],
+ "WOY8rV": [["agentName"], "-এর জন্য আপনার সাইন ইন প্রয়োজন ছিল। আবার চেষ্টা করতে এই চ্যাট পুনরায় শুরু করুন।"],
"WOfp4H": ["সিঙ্ক ব্যবধান আপডেট করা যায়নি — ", ["detail"]],
"WOr-hW": ["টোকেন"],
"WPwDin": ["ফোল্ডারটি ডিস্কে খুলুন"],
@@ -2937,6 +2940,7 @@
"_9rYSZ": [["names"], "-এর MCP ইন্টিগ্রেশন মেরামত করা হয়েছে"],
"_Bix3-": [["localizedFirstMessage"], "-এর উপস্থিতিগুলি"],
"_DwR-n": ["তৈরি হচ্ছে…"],
+ "_FqAty": ["চ্যাট পুনরায় শুরু করুন"],
"_G7A92": ["index.md বজায় রাখুন"],
"_GRWOJ": ["এমবেডিং সরবরাহকারী বদলাবেন?"],
"_HgF9q": ["এই অনুযায়ী সাজান"],
@@ -2990,6 +2994,7 @@
"_tekeB": ["ফোল্ডার প্রপার্টি হালনাগাদ হয়েছে"],
"_tjopj": ["প্রতিলিপি পেস্ট করুন"],
"_uxBz5": [["rowLabel"], " এর জন্য MCP ও স্কিল যোগ করুন"],
+ "_xWxLt": [["agentName"], " একটি ত্রুটি নিয়ে থেমে গেছে।"],
"_yB-24": ["যেকোনো ", ["0"], "/ ফোল্ডারের নিচের সবকিছু"],
"a-cKXz": ["পুরো সোর্স নির্বাচন করুন"],
"a3LDKx": ["নিরাপত্তা"],
@@ -3625,7 +3630,6 @@
"hFmYGU": ["লিঙ্ক করা থিম ফাইল সমর্থিত নয়"],
"hGmuTc": ["#", ["tagDocsName"], " ট্যাগযুক্ত নথি"],
"hHMv6l": ["ব্লক মুছুন"],
- "hHR0tt": [["0"], "-এর সাথে নতুন চ্যাট"],
"hItdtk": ["ফোল্ডার ব্রাউজ করুন"],
"hLKfZe": ["বদলে একটি টোকেন ব্যবহার করুন"],
"hLod4_": ["টেমপ্লেটে রূপান্তর করুন"],
@@ -3731,6 +3735,7 @@
"iSLIjg": ["যুক্ত করুন"],
"iSQTsg": ["ক্রমিক তালিকা"],
"iSWh95": ["ছবির লক্ষ্য \"", ["shown"], "\" কোনো বিদ্যমান ফাইলকে নির্দেশ করে না।"],
+ "iSguIe": [["agentName"], "-এর সাথে নতুন চ্যাট"],
"iSnkwB": ["ক্লোন করা প্রকল্প খুলতে ব্যর্থ।"],
"iTylMl": ["টেমপ্লেট"],
"iUwpZI": ["ফাঁকা জায়গা নয় — বদলে <0>-</0> ব্যবহার করুন।"],
@@ -3914,6 +3919,7 @@
"kNGLX6": ["পুনরায় চেষ্টা করা হচ্ছে…"],
"kNiQp6": ["পিন করা"],
"kNqMMd": ["ফোল্ডার"],
+ "kNvMl7": ["সাইন ইন করতে টার্মিনাল খুলুন"],
"kPOw9O": ["বার্তা কপি করুন"],
"kRTXGw": [
"অর্থভিত্তিক অনুসন্ধানকে যেকোনো OpenAI-সঙ্গতিপূর্ণ এমবেডিং এন্ডপয়েন্টে লাগান — নিজে হোস্ট করা সার্ভার বা অন্য কোনো সরবরাহকারী। উপরের API কী-টি আপনি এখানে যে এন্ডপয়েন্ট নির্ধারণ করেন তার জন্যই।"
@@ -4094,6 +4100,10 @@
"Git-এর একটি কাজ বা অমীমাংসিত দ্বন্দ্বের সমাধান প্রয়োজন হওয়ায় Git সিঙ্ক বিরতি দেওয়া হয়েছে। আপনার সম্পাদনাগুলো এখনও স্থানীয়ভাবে সংরক্ষিত হচ্ছে। টার্মিনালে কাজটি শেষ করুন বা দ্বন্দ্বগুলো মেটান, তারপর আবার সিঙ্ক করার চেষ্টা করুন।"
],
"mPoOmg": ["প্রথমে এখানে একটি স্কিল ইনস্টল করুন"],
+ "mPwwPl": [
+ ["agentName"],
+ " এই চ্যাটটি আর চালিয়ে নিতে পারছে না। ট্রান্সক্রিপ্ট রাখা আছে, তাই চালিয়ে যেতে একটি নতুন চ্যাট শুরু করুন।"
+ ],
"mPy9lS": [
"আমার বিদ্যমান স্পেকগুলো এলাকা অনুযায়ী গোষ্ঠীবদ্ধ একটি যুক্ত সূচিতে সাজান, এবং যেগুলো বর্তমান কোডের সঙ্গে মিল হারিয়েছে সেগুলো চিহ্নিত করুন।"
],
@@ -4152,10 +4162,6 @@
["mirrorSourceTag"],
"</1> নেই।"
],
- "ms4r8V": [
- ["0"],
- " এই চ্যাট চালিয়ে যেতে পারছে না — ট্রান্সক্রিপ্ট সংরক্ষিত আছে, কিন্তু এজেন্ট সেশনটি আর নেই।"
- ],
"msOK6I": [
"আপনি যেসব রিপোজিটরি আগে ক্লোন করেছেন সেগুলো বিচ্ছিন্ন করার পরও git-এর নিজের সংরক্ষিত ক্রেডেনশিয়াল দিয়ে সিঙ্ক হতে থাকতে পারে।"
],
@@ -4747,6 +4753,7 @@
["trashNoun"],
"-এ পাঠানো যায়নি। এর বদলে কি স্থায়ীভাবে মুছে ফেলতে চান?"
],
+ "txGF-X": [["agentName"], " চলছে না। সাইন ইন করতে একটি নতুন চ্যাট শুরু করুন।"],
"txUHO8": [["displayLine"], " নম্বর লাইনে ", ["localizedMessage"]],
"txmRmK": ["স্কিল প্যানেলের আকার পরিবর্তন করুন"],
"tzGWeg": ["OpenKnowledge সরানোর প্রস্তুতি নেওয়া হচ্ছে"],
diff --git a/packages/app/src/locales/bn/messages.po b/packages/app/src/locales/bn/messages.po
index 2d3542316..a021fb328 100644
--- a/packages/app/src/locales/bn/messages.po
+++ b/packages/app/src/locales/bn/messages.po
@@ -302,11 +302,6 @@ msgstr "{0} জিজ্ঞাসা না করেই কাজ করে —
msgid "{0} added, {1} removed"
msgstr "{0} যোগ হয়েছে, {1} সরানো হয়েছে"
-#. placeholder {0}: info.agent.name
-#: src/components/acp/ThreadView.tsx
-msgid "{0} can't continue this chat — the transcript is kept, but the agent session is gone."
-msgstr "{0} এই চ্যাট চালিয়ে যেতে পারছে না — ট্রান্সক্রিপ্ট সংরক্ষিত আছে, কিন্তু এজেন্ট সেশনটি আর নেই।"
-
#. placeholder {0}: info.agent.name
#: src/components/acp/ThreadView.tsx
msgid "{0} doesn't offer any settings to adjust"
@@ -549,6 +544,10 @@ msgstr "{agent} সেই ওয়ার্কস্পেস MCP কনফি
msgid "troubleshooting.openclaw.central-store-missing"
msgstr "{agent}-এর কেন্দ্রীয় স্কিল স্টোর এখনো নেই; {agent} একবার চালু করুন যাতে এটি তৈরি হয়, তারপর আবার চেষ্টা করুন।"
+#: src/components/acp/ThreadView.tsx
+msgid "{agentName} can't pick this chat back up. The transcript is kept, so start a new chat to continue."
+msgstr "{agentName} এই চ্যাটটি আর চালিয়ে নিতে পারছে না। ট্রান্সক্রিপ্ট রাখা আছে, তাই চালিয়ে যেতে একটি নতুন চ্যাট শুরু করুন।"
+
#: src/components/acp/ThreadView.tsx
msgid "{agentName} couldn't start a conversation."
msgstr "{agentName} কথোপকথন শুরু করতে পারেনি।"
@@ -562,10 +561,30 @@ msgstr "{agentName} শুরু হতে পারেনি।"
msgid "{agentName} doesn't accept image attachments."
msgstr "{agentName} ছবি সংযুক্তি গ্রহণ করে না।"
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} isn't running. Start a new chat to sign in."
+msgstr "{agentName} চলছে না। সাইন ইন করতে একটি নতুন চ্যাট শুরু করুন।"
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needed you to sign in."
+msgstr "{agentName}-এর জন্য আপনার সাইন ইন প্রয়োজন ছিল।"
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needed you to sign in. Resume this chat to try again."
+msgstr "{agentName}-এর জন্য আপনার সাইন ইন প্রয়োজন ছিল। আবার চেষ্টা করতে এই চ্যাট পুনরায় শুরু করুন।"
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needs you to sign in."
+msgstr "{agentName}-এর জন্য আপনার সাইন ইন প্রয়োজন।"
+
#: src/components/acp/AgentNoticeAnnouncer.tsx
msgid "{agentName} reported: {headline}"
msgstr "{agentName} জানিয়েছে: {headline}"
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} stopped with an error."
+msgstr "{agentName} একটি ত্রুটি নিয়ে থেমে গেছে।"
+
#: src/components/SyncStatusBadge.tsx
msgid "{ahead} ahead"
msgstr "{ahead} এগিয়ে"
@@ -4308,11 +4327,10 @@ msgstr "আপনার মন্তব্য পাঠানো যায়ন
msgid "Couldn't send your prompt — please try again."
msgstr "আপনার প্রম্পট পাঠানো যায়নি — অনুগ্রহ করে আবার চেষ্টা করুন।"
-#. placeholder {0}: info.agent.name
-#. placeholder {1}: errorText(err)
+#. placeholder {0}: errorText(err)
#: src/components/acp/ThreadView.tsx
-msgid "Couldn't start {0}: {1}"
-msgstr "{0} শুরু করা যায়নি: {1}"
+msgid "Couldn't start {agentName}: {0}"
+msgstr "{agentName} শুরু করা যায়নি: {0}"
#: src/components/SlidesToolbarControls.tsx
msgid "Couldn't start Slidev."
@@ -8673,10 +8691,10 @@ msgstr "নতুন ব্রাঞ্চ <0>{trimmed}</0> বর্তমা
msgid "New changes from your remote appear in your copy automatically."
msgstr "আপনার রিমোটের নতুন পরিবর্তন আপনার অনুলিপিতে নিজে থেকেই চলে আসে।"
-#. placeholder {0}: info.agent.name
+#: src/components/acp/thread-auth-offer.ts
#: src/components/acp/ThreadView.tsx
-msgid "New chat with {0}"
-msgstr "{0}-এর সাথে নতুন চ্যাট"
+msgid "New chat with {agentName}"
+msgstr "{agentName}-এর সাথে নতুন চ্যাট"
#: src/components/AppMenubar.tsx
#: src/components/command-palette-commands.ts
@@ -9718,6 +9736,10 @@ msgstr "উৎস খুলুন: {mirrorSrc}"
msgid "Open terminal"
msgstr "টার্মিনাল খুলুন"
+#: src/components/acp/thread-auth-offer.ts
+msgid "Open terminal to sign in"
+msgstr "সাইন ইন করতে টার্মিনাল খুলুন"
+
#: src/components/ShareBranchSwitchDialog.tsx
msgid "Open that worktree instead"
msgstr "বদলে ওই ওয়ার্কট্রিটি খুলুন"
@@ -11649,6 +11671,10 @@ msgstr "{0}-এর সংস্করণে ফিরিয়ে আনা হ
msgid "Results capped — this workspace has more files than search can index. A missing file may be a cap artifact, not a typo."
msgstr "ফলাফল সীমিত — এই ওয়ার্কস্পেসে অনুসন্ধান যত সূচিভুক্ত করতে পারে তার চেয়ে বেশি ফাইল আছে। অনুপস্থিত কোনো ফাইল এই সীমার ফল হতে পারে, বানান ভুল নয়।"
+#: src/components/acp/thread-auth-offer.ts
+msgid "Resume chat"
+msgstr "চ্যাট পুনরায় শুরু করুন"
+
#: src/components/acp/ThreadView.tsx
msgid "Resuming the chat"
msgstr "চ্যাট পুনরায় শুরু হচ্ছে"
@@ -11657,6 +11683,7 @@ msgstr "চ্যাট পুনরায় শুরু হচ্ছে"
msgid "Retrieving…"
msgstr "আনা হচ্ছে…"
+#: src/components/acp/thread-auth-offer.ts
#: src/components/acp/ThreadView.tsx
#: src/components/ActivityModeContent.tsx
#: src/components/BugReportHistory.tsx
@@ -11672,6 +11699,7 @@ msgstr "আবার চেষ্টা করুন"
msgid "Retry push"
msgstr "আবার পাঠানোর চেষ্টা করুন"
+#: src/components/acp/ThreadView.tsx
#: src/components/TrashFailureModal.tsx
msgid "Retrying"
msgstr "আবার চেষ্টা করা হচ্ছে"
@@ -12668,6 +12696,7 @@ msgstr "কোডের মূল অংশের উপরে দেখা য
msgid "Sifting…"
msgstr "ছেঁকে দেখা হচ্ছে…"
+#: src/components/acp/thread-auth-offer.ts
#: src/components/settings/AccountSection.tsx
#: src/components/settings/SyncSection.tsx
#: src/components/ShareBranchSwitchDialog.tsx
@@ -12679,7 +12708,7 @@ msgstr "সাইন ইন করুন"
msgid "Sign in to {agentName} first"
msgstr "আগে {agentName}-এ সাইন ইন করুন"
-#: src/components/acp/ThreadView.tsx
+#: src/components/acp/thread-auth-offer.ts
msgid "Sign in to {agentName} to continue."
msgstr "চালিয়ে যেতে {agentName}-এ সাইন ইন করুন।"
diff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.json
index 01ee94aaf..089eee95a 100644
--- a/packages/app/src/locales/en/messages.json
+++ b/packages/app/src/locales/en/messages.json
@@ -934,6 +934,7 @@
"ApeA0n": ["Undid ", ["dropCount"], " edits on ", ["docName"]],
"Aq-O0x": ["status"],
"AqnqMJ": ["API key set"],
+ "Arr7LU": ["Couldn't start ", ["agentName"], ": ", ["0"]],
"AsqRE_": ["Default location for new attachments"],
"AtBdnD": ["Couldn't delete skill: ", ["error"]],
"AvqEDl": ["Some dropped files could not be inserted safely."],
@@ -1782,6 +1783,7 @@
]
],
"LKOLNn": ["No AI agents installed"],
+ "LMVNT6": [["agentName"], " needs you to sign in."],
"LPAv9E": [["days"], "d ago"],
"LPLWpO": ["The board's content is not a valid Excalidraw scene."],
"LQdLio": ["New schema"],
@@ -2013,6 +2015,7 @@
"O0Z2Xr": ["Outgoing"],
"O2UpM1": ["Browse"],
"O3oNi5": ["Email"],
+ "O4rQ4h": [["agentName"], " needed you to sign in."],
"O6H89R": ["Resolved"],
"O6yEPk": ["Create a new OpenKnowledge project in the folder of your choice."],
"O7_W_a": ["Open with AI"],
@@ -2505,7 +2508,6 @@
["propertyCount", "plural", { "one": ["#", " property"], "other": ["#", " properties"] }]
],
"UIjjFa": ["See what's added"],
- "UJEFJY": ["Couldn't start ", ["0"], ": ", ["1"]],
"UL-9ej": ["OpenKnowledge opened the live preview"],
"UL8A9w": ["Tag"],
"UMT9C9": ["How to use OpenKnowledge and its MCP tools."],
@@ -2671,6 +2673,7 @@
" selected items? Folders and all files inside them will be deleted. This action cannot be undone."
],
"WMsoIm": ["Already signed in?"],
+ "WOY8rV": [["agentName"], " needed you to sign in. Resume this chat to try again."],
"WOfp4H": ["Failed to update the sync interval — ", ["detail"]],
"WOr-hW": ["tokens"],
"WPwDin": ["Open folder on disk"],
@@ -3008,6 +3011,7 @@
"_9rYSZ": ["repaired MCP integration for ", ["names"]],
"_Bix3-": ["Occurrences of ", ["localizedFirstMessage"]],
"_DwR-n": ["Creating…"],
+ "_FqAty": ["Resume chat"],
"_G7A92": ["Maintain index.md"],
"_GRWOJ": ["Change the embeddings provider?"],
"_HgF9q": ["Sort by"],
@@ -3062,6 +3066,7 @@
"_tekeB": ["updated folder properties"],
"_tjopj": ["Paste duplicate"],
"_uxBz5": ["Add MCP & skill for ", ["rowLabel"]],
+ "_xWxLt": [["agentName"], " stopped with an error."],
"_yB-24": ["everything under any ", ["0"], "/ folder"],
"a-cKXz": ["Select all source"],
"a3LDKx": ["Security"],
@@ -3743,7 +3748,6 @@
"hFmYGU": ["Linked theme files aren’t supported"],
"hGmuTc": ["Docs tagged #", ["tagDocsName"]],
"hHMv6l": ["Delete block"],
- "hHR0tt": ["New chat with ", ["0"]],
"hItdtk": ["Browse folder"],
"hLKfZe": ["Use a token instead"],
"hLod4_": ["Convert to template"],
@@ -3846,6 +3850,7 @@
"iSLIjg": ["Connect"],
"iSQTsg": ["Ordered list"],
"iSWh95": ["Image target \"", ["shown"], "\" does not resolve to an existing file."],
+ "iSguIe": ["New chat with ", ["agentName"]],
"iSnkwB": ["Failed to open cloned project."],
"iTylMl": ["Templates"],
"iUwpZI": ["No spaces — use <0>-</0> instead."],
@@ -4034,6 +4039,7 @@
"kNGLX6": ["Retrying…"],
"kNiQp6": ["Pinned"],
"kNqMMd": ["Folder"],
+ "kNvMl7": ["Open terminal to sign in"],
"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."
@@ -4220,6 +4226,10 @@
"Git syncing is paused because a Git operation or unresolved conflicts need attention. Your edits still save locally. Finish the operation or resolve the conflicts in your terminal, then retry sync."
],
"mPoOmg": ["install a skill here first"],
+ "mPwwPl": [
+ ["agentName"],
+ " can't pick this chat back up. The transcript is kept, so start a new chat to continue."
+ ],
"mPy9lS": [
"Organize my existing specs into a linked index grouped by area, and flag any that have drifted out of sync with the current code."
],
@@ -4282,10 +4292,6 @@
["src"],
"</2>."
],
- "ms4r8V": [
- ["0"],
- " can't continue this chat — the transcript is kept, but the agent session is gone."
- ],
"msOK6I": [
"Repositories you've already cloned may keep syncing through git's own saved credentials, even after you disconnect."
],
@@ -4914,6 +4920,7 @@
["trashNoun"],
". Do you want to permanently delete instead?"
],
+ "txGF-X": [["agentName"], " isn't running. Start a new chat to sign in."],
"txUHO8": [["localizedMessage"], " at line ", ["displayLine"]],
"txmRmK": ["Resize skills panel"],
"tzGWeg": ["Preparing to uninstall OpenKnowledge"],
diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.po
index 12b35f3e8..545855dd1 100644
--- a/packages/app/src/locales/en/messages.po
+++ b/packages/app/src/locales/en/messages.po
@@ -302,11 +302,6 @@ msgstr "{0} acts without asking — OpenKnowledge can't add permission prompts f
msgid "{0} added, {1} removed"
msgstr "{0} added, {1} removed"
-#. placeholder {0}: info.agent.name
-#: src/components/acp/ThreadView.tsx
-msgid "{0} can't continue this chat — the transcript is kept, but the agent session is gone."
-msgstr "{0} can't continue this chat — the transcript is kept, but the agent session is gone."
-
#. placeholder {0}: info.agent.name
#: src/components/acp/ThreadView.tsx
msgid "{0} doesn't offer any settings to adjust"
@@ -549,6 +544,10 @@ msgstr "{agent} reads the workspace MCP config OpenKnowledge writes for {sourceA
msgid "troubleshooting.openclaw.central-store-missing"
msgstr "{agent}'s central skills store does not exist yet; start {agent} once so it creates it, then try again."
+#: src/components/acp/ThreadView.tsx
+msgid "{agentName} can't pick this chat back up. The transcript is kept, so start a new chat to continue."
+msgstr "{agentName} can't pick this chat back up. The transcript is kept, so start a new chat to continue."
+
#: src/components/acp/ThreadView.tsx
msgid "{agentName} couldn't start a conversation."
msgstr "{agentName} couldn't start a conversation."
@@ -562,10 +561,30 @@ msgstr "{agentName} couldn't start."
msgid "{agentName} doesn't accept image attachments."
msgstr "{agentName} doesn't accept image attachments."
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} isn't running. Start a new chat to sign in."
+msgstr "{agentName} isn't running. Start a new chat to sign in."
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needed you to sign in."
+msgstr "{agentName} needed you to sign in."
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needed you to sign in. Resume this chat to try again."
+msgstr "{agentName} needed you to sign in. Resume this chat to try again."
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needs you to sign in."
+msgstr "{agentName} needs you to sign in."
+
#: src/components/acp/AgentNoticeAnnouncer.tsx
msgid "{agentName} reported: {headline}"
msgstr "{agentName} reported: {headline}"
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} stopped with an error."
+msgstr "{agentName} stopped with an error."
+
#: src/components/SyncStatusBadge.tsx
msgid "{ahead} ahead"
msgstr "{ahead} ahead"
@@ -4312,11 +4331,10 @@ msgstr "Couldn't send your comments — the workspace isn't ready."
msgid "Couldn't send your prompt — please try again."
msgstr "Couldn't send your prompt — please try again."
-#. placeholder {0}: info.agent.name
-#. placeholder {1}: errorText(err)
+#. placeholder {0}: errorText(err)
#: src/components/acp/ThreadView.tsx
-msgid "Couldn't start {0}: {1}"
-msgstr "Couldn't start {0}: {1}"
+msgid "Couldn't start {agentName}: {0}"
+msgstr "Couldn't start {agentName}: {0}"
#: src/components/SlidesToolbarControls.tsx
msgid "Couldn't start Slidev."
@@ -8677,10 +8695,10 @@ msgstr "New branch <0>{trimmed}</0> will be created from the current commit, in
msgid "New changes from your remote appear in your copy automatically."
msgstr "New changes from your remote appear in your copy automatically."
-#. placeholder {0}: info.agent.name
+#: src/components/acp/thread-auth-offer.ts
#: src/components/acp/ThreadView.tsx
-msgid "New chat with {0}"
-msgstr "New chat with {0}"
+msgid "New chat with {agentName}"
+msgstr "New chat with {agentName}"
#: src/components/AppMenubar.tsx
#: src/components/command-palette-commands.ts
@@ -9722,6 +9740,10 @@ msgstr "Open source: {mirrorSrc}"
msgid "Open terminal"
msgstr "Open terminal"
+#: src/components/acp/thread-auth-offer.ts
+msgid "Open terminal to sign in"
+msgstr "Open terminal to sign in"
+
#: src/components/ShareBranchSwitchDialog.tsx
msgid "Open that worktree instead"
msgstr "Open that worktree instead"
@@ -11653,6 +11675,10 @@ msgstr "Restored to the version from {0}"
msgid "Results capped — this workspace has more files than search can index. A missing file may be a cap artifact, not a typo."
msgstr "Results capped — this workspace has more files than search can index. A missing file may be a cap artifact, not a typo."
+#: src/components/acp/thread-auth-offer.ts
+msgid "Resume chat"
+msgstr "Resume chat"
+
#: src/components/acp/ThreadView.tsx
msgid "Resuming the chat"
msgstr "Resuming the chat"
@@ -11661,6 +11687,7 @@ msgstr "Resuming the chat"
msgid "Retrieving…"
msgstr "Retrieving…"
+#: src/components/acp/thread-auth-offer.ts
#: src/components/acp/ThreadView.tsx
#: src/components/ActivityModeContent.tsx
#: src/components/BugReportHistory.tsx
@@ -11676,6 +11703,7 @@ msgstr "Retry"
msgid "Retry push"
msgstr "Retry push"
+#: src/components/acp/ThreadView.tsx
#: src/components/TrashFailureModal.tsx
msgid "Retrying"
msgstr "Retrying"
@@ -12672,6 +12700,7 @@ msgstr "Shows above the code body. Round-trips as `title=\"...\"` in markdown."
msgid "Sifting…"
msgstr "Sifting…"
+#: src/components/acp/thread-auth-offer.ts
#: src/components/settings/AccountSection.tsx
#: src/components/settings/SyncSection.tsx
#: src/components/ShareBranchSwitchDialog.tsx
@@ -12683,7 +12712,7 @@ msgstr "Sign in"
msgid "Sign in to {agentName} first"
msgstr "Sign in to {agentName} first"
-#: src/components/acp/ThreadView.tsx
+#: src/components/acp/thread-auth-offer.ts
msgid "Sign in to {agentName} to continue."
msgstr "Sign in to {agentName} to continue."
diff --git a/packages/app/src/locales/es/messages.json b/packages/app/src/locales/es/messages.json
index 03890157e..67478c913 100644
--- a/packages/app/src/locales/es/messages.json
+++ b/packages/app/src/locales/es/messages.json
@@ -1105,6 +1105,7 @@
"ApeA0n": ["Se deshicieron ", ["dropCount"], " ediciones en ", ["docName"]],
"Aq-O0x": ["estado"],
"AqnqMJ": ["Clave de API definida"],
+ "Arr7LU": ["No se pudo iniciar ", ["agentName"], ": ", ["0"]],
"AsqRE_": ["Ubicación por defecto de los adjuntos nuevos"],
"AtBdnD": ["No se pudo eliminar la habilidad: ", ["error"]],
"AvqEDl": ["Algunos archivos soltados no se pudieron insertar de forma segura."],
@@ -2078,6 +2079,7 @@
]
],
"LKOLNn": ["No hay agentes de IA instalados"],
+ "LMVNT6": [["agentName"], " necesita que inicies sesión."],
"LPAv9E": ["hace ", ["days"], " d"],
"LPLWpO": ["El contenido de la pizarra no es una escena de Excalidraw válida."],
"LQdLio": ["Esquema nuevo"],
@@ -2339,6 +2341,7 @@
"O0Z2Xr": ["Salientes"],
"O2UpM1": ["Examinar"],
"O3oNi5": ["Correo electrónico"],
+ "O4rQ4h": [["agentName"], " necesitaba que iniciaras sesión."],
"O6H89R": ["Resuelto"],
"O6yEPk": ["Crea un proyecto de OpenKnowledge en la carpeta que elijas."],
"O7_W_a": ["Abrir con IA"],
@@ -2900,7 +2903,6 @@
]
],
"UIjjFa": ["Ver qué se añade"],
- "UJEFJY": ["No se pudo iniciar ", ["0"], ": ", ["1"]],
"UL-9ej": ["OpenKnowledge abrió la vista previa en vivo"],
"UL8A9w": ["Etiqueta"],
"UMT9C9": ["Cómo usar OpenKnowledge y sus herramientas MCP."],
@@ -3122,6 +3124,10 @@
" elementos seleccionados? Se eliminarán las carpetas y todos los archivos que contienen. Esta acción no se puede deshacer."
],
"WMsoIm": ["¿Ya iniciaste sesión?"],
+ "WOY8rV": [
+ ["agentName"],
+ " necesitaba que iniciaras sesión. Reanuda este chat para volver a intentarlo."
+ ],
"WOfp4H": ["No se pudo actualizar el intervalo de sincronización — ", ["detail"]],
"WOr-hW": ["tokens"],
"WPwDin": ["Abrir la carpeta en el disco"],
@@ -3494,6 +3500,7 @@
"_9rYSZ": ["se reparó la integración MCP de ", ["names"]],
"_Bix3-": ["Apariciones de ", ["localizedFirstMessage"]],
"_DwR-n": ["Creando…"],
+ "_FqAty": ["Reanudar chat"],
"_G7A92": ["Mantener index.md"],
"_GRWOJ": ["¿Cambiar el proveedor de embeddings?"],
"_HgF9q": ["Ordenar por"],
@@ -3556,6 +3563,7 @@
"_tekeB": ["se actualizaron las propiedades de la carpeta"],
"_tjopj": ["Pegar duplicado"],
"_uxBz5": ["Añadir MCP y habilidad para ", ["rowLabel"]],
+ "_xWxLt": [["agentName"], " se detuvo con un error."],
"_yB-24": ["todo lo que hay en cualquier carpeta ", ["0"], "/"],
"a-cKXz": ["Seleccionar todo el código"],
"a3LDKx": ["Seguridad"],
@@ -4369,7 +4377,6 @@
"hFmYGU": ["No se admiten archivos de tema vinculados"],
"hGmuTc": ["Documentos etiquetados con #", ["tagDocsName"]],
"hHMv6l": ["Eliminar el bloque"],
- "hHR0tt": ["Nuevo chat con ", ["0"]],
"hItdtk": ["Elegir carpeta"],
"hLKfZe": ["Usar un token en su lugar"],
"hLod4_": ["Convertir en plantilla"],
@@ -4482,6 +4489,7 @@
"iSLIjg": ["Conectar"],
"iSQTsg": ["Lista numerada"],
"iSWh95": ["El destino de la imagen «", ["shown"], "» no corresponde a un archivo existente."],
+ "iSguIe": ["Nuevo chat con ", ["agentName"]],
"iSnkwB": ["No se pudo abrir el proyecto clonado."],
"iTylMl": ["Plantillas"],
"iUwpZI": ["Sin espacios: usa <0>-</0> en su lugar."],
@@ -4680,6 +4688,7 @@
"kNGLX6": ["Reintentando…"],
"kNiQp6": ["Fijados"],
"kNqMMd": ["Carpeta"],
+ "kNvMl7": ["Abrir terminal para iniciar sesión"],
"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í."
@@ -4894,6 +4903,10 @@
"La sincronización de Git está en pausa porque una operación de Git o conflictos sin resolver requieren atención. Tus cambios se siguen guardando localmente. Finaliza la operación o resuelve los conflictos en tu terminal y vuelve a intentar la sincronización."
],
"mPoOmg": ["instala primero una habilidad aquí"],
+ "mPwwPl": [
+ ["agentName"],
+ " no puede retomar este chat. La transcripción se conserva, así que empieza un chat nuevo para continuar."
+ ],
"mPy9lS": [
"Organiza mis especificaciones existentes en un índice enlazado y agrupado por área, y señala las que se hayan desincronizado del código actual."
],
@@ -4969,10 +4982,6 @@
["src"],
"</2>."
],
- "ms4r8V": [
- ["0"],
- " no puede continuar este chat — la transcripción se conserva, pero la sesión del agente ya no existe."
- ],
"msOK6I": [
"Los repositorios que ya has clonado pueden seguir sincronizándose con las credenciales guardadas del propio git, incluso después de desconectarte."
],
@@ -5658,6 +5667,7 @@
["trashNoun"],
". ¿Quieres eliminarlo permanentemente?"
],
+ "txGF-X": [["agentName"], " no está en ejecución. Empieza un chat nuevo para iniciar sesión."],
"txUHO8": [["localizedMessage"], " en la línea ", ["displayLine"]],
"txmRmK": ["Redimensionar el panel de Habilidades"],
"tzGWeg": ["Preparando la desinstalación de OpenKnowledge"],
diff --git a/packages/app/src/locales/es/messages.po b/packages/app/src/locales/es/messages.po
index afa20249f..25ed012a9 100644
--- a/packages/app/src/locales/es/messages.po
+++ b/packages/app/src/locales/es/messages.po
@@ -302,11 +302,6 @@ msgstr "{0} actúa sin preguntar — OpenKnowledge no puede añadirle solicitude
msgid "{0} added, {1} removed"
msgstr "{0} añadidos, {1} eliminados"
-#. placeholder {0}: info.agent.name
-#: src/components/acp/ThreadView.tsx
-msgid "{0} can't continue this chat — the transcript is kept, but the agent session is gone."
-msgstr "{0} no puede continuar este chat — la transcripción se conserva, pero la sesión del agente ya no existe."
-
#. placeholder {0}: info.agent.name
#: src/components/acp/ThreadView.tsx
msgid "{0} doesn't offer any settings to adjust"
@@ -549,6 +544,10 @@ msgstr "{agent} lee la configuración MCP del espacio de trabajo que OpenKnowled
msgid "troubleshooting.openclaw.central-store-missing"
msgstr "El almacén central de habilidades de {agent} aún no existe; inicia {agent} una vez para que lo cree y vuelve a intentarlo."
+#: src/components/acp/ThreadView.tsx
+msgid "{agentName} can't pick this chat back up. The transcript is kept, so start a new chat to continue."
+msgstr "{agentName} no puede retomar este chat. La transcripción se conserva, así que empieza un chat nuevo para continuar."
+
#: src/components/acp/ThreadView.tsx
msgid "{agentName} couldn't start a conversation."
msgstr "{agentName} no pudo iniciar una conversación."
@@ -562,10 +561,30 @@ msgstr "{agentName} no pudo iniciarse."
msgid "{agentName} doesn't accept image attachments."
msgstr "{agentName} no acepta adjuntos de imagen."
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} isn't running. Start a new chat to sign in."
+msgstr "{agentName} no está en ejecución. Empieza un chat nuevo para iniciar sesión."
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needed you to sign in."
+msgstr "{agentName} necesitaba que iniciaras sesión."
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needed you to sign in. Resume this chat to try again."
+msgstr "{agentName} necesitaba que iniciaras sesión. Reanuda este chat para volver a intentarlo."
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needs you to sign in."
+msgstr "{agentName} necesita que inicies sesión."
+
#: src/components/acp/AgentNoticeAnnouncer.tsx
msgid "{agentName} reported: {headline}"
msgstr "{agentName} informa: {headline}"
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} stopped with an error."
+msgstr "{agentName} se detuvo con un error."
+
#: src/components/SyncStatusBadge.tsx
msgid "{ahead} ahead"
msgstr "{ahead} por delante"
@@ -4312,11 +4331,10 @@ msgstr "No se pudieron enviar tus comentarios: el espacio de trabajo no está li
msgid "Couldn't send your prompt — please try again."
msgstr "No se pudo enviar tu prompt; inténtalo de nuevo."
-#. placeholder {0}: info.agent.name
-#. placeholder {1}: errorText(err)
+#. placeholder {0}: errorText(err)
#: src/components/acp/ThreadView.tsx
-msgid "Couldn't start {0}: {1}"
-msgstr "No se pudo iniciar {0}: {1}"
+msgid "Couldn't start {agentName}: {0}"
+msgstr "No se pudo iniciar {agentName}: {0}"
#: src/components/SlidesToolbarControls.tsx
msgid "Couldn't start Slidev."
@@ -8677,10 +8695,10 @@ msgstr "La rama nueva <0>{trimmed}</0> se creará a partir del commit actual, en
msgid "New changes from your remote appear in your copy automatically."
msgstr "Los cambios nuevos de tu remoto aparecen en tu copia automáticamente."
-#. placeholder {0}: info.agent.name
+#: src/components/acp/thread-auth-offer.ts
#: src/components/acp/ThreadView.tsx
-msgid "New chat with {0}"
-msgstr "Nuevo chat con {0}"
+msgid "New chat with {agentName}"
+msgstr "Nuevo chat con {agentName}"
#: src/components/AppMenubar.tsx
#: src/components/command-palette-commands.ts
@@ -9722,6 +9740,10 @@ msgstr "Abrir el origen: {mirrorSrc}"
msgid "Open terminal"
msgstr "Abrir la terminal"
+#: src/components/acp/thread-auth-offer.ts
+msgid "Open terminal to sign in"
+msgstr "Abrir terminal para iniciar sesión"
+
#: src/components/ShareBranchSwitchDialog.tsx
msgid "Open that worktree instead"
msgstr "Abrir ese worktree en su lugar"
@@ -11653,6 +11675,10 @@ msgstr "Se restauró la versión de {0}"
msgid "Results capped — this workspace has more files than search can index. A missing file may be a cap artifact, not a typo."
msgstr "Resultados limitados: este espacio de trabajo tiene más archivos de los que la búsqueda puede indexar. Un archivo que falte puede deberse al límite, no a una errata."
+#: src/components/acp/thread-auth-offer.ts
+msgid "Resume chat"
+msgstr "Reanudar chat"
+
#: src/components/acp/ThreadView.tsx
msgid "Resuming the chat"
msgstr "Reanudando el chat"
@@ -11661,6 +11687,7 @@ msgstr "Reanudando el chat"
msgid "Retrieving…"
msgstr "Recuperando…"
+#: src/components/acp/thread-auth-offer.ts
#: src/components/acp/ThreadView.tsx
#: src/components/ActivityModeContent.tsx
#: src/components/BugReportHistory.tsx
@@ -11676,6 +11703,7 @@ msgstr "Reintentar"
msgid "Retry push"
msgstr "Reintentar el push"
+#: src/components/acp/ThreadView.tsx
#: src/components/TrashFailureModal.tsx
msgid "Retrying"
msgstr "Reintentando"
@@ -12672,6 +12700,7 @@ msgstr "Se muestra encima del cuerpo del código. En markdown va y viene como `t
msgid "Sifting…"
msgstr "Cribando…"
+#: src/components/acp/thread-auth-offer.ts
#: src/components/settings/AccountSection.tsx
#: src/components/settings/SyncSection.tsx
#: src/components/ShareBranchSwitchDialog.tsx
@@ -12683,7 +12712,7 @@ msgstr "Iniciar sesión"
msgid "Sign in to {agentName} first"
msgstr "Inicia sesión primero en {agentName}"
-#: src/components/acp/ThreadView.tsx
+#: src/components/acp/thread-auth-offer.ts
msgid "Sign in to {agentName} to continue."
msgstr "Inicia sesión en {agentName} para continuar."
diff --git a/packages/app/src/locales/fr/messages.json b/packages/app/src/locales/fr/messages.json
index eafe810c7..8701b16f4 100644
--- a/packages/app/src/locales/fr/messages.json
+++ b/packages/app/src/locales/fr/messages.json
@@ -1132,6 +1132,7 @@
"ApeA0n": [["dropCount"], " modifications annulées sur ", ["docName"]],
"Aq-O0x": ["statut"],
"AqnqMJ": ["Clé API définie"],
+ "Arr7LU": ["Impossible de démarrer ", ["agentName"], " : ", ["0"]],
"AsqRE_": ["Emplacement par défaut des nouvelles pièces jointes"],
"AtBdnD": ["Impossible de supprimer la compétence : ", ["error"]],
"AvqEDl": ["Certains fichiers déposés n’ont pas pu être insérés en toute sécurité."],
@@ -2123,6 +2124,7 @@
]
],
"LKOLNn": ["Aucun agent IA installé"],
+ "LMVNT6": [["agentName"], " a besoin que vous vous connectiez."],
"LPAv9E": ["il y a ", ["days"], " j"],
"LPLWpO": ["Le contenu du tableau n'est pas une scène Excalidraw valide."],
"LQdLio": ["Nouveau schéma"],
@@ -2380,6 +2382,7 @@
"O0Z2Xr": ["Sortants"],
"O2UpM1": ["Parcourir"],
"O3oNi5": ["E-mail"],
+ "O4rQ4h": [["agentName"], " avait besoin que vous vous connectiez."],
"O6H89R": ["Résolu"],
"O6yEPk": ["Créez un nouveau projet OpenKnowledge dans le dossier de votre choix."],
"O7_W_a": ["Ouvrir avec l'IA"],
@@ -2942,7 +2945,6 @@
]
],
"UIjjFa": ["Voir ce qui est ajouté"],
- "UJEFJY": ["Impossible de démarrer ", ["0"], " : ", ["1"]],
"UL-9ej": ["OpenKnowledge a ouvert l'aperçu en direct"],
"UL8A9w": ["Étiquette"],
"UMT9C9": ["Comment utiliser OpenKnowledge et ses outils MCP."],
@@ -3170,6 +3172,10 @@
" éléments sélectionnés ? Les dossiers et tous les fichiers qu'ils contiennent seront supprimés. Cette action est irréversible."
],
"WMsoIm": ["Déjà connecté ?"],
+ "WOY8rV": [
+ ["agentName"],
+ " avait besoin que vous vous connectiez. Reprenez ce chat pour réessayer."
+ ],
"WOfp4H": ["Échec de la mise à jour de l'intervalle de synchronisation — ", ["detail"]],
"WOr-hW": ["tokens"],
"WPwDin": ["Ouvrir le dossier sur le disque"],
@@ -3539,6 +3545,7 @@
"_9rYSZ": ["intégration MCP de ", ["names"], " réparée"],
"_Bix3-": ["Occurrences de ", ["localizedFirstMessage"]],
"_DwR-n": ["Création…"],
+ "_FqAty": ["Reprendre le chat"],
"_G7A92": ["Maintenir index.md"],
"_GRWOJ": ["Changer de fournisseur d'embeddings ?"],
"_HgF9q": ["Trier par"],
@@ -3601,6 +3608,7 @@
"_tekeB": ["propriétés du dossier mises à jour"],
"_tjopj": ["Coller le duplicata"],
"_uxBz5": ["Ajouter MCP et la compétence pour ", ["rowLabel"]],
+ "_xWxLt": [["agentName"], " s'est arrêté sur une erreur."],
"_yB-24": ["tout ce qui se trouve sous n'importe quel dossier ", ["0"], "/"],
"a-cKXz": ["Sélectionner toute la source"],
"a3LDKx": ["Sécurité"],
@@ -4402,7 +4410,6 @@
"hFmYGU": ["Les fichiers de thème liés ne sont pas pris en charge"],
"hGmuTc": ["Documents étiquetés #", ["tagDocsName"]],
"hHMv6l": ["Supprimer le bloc"],
- "hHR0tt": ["Nouveau chat avec ", ["0"]],
"hItdtk": ["Parcourir le dossier"],
"hLKfZe": ["Utiliser plutôt un jeton"],
"hLod4_": ["Convertir en modèle"],
@@ -4517,6 +4524,7 @@
"iSLIjg": ["Connecter"],
"iSQTsg": ["Liste numérotée"],
"iSWh95": ["La cible de l’image « ", ["shown"], " » ne correspond à aucun fichier existant."],
+ "iSguIe": ["Nouveau chat avec ", ["agentName"]],
"iSnkwB": ["Échec de l'ouverture du projet cloné."],
"iTylMl": ["Modèles"],
"iUwpZI": ["Pas d'espaces — utilisez <0>-</0> à la place."],
@@ -4721,6 +4729,7 @@
"kNGLX6": ["Nouvelle tentative…"],
"kNiQp6": ["Épinglés"],
"kNqMMd": ["Dossier"],
+ "kNvMl7": ["Ouvrir le terminal pour se connecter"],
"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."
@@ -4937,6 +4946,10 @@
"La synchronisation Git est en pause, car une opération Git ou des conflits non résolus nécessitent votre attention. Vos modifications continuent d’être enregistrées localement. Terminez l’opération ou résolvez les conflits dans votre terminal, puis réessayez la synchronisation."
],
"mPoOmg": ["installez d'abord une compétence ici"],
+ "mPwwPl": [
+ ["agentName"],
+ " ne peut pas reprendre ce chat. La transcription est conservée, alors démarrez un nouveau chat pour continuer."
+ ],
"mPy9lS": [
"Organise mes spécifications existantes en un index lié, groupé par domaine, et signale celles qui ont divergé du code actuel."
],
@@ -5012,10 +5025,6 @@
["src"],
"</2>."
],
- "ms4r8V": [
- ["0"],
- " ne peut pas poursuivre ce chat — la transcription est conservée, mais la session de l'agent n'existe plus."
- ],
"msOK6I": [
"Les dépôts que vous avez déjà clonés peuvent continuer à se synchroniser via les identifiants enregistrés par git, même après votre déconnexion."
],
@@ -5722,6 +5731,10 @@
["trashNoun"],
". Voulez-vous le supprimer définitivement ?"
],
+ "txGF-X": [
+ ["agentName"],
+ " n'est pas en cours d'exécution. Démarrez un nouveau chat pour vous connecter."
+ ],
"txUHO8": [["localizedMessage"], " à la ligne ", ["displayLine"]],
"txmRmK": ["Redimensionner le panneau Compétences"],
"tzGWeg": ["Préparation de la désinstallation d'OpenKnowledge"],
diff --git a/packages/app/src/locales/fr/messages.po b/packages/app/src/locales/fr/messages.po
index 27e64b9e9..9609f06f5 100644
--- a/packages/app/src/locales/fr/messages.po
+++ b/packages/app/src/locales/fr/messages.po
@@ -302,11 +302,6 @@ msgstr "{0} agit sans demander — OpenKnowledge ne peut pas lui ajouter de dema
msgid "{0} added, {1} removed"
msgstr "{0} ajouté(s), {1} retiré(s)"
-#. placeholder {0}: info.agent.name
-#: src/components/acp/ThreadView.tsx
-msgid "{0} can't continue this chat — the transcript is kept, but the agent session is gone."
-msgstr "{0} ne peut pas poursuivre ce chat — la transcription est conservée, mais la session de l'agent n'existe plus."
-
#. placeholder {0}: info.agent.name
#: src/components/acp/ThreadView.tsx
msgid "{0} doesn't offer any settings to adjust"
@@ -549,6 +544,10 @@ msgstr "{agent} lit la configuration MCP de l'espace de travail qu'OpenKnowledge
msgid "troubleshooting.openclaw.central-store-missing"
msgstr "Le magasin central de compétences de {agent} n'existe pas encore ; lancez {agent} une fois pour qu'il le crée, puis réessayez."
+#: src/components/acp/ThreadView.tsx
+msgid "{agentName} can't pick this chat back up. The transcript is kept, so start a new chat to continue."
+msgstr "{agentName} ne peut pas reprendre ce chat. La transcription est conservée, alors démarrez un nouveau chat pour continuer."
+
#: src/components/acp/ThreadView.tsx
msgid "{agentName} couldn't start a conversation."
msgstr "{agentName} n’a pas pu démarrer de conversation."
@@ -562,10 +561,30 @@ msgstr "{agentName} n’a pas pu démarrer."
msgid "{agentName} doesn't accept image attachments."
msgstr "{agentName} n'accepte pas les pièces jointes d'image."
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} isn't running. Start a new chat to sign in."
+msgstr "{agentName} n'est pas en cours d'exécution. Démarrez un nouveau chat pour vous connecter."
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needed you to sign in."
+msgstr "{agentName} avait besoin que vous vous connectiez."
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needed you to sign in. Resume this chat to try again."
+msgstr "{agentName} avait besoin que vous vous connectiez. Reprenez ce chat pour réessayer."
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needs you to sign in."
+msgstr "{agentName} a besoin que vous vous connectiez."
+
#: src/components/acp/AgentNoticeAnnouncer.tsx
msgid "{agentName} reported: {headline}"
msgstr "{agentName} signale : {headline}"
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} stopped with an error."
+msgstr "{agentName} s'est arrêté sur une erreur."
+
#: src/components/SyncStatusBadge.tsx
msgid "{ahead} ahead"
msgstr "{ahead} en avance"
@@ -4312,11 +4331,10 @@ msgstr "Impossible d'envoyer vos commentaires — l'espace de travail n'est pas
msgid "Couldn't send your prompt — please try again."
msgstr "Impossible d'envoyer votre invite — veuillez réessayer."
-#. placeholder {0}: info.agent.name
-#. placeholder {1}: errorText(err)
+#. placeholder {0}: errorText(err)
#: src/components/acp/ThreadView.tsx
-msgid "Couldn't start {0}: {1}"
-msgstr "Impossible de démarrer {0} : {1}"
+msgid "Couldn't start {agentName}: {0}"
+msgstr "Impossible de démarrer {agentName} : {0}"
#: src/components/SlidesToolbarControls.tsx
msgid "Couldn't start Slidev."
@@ -8677,10 +8695,10 @@ msgstr "La nouvelle branche <0>{trimmed}</0> sera créée à partir du commit ac
msgid "New changes from your remote appear in your copy automatically."
msgstr "Les nouvelles modifications de votre dépôt distant apparaissent automatiquement dans votre copie."
-#. placeholder {0}: info.agent.name
+#: src/components/acp/thread-auth-offer.ts
#: src/components/acp/ThreadView.tsx
-msgid "New chat with {0}"
-msgstr "Nouveau chat avec {0}"
+msgid "New chat with {agentName}"
+msgstr "Nouveau chat avec {agentName}"
#: src/components/AppMenubar.tsx
#: src/components/command-palette-commands.ts
@@ -9722,6 +9740,10 @@ msgstr "Source : {mirrorSrc}"
msgid "Open terminal"
msgstr "Ouvrir le terminal"
+#: src/components/acp/thread-auth-offer.ts
+msgid "Open terminal to sign in"
+msgstr "Ouvrir le terminal pour se connecter"
+
#: src/components/ShareBranchSwitchDialog.tsx
msgid "Open that worktree instead"
msgstr "Ouvrir plutôt ce worktree"
@@ -11653,6 +11675,10 @@ msgstr "Restauré à la version du {0}"
msgid "Results capped — this workspace has more files than search can index. A missing file may be a cap artifact, not a typo."
msgstr "Résultats plafonnés — cet espace de travail contient plus de fichiers que la recherche ne peut en indexer. Un fichier absent peut venir de ce plafond, pas d'une faute de frappe."
+#: src/components/acp/thread-auth-offer.ts
+msgid "Resume chat"
+msgstr "Reprendre le chat"
+
#: src/components/acp/ThreadView.tsx
msgid "Resuming the chat"
msgstr "Reprise du chat"
@@ -11661,6 +11687,7 @@ msgstr "Reprise du chat"
msgid "Retrieving…"
msgstr "Récupération…"
+#: src/components/acp/thread-auth-offer.ts
#: src/components/acp/ThreadView.tsx
#: src/components/ActivityModeContent.tsx
#: src/components/BugReportHistory.tsx
@@ -11676,6 +11703,7 @@ msgstr "Réessayer"
msgid "Retry push"
msgstr "Réessayer le push"
+#: src/components/acp/ThreadView.tsx
#: src/components/TrashFailureModal.tsx
msgid "Retrying"
msgstr "Nouvelle tentative"
@@ -12672,6 +12700,7 @@ msgstr "S'affiche au-dessus du corps du code. Conservé sous la forme `title=\".
msgid "Sifting…"
msgstr "Tamisage…"
+#: src/components/acp/thread-auth-offer.ts
#: src/components/settings/AccountSection.tsx
#: src/components/settings/SyncSection.tsx
#: src/components/ShareBranchSwitchDialog.tsx
@@ -12683,7 +12712,7 @@ msgstr "Se connecter"
msgid "Sign in to {agentName} first"
msgstr "Connectez-vous d'abord à {agentName}"
-#: src/components/acp/ThreadView.tsx
+#: src/components/acp/thread-auth-offer.ts
msgid "Sign in to {agentName} to continue."
msgstr "Connectez-vous à {agentName} pour continuer."
diff --git a/packages/app/src/locales/hi/messages.json b/packages/app/src/locales/hi/messages.json
index b994b0a3f..31405baff 100644
--- a/packages/app/src/locales/hi/messages.json
+++ b/packages/app/src/locales/hi/messages.json
@@ -916,6 +916,7 @@
"ApeA0n": [["docName"], " पर ", ["dropCount"], " संपादन पूर्ववत किए गए"],
"Aq-O0x": ["स्थिति"],
"AqnqMJ": ["API कुंजी सेट है"],
+ "Arr7LU": [["agentName"], " शुरू नहीं हो सका: ", ["0"]],
"AsqRE_": ["नए संलग्नकों का डिफ़ॉल्ट स्थान"],
"AtBdnD": ["स्किल नहीं हटाई जा सकी: ", ["error"]],
"AvqEDl": ["छोड़ी गई कुछ फ़ाइलों को सुरक्षित रूप से सम्मिलित नहीं किया जा सका।"],
@@ -1735,6 +1736,7 @@
]
],
"LKOLNn": ["कोई AI एजेंट इंस्टॉल नहीं है"],
+ "LMVNT6": [["agentName"], " को आपके साइन इन करने की ज़रूरत है।"],
"LPAv9E": [["days"], " दिन पहले"],
"LPLWpO": ["बोर्ड की सामग्री एक मान्य Excalidraw दृश्य नहीं है।"],
"LQdLio": ["नई स्कीमा"],
@@ -1956,6 +1958,7 @@
"O0Z2Xr": ["बाहर जाने वाले"],
"O2UpM1": ["ब्राउज़ करें"],
"O3oNi5": ["ईमेल"],
+ "O4rQ4h": [["agentName"], " को आपके साइन इन करने की ज़रूरत थी।"],
"O6H89R": ["सुलझ गया"],
"O6yEPk": ["अपनी पसंद के फ़ोल्डर में एक नया OpenKnowledge प्रोजेक्ट बनाएँ।"],
"O7_W_a": ["AI से खोलें"],
@@ -2434,7 +2437,6 @@
["propertyCount", "plural", { "one": ["#", " प्रॉपर्टी"], "other": ["#", " प्रॉपर्टी"] }]
],
"UIjjFa": ["देखें क्या जुड़ेगा"],
- "UJEFJY": [["0"], " शुरू नहीं हो सका: ", ["1"]],
"UL-9ej": ["OpenKnowledge ने लाइव पूर्वावलोकन खोला"],
"UL8A9w": ["टैग"],
"UMT9C9": ["OpenKnowledge और इसके MCP टूल का उपयोग कैसे करें।"],
@@ -2594,6 +2596,10 @@
" चयनित आइटम हटाना चाहते हैं? फ़ोल्डर और उनके भीतर की सभी फ़ाइलें हट जाएँगी। यह क्रिया वापस नहीं ली जा सकती।"
],
"WMsoIm": ["पहले से साइन इन हैं?"],
+ "WOY8rV": [
+ ["agentName"],
+ " को आपके साइन इन करने की ज़रूरत थी। दोबारा कोशिश करने के लिए यह चैट फिर से शुरू करें।"
+ ],
"WOfp4H": ["सिंक अंतराल अपडेट नहीं हो सका — ", ["detail"]],
"WOr-hW": ["टोकन"],
"WPwDin": ["फ़ोल्डर डिस्क पर खोलें"],
@@ -2928,6 +2934,7 @@
"_9rYSZ": [["names"], " का MCP इंटीग्रेशन ठीक किया गया"],
"_Bix3-": [["localizedFirstMessage"], " की घटनाएँ"],
"_DwR-n": ["बनाया जा रहा है…"],
+ "_FqAty": ["चैट फिर से शुरू करें"],
"_G7A92": ["index.md बनाए रखें"],
"_GRWOJ": ["एम्बेडिंग प्रदाता बदलें?"],
"_HgF9q": ["इसके अनुसार क्रम"],
@@ -2981,6 +2988,7 @@
"_tekeB": ["फ़ोल्डर प्रॉपर्टी अपडेट की गईं"],
"_tjopj": ["नकल चिपकाएँ"],
"_uxBz5": [["rowLabel"], " के लिए MCP और स्किल जोड़ें"],
+ "_xWxLt": [["agentName"], " एक त्रुटि के साथ रुक गया।"],
"_yB-24": ["किसी भी ", ["0"], "/ फ़ोल्डर के अंतर्गत सब कुछ"],
"a-cKXz": ["पूरा स्रोत चुनें"],
"a3LDKx": ["सुरक्षा"],
@@ -3616,7 +3624,6 @@
"hFmYGU": ["लिंक की गई थीम फ़ाइलें समर्थित नहीं हैं"],
"hGmuTc": ["#", ["tagDocsName"], " टैग वाले दस्तावेज़"],
"hHMv6l": ["ब्लॉक हटाएँ"],
- "hHR0tt": [["0"], " के साथ नई चैट"],
"hItdtk": ["फ़ोल्डर ब्राउज़ करें"],
"hLKfZe": ["इसके बजाय कोई टोकन उपयोग करें"],
"hLod4_": ["टेम्पलेट में बदलें"],
@@ -3722,6 +3729,7 @@
"iSLIjg": ["जोड़ें"],
"iSQTsg": ["क्रमित सूची"],
"iSWh95": ["चित्र लक्ष्य \"", ["shown"], "\" किसी मौजूदा फ़ाइल पर हल नहीं होता।"],
+ "iSguIe": [["agentName"], " के साथ नई चैट"],
"iSnkwB": ["क्लोन किया गया प्रोजेक्ट खोलने में विफल।"],
"iTylMl": ["टेम्पलेट"],
"iUwpZI": ["कोई रिक्त स्थान नहीं — इसके बजाय <0>-</0> का उपयोग करें।"],
@@ -3907,6 +3915,7 @@
"kNGLX6": ["पुनः प्रयास किया जा रहा है…"],
"kNiQp6": ["पिन किए गए"],
"kNqMMd": ["फ़ोल्डर"],
+ "kNvMl7": ["साइन इन करने के लिए टर्मिनल खोलें"],
"kPOw9O": ["संदेश कॉपी करें"],
"kRTXGw": [
"अर्थ-आधारित खोज को किसी भी OpenAI-संगत एम्बेडिंग एंडपॉइंट पर लगाएँ — कोई स्वयं-होस्ट किया सर्वर या कोई दूसरा प्रदाता। ऊपर दी API कुंजी उसी एंडपॉइंट के लिए है जो आप यहाँ सेट करते हैं।"
@@ -4084,6 +4093,10 @@
"Git की किसी प्रक्रिया या अनसुलझे टकरावों पर ध्यान देने की ज़रूरत है, इसलिए Git सिंक रुका हुआ है। आपके बदलाव अब भी स्थानीय रूप से सहेजे जाते हैं। अपने टर्मिनल में प्रक्रिया पूरी करें या टकराव सुलझाएँ, फिर सिंक दोबारा आज़माएँ।"
],
"mPoOmg": ["पहले यहाँ एक स्किल इंस्टॉल करें"],
+ "mPwwPl": [
+ ["agentName"],
+ " इस चैट को आगे नहीं बढ़ा सकता। ट्रांसक्रिप्ट सुरक्षित है, इसलिए जारी रखने के लिए नई चैट शुरू करें।"
+ ],
"mPy9lS": [
"मेरी मौजूदा स्पेक को क्षेत्र के अनुसार समूहित एक जुड़ी हुई अनुक्रमणिका में व्यवस्थित करें, और जो मौजूदा कोड से तालमेल खो चुकी हों उन्हें चिह्नित करें।"
],
@@ -4142,10 +4155,6 @@
["mirrorSourceTag"],
"</1> मौजूद नहीं है।"
],
- "ms4r8V": [
- ["0"],
- " इस चैट को जारी नहीं रख सकता — ट्रांसक्रिप्ट सुरक्षित है, लेकिन एजेंट सत्र समाप्त हो गया है।"
- ],
"msOK6I": [
"जिन रिपॉज़िटरी को आप पहले ही क्लोन कर चुके हैं, वे कनेक्शन तोड़ने के बाद भी git के अपने सहेजे क्रेडेंशियल से सिंक होती रह सकती हैं।"
],
@@ -4734,6 +4743,7 @@
["trashNoun"],
" में नहीं ले जाया जा सका। क्या आप इसके बजाय स्थायी रूप से हटाना चाहते हैं?"
],
+ "txGF-X": [["agentName"], " नहीं चल रहा है। साइन इन करने के लिए नई चैट शुरू करें।"],
"txUHO8": [["displayLine"], " पंक्ति पर ", ["localizedMessage"]],
"txmRmK": ["स्किल पैनल का आकार बदलें"],
"tzGWeg": ["OpenKnowledge हटाने की तैयारी"],
diff --git a/packages/app/src/locales/hi/messages.po b/packages/app/src/locales/hi/messages.po
index 5f3df1642..9abfb2104 100644
--- a/packages/app/src/locales/hi/messages.po
+++ b/packages/app/src/locales/hi/messages.po
@@ -302,11 +302,6 @@ msgstr "{0} बिना पूछे काम करता है — OpenKnow
msgid "{0} added, {1} removed"
msgstr "{0} जोड़े गए, {1} हटाए गए"
-#. placeholder {0}: info.agent.name
-#: src/components/acp/ThreadView.tsx
-msgid "{0} can't continue this chat — the transcript is kept, but the agent session is gone."
-msgstr "{0} इस चैट को जारी नहीं रख सकता — ट्रांसक्रिप्ट सुरक्षित है, लेकिन एजेंट सत्र समाप्त हो गया है।"
-
#. placeholder {0}: info.agent.name
#: src/components/acp/ThreadView.tsx
msgid "{0} doesn't offer any settings to adjust"
@@ -549,6 +544,10 @@ msgstr "{agent} वही वर्कस्पेस MCP कॉन्फ़ि
msgid "troubleshooting.openclaw.central-store-missing"
msgstr "{agent} का केंद्रीय स्किल स्टोर अभी मौजूद नहीं है; {agent} को एक बार शुरू करें ताकि वह इसे बना ले, फिर दोबारा कोशिश करें।"
+#: src/components/acp/ThreadView.tsx
+msgid "{agentName} can't pick this chat back up. The transcript is kept, so start a new chat to continue."
+msgstr "{agentName} इस चैट को आगे नहीं बढ़ा सकता। ट्रांसक्रिप्ट सुरक्षित है, इसलिए जारी रखने के लिए नई चैट शुरू करें।"
+
#: src/components/acp/ThreadView.tsx
msgid "{agentName} couldn't start a conversation."
msgstr "{agentName} बातचीत शुरू नहीं कर सका।"
@@ -562,10 +561,30 @@ msgstr "{agentName} शुरू नहीं हो सका।"
msgid "{agentName} doesn't accept image attachments."
msgstr "{agentName} छवि अनुलग्नक स्वीकार नहीं करता।"
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} isn't running. Start a new chat to sign in."
+msgstr "{agentName} नहीं चल रहा है। साइन इन करने के लिए नई चैट शुरू करें।"
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needed you to sign in."
+msgstr "{agentName} को आपके साइन इन करने की ज़रूरत थी।"
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needed you to sign in. Resume this chat to try again."
+msgstr "{agentName} को आपके साइन इन करने की ज़रूरत थी। दोबारा कोशिश करने के लिए यह चैट फिर से शुरू करें।"
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needs you to sign in."
+msgstr "{agentName} को आपके साइन इन करने की ज़रूरत है।"
+
#: src/components/acp/AgentNoticeAnnouncer.tsx
msgid "{agentName} reported: {headline}"
msgstr "{agentName} ने बताया: {headline}"
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} stopped with an error."
+msgstr "{agentName} एक त्रुटि के साथ रुक गया।"
+
#: src/components/SyncStatusBadge.tsx
msgid "{ahead} ahead"
msgstr "{ahead} आगे"
@@ -4308,11 +4327,10 @@ msgstr "आपकी टिप्पणियाँ नहीं भेजी
msgid "Couldn't send your prompt — please try again."
msgstr "आपका प्रॉम्प्ट नहीं भेजा जा सका — कृपया फिर कोशिश करें।"
-#. placeholder {0}: info.agent.name
-#. placeholder {1}: errorText(err)
+#. placeholder {0}: errorText(err)
#: src/components/acp/ThreadView.tsx
-msgid "Couldn't start {0}: {1}"
-msgstr "{0} शुरू नहीं हो सका: {1}"
+msgid "Couldn't start {agentName}: {0}"
+msgstr "{agentName} शुरू नहीं हो सका: {0}"
#: src/components/SlidesToolbarControls.tsx
msgid "Couldn't start Slidev."
@@ -8673,10 +8691,10 @@ msgstr "नई ब्रांच <0>{trimmed}</0> मौजूदा कमि
msgid "New changes from your remote appear in your copy automatically."
msgstr "आपके रिमोट के नए बदलाव आपकी प्रति में अपने आप आ जाते हैं।"
-#. placeholder {0}: info.agent.name
+#: src/components/acp/thread-auth-offer.ts
#: src/components/acp/ThreadView.tsx
-msgid "New chat with {0}"
-msgstr "{0} के साथ नई चैट"
+msgid "New chat with {agentName}"
+msgstr "{agentName} के साथ नई चैट"
#: src/components/AppMenubar.tsx
#: src/components/command-palette-commands.ts
@@ -9718,6 +9736,10 @@ msgstr "स्रोत खोलें: {mirrorSrc}"
msgid "Open terminal"
msgstr "टर्मिनल खोलें"
+#: src/components/acp/thread-auth-offer.ts
+msgid "Open terminal to sign in"
+msgstr "साइन इन करने के लिए टर्मिनल खोलें"
+
#: src/components/ShareBranchSwitchDialog.tsx
msgid "Open that worktree instead"
msgstr "इसके बजाय वह वर्कट्री खोलें"
@@ -11649,6 +11671,10 @@ msgstr "{0} वाले संस्करण पर बहाल किया
msgid "Results capped — this workspace has more files than search can index. A missing file may be a cap artifact, not a typo."
msgstr "परिणाम सीमित — इस कार्यक्षेत्र में खोज के अनुक्रमण से ज़्यादा फ़ाइलें हैं। कोई अनुपस्थित फ़ाइल इस सीमा का नतीजा हो सकती है, वर्तनी की ग़लती नहीं।"
+#: src/components/acp/thread-auth-offer.ts
+msgid "Resume chat"
+msgstr "चैट फिर से शुरू करें"
+
#: src/components/acp/ThreadView.tsx
msgid "Resuming the chat"
msgstr "चैट फिर से शुरू हो रही है"
@@ -11657,6 +11683,7 @@ msgstr "चैट फिर से शुरू हो रही है"
msgid "Retrieving…"
msgstr "लाया जा रहा है…"
+#: src/components/acp/thread-auth-offer.ts
#: src/components/acp/ThreadView.tsx
#: src/components/ActivityModeContent.tsx
#: src/components/BugReportHistory.tsx
@@ -11672,6 +11699,7 @@ msgstr "फिर कोशिश करें"
msgid "Retry push"
msgstr "भेजना फिर आज़माएँ"
+#: src/components/acp/ThreadView.tsx
#: src/components/TrashFailureModal.tsx
msgid "Retrying"
msgstr "फिर कोशिश की जा रही है"
@@ -12668,6 +12696,7 @@ msgstr "कोड के मुख्य भाग के ऊपर दिखत
msgid "Sifting…"
msgstr "छाना जा रहा है…"
+#: src/components/acp/thread-auth-offer.ts
#: src/components/settings/AccountSection.tsx
#: src/components/settings/SyncSection.tsx
#: src/components/ShareBranchSwitchDialog.tsx
@@ -12679,7 +12708,7 @@ msgstr "साइन इन करें"
msgid "Sign in to {agentName} first"
msgstr "पहले {agentName} में साइन इन करें"
-#: src/components/acp/ThreadView.tsx
+#: src/components/acp/thread-auth-offer.ts
msgid "Sign in to {agentName} to continue."
msgstr "जारी रखने के लिए {agentName} में साइन इन करें।"
diff --git a/packages/app/src/locales/id/messages.json b/packages/app/src/locales/id/messages.json
index 4cce664b0..f675fb71e 100644
--- a/packages/app/src/locales/id/messages.json
+++ b/packages/app/src/locales/id/messages.json
@@ -946,6 +946,7 @@
"ApeA0n": [["dropCount"], " suntingan pada ", ["docName"], " dibatalkan"],
"Aq-O0x": ["status"],
"AqnqMJ": ["Kunci API disetel"],
+ "Arr7LU": ["Tidak dapat menjalankan ", ["agentName"], ": ", ["0"]],
"AsqRE_": ["Lokasi bawaan untuk lampiran baru"],
"AtBdnD": ["Keterampilan tidak bisa dihapus: ", ["error"]],
"AvqEDl": ["Beberapa file yang dilepas tidak dapat disisipkan dengan aman."],
@@ -1813,6 +1814,7 @@
]
],
"LKOLNn": ["Tidak ada agen AI yang terpasang"],
+ "LMVNT6": [["agentName"], " memerlukan Anda untuk masuk."],
"LPAv9E": [["days"], " hr lalu"],
"LPLWpO": ["Konten papan bukan scene Excalidraw yang valid."],
"LQdLio": ["Skema baru"],
@@ -2026,6 +2028,7 @@
"O0Z2Xr": ["Keluar"],
"O2UpM1": ["Telusuri"],
"O3oNi5": ["Surel"],
+ "O4rQ4h": [["agentName"], " tadi memerlukan Anda untuk masuk."],
"O6H89R": ["Selesai"],
"O6yEPk": ["Membuat proyek OpenKnowledge baru di folder pilihan Anda."],
"O7_W_a": ["Buka dengan AI"],
@@ -2516,7 +2519,6 @@
],
"UI0WPT": [["propertyCount", "plural", { "other": ["#", " properti"] }]],
"UIjjFa": ["Lihat yang ditambahkan"],
- "UJEFJY": ["Tidak dapat menjalankan ", ["0"], ": ", ["1"]],
"UL-9ej": ["OpenKnowledge membuka pratinjau langsung"],
"UL8A9w": ["Tag"],
"UMT9C9": ["Cara menggunakan OpenKnowledge dan alat MCP-nya."],
@@ -2696,6 +2698,10 @@
" item terpilih? Folder dan semua berkas di dalamnya akan dihapus. Tindakan ini tidak bisa dibatalkan."
],
"WMsoIm": ["Sudah masuk?"],
+ "WOY8rV": [
+ ["agentName"],
+ " tadi memerlukan Anda untuk masuk. Lanjutkan obrolan ini untuk mencoba lagi."
+ ],
"WOfp4H": ["Gagal memperbarui interval sinkronisasi — ", ["detail"]],
"WOr-hW": ["token"],
"WPwDin": ["Buka folder di disk"],
@@ -3024,6 +3030,7 @@
"_9rYSZ": ["integrasi MCP ", ["names"], " diperbaiki"],
"_Bix3-": ["Kemunculan ", ["localizedFirstMessage"]],
"_DwR-n": ["Membuat…"],
+ "_FqAty": ["Lanjutkan obrolan"],
"_G7A92": ["Pertahankan index.md"],
"_GRWOJ": ["Ganti penyedia embedding?"],
"_HgF9q": ["Urutkan menurut"],
@@ -3078,6 +3085,7 @@
"_tekeB": ["properti folder diperbarui"],
"_tjopj": ["Tempel gandaan"],
"_uxBz5": ["Tambahkan MCP & keterampilan untuk ", ["rowLabel"]],
+ "_xWxLt": [["agentName"], " berhenti dengan galat."],
"_yB-24": ["semua yang ada di folder ", ["0"], "/ mana pun"],
"a-cKXz": ["Pilih seluruh sumber"],
"a3LDKx": ["Keamanan"],
@@ -3759,7 +3767,6 @@
"hFmYGU": ["Berkas tema tertaut tidak didukung"],
"hGmuTc": ["Dokumen bertag #", ["tagDocsName"]],
"hHMv6l": ["Hapus blok"],
- "hHR0tt": ["Obrolan baru dengan ", ["0"]],
"hItdtk": ["Pilih folder"],
"hLKfZe": ["Pakai token saja"],
"hLod4_": ["Ubah menjadi templat"],
@@ -3873,6 +3880,7 @@
"iSLIjg": ["Hubungkan"],
"iSQTsg": ["Daftar berurut"],
"iSWh95": ["Target gambar \"", ["shown"], "\" tidak merujuk ke file yang ada."],
+ "iSguIe": ["Obrolan baru dengan ", ["agentName"]],
"iSnkwB": ["Gagal membuka proyek hasil kloning."],
"iTylMl": ["Templat"],
"iUwpZI": ["Tanpa spasi — gunakan <0>-</0> saja."],
@@ -4065,6 +4073,7 @@
"kNGLX6": ["Mencoba lagi…"],
"kNiQp6": ["Disematkan"],
"kNqMMd": ["Folder"],
+ "kNvMl7": ["Buka terminal untuk masuk"],
"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."
@@ -4248,6 +4257,10 @@
"Sinkronisasi Git dijeda karena ada operasi Git atau konflik yang belum terselesaikan yang perlu ditangani. Perubahan Anda tetap disimpan secara lokal. Selesaikan operasi atau konflik tersebut di terminal, lalu coba sinkronkan lagi."
],
"mPoOmg": ["instal dulu sebuah skill di sini"],
+ "mPwwPl": [
+ ["agentName"],
+ " tidak dapat melanjutkan obrolan ini. Transkrip tetap tersimpan, jadi mulai obrolan baru untuk melanjutkan."
+ ],
"mPy9lS": [
"Tata spesifikasi saya yang sudah ada menjadi indeks tertaut yang dikelompokkan per bidang, dan tandai mana saja yang sudah tidak selaras dengan kode saat ini."
],
@@ -4307,10 +4320,6 @@
["src"],
"</2>."
],
- "ms4r8V": [
- ["0"],
- " tidak dapat melanjutkan obrolan ini — transkrip tetap tersimpan, tetapi sesi agen sudah hilang."
- ],
"msOK6I": [
"Repositori yang sudah Anda kloning mungkin tetap tersinkron lewat kredensial yang disimpan git sendiri, bahkan setelah Anda memutus koneksi."
],
@@ -4932,6 +4941,7 @@
["trashNoun"],
". Apakah Anda ingin menghapus permanen saja?"
],
+ "txGF-X": [["agentName"], " tidak berjalan. Mulai obrolan baru untuk masuk."],
"txUHO8": [["localizedMessage"], " pada baris ", ["displayLine"]],
"txmRmK": ["Ubah ukuran panel Keterampilan"],
"tzGWeg": ["Bersiap mencopot OpenKnowledge"],
diff --git a/packages/app/src/locales/id/messages.po b/packages/app/src/locales/id/messages.po
index 671caf258..df0e9a43c 100644
--- a/packages/app/src/locales/id/messages.po
+++ b/packages/app/src/locales/id/messages.po
@@ -302,11 +302,6 @@ msgstr "{0} bertindak tanpa bertanya — OpenKnowledge tidak dapat menambahkan p
msgid "{0} added, {1} removed"
msgstr "{0} ditambahkan, {1} dihapus"
-#. placeholder {0}: info.agent.name
-#: src/components/acp/ThreadView.tsx
-msgid "{0} can't continue this chat — the transcript is kept, but the agent session is gone."
-msgstr "{0} tidak dapat melanjutkan obrolan ini — transkrip tetap tersimpan, tetapi sesi agen sudah hilang."
-
#. placeholder {0}: info.agent.name
#: src/components/acp/ThreadView.tsx
msgid "{0} doesn't offer any settings to adjust"
@@ -549,6 +544,10 @@ msgstr "{agent} membaca konfigurasi MCP ruang kerja yang ditulis OpenKnowledge u
msgid "troubleshooting.openclaw.central-store-missing"
msgstr "Penyimpanan keterampilan pusat {agent} belum ada; jalankan {agent} sekali agar ia membuatnya, lalu coba lagi."
+#: src/components/acp/ThreadView.tsx
+msgid "{agentName} can't pick this chat back up. The transcript is kept, so start a new chat to continue."
+msgstr "{agentName} tidak dapat melanjutkan obrolan ini. Transkrip tetap tersimpan, jadi mulai obrolan baru untuk melanjutkan."
+
#: src/components/acp/ThreadView.tsx
msgid "{agentName} couldn't start a conversation."
msgstr "{agentName} tidak dapat memulai percakapan."
@@ -562,10 +561,30 @@ msgstr "{agentName} tidak dapat dijalankan."
msgid "{agentName} doesn't accept image attachments."
msgstr "{agentName} tidak menerima lampiran gambar."
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} isn't running. Start a new chat to sign in."
+msgstr "{agentName} tidak berjalan. Mulai obrolan baru untuk masuk."
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needed you to sign in."
+msgstr "{agentName} tadi memerlukan Anda untuk masuk."
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needed you to sign in. Resume this chat to try again."
+msgstr "{agentName} tadi memerlukan Anda untuk masuk. Lanjutkan obrolan ini untuk mencoba lagi."
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needs you to sign in."
+msgstr "{agentName} memerlukan Anda untuk masuk."
+
#: src/components/acp/AgentNoticeAnnouncer.tsx
msgid "{agentName} reported: {headline}"
msgstr "{agentName} melaporkan: {headline}"
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} stopped with an error."
+msgstr "{agentName} berhenti dengan galat."
+
#: src/components/SyncStatusBadge.tsx
msgid "{ahead} ahead"
msgstr "{ahead} di depan"
@@ -4308,11 +4327,10 @@ msgstr "Komentar Anda tidak bisa dikirim — ruang kerjanya belum siap."
msgid "Couldn't send your prompt — please try again."
msgstr "Prompt Anda tidak bisa dikirim — silakan coba lagi."
-#. placeholder {0}: info.agent.name
-#. placeholder {1}: errorText(err)
+#. placeholder {0}: errorText(err)
#: src/components/acp/ThreadView.tsx
-msgid "Couldn't start {0}: {1}"
-msgstr "Tidak dapat menjalankan {0}: {1}"
+msgid "Couldn't start {agentName}: {0}"
+msgstr "Tidak dapat menjalankan {agentName}: {0}"
#: src/components/SlidesToolbarControls.tsx
msgid "Couldn't start Slidev."
@@ -8673,10 +8691,10 @@ msgstr "Cabang baru <0>{trimmed}</0> akan dibuat dari commit saat ini, di worktr
msgid "New changes from your remote appear in your copy automatically."
msgstr "Perubahan baru dari remote Anda muncul di salinan Anda secara otomatis."
-#. placeholder {0}: info.agent.name
+#: src/components/acp/thread-auth-offer.ts
#: src/components/acp/ThreadView.tsx
-msgid "New chat with {0}"
-msgstr "Obrolan baru dengan {0}"
+msgid "New chat with {agentName}"
+msgstr "Obrolan baru dengan {agentName}"
#: src/components/AppMenubar.tsx
#: src/components/command-palette-commands.ts
@@ -9718,6 +9736,10 @@ msgstr "Buka sumber: {mirrorSrc}"
msgid "Open terminal"
msgstr "Buka terminal"
+#: src/components/acp/thread-auth-offer.ts
+msgid "Open terminal to sign in"
+msgstr "Buka terminal untuk masuk"
+
#: src/components/ShareBranchSwitchDialog.tsx
msgid "Open that worktree instead"
msgstr "Buka worktree itu saja"
@@ -11649,6 +11671,10 @@ msgstr "Dipulihkan ke versi dari {0}"
msgid "Results capped — this workspace has more files than search can index. A missing file may be a cap artifact, not a typo."
msgstr "Hasil dibatasi — ruang kerja ini punya lebih banyak berkas daripada yang bisa diindeks pencarian. Berkas yang hilang bisa jadi efek batasan itu, bukan salah ketik."
+#: src/components/acp/thread-auth-offer.ts
+msgid "Resume chat"
+msgstr "Lanjutkan obrolan"
+
#: src/components/acp/ThreadView.tsx
msgid "Resuming the chat"
msgstr "Melanjutkan obrolan"
@@ -11657,6 +11683,7 @@ msgstr "Melanjutkan obrolan"
msgid "Retrieving…"
msgstr "Mengambil…"
+#: src/components/acp/thread-auth-offer.ts
#: src/components/acp/ThreadView.tsx
#: src/components/ActivityModeContent.tsx
#: src/components/BugReportHistory.tsx
@@ -11672,6 +11699,7 @@ msgstr "Coba lagi"
msgid "Retry push"
msgstr "Coba push lagi"
+#: src/components/acp/ThreadView.tsx
#: src/components/TrashFailureModal.tsx
msgid "Retrying"
msgstr "Mencoba lagi"
@@ -12668,6 +12696,7 @@ msgstr "Muncul di atas badan kode. Bolak-balik sebagai `title=\"...\"` di markdo
msgid "Sifting…"
msgstr "Menyaring…"
+#: src/components/acp/thread-auth-offer.ts
#: src/components/settings/AccountSection.tsx
#: src/components/settings/SyncSection.tsx
#: src/components/ShareBranchSwitchDialog.tsx
@@ -12679,7 +12708,7 @@ msgstr "Masuk"
msgid "Sign in to {agentName} first"
msgstr "Masuk dulu ke {agentName}"
-#: src/components/acp/ThreadView.tsx
+#: src/components/acp/thread-auth-offer.ts
msgid "Sign in to {agentName} to continue."
msgstr "Masuk ke {agentName} untuk melanjutkan."
diff --git a/packages/app/src/locales/ko/messages.json b/packages/app/src/locales/ko/messages.json
index 0d36002fa..fa0b91126 100644
--- a/packages/app/src/locales/ko/messages.json
+++ b/packages/app/src/locales/ko/messages.json
@@ -911,6 +911,7 @@
"ApeA0n": ["편집 ", ["dropCount"], "개를 ", ["docName"], "에서 실행 취소했습니다"],
"Aq-O0x": ["상태"],
"AqnqMJ": ["API 키 설정됨"],
+ "Arr7LU": [["agentName"], " 시작 실패: ", ["0"]],
"AsqRE_": ["새 첨부 파일의 기본 위치"],
"AtBdnD": ["스킬 삭제 실패: ", ["error"]],
"AvqEDl": ["놓은 파일 중 일부를 안전하게 삽입할 수 없습니다."],
@@ -1731,6 +1732,7 @@
["laterEdits", "plural", { "other": ["이 파일의 최신 편집 ", "#", "개를 제거합니다."] }]
],
"LKOLNn": ["설치된 AI 에이전트 없음"],
+ "LMVNT6": [["agentName"], "에 로그인이 필요합니다."],
"LPAv9E": [["days"], "일 전"],
"LPLWpO": ["보드의 내용이 유효한 Excalidraw 장면이 아닙니다."],
"LQdLio": ["새 스키마"],
@@ -1942,6 +1944,7 @@
"O0Z2Xr": ["나가는 링크"],
"O2UpM1": ["찾아보기"],
"O3oNi5": ["이메일"],
+ "O4rQ4h": [["agentName"], "에 로그인이 필요했습니다."],
"O6H89R": ["해결됨"],
"O6yEPk": ["선택한 폴더에 새 OpenKnowledge 프로젝트를 만듭니다."],
"O7_W_a": ["AI로 열기"],
@@ -2412,7 +2415,6 @@
],
"UI0WPT": [["propertyCount", "plural", { "other": ["속성 ", "#", "개"] }]],
"UIjjFa": ["추가되는 항목 보기"],
- "UJEFJY": [["0"], " 시작 실패: ", ["1"]],
"UL-9ej": ["OpenKnowledge에서 실시간 미리보기 열기"],
"UL8A9w": ["태그"],
"UMT9C9": ["OpenKnowledge와 MCP 도구를 사용하는 방법."],
@@ -2581,6 +2583,7 @@
"개 항목을 삭제하시겠습니까? 폴더와 내부의 모든 파일도 삭제됩니다. 이 작업은 취소할 수 없습니다."
],
"WMsoIm": ["이미 로그인했나요?"],
+ "WOY8rV": [["agentName"], "에 로그인이 필요했습니다. 다시 시도하려면 이 채팅을 재개하세요."],
"WOfp4H": ["동기화 주기를 업데이트하지 못했습니다 — ", ["detail"]],
"WOr-hW": ["토큰"],
"WPwDin": ["디스크에서 폴더 열기"],
@@ -2902,6 +2905,7 @@
"_9rYSZ": [["names"], " MCP 통합 복구됨"],
"_Bix3-": [["localizedFirstMessage"], " 발생 횟수"],
"_DwR-n": ["만드는 중…"],
+ "_FqAty": ["채팅 재개"],
"_G7A92": ["index.md 유지"],
"_GRWOJ": ["임베딩 제공업체를 변경하시겠습니까?"],
"_HgF9q": ["정렬 기준"],
@@ -2960,6 +2964,7 @@
"_tekeB": ["폴더 속성 업데이트됨"],
"_tjopj": ["복제하여 붙여넣기"],
"_uxBz5": [["rowLabel"], "에 MCP 및 스킬 추가"],
+ "_xWxLt": [["agentName"], "이(가) 오류로 중지되었습니다."],
"_yB-24": ["모든 ", ["0"], "/ 폴더 아래의 항목"],
"a-cKXz": ["모든 소스 선택"],
"a3LDKx": ["보안"],
@@ -3598,7 +3603,6 @@
"hFmYGU": ["연결된 테마 파일은 지원되지 않습니다"],
"hGmuTc": ["#", ["tagDocsName"], " 태그가 지정된 문서"],
"hHMv6l": ["블록 삭제"],
- "hHR0tt": [["0"], "와 새 채팅"],
"hItdtk": ["폴더 찾아보기"],
"hLKfZe": ["대신 토큰 사용"],
"hLod4_": ["템플릿으로 변환"],
@@ -3702,6 +3706,7 @@
"iSLIjg": ["연결"],
"iSQTsg": ["번호 매기기 목록"],
"iSWh95": ["이미지 대상 \"", ["shown"], "\"이 존재하는 파일로 확인되지 않습니다."],
+ "iSguIe": [["agentName"], "와 새 채팅"],
"iSnkwB": ["클론한 프로젝트를 열지 못했습니다."],
"iTylMl": ["템플릿"],
"iUwpZI": ["공백은 사용할 수 없습니다. <0>-</0>을 대신 사용하세요."],
@@ -3889,6 +3894,7 @@
"kNGLX6": ["다시 시도 중…"],
"kNiQp6": ["고정됨"],
"kNqMMd": ["폴더"],
+ "kNvMl7": ["터미널을 열어 로그인"],
"kPOw9O": ["메시지 복사"],
"kRTXGw": [
"의미 기반 검색을 OpenAI 호환 임베딩 엔드포인트에 연결합니다. 자체 호스팅 서버나 다른 제공업체를 사용할 수 있습니다. 위의 API 키는 여기서 설정한 엔드포인트에 사용됩니다."
@@ -4062,6 +4068,10 @@
"Git 작업이나 해결되지 않은 충돌을 처리해야 하므로 Git 동기화가 일시 중지되었습니다. 편집 내용은 계속 로컬에 저장됩니다. 터미널에서 작업을 완료하거나 충돌을 해결한 후 동기화를 다시 시도하세요."
],
"mPoOmg": ["여기에 먼저 스킬을 설치하세요"],
+ "mPwwPl": [
+ ["agentName"],
+ "이(가) 이 채팅을 이어갈 수 없습니다. 대화 기록은 유지되므로 새 채팅을 시작하세요."
+ ],
"mPy9lS": [
"기존 사양을 영역별로 그룹화한 연결된 색인으로 정리하고, 현재 코드와 동기화되지 않은 항목을 표시합니다."
],
@@ -4121,10 +4131,6 @@
["src"],
"</2>에 없습니다."
],
- "ms4r8V": [
- ["0"],
- " 이 채팅을 계속할 수 없습니다. 대화 기록은 남아 있지만 에이전트 세션이 종료되었습니다."
- ],
"msOK6I": [
"이미 클론한 저장소는 연결을 해제한 후에도 git에 저장된 자체 자격 증명으로 계속 동기화될 수 있습니다."
],
@@ -4710,6 +4716,7 @@
["trashNoun"],
"으로 이동하지 못했습니다. 대신 영구 삭제하시겠습니까?"
],
+ "txGF-X": [["agentName"], "이(가) 실행 중이 아닙니다. 로그인하려면 새 채팅을 시작하세요."],
"txUHO8": [["localizedMessage"], ", 줄 ", ["displayLine"]],
"txmRmK": ["스킬 패널 크기 조절"],
"tzGWeg": ["OpenKnowledge 제거 준비 중"],
diff --git a/packages/app/src/locales/ko/messages.po b/packages/app/src/locales/ko/messages.po
index 2db622065..135a732eb 100644
--- a/packages/app/src/locales/ko/messages.po
+++ b/packages/app/src/locales/ko/messages.po
@@ -302,11 +302,6 @@ msgstr "{0}이 확인 없이 작업합니다. OpenKnowledge는 이 에이전트
msgid "{0} added, {1} removed"
msgstr "{0}개 추가, {1}개 제거"
-#. placeholder {0}: info.agent.name
-#: src/components/acp/ThreadView.tsx
-msgid "{0} can't continue this chat — the transcript is kept, but the agent session is gone."
-msgstr "{0} 이 채팅을 계속할 수 없습니다. 대화 기록은 남아 있지만 에이전트 세션이 종료되었습니다."
-
#. placeholder {0}: info.agent.name
#: src/components/acp/ThreadView.tsx
msgid "{0} doesn't offer any settings to adjust"
@@ -549,6 +544,10 @@ msgstr "{agent}은(는) OpenKnowledge가 {sourceAgent}을(를) 위해 작성한
msgid "troubleshooting.openclaw.central-store-missing"
msgstr "{agent}의 중앙 스킬 저장소가 아직 없습니다. {agent}을(를) 한 번 시작해 저장소를 만들게 한 뒤 다시 시도하세요."
+#: src/components/acp/ThreadView.tsx
+msgid "{agentName} can't pick this chat back up. The transcript is kept, so start a new chat to continue."
+msgstr "{agentName}이(가) 이 채팅을 이어갈 수 없습니다. 대화 기록은 유지되므로 새 채팅을 시작하세요."
+
#: src/components/acp/ThreadView.tsx
msgid "{agentName} couldn't start a conversation."
msgstr "{agentName} 대화 시작 실패."
@@ -562,10 +561,30 @@ msgstr "{agentName} 시작 실패."
msgid "{agentName} doesn't accept image attachments."
msgstr "{agentName}: 이미지 첨부 미지원"
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} isn't running. Start a new chat to sign in."
+msgstr "{agentName}이(가) 실행 중이 아닙니다. 로그인하려면 새 채팅을 시작하세요."
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needed you to sign in."
+msgstr "{agentName}에 로그인이 필요했습니다."
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needed you to sign in. Resume this chat to try again."
+msgstr "{agentName}에 로그인이 필요했습니다. 다시 시도하려면 이 채팅을 재개하세요."
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needs you to sign in."
+msgstr "{agentName}에 로그인이 필요합니다."
+
#: src/components/acp/AgentNoticeAnnouncer.tsx
msgid "{agentName} reported: {headline}"
msgstr "{agentName} 보고: {headline}"
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} stopped with an error."
+msgstr "{agentName}이(가) 오류로 중지되었습니다."
+
#: src/components/SyncStatusBadge.tsx
msgid "{ahead} ahead"
msgstr "{ahead}개 앞서 있음"
@@ -4312,11 +4331,10 @@ msgstr "댓글 전송에 실패했습니다. 워크스페이스 준비 전입니
msgid "Couldn't send your prompt — please try again."
msgstr "프롬프트 전송 실패. 다시 시도하세요."
-#. placeholder {0}: info.agent.name
-#. placeholder {1}: errorText(err)
+#. placeholder {0}: errorText(err)
#: src/components/acp/ThreadView.tsx
-msgid "Couldn't start {0}: {1}"
-msgstr "{0} 시작 실패: {1}"
+msgid "Couldn't start {agentName}: {0}"
+msgstr "{agentName} 시작 실패: {0}"
#: src/components/SlidesToolbarControls.tsx
msgid "Couldn't start Slidev."
@@ -8677,10 +8695,10 @@ msgstr "새 브랜치 <0>{trimmed}</0>는 현재 커밋에서 생성되며 <1>.o
msgid "New changes from your remote appear in your copy automatically."
msgstr "원격의 새 변경 사항이 사본에 자동으로 표시됩니다."
-#. placeholder {0}: info.agent.name
+#: src/components/acp/thread-auth-offer.ts
#: src/components/acp/ThreadView.tsx
-msgid "New chat with {0}"
-msgstr "{0}와 새 채팅"
+msgid "New chat with {agentName}"
+msgstr "{agentName}와 새 채팅"
#: src/components/AppMenubar.tsx
#: src/components/command-palette-commands.ts
@@ -9722,6 +9740,10 @@ msgstr "소스 열기: {mirrorSrc}"
msgid "Open terminal"
msgstr "터미널 열기"
+#: src/components/acp/thread-auth-offer.ts
+msgid "Open terminal to sign in"
+msgstr "터미널을 열어 로그인"
+
#: src/components/ShareBranchSwitchDialog.tsx
msgid "Open that worktree instead"
msgstr "대신 해당 워크트리 열기"
@@ -11653,6 +11675,10 @@ msgstr "{0} 버전으로 복원했습니다"
msgid "Results capped — this workspace has more files than search can index. A missing file may be a cap artifact, not a typo."
msgstr "결과가 제한되었습니다. 이 워크스페이스에는 검색에서 색인할 수 있는 파일보다 더 많은 파일이 있습니다. 누락된 파일은 오타가 아니라 제한으로 인해 빠진 것일 수 있습니다."
+#: src/components/acp/thread-auth-offer.ts
+msgid "Resume chat"
+msgstr "채팅 재개"
+
#: src/components/acp/ThreadView.tsx
msgid "Resuming the chat"
msgstr "채팅 재개 중"
@@ -11661,6 +11687,7 @@ msgstr "채팅 재개 중"
msgid "Retrieving…"
msgstr "가져오는 중…"
+#: src/components/acp/thread-auth-offer.ts
#: src/components/acp/ThreadView.tsx
#: src/components/ActivityModeContent.tsx
#: src/components/BugReportHistory.tsx
@@ -11676,6 +11703,7 @@ msgstr "다시 시도"
msgid "Retry push"
msgstr "푸시 재시도"
+#: src/components/acp/ThreadView.tsx
#: src/components/TrashFailureModal.tsx
msgid "Retrying"
msgstr "다시 시도 중"
@@ -12672,6 +12700,7 @@ msgstr "코드 본문 위에 표시됩니다. Markdown에서 `title=\"...\"` 형
msgid "Sifting…"
msgstr "선별 중…"
+#: src/components/acp/thread-auth-offer.ts
#: src/components/settings/AccountSection.tsx
#: src/components/settings/SyncSection.tsx
#: src/components/ShareBranchSwitchDialog.tsx
@@ -12683,7 +12712,7 @@ msgstr "로그인"
msgid "Sign in to {agentName} first"
msgstr "먼저 {agentName} 로그인"
-#: src/components/acp/ThreadView.tsx
+#: src/components/acp/thread-auth-offer.ts
msgid "Sign in to {agentName} to continue."
msgstr "계속하려면 {agentName} 로그인."
diff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.json
index a1521777d..ec73c443a 100644
--- a/packages/app/src/locales/pseudo/messages.json
+++ b/packages/app/src/locales/pseudo/messages.json
@@ -934,6 +934,7 @@
"ApeA0n": ["Ũńďĩď ", ["dropCount"], " ēďĩţś ōń ", ["docName"]],
"Aq-O0x": ["śţàţũś"],
"AqnqMJ": ["ÀƤĨ ķēŷ śēţ"],
+ "Arr7LU": ["Ćōũĺďń'ţ śţàŕţ ", ["agentName"], ": ", ["0"]],
"AsqRE_": ["Ďēƒàũĺţ ĺōćàţĩōń ƒōŕ ńēŵ àţţàćĥḿēńţś"],
"AtBdnD": ["Ćōũĺďń'ţ ďēĺēţē śķĩĺĺ: ", ["error"]],
"AvqEDl": ["Śōḿē ďŕōƥƥēď ƒĩĺēś ćōũĺď ńōţ ƀē ĩńśēŕţēď śàƒēĺŷ."],
@@ -1782,6 +1783,7 @@
]
],
"LKOLNn": ["Ńō ÀĨ àĝēńţś ĩńśţàĺĺēď"],
+ "LMVNT6": [["agentName"], " ńēēďś ŷōũ ţō śĩĝń ĩń."],
"LPAv9E": [["days"], "ď àĝō"],
"LPLWpO": ["Ţĥē ƀōàŕď'ś ćōńţēńţ ĩś ńōţ à vàĺĩď Ēxćàĺĩďŕàŵ śćēńē."],
"LQdLio": ["Ńēŵ śćĥēḿà"],
@@ -2013,6 +2015,7 @@
"O0Z2Xr": ["Ōũţĝōĩńĝ"],
"O2UpM1": ["ßŕōŵśē"],
"O3oNi5": ["Ēḿàĩĺ"],
+ "O4rQ4h": [["agentName"], " ńēēďēď ŷōũ ţō śĩĝń ĩń."],
"O6H89R": ["Ŕēśōĺvēď"],
"O6yEPk": ["Ćŕēàţē à ńēŵ ŌƥēńĶńōŵĺēďĝē ƥŕōĴēćţ ĩń ţĥē ƒōĺďēŕ ōƒ ŷōũŕ ćĥōĩćē."],
"O7_W_a": ["Ōƥēń ŵĩţĥ ÀĨ"],
@@ -2505,7 +2508,6 @@
["propertyCount", "plural", { "one": ["#", " ƥŕōƥēŕţŷ"], "other": ["#", " ƥŕōƥēŕţĩēś"] }]
],
"UIjjFa": ["Śēē ŵĥàţ'ś àďďēď"],
- "UJEFJY": ["Ćōũĺďń'ţ śţàŕţ ", ["0"], ": ", ["1"]],
"UL-9ej": ["ŌƥēńĶńōŵĺēďĝē ōƥēńēď ţĥē ĺĩvē ƥŕēvĩēŵ"],
"UL8A9w": ["Ţàĝ"],
"UMT9C9": ["Ĥōŵ ţō ũśē ŌƥēńĶńōŵĺēďĝē àńď ĩţś ḾĆƤ ţōōĺś."],
@@ -2671,6 +2673,7 @@
" śēĺēćţēď ĩţēḿś? Ƒōĺďēŕś àńď àĺĺ ƒĩĺēś ĩńśĩďē ţĥēḿ ŵĩĺĺ ƀē ďēĺēţēď. Ţĥĩś àćţĩōń ćàńńōţ ƀē ũńďōńē."
],
"WMsoIm": ["Àĺŕēàďŷ śĩĝńēď ĩń?"],
+ "WOY8rV": [["agentName"], " ńēēďēď ŷōũ ţō śĩĝń ĩń. Ŕēśũḿē ţĥĩś ćĥàţ ţō ţŕŷ àĝàĩń."],
"WOfp4H": ["Ƒàĩĺēď ţō ũƥďàţē ţĥē śŷńć ĩńţēŕvàĺ — ", ["detail"]],
"WOr-hW": ["ţōķēńś"],
"WPwDin": ["Ōƥēń ƒōĺďēŕ ōń ďĩśķ"],
@@ -3008,6 +3011,7 @@
"_9rYSZ": ["ŕēƥàĩŕēď ḾĆƤ ĩńţēĝŕàţĩōń ƒōŕ ", ["names"]],
"_Bix3-": ["Ōććũŕŕēńćēś ōƒ ", ["localizedFirstMessage"]],
"_DwR-n": ["Ćŕēàţĩńĝ…"],
+ "_FqAty": ["Ŕēśũḿē ćĥàţ"],
"_G7A92": ["Ḿàĩńţàĩń ĩńďēx.ḿď"],
"_GRWOJ": ["Ćĥàńĝē ţĥē ēḿƀēďďĩńĝś ƥŕōvĩďēŕ?"],
"_HgF9q": ["Śōŕţ ƀŷ"],
@@ -3062,6 +3066,7 @@
"_tekeB": ["ũƥďàţēď ƒōĺďēŕ ƥŕōƥēŕţĩēś"],
"_tjopj": ["Ƥàśţē ďũƥĺĩćàţē"],
"_uxBz5": ["Àďď ḾĆƤ & śķĩĺĺ ƒōŕ ", ["rowLabel"]],
+ "_xWxLt": [["agentName"], " śţōƥƥēď ŵĩţĥ àń ēŕŕōŕ."],
"_yB-24": ["ēvēŕŷţĥĩńĝ ũńďēŕ àńŷ ", ["0"], "/ ƒōĺďēŕ"],
"a-cKXz": ["Śēĺēćţ àĺĺ śōũŕćē"],
"a3LDKx": ["Śēćũŕĩţŷ"],
@@ -3743,7 +3748,6 @@
"hFmYGU": ["Ĺĩńķēď ţĥēḿē ƒĩĺēś àŕēń’ţ śũƥƥōŕţēď"],
"hGmuTc": ["Ďōćś ţàĝĝēď #", ["tagDocsName"]],
"hHMv6l": ["Ďēĺēţē ƀĺōćķ"],
- "hHR0tt": ["Ńēŵ ćĥàţ ŵĩţĥ ", ["0"]],
"hItdtk": ["ßŕōŵśē ƒōĺďēŕ"],
"hLKfZe": ["Ũśē à ţōķēń ĩńśţēàď"],
"hLod4_": ["Ćōńvēŕţ ţō ţēḿƥĺàţē"],
@@ -3846,6 +3850,7 @@
"iSLIjg": ["Ćōńńēćţ"],
"iSQTsg": ["Ōŕďēŕēď ĺĩśţ"],
"iSWh95": ["Ĩḿàĝē ţàŕĝēţ \"", ["shown"], "\" ďōēś ńōţ ŕēśōĺvē ţō àń ēxĩśţĩńĝ ƒĩĺē."],
+ "iSguIe": ["Ńēŵ ćĥàţ ŵĩţĥ ", ["agentName"]],
"iSnkwB": ["Ƒàĩĺēď ţō ōƥēń ćĺōńēď ƥŕōĴēćţ."],
"iTylMl": ["Ţēḿƥĺàţēś"],
"iUwpZI": ["Ńō śƥàćēś — ũśē <0>-</0> ĩńśţēàď."],
@@ -4034,6 +4039,7 @@
"kNGLX6": ["Ŕēţŕŷĩńĝ…"],
"kNiQp6": ["Ƥĩńńēď"],
"kNqMMd": ["Ƒōĺďēŕ"],
+ "kNvMl7": ["Ōƥēń ţēŕḿĩńàĺ ţō śĩĝń ĩń"],
"kPOw9O": ["Ćōƥŷ ḿēśśàĝē"],
"kRTXGw": [
"Ƥōĩńţ śēḿàńţĩć śēàŕćĥ àţ àńŷ ŌƥēńÀĨ-ćōḿƥàţĩƀĺē ēḿƀēďďĩńĝś ēńďƥōĩńţ — à śēĺƒ-ĥōśţēď śēŕvēŕ ōŕ àńōţĥēŕ ƥŕōvĩďēŕ. Ţĥē ÀƤĨ ķēŷ àƀōvē ĩś ƒōŕ ŵĥĩćĥēvēŕ ēńďƥōĩńţ ŷōũ śēţ ĥēŕē."
@@ -4220,6 +4226,10 @@
"Ĝĩţ śŷńćĩńĝ ĩś ƥàũśēď ƀēćàũśē à Ĝĩţ ōƥēŕàţĩōń ōŕ ũńŕēśōĺvēď ćōńƒĺĩćţś ńēēď àţţēńţĩōń. Ŷōũŕ ēďĩţś śţĩĺĺ śàvē ĺōćàĺĺŷ. Ƒĩńĩśĥ ţĥē ōƥēŕàţĩōń ōŕ ŕēśōĺvē ţĥē ćōńƒĺĩćţś ĩń ŷōũŕ ţēŕḿĩńàĺ, ţĥēń ŕēţŕŷ śŷńć."
],
"mPoOmg": ["ĩńśţàĺĺ à śķĩĺĺ ĥēŕē ƒĩŕśţ"],
+ "mPwwPl": [
+ ["agentName"],
+ " ćàń'ţ ƥĩćķ ţĥĩś ćĥàţ ƀàćķ ũƥ. Ţĥē ţŕàńśćŕĩƥţ ĩś ķēƥţ, śō śţàŕţ à ńēŵ ćĥàţ ţō ćōńţĩńũē."
+ ],
"mPy9lS": [
"Ōŕĝàńĩźē ḿŷ ēxĩśţĩńĝ śƥēćś ĩńţō à ĺĩńķēď ĩńďēx ĝŕōũƥēď ƀŷ àŕēà, àńď ƒĺàĝ àńŷ ţĥàţ ĥàvē ďŕĩƒţēď ōũţ ōƒ śŷńć ŵĩţĥ ţĥē ćũŕŕēńţ ćōďē."
],
@@ -4282,10 +4292,6 @@
["src"],
"</2>."
],
- "ms4r8V": [
- ["0"],
- " ćàń'ţ ćōńţĩńũē ţĥĩś ćĥàţ — ţĥē ţŕàńśćŕĩƥţ ĩś ķēƥţ, ƀũţ ţĥē àĝēńţ śēśśĩōń ĩś ĝōńē."
- ],
"msOK6I": [
"Ŕēƥōśĩţōŕĩēś ŷōũ'vē àĺŕēàďŷ ćĺōńēď ḿàŷ ķēēƥ śŷńćĩńĝ ţĥŕōũĝĥ ĝĩţ'ś ōŵń śàvēď ćŕēďēńţĩàĺś, ēvēń àƒţēŕ ŷōũ ďĩśćōńńēćţ."
],
@@ -4914,6 +4920,7 @@
["trashNoun"],
". Ďō ŷōũ ŵàńţ ţō ƥēŕḿàńēńţĺŷ ďēĺēţē ĩńśţēàď?"
],
+ "txGF-X": [["agentName"], " ĩśń'ţ ŕũńńĩńĝ. Śţàŕţ à ńēŵ ćĥàţ ţō śĩĝń ĩń."],
"txUHO8": [["localizedMessage"], " àţ ĺĩńē ", ["displayLine"]],
"txmRmK": ["Ŕēśĩźē śķĩĺĺś ƥàńēĺ"],
"tzGWeg": ["Ƥŕēƥàŕĩńĝ ţō ũńĩńśţàĺĺ ŌƥēńĶńōŵĺēďĝē"],
diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.po
index b1fac71b1..6d27620e4 100644
--- a/packages/app/src/locales/pseudo/messages.po
+++ b/packages/app/src/locales/pseudo/messages.po
@@ -302,11 +302,6 @@ msgstr ""
msgid "{0} added, {1} removed"
msgstr ""
-#. placeholder {0}: info.agent.name
-#: src/components/acp/ThreadView.tsx
-msgid "{0} can't continue this chat — the transcript is kept, but the agent session is gone."
-msgstr ""
-
#. placeholder {0}: info.agent.name
#: src/components/acp/ThreadView.tsx
msgid "{0} doesn't offer any settings to adjust"
@@ -549,6 +544,10 @@ msgstr ""
msgid "troubleshooting.openclaw.central-store-missing"
msgstr ""
+#: src/components/acp/ThreadView.tsx
+msgid "{agentName} can't pick this chat back up. The transcript is kept, so start a new chat to continue."
+msgstr ""
+
#: src/components/acp/ThreadView.tsx
msgid "{agentName} couldn't start a conversation."
msgstr ""
@@ -562,10 +561,30 @@ msgstr ""
msgid "{agentName} doesn't accept image attachments."
msgstr ""
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} isn't running. Start a new chat to sign in."
+msgstr ""
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needed you to sign in."
+msgstr ""
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needed you to sign in. Resume this chat to try again."
+msgstr ""
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needs you to sign in."
+msgstr ""
+
#: src/components/acp/AgentNoticeAnnouncer.tsx
msgid "{agentName} reported: {headline}"
msgstr ""
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} stopped with an error."
+msgstr ""
+
#: src/components/SyncStatusBadge.tsx
msgid "{ahead} ahead"
msgstr ""
@@ -4308,10 +4327,9 @@ msgstr ""
msgid "Couldn't send your prompt — please try again."
msgstr ""
-#. placeholder {0}: info.agent.name
-#. placeholder {1}: errorText(err)
+#. placeholder {0}: errorText(err)
#: src/components/acp/ThreadView.tsx
-msgid "Couldn't start {0}: {1}"
+msgid "Couldn't start {agentName}: {0}"
msgstr ""
#: src/components/SlidesToolbarControls.tsx
@@ -8673,9 +8691,9 @@ msgstr ""
msgid "New changes from your remote appear in your copy automatically."
msgstr ""
-#. placeholder {0}: info.agent.name
+#: src/components/acp/thread-auth-offer.ts
#: src/components/acp/ThreadView.tsx
-msgid "New chat with {0}"
+msgid "New chat with {agentName}"
msgstr ""
#: src/components/AppMenubar.tsx
@@ -9718,6 +9736,10 @@ msgstr ""
msgid "Open terminal"
msgstr ""
+#: src/components/acp/thread-auth-offer.ts
+msgid "Open terminal to sign in"
+msgstr ""
+
#: src/components/ShareBranchSwitchDialog.tsx
msgid "Open that worktree instead"
msgstr ""
@@ -11649,6 +11671,10 @@ msgstr ""
msgid "Results capped — this workspace has more files than search can index. A missing file may be a cap artifact, not a typo."
msgstr ""
+#: src/components/acp/thread-auth-offer.ts
+msgid "Resume chat"
+msgstr ""
+
#: src/components/acp/ThreadView.tsx
msgid "Resuming the chat"
msgstr ""
@@ -11657,6 +11683,7 @@ msgstr ""
msgid "Retrieving…"
msgstr ""
+#: src/components/acp/thread-auth-offer.ts
#: src/components/acp/ThreadView.tsx
#: src/components/ActivityModeContent.tsx
#: src/components/BugReportHistory.tsx
@@ -11672,6 +11699,7 @@ msgstr ""
msgid "Retry push"
msgstr ""
+#: src/components/acp/ThreadView.tsx
#: src/components/TrashFailureModal.tsx
msgid "Retrying"
msgstr ""
@@ -12668,6 +12696,7 @@ msgstr ""
msgid "Sifting…"
msgstr ""
+#: src/components/acp/thread-auth-offer.ts
#: src/components/settings/AccountSection.tsx
#: src/components/settings/SyncSection.tsx
#: src/components/ShareBranchSwitchDialog.tsx
@@ -12679,7 +12708,7 @@ msgstr ""
msgid "Sign in to {agentName} first"
msgstr ""
-#: src/components/acp/ThreadView.tsx
+#: src/components/acp/thread-auth-offer.ts
msgid "Sign in to {agentName} to continue."
msgstr ""
diff --git a/packages/app/src/locales/pt-BR/messages.json b/packages/app/src/locales/pt-BR/messages.json
index 4b1991a67..8bdc4a478 100644
--- a/packages/app/src/locales/pt-BR/messages.json
+++ b/packages/app/src/locales/pt-BR/messages.json
@@ -1093,6 +1093,7 @@
"ApeA0n": [["dropCount"], " edições desfeitas em ", ["docName"]],
"Aq-O0x": ["status"],
"AqnqMJ": ["Chave de API definida"],
+ "Arr7LU": ["Não foi possível iniciar ", ["agentName"], ": ", ["0"]],
"AsqRE_": ["Local padrão para novos anexos"],
"AtBdnD": ["Não deu para excluir a habilidade: ", ["error"]],
"AvqEDl": ["Alguns arquivos soltos não puderam ser inseridos com segurança."],
@@ -2054,6 +2055,7 @@
]
],
"LKOLNn": ["Nenhum agente de IA instalado"],
+ "LMVNT6": [["agentName"], " precisa que você faça login."],
"LPAv9E": ["há ", ["days"], " d"],
"LPLWpO": ["O conteúdo do quadro não é uma cena válida do Excalidraw."],
"LQdLio": ["Novo esquema"],
@@ -2313,6 +2315,7 @@
"O0Z2Xr": ["Saída"],
"O2UpM1": ["Procurar"],
"O3oNi5": ["E-mail"],
+ "O4rQ4h": [["agentName"], " precisava que você fizesse login."],
"O6H89R": ["Resolvido"],
"O6yEPk": ["Cria um novo projeto do OpenKnowledge na pasta que você escolher."],
"O7_W_a": ["Abrir com IA"],
@@ -2864,7 +2867,6 @@
]
],
"UIjjFa": ["Ver o que será adicionado"],
- "UJEFJY": ["Não foi possível iniciar ", ["0"], ": ", ["1"]],
"UL-9ej": ["OpenKnowledge abriu a pré-visualização ao vivo"],
"UL8A9w": ["Tag"],
"UMT9C9": ["Como usar o OpenKnowledge e suas ferramentas MCP."],
@@ -3078,6 +3080,10 @@
" itens selecionados? As pastas e todos os arquivos dentro delas serão excluídos. Esta ação não pode ser desfeita."
],
"WMsoIm": ["Já fez login?"],
+ "WOY8rV": [
+ ["agentName"],
+ " precisava que você fizesse login. Retome este chat para tentar de novo."
+ ],
"WOfp4H": ["Falha ao atualizar o intervalo de sincronização — ", ["detail"]],
"WOr-hW": ["tokens"],
"WPwDin": ["Abrir a pasta no disco"],
@@ -3433,6 +3439,7 @@
"_9rYSZ": ["integração MCP de ", ["names"], " reparada"],
"_Bix3-": ["Ocorrências de ", ["localizedFirstMessage"]],
"_DwR-n": ["Criando…"],
+ "_FqAty": ["Retomar chat"],
"_G7A92": ["Manter index.md"],
"_GRWOJ": ["Trocar o provedor de embeddings?"],
"_HgF9q": ["Ordenar por"],
@@ -3489,6 +3496,7 @@
"_tekeB": ["propriedades da pasta atualizadas"],
"_tjopj": ["Colar duplicado"],
"_uxBz5": ["Adicionar MCP e habilidade para ", ["rowLabel"]],
+ "_xWxLt": [["agentName"], " parou com um erro."],
"_yB-24": ["tudo dentro de qualquer pasta ", ["0"], "/"],
"a-cKXz": ["Selecionar todo o código"],
"a3LDKx": ["Segurança"],
@@ -4284,7 +4292,6 @@
"hFmYGU": ["Arquivos de tema vinculados não são compatíveis"],
"hGmuTc": ["Documentos com a tag #", ["tagDocsName"]],
"hHMv6l": ["Excluir o bloco"],
- "hHR0tt": ["Novo chat com ", ["0"]],
"hItdtk": ["Escolher pasta"],
"hLKfZe": ["Usar um token em vez disso"],
"hLod4_": ["Converter em modelo"],
@@ -4397,6 +4404,7 @@
"iSLIjg": ["Conectar"],
"iSQTsg": ["Lista ordenada"],
"iSWh95": ["O destino da imagem \"", ["shown"], "\" não corresponde a um arquivo existente."],
+ "iSguIe": ["Novo chat com ", ["agentName"]],
"iSnkwB": ["Falha ao abrir o projeto clonado."],
"iTylMl": ["Modelos"],
"iUwpZI": ["Sem espaços — use <0>-</0> no lugar."],
@@ -4597,6 +4605,7 @@
"kNGLX6": ["Tentando novamente…"],
"kNiQp6": ["Fixados"],
"kNqMMd": ["Pasta"],
+ "kNvMl7": ["Abrir terminal para fazer login"],
"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."
@@ -4801,6 +4810,10 @@
"A sincronização do Git está pausada porque uma operação do Git ou conflitos não resolvidos precisam de atenção. Suas alterações continuam sendo salvas localmente. Conclua a operação ou resolva os conflitos no terminal e tente sincronizar novamente."
],
"mPoOmg": ["instale primeiro uma habilidade aqui"],
+ "mPwwPl": [
+ ["agentName"],
+ " não consegue retomar este chat. A transcrição é mantida, então comece um novo chat para continuar."
+ ],
"mPy9lS": [
"Organize minhas especificações existentes em um índice interligado e agrupado por área, e sinalize as que se desencontraram do código atual."
],
@@ -4876,10 +4889,6 @@
["src"],
"</2>."
],
- "ms4r8V": [
- ["0"],
- " não pode continuar este chat — a transcrição foi mantida, mas a sessão do agente não existe mais."
- ],
"msOK6I": [
"Os repositórios que você já clonou podem continuar sincronizando pelas credenciais salvas do próprio git, mesmo depois de você desconectar."
],
@@ -5560,6 +5569,7 @@
["trashNoun"],
". Deseja excluir permanentemente?"
],
+ "txGF-X": [["agentName"], " não está em execução. Comece um novo chat para fazer login."],
"txUHO8": [["localizedMessage"], " na linha ", ["displayLine"]],
"txmRmK": ["Redimensionar o painel de Habilidades"],
"tzGWeg": ["Preparando a desinstalação do OpenKnowledge"],
diff --git a/packages/app/src/locales/pt-BR/messages.po b/packages/app/src/locales/pt-BR/messages.po
index c6e1fa0ae..d034a6e6a 100644
--- a/packages/app/src/locales/pt-BR/messages.po
+++ b/packages/app/src/locales/pt-BR/messages.po
@@ -302,11 +302,6 @@ msgstr "{0} age sem perguntar — o OpenKnowledge não consegue adicionar pedido
msgid "{0} added, {1} removed"
msgstr "{0} adicionados, {1} removidos"
-#. placeholder {0}: info.agent.name
-#: src/components/acp/ThreadView.tsx
-msgid "{0} can't continue this chat — the transcript is kept, but the agent session is gone."
-msgstr "{0} não pode continuar este chat — a transcrição foi mantida, mas a sessão do agente não existe mais."
-
#. placeholder {0}: info.agent.name
#: src/components/acp/ThreadView.tsx
msgid "{0} doesn't offer any settings to adjust"
@@ -549,6 +544,10 @@ msgstr "O {agent} lê a configuração MCP do espaço de trabalho que o OpenKnow
msgid "troubleshooting.openclaw.central-store-missing"
msgstr "O repositório central de habilidades do {agent} ainda não existe; inicie o {agent} uma vez para que ele o crie e tente de novo."
+#: src/components/acp/ThreadView.tsx
+msgid "{agentName} can't pick this chat back up. The transcript is kept, so start a new chat to continue."
+msgstr "{agentName} não consegue retomar este chat. A transcrição é mantida, então comece um novo chat para continuar."
+
#: src/components/acp/ThreadView.tsx
msgid "{agentName} couldn't start a conversation."
msgstr "{agentName} não conseguiu iniciar uma conversa."
@@ -562,10 +561,30 @@ msgstr "{agentName} não conseguiu iniciar."
msgid "{agentName} doesn't accept image attachments."
msgstr "{agentName} não aceita anexos de imagem."
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} isn't running. Start a new chat to sign in."
+msgstr "{agentName} não está em execução. Comece um novo chat para fazer login."
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needed you to sign in."
+msgstr "{agentName} precisava que você fizesse login."
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needed you to sign in. Resume this chat to try again."
+msgstr "{agentName} precisava que você fizesse login. Retome este chat para tentar de novo."
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needs you to sign in."
+msgstr "{agentName} precisa que você faça login."
+
#: src/components/acp/AgentNoticeAnnouncer.tsx
msgid "{agentName} reported: {headline}"
msgstr "{agentName} informou: {headline}"
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} stopped with an error."
+msgstr "{agentName} parou com um erro."
+
#: src/components/SyncStatusBadge.tsx
msgid "{ahead} ahead"
msgstr "{ahead} à frente"
@@ -4308,11 +4327,10 @@ msgstr "Não deu para enviar seus comentários — o espaço de trabalho não es
msgid "Couldn't send your prompt — please try again."
msgstr "Não deu para enviar seu prompt — tente de novo."
-#. placeholder {0}: info.agent.name
-#. placeholder {1}: errorText(err)
+#. placeholder {0}: errorText(err)
#: src/components/acp/ThreadView.tsx
-msgid "Couldn't start {0}: {1}"
-msgstr "Não foi possível iniciar {0}: {1}"
+msgid "Couldn't start {agentName}: {0}"
+msgstr "Não foi possível iniciar {agentName}: {0}"
#: src/components/SlidesToolbarControls.tsx
msgid "Couldn't start Slidev."
@@ -8673,10 +8691,10 @@ msgstr "O novo ramo <0>{trimmed}</0> será criado a partir do commit atual, em u
msgid "New changes from your remote appear in your copy automatically."
msgstr "As novidades do seu remoto aparecem na sua cópia automaticamente."
-#. placeholder {0}: info.agent.name
+#: src/components/acp/thread-auth-offer.ts
#: src/components/acp/ThreadView.tsx
-msgid "New chat with {0}"
-msgstr "Novo chat com {0}"
+msgid "New chat with {agentName}"
+msgstr "Novo chat com {agentName}"
#: src/components/AppMenubar.tsx
#: src/components/command-palette-commands.ts
@@ -9718,6 +9736,10 @@ msgstr "Abrir a fonte: {mirrorSrc}"
msgid "Open terminal"
msgstr "Abrir o terminal"
+#: src/components/acp/thread-auth-offer.ts
+msgid "Open terminal to sign in"
+msgstr "Abrir terminal para fazer login"
+
#: src/components/ShareBranchSwitchDialog.tsx
msgid "Open that worktree instead"
msgstr "Abrir aquele worktree em vez disso"
@@ -11649,6 +11671,10 @@ msgstr "A versão de {0} foi restaurada"
msgid "Results capped — this workspace has more files than search can index. A missing file may be a cap artifact, not a typo."
msgstr "Resultados limitados — este espaço de trabalho tem mais arquivos do que a busca consegue indexar. Um arquivo que falte pode ser efeito do limite, não um erro de digitação."
+#: src/components/acp/thread-auth-offer.ts
+msgid "Resume chat"
+msgstr "Retomar chat"
+
#: src/components/acp/ThreadView.tsx
msgid "Resuming the chat"
msgstr "Retomando o chat"
@@ -11657,6 +11683,7 @@ msgstr "Retomando o chat"
msgid "Retrieving…"
msgstr "Recuperando…"
+#: src/components/acp/thread-auth-offer.ts
#: src/components/acp/ThreadView.tsx
#: src/components/ActivityModeContent.tsx
#: src/components/BugReportHistory.tsx
@@ -11672,6 +11699,7 @@ msgstr "Tentar de novo"
msgid "Retry push"
msgstr "Tentar o push de novo"
+#: src/components/acp/ThreadView.tsx
#: src/components/TrashFailureModal.tsx
msgid "Retrying"
msgstr "Tentando de novo"
@@ -12668,6 +12696,7 @@ msgstr "Aparece acima do corpo do código. No markdown, vai e volta como `title=
msgid "Sifting…"
msgstr "Peneirando…"
+#: src/components/acp/thread-auth-offer.ts
#: src/components/settings/AccountSection.tsx
#: src/components/settings/SyncSection.tsx
#: src/components/ShareBranchSwitchDialog.tsx
@@ -12679,7 +12708,7 @@ msgstr "Entrar"
msgid "Sign in to {agentName} first"
msgstr "Entre primeiro no {agentName}"
-#: src/components/acp/ThreadView.tsx
+#: src/components/acp/thread-auth-offer.ts
msgid "Sign in to {agentName} to continue."
msgstr "Faça login em {agentName} para continuar."
diff --git a/packages/app/src/locales/ur/messages.json b/packages/app/src/locales/ur/messages.json
index 43ae324be..69ba8ec8d 100644
--- a/packages/app/src/locales/ur/messages.json
+++ b/packages/app/src/locales/ur/messages.json
@@ -950,6 +950,7 @@
"ApeA0n": [["docName"], " پر ", ["dropCount"], " ترامیم واپس لے لی گئیں"],
"Aq-O0x": ["حالت"],
"AqnqMJ": ["API کلید مقرر ہے"],
+ "Arr7LU": [["agentName"], " شروع نہ ہو سکا: ", ["0"]],
"AsqRE_": ["نئے منسلکات کے لیے طے شدہ مقام"],
"AtBdnD": ["مہارت حذف نہیں ہو سکی: ", ["error"]],
"AvqEDl": ["چھوڑی گئی کچھ فائلیں محفوظ طریقے سے شامل نہیں کی جا سکیں۔"],
@@ -1823,6 +1824,7 @@
]
],
"LKOLNn": ["کوئی AI ایجنٹ نصب نہیں"],
+ "LMVNT6": [["agentName"], " کو آپ کے سائن اِن کرنے کی ضرورت ہے۔"],
"LPAv9E": [["days"], " دن پہلے"],
"LPLWpO": ["بورڈ کا مواد کوئی درست Excalidraw منظر نہیں ہے۔"],
"LQdLio": ["نیا اسکیما"],
@@ -2052,6 +2054,7 @@
"O0Z2Xr": ["جانے والے"],
"O2UpM1": ["براؤز کریں"],
"O3oNi5": ["ای میل"],
+ "O4rQ4h": [["agentName"], " کو آپ کے سائن اِن کرنے کی ضرورت تھی۔"],
"O6H89R": ["حل شدہ"],
"O6yEPk": ["اپنی پسند کے فولڈر میں نیا OpenKnowledge پروجیکٹ بنائیں۔"],
"O7_W_a": ["AI کے ساتھ کھولیں"],
@@ -2558,7 +2561,6 @@
["propertyCount", "plural", { "one": ["#", " خصوصیت"], "other": ["#", " خصوصیات"] }]
],
"UIjjFa": ["دیکھیں کیا شامل ہوگا"],
- "UJEFJY": [["0"], " شروع نہ ہو سکا: ", ["1"]],
"UL-9ej": ["OpenKnowledge نے لائیو پیش منظر کھولا"],
"UL8A9w": ["ٹیگ"],
"UMT9C9": ["OpenKnowledge اور اس کے MCP ٹولز کا استعمال کیسے کریں۔"],
@@ -2732,6 +2734,10 @@
" منتخب آئٹمز حذف کرنا چاہتے ہیں؟ فولڈرز اور ان کے اندر کی تمام فائلیں حذف ہو جائیں گی۔ یہ عمل واپس نہیں لیا جا سکتا۔"
],
"WMsoIm": ["پہلے سے سائن اِن ہیں؟"],
+ "WOY8rV": [
+ ["agentName"],
+ " کو آپ کے سائن اِن کرنے کی ضرورت تھی۔ اس چیٹ کو دوبارہ شروع کر کے پھر کوشش کریں۔"
+ ],
"WOfp4H": ["مطابقت پذیری کا وقفہ اپ ڈیٹ نہیں ہو سکا — ", ["detail"]],
"WOr-hW": ["ٹوکنز"],
"WPwDin": ["ڈسک پر فولڈر کھولیں"],
@@ -3072,6 +3078,7 @@
"_9rYSZ": [["names"], " کا MCP انٹیگریشن درست کر دیا گیا"],
"_Bix3-": [["localizedFirstMessage"], " کے واقعات"],
"_DwR-n": ["بنائی جا رہی ہے…"],
+ "_FqAty": ["چیٹ دوبارہ شروع کریں"],
"_G7A92": ["برقرار رکھیں index.md"],
"_GRWOJ": ["ایمبیڈنگز فراہم کنندہ بدلیں؟"],
"_HgF9q": ["ترتیب کا معیار"],
@@ -3125,6 +3132,7 @@
"_tekeB": ["فولڈر کی خصوصیات تازہ کیں"],
"_tjopj": ["نقل چسپاں کریں"],
"_uxBz5": [["rowLabel"], " کے لیے MCP اور اسکل شامل کریں"],
+ "_xWxLt": [["agentName"], " ایک خرابی کے ساتھ رک گیا۔"],
"_yB-24": ["کسی بھی ", ["0"], "/ فولڈر کے تحت سب کچھ"],
"a-cKXz": ["پورا سورس منتخب کریں"],
"a3LDKx": ["سیکیورٹی"],
@@ -3819,7 +3827,6 @@
"hFmYGU": ["منسلک تھیم فائلوں کی معاونت نہیں ہے"],
"hGmuTc": ["#", ["tagDocsName"], " سے ٹیگ شدہ دستاویزات"],
"hHMv6l": ["بلاک حذف کریں"],
- "hHR0tt": [["0"], " کے ساتھ نئی چیٹ"],
"hItdtk": ["فولڈر براؤز کریں"],
"hLKfZe": ["اس کے بجائے ٹوکن استعمال کریں"],
"hLod4_": ["ٹیمپلیٹ میں بدلیں"],
@@ -3925,6 +3932,7 @@
"iSLIjg": ["منسلک کریں"],
"iSQTsg": ["مرتب فہرست"],
"iSWh95": ["تصویر کا ہدف \"", ["shown"], "\" کسی موجودہ فائل کی طرف اشارہ نہیں کرتا۔"],
+ "iSguIe": [["agentName"], " کے ساتھ نئی چیٹ"],
"iSnkwB": ["کلون شدہ پروجیکٹ نہیں کھل سکا۔"],
"iTylMl": ["ٹیمپلیٹس"],
"iUwpZI": ["کوئی خالی جگہ نہیں — اس کے بجائے <0>-</0> استعمال کریں۔"],
@@ -4117,6 +4125,7 @@
"kNGLX6": ["دوبارہ کوشش جاری ہے…"],
"kNiQp6": ["پن شدہ"],
"kNqMMd": ["فولڈر"],
+ "kNvMl7": ["سائن اِن کرنے کے لیے ٹرمینل کھولیں"],
"kPOw9O": ["پیغام نقل کریں"],
"kRTXGw": [
"معنوی تلاش کو OpenAI سے ہم آہنگ کسی بھی ایمبیڈنگز اینڈ پوائنٹ کی طرف موڑیں — خود میزبان سرور یا کوئی دوسرا فراہم کنندہ۔ اوپر دی گئی API کلید اسی اینڈ پوائنٹ کے لیے ہے جو آپ یہاں مقرر کریں۔"
@@ -4313,6 +4322,10 @@
"Git کی کسی کارروائی یا حل طلب تضادات پر توجہ درکار ہے، اس لیے Git کی مطابقت پذیری رکی ہوئی ہے۔ آپ کی تبدیلیاں اب بھی مقامی طور پر محفوظ ہوتی ہیں۔ اپنے ٹرمینل میں کارروائی مکمل کریں یا تضادات حل کریں، پھر مطابقت پذیری دوبارہ آزمائیں۔"
],
"mPoOmg": ["پہلے یہاں ایک اسکل انسٹال کریں"],
+ "mPwwPl": [
+ ["agentName"],
+ " اس چیٹ کو دوبارہ جاری نہیں رکھ سکتا۔ ٹرانسکرپٹ محفوظ ہے، اس لیے جاری رکھنے کے لیے نئی چیٹ شروع کریں۔"
+ ],
"mPy9lS": [
"میری موجودہ اسپیکس کو شعبے کے لحاظ سے گروپ شدہ ایک مربوط اشاریے میں منظم کریں، اور ان میں سے کسی کو نشان زد کریں جو موجودہ کوڈ سے ہم آہنگ نہ رہی ہو۔"
],
@@ -4376,10 +4389,6 @@
["mirrorSourceTag"],
"</1> موجود نہیں۔"
],
- "ms4r8V": [
- ["0"],
- " اس چیٹ کو جاری نہیں رکھ سکتا — ٹرانسکرپٹ محفوظ ہے، لیکن ایجنٹ سیشن ختم ہو گیا ہے۔"
- ],
"msOK6I": [
"جو ریپازٹریز آپ پہلے ہی کلون کر چکے ہیں وہ git کی اپنی محفوظ اسناد کے ذریعے مطابقت پذیر رہ سکتی ہیں، منقطع ہونے کے بعد بھی۔"
],
@@ -4989,6 +4998,7 @@
["trashNoun"],
" میں منتقل نہیں کیا جا سکا۔ کیا آپ اس کے بجائے مستقل طور پر حذف کرنا چاہتے ہیں؟"
],
+ "txGF-X": [["agentName"], " نہیں چل رہا۔ سائن اِن کرنے کے لیے نئی چیٹ شروع کریں۔"],
"txUHO8": ["سطر ", ["displayLine"], " پر ", ["localizedMessage"]],
"txmRmK": ["مہارتوں کے پینل کا سائز تبدیل کریں"],
"tzGWeg": ["OpenKnowledge کی تنصیب ختم کرنے کی تیاری"],
diff --git a/packages/app/src/locales/ur/messages.po b/packages/app/src/locales/ur/messages.po
index 5e0f22d30..9dbd49373 100644
--- a/packages/app/src/locales/ur/messages.po
+++ b/packages/app/src/locales/ur/messages.po
@@ -302,11 +302,6 @@ msgstr "{0} پوچھے بغیر عمل کرتا ہے — OpenKnowledge اس کے
msgid "{0} added, {1} removed"
msgstr "{0} شامل، {1} ہٹائے گئے"
-#. placeholder {0}: info.agent.name
-#: src/components/acp/ThreadView.tsx
-msgid "{0} can't continue this chat — the transcript is kept, but the agent session is gone."
-msgstr "{0} اس چیٹ کو جاری نہیں رکھ سکتا — ٹرانسکرپٹ محفوظ ہے، لیکن ایجنٹ سیشن ختم ہو گیا ہے۔"
-
#. placeholder {0}: info.agent.name
#: src/components/acp/ThreadView.tsx
msgid "{0} doesn't offer any settings to adjust"
@@ -549,6 +544,10 @@ msgstr "{agent} وہی ورک اسپیس MCP کنفیگ پڑھتا ہے جو Ope
msgid "troubleshooting.openclaw.central-store-missing"
msgstr "{agent} کا مرکزی اسکل اسٹور ابھی موجود نہیں؛ {agent} کو ایک بار چلائیں تاکہ وہ اسے بنا لے، پھر دوبارہ کوشش کریں۔"
+#: src/components/acp/ThreadView.tsx
+msgid "{agentName} can't pick this chat back up. The transcript is kept, so start a new chat to continue."
+msgstr "{agentName} اس چیٹ کو دوبارہ جاری نہیں رکھ سکتا۔ ٹرانسکرپٹ محفوظ ہے، اس لیے جاری رکھنے کے لیے نئی چیٹ شروع کریں۔"
+
#: src/components/acp/ThreadView.tsx
msgid "{agentName} couldn't start a conversation."
msgstr "{agentName} گفتگو شروع نہ کر سکا۔"
@@ -562,10 +561,30 @@ msgstr "{agentName} شروع نہ ہو سکا۔"
msgid "{agentName} doesn't accept image attachments."
msgstr "{agentName} تصویری منسلکات قبول نہیں کرتا۔"
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} isn't running. Start a new chat to sign in."
+msgstr "{agentName} نہیں چل رہا۔ سائن اِن کرنے کے لیے نئی چیٹ شروع کریں۔"
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needed you to sign in."
+msgstr "{agentName} کو آپ کے سائن اِن کرنے کی ضرورت تھی۔"
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needed you to sign in. Resume this chat to try again."
+msgstr "{agentName} کو آپ کے سائن اِن کرنے کی ضرورت تھی۔ اس چیٹ کو دوبارہ شروع کر کے پھر کوشش کریں۔"
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needs you to sign in."
+msgstr "{agentName} کو آپ کے سائن اِن کرنے کی ضرورت ہے۔"
+
#: src/components/acp/AgentNoticeAnnouncer.tsx
msgid "{agentName} reported: {headline}"
msgstr "{agentName} نے اطلاع دی: {headline}"
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} stopped with an error."
+msgstr "{agentName} ایک خرابی کے ساتھ رک گیا۔"
+
#: src/components/SyncStatusBadge.tsx
msgid "{ahead} ahead"
msgstr "{ahead} آگے"
@@ -4312,11 +4331,10 @@ msgstr "آپ کے تبصرے نہیں بھیجے جا سکے — ورک اسپی
msgid "Couldn't send your prompt — please try again."
msgstr "آپ کا پرامپٹ نہیں بھیجا جا سکا — براہِ کرم دوبارہ کوشش کریں۔"
-#. placeholder {0}: info.agent.name
-#. placeholder {1}: errorText(err)
+#. placeholder {0}: errorText(err)
#: src/components/acp/ThreadView.tsx
-msgid "Couldn't start {0}: {1}"
-msgstr "{0} شروع نہ ہو سکا: {1}"
+msgid "Couldn't start {agentName}: {0}"
+msgstr "{agentName} شروع نہ ہو سکا: {0}"
#: src/components/SlidesToolbarControls.tsx
msgid "Couldn't start Slidev."
@@ -8677,10 +8695,10 @@ msgstr "نئی برانچ <0>{trimmed}</0> موجودہ کمٹ سے بنے گی
msgid "New changes from your remote appear in your copy automatically."
msgstr "آپ کے ریموٹ کی نئی تبدیلیاں خودکار طور پر آپ کی نقل میں آ جاتی ہیں۔"
-#. placeholder {0}: info.agent.name
+#: src/components/acp/thread-auth-offer.ts
#: src/components/acp/ThreadView.tsx
-msgid "New chat with {0}"
-msgstr "{0} کے ساتھ نئی چیٹ"
+msgid "New chat with {agentName}"
+msgstr "{agentName} کے ساتھ نئی چیٹ"
#: src/components/AppMenubar.tsx
#: src/components/command-palette-commands.ts
@@ -9722,6 +9740,10 @@ msgstr "ماخذ کھولیں: {mirrorSrc}"
msgid "Open terminal"
msgstr "ٹرمینل کھولیں"
+#: src/components/acp/thread-auth-offer.ts
+msgid "Open terminal to sign in"
+msgstr "سائن اِن کرنے کے لیے ٹرمینل کھولیں"
+
#: src/components/ShareBranchSwitchDialog.tsx
msgid "Open that worktree instead"
msgstr "اس کے بجائے وہ ورک ٹری کھولیں"
@@ -11653,6 +11675,10 @@ msgstr "{0} کے ورژن پر بحال کر دیا گیا"
msgid "Results capped — this workspace has more files than search can index. A missing file may be a cap artifact, not a typo."
msgstr "نتائج محدود — اس ورک اسپیس میں اتنی فائلیں ہیں جتنی تلاش اشاریہ بند نہیں کر سکتی۔ کوئی غائب فائل اس حد کا نتیجہ ہو سکتی ہے، املا کی غلطی نہیں۔"
+#: src/components/acp/thread-auth-offer.ts
+msgid "Resume chat"
+msgstr "چیٹ دوبارہ شروع کریں"
+
#: src/components/acp/ThreadView.tsx
msgid "Resuming the chat"
msgstr "چیٹ دوبارہ شروع ہو رہی ہے"
@@ -11661,6 +11687,7 @@ msgstr "چیٹ دوبارہ شروع ہو رہی ہے"
msgid "Retrieving…"
msgstr "حاصل کیا جا رہا ہے…"
+#: src/components/acp/thread-auth-offer.ts
#: src/components/acp/ThreadView.tsx
#: src/components/ActivityModeContent.tsx
#: src/components/BugReportHistory.tsx
@@ -11676,6 +11703,7 @@ msgstr "دوبارہ کوشش کریں"
msgid "Retry push"
msgstr "پُش دوبارہ آزمائیں"
+#: src/components/acp/ThreadView.tsx
#: src/components/TrashFailureModal.tsx
msgid "Retrying"
msgstr "دوبارہ کوشش کی جا رہی ہے"
@@ -12672,6 +12700,7 @@ msgstr "کوڈ کے متن کے اوپر ظاہر ہوتا ہے۔ Markdown می
msgid "Sifting…"
msgstr "چھانٹا جا رہا ہے…"
+#: src/components/acp/thread-auth-offer.ts
#: src/components/settings/AccountSection.tsx
#: src/components/settings/SyncSection.tsx
#: src/components/ShareBranchSwitchDialog.tsx
@@ -12683,7 +12712,7 @@ msgstr "سائن اِن کریں"
msgid "Sign in to {agentName} first"
msgstr "پہلے {agentName} میں سائن اِن کریں"
-#: src/components/acp/ThreadView.tsx
+#: src/components/acp/thread-auth-offer.ts
msgid "Sign in to {agentName} to continue."
msgstr "جاری رکھنے کے لیے {agentName} میں سائن اِن کریں۔"
diff --git a/packages/app/src/locales/zh-Hans/messages.json b/packages/app/src/locales/zh-Hans/messages.json
index 0a8b225c2..ee59f9c16 100644
--- a/packages/app/src/locales/zh-Hans/messages.json
+++ b/packages/app/src/locales/zh-Hans/messages.json
@@ -833,6 +833,7 @@
"ApeA0n": ["已撤销 ", ["docName"], " 上的 ", ["dropCount"], " 次编辑"],
"Aq-O0x": ["状态"],
"AqnqMJ": ["API 密钥已设置"],
+ "Arr7LU": ["无法启动 ", ["agentName"], ":", ["0"]],
"AsqRE_": ["新附件的默认位置"],
"AtBdnD": ["无法删除技能:", ["error"]],
"AvqEDl": ["部分拖放的文件无法安全插入。"],
@@ -1563,6 +1564,7 @@
["laterEdits", "plural", { "other": ["会移除这个文件上 ", "#", " 处较新的编辑。"] }]
],
"LKOLNn": ["未安装任何 AI 智能体"],
+ "LMVNT6": [["agentName"], " 需要你登录。"],
"LPAv9E": [["days"], " 天前"],
"LPLWpO": ["画板内容不是有效的 Excalidraw 场景。"],
"LQdLio": ["新建架构"],
@@ -1758,6 +1760,7 @@
"O0Z2Xr": ["出链"],
"O2UpM1": ["浏览"],
"O3oNi5": ["电子邮件"],
+ "O4rQ4h": [["agentName"], " 之前需要你登录。"],
"O6H89R": ["已解决"],
"O6yEPk": ["在你选择的文件夹中创建一个新的 OpenKnowledge 项目。"],
"O7_W_a": ["用 AI 打开"],
@@ -2190,7 +2193,6 @@
],
"UI0WPT": [["propertyCount", "plural", { "other": ["#", " 项属性"] }]],
"UIjjFa": ["查看将添加的内容"],
- "UJEFJY": ["无法启动 ", ["0"], ":", ["1"]],
"UL-9ej": ["OpenKnowledge 打开了实时预览"],
"UL8A9w": ["标签"],
"UMT9C9": ["如何使用 OpenKnowledge 及其 MCP 工具。"],
@@ -2344,6 +2346,7 @@
" 个项目吗?文件夹及其中的所有文件都会被删除。此操作无法撤销。"
],
"WMsoIm": ["已经登录了?"],
+ "WOY8rV": [["agentName"], " 之前需要你登录。恢复此对话以重试。"],
"WOfp4H": ["更新同步间隔失败 — ", ["detail"]],
"WOr-hW": ["token"],
"WPwDin": ["在磁盘上打开文件夹"],
@@ -2647,6 +2650,7 @@
"_9rYSZ": ["已修复 ", ["names"], " 的 MCP 集成"],
"_Bix3-": [["localizedFirstMessage"], " 的出现位置"],
"_DwR-n": ["正在创建…"],
+ "_FqAty": ["恢复对话"],
"_G7A92": ["维护index.md"],
"_GRWOJ": ["要更换嵌入服务提供方吗?"],
"_HgF9q": ["排序方式"],
@@ -2696,6 +2700,7 @@
"_tekeB": ["已更新文件夹属性"],
"_tjopj": ["粘贴副本"],
"_uxBz5": ["为 ", ["rowLabel"], " 添加 MCP 和技能"],
+ "_xWxLt": [["agentName"], " 因错误已停止。"],
"_yB-24": ["任意 ", ["0"], "/ 文件夹下的所有内容"],
"a-cKXz": ["全选源码"],
"a3LDKx": ["安全"],
@@ -3270,7 +3275,6 @@
"hFmYGU": ["不支持链接的主题文件"],
"hGmuTc": ["带 #", ["tagDocsName"], " 标签的文档"],
"hHMv6l": ["删除块"],
- "hHR0tt": ["与 ", ["0"], " 的新对话"],
"hItdtk": ["浏览文件夹"],
"hLKfZe": ["改用令牌"],
"hLod4_": ["转换为模板"],
@@ -3367,6 +3371,7 @@
"iSLIjg": ["连接"],
"iSQTsg": ["有序列表"],
"iSWh95": ["图片目标“", ["shown"], "”未指向现有文件。"],
+ "iSguIe": ["与 ", ["agentName"], " 的新对话"],
"iSnkwB": ["打开克隆的项目失败。"],
"iTylMl": ["模板"],
"iUwpZI": ["不能有空格——请改用 <0>-</0>。"],
@@ -3539,6 +3544,7 @@
"kNGLX6": ["正在重试…"],
"kNiQp6": ["已置顶"],
"kNqMMd": ["文件夹"],
+ "kNvMl7": ["打开终端以登录"],
"kPOw9O": ["复制消息"],
"kRTXGw": [
"把语义搜索指向任何兼容 OpenAI 的嵌入端点——自建服务器或其他提供方均可。上方的 API 密钥用于你在这里设置的端点。"
@@ -3699,6 +3705,7 @@
"Git 同步已暂停,因为有 Git 操作或未解决的冲突需要处理。你的编辑仍会保存在本地。请在终端中完成该操作或解决冲突,然后重试同步。"
],
"mPoOmg": ["请先在此处安装一个技能"],
+ "mPwwPl": [["agentName"], " 无法继续此对话。记录会保留,请开始新对话以继续。"],
"mPy9lS": ["把我现有的规格整理成一个按领域分组的链接索引,并标出与当前代码脱节的部分。"],
"mPzgTS": ["打开 ", ["docName"]],
"mR3uQg": ["此文件已在当前分支中删除(delete-modify 冲突)。"],
@@ -3746,7 +3753,6 @@
["mirrorSourceTag"],
"</1>。"
],
- "ms4r8V": [["0"], " 无法继续此对话 — 聊天记录已保留,但智能体会话已丢失。"],
"msOK6I": ["即使你断开连接,你已经克隆的仓库也可能继续通过 git 自己保存的凭据同步。"],
"msqUNq": ["现成的文件夹和模板,帮你快速上手。"],
"msuDyW": ["为首次打开这个项目的用户设置同步默认值。这项设置会提交到你的仓库。"],
@@ -4283,6 +4289,7 @@
],
"tsiTqO": ["粘贴你的 API 密钥"],
"tvMvze": ["无法将“", ["targetName"], "”移到", ["trashNoun"], "。是否要改为永久删除?"],
+ "txGF-X": [["agentName"], " 未在运行。请开始新对话以登录。"],
"txUHO8": ["第 ", ["displayLine"], " 行:", ["localizedMessage"]],
"txmRmK": ["调整「技能」面板大小"],
"tzGWeg": ["正在准备卸载 OpenKnowledge"],
diff --git a/packages/app/src/locales/zh-Hans/messages.po b/packages/app/src/locales/zh-Hans/messages.po
index d97b5ac06..acf527b35 100644
--- a/packages/app/src/locales/zh-Hans/messages.po
+++ b/packages/app/src/locales/zh-Hans/messages.po
@@ -302,11 +302,6 @@ msgstr "{0} 不经询问即执行操作 — OpenKnowledge 无法为其添加权
msgid "{0} added, {1} removed"
msgstr "新增 {0} 项,移除 {1} 项"
-#. placeholder {0}: info.agent.name
-#: src/components/acp/ThreadView.tsx
-msgid "{0} can't continue this chat — the transcript is kept, but the agent session is gone."
-msgstr "{0} 无法继续此对话 — 聊天记录已保留,但智能体会话已丢失。"
-
#. placeholder {0}: info.agent.name
#: src/components/acp/ThreadView.tsx
msgid "{0} doesn't offer any settings to adjust"
@@ -549,6 +544,10 @@ msgstr "{agent} 读取 OpenKnowledge 为 {sourceAgent} 写入的工作区 MCP
msgid "troubleshooting.openclaw.central-store-missing"
msgstr "{agent} 的中央技能库还不存在;先启动一次 {agent} 让它创建,然后再试。"
+#: src/components/acp/ThreadView.tsx
+msgid "{agentName} can't pick this chat back up. The transcript is kept, so start a new chat to continue."
+msgstr "{agentName} 无法继续此对话。记录会保留,请开始新对话以继续。"
+
#: src/components/acp/ThreadView.tsx
msgid "{agentName} couldn't start a conversation."
msgstr "{agentName} 无法开始对话。"
@@ -562,10 +561,30 @@ msgstr "{agentName} 无法启动。"
msgid "{agentName} doesn't accept image attachments."
msgstr "{agentName} 不接受图像附件。"
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} isn't running. Start a new chat to sign in."
+msgstr "{agentName} 未在运行。请开始新对话以登录。"
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needed you to sign in."
+msgstr "{agentName} 之前需要你登录。"
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needed you to sign in. Resume this chat to try again."
+msgstr "{agentName} 之前需要你登录。恢复此对话以重试。"
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needs you to sign in."
+msgstr "{agentName} 需要你登录。"
+
#: src/components/acp/AgentNoticeAnnouncer.tsx
msgid "{agentName} reported: {headline}"
msgstr "{agentName} 报告:{headline}"
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} stopped with an error."
+msgstr "{agentName} 因错误已停止。"
+
#: src/components/SyncStatusBadge.tsx
msgid "{ahead} ahead"
msgstr "领先 {ahead} 个"
@@ -4312,11 +4331,10 @@ msgstr "无法发送你的评论——工作区尚未就绪。"
msgid "Couldn't send your prompt — please try again."
msgstr "无法发送你的提示词——请重试。"
-#. placeholder {0}: info.agent.name
-#. placeholder {1}: errorText(err)
+#. placeholder {0}: errorText(err)
#: src/components/acp/ThreadView.tsx
-msgid "Couldn't start {0}: {1}"
-msgstr "无法启动 {0}:{1}"
+msgid "Couldn't start {agentName}: {0}"
+msgstr "无法启动 {agentName}:{0}"
#: src/components/SlidesToolbarControls.tsx
msgid "Couldn't start Slidev."
@@ -8677,10 +8695,10 @@ msgstr "新分支 <0>{trimmed}</0> 将基于当前提交创建,位于 <1>.ok/w
msgid "New changes from your remote appear in your copy automatically."
msgstr "来自远程的新改动会自动出现在你的副本中。"
-#. placeholder {0}: info.agent.name
+#: src/components/acp/thread-auth-offer.ts
#: src/components/acp/ThreadView.tsx
-msgid "New chat with {0}"
-msgstr "与 {0} 的新对话"
+msgid "New chat with {agentName}"
+msgstr "与 {agentName} 的新对话"
#: src/components/AppMenubar.tsx
#: src/components/command-palette-commands.ts
@@ -9722,6 +9740,10 @@ msgstr "来源:{mirrorSrc}"
msgid "Open terminal"
msgstr "打开终端"
+#: src/components/acp/thread-auth-offer.ts
+msgid "Open terminal to sign in"
+msgstr "打开终端以登录"
+
#: src/components/ShareBranchSwitchDialog.tsx
msgid "Open that worktree instead"
msgstr "改为打开那个 worktree"
@@ -11653,6 +11675,10 @@ msgstr "已恢复到 {0} 的版本"
msgid "Results capped — this workspace has more files than search can index. A missing file may be a cap artifact, not a typo."
msgstr "结果已被截断——这个工作区的文件数超出了搜索可索引的上限。找不到某个文件可能是上限造成的,而不是拼写错误。"
+#: src/components/acp/thread-auth-offer.ts
+msgid "Resume chat"
+msgstr "恢复对话"
+
#: src/components/acp/ThreadView.tsx
msgid "Resuming the chat"
msgstr "正在恢复对话"
@@ -11661,6 +11687,7 @@ msgstr "正在恢复对话"
msgid "Retrieving…"
msgstr "正在检索…"
+#: src/components/acp/thread-auth-offer.ts
#: src/components/acp/ThreadView.tsx
#: src/components/ActivityModeContent.tsx
#: src/components/BugReportHistory.tsx
@@ -11676,6 +11703,7 @@ msgstr "重试"
msgid "Retry push"
msgstr "重试推送"
+#: src/components/acp/ThreadView.tsx
#: src/components/TrashFailureModal.tsx
msgid "Retrying"
msgstr "正在重试"
@@ -12672,6 +12700,7 @@ msgstr "显示在代码正文上方。在 markdown 中以 `title=\"...\"` 的形
msgid "Sifting…"
msgstr "正在筛查…"
+#: src/components/acp/thread-auth-offer.ts
#: src/components/settings/AccountSection.tsx
#: src/components/settings/SyncSection.tsx
#: src/components/ShareBranchSwitchDialog.tsx
@@ -12683,7 +12712,7 @@ msgstr "登录"
msgid "Sign in to {agentName} first"
msgstr "请先登录 {agentName}"
-#: src/components/acp/ThreadView.tsx
+#: src/components/acp/thread-auth-offer.ts
msgid "Sign in to {agentName} to continue."
msgstr "请登录 {agentName} 以继续。"
diff --git a/packages/app/src/locales/zh-Hant/messages.json b/packages/app/src/locales/zh-Hant/messages.json
index 8c80630ef..555cc6bd4 100644
--- a/packages/app/src/locales/zh-Hant/messages.json
+++ b/packages/app/src/locales/zh-Hant/messages.json
@@ -833,6 +833,7 @@
"ApeA0n": ["已復原 ", ["docName"], " 上的 ", ["dropCount"], " 次編輯"],
"Aq-O0x": ["狀態"],
"AqnqMJ": ["API 金鑰已設定"],
+ "Arr7LU": ["無法啟動 ", ["agentName"], ":", ["0"]],
"AsqRE_": ["新附件的預設位置"],
"AtBdnD": ["無法刪除技能:", ["error"]],
"AvqEDl": ["部分拖放的檔案無法安全插入。"],
@@ -1575,6 +1576,7 @@
["laterEdits", "plural", { "other": ["會移除這個檔案上 ", "#", " 處較新的編輯。"] }]
],
"LKOLNn": ["沒有安裝任何 AI 代理"],
+ "LMVNT6": [["agentName"], " 需要你登入。"],
"LPAv9E": [["days"], " 天前"],
"LPLWpO": ["畫板內容不是有效的 Excalidraw 場景。"],
"LQdLio": ["新增結構描述"],
@@ -1776,6 +1778,7 @@
"O0Z2Xr": ["連出"],
"O2UpM1": ["瀏覽"],
"O3oNi5": ["電子郵件"],
+ "O4rQ4h": [["agentName"], " 之前需要你登入。"],
"O6H89R": ["已解決"],
"O6yEPk": ["在你選的資料夾中建立一個新的 OpenKnowledge 專案。"],
"O7_W_a": ["用 AI 開啟"],
@@ -2208,7 +2211,6 @@
],
"UI0WPT": [["propertyCount", "plural", { "other": ["#", " 項屬性"] }]],
"UIjjFa": ["查看將新增的內容"],
- "UJEFJY": ["無法啟動 ", ["0"], ":", ["1"]],
"UL-9ej": ["OpenKnowledge 開啟了即時預覽"],
"UL8A9w": ["標籤"],
"UMT9C9": ["如何使用 OpenKnowledge 及其 MCP 工具。"],
@@ -2364,6 +2366,7 @@
" 個項目嗎?資料夾以及裡面的所有檔案都會被刪除。這個動作無法復原。"
],
"WMsoIm": ["已經登入了?"],
+ "WOY8rV": [["agentName"], " 之前需要你登入。恢復此對話以重試。"],
"WOfp4H": ["更新同步間隔失敗 — ", ["detail"]],
"WOr-hW": ["token"],
"WPwDin": ["在磁碟上開啟資料夾"],
@@ -2663,6 +2666,7 @@
"_9rYSZ": ["已修復 ", ["names"], " 的 MCP 整合"],
"_Bix3-": [["localizedFirstMessage"], " 的出現位置"],
"_DwR-n": ["正在建立…"],
+ "_FqAty": ["恢復對話"],
"_G7A92": ["維護index.md"],
"_GRWOJ": ["要更換嵌入服務供應商嗎?"],
"_HgF9q": ["排序方式"],
@@ -2714,6 +2718,7 @@
"_tekeB": ["已更新資料夾屬性"],
"_tjopj": ["貼上副本"],
"_uxBz5": ["為 ", ["rowLabel"], " 新增 MCP 和技能"],
+ "_xWxLt": [["agentName"], " 因錯誤已停止。"],
"_yB-24": ["任何 ", ["0"], "/ 資料夾底下的所有內容"],
"a-cKXz": ["全選原始碼"],
"a3LDKx": ["安全性"],
@@ -3292,7 +3297,6 @@
"hFmYGU": ["不支援連結的主題檔案"],
"hGmuTc": ["標了 #", ["tagDocsName"], " 的文件"],
"hHMv6l": ["刪除區塊"],
- "hHR0tt": ["與 ", ["0"], " 的新對話"],
"hItdtk": ["瀏覽資料夾"],
"hLKfZe": ["改用權杖"],
"hLod4_": ["轉換成範本"],
@@ -3385,6 +3389,7 @@
"iSLIjg": ["連接"],
"iSQTsg": ["編號清單"],
"iSWh95": ["圖片目標「", ["shown"], "」未指向現有檔案。"],
+ "iSguIe": ["與 ", ["agentName"], " 的新對話"],
"iSnkwB": ["開啟複製下來的專案失敗。"],
"iTylMl": ["範本"],
"iUwpZI": ["不能有空格——請改用 <0>-</0>。"],
@@ -3557,6 +3562,7 @@
"kNGLX6": ["正在重試…"],
"kNiQp6": ["已置頂"],
"kNqMMd": ["資料夾"],
+ "kNvMl7": ["開啟終端機以登入"],
"kPOw9O": ["複製訊息"],
"kRTXGw": [
"把語意搜尋指向任何相容 OpenAI 的嵌入端點——自架的伺服器或別家供應商都行。上面的 API 金鑰是給你在這裡設定的端點用的。"
@@ -3717,6 +3723,7 @@
"Git 同步已暫停,因為有 Git 操作或尚未解決的衝突需要處理。你的編輯仍會儲存在本機。請在終端機中完成該操作或解決衝突,然後重試同步。"
],
"mPoOmg": ["請先在此處安裝一個技能"],
+ "mPwwPl": [["agentName"], " 無法繼續此對話。記錄會保留,請開始新的對話以繼續。"],
"mPy9lS": ["把我現有的規格整理成一個依領域分組的連結索引,並標出和目前程式碼已經脫節的部分。"],
"mPzgTS": ["開啟 ", ["docName"]],
"mR3uQg": ["此檔案已在目前分支中刪除(delete-modify 衝突)。"],
@@ -3764,7 +3771,6 @@
["mirrorSourceTag"],
"</1>。"
],
- "ms4r8V": [["0"], " 無法繼續此對話 — 對話記錄已保留,但智慧代理的工作階段已遺失。"],
"msOK6I": ["即使你中斷連接,你已經複製下來的儲存庫也可能透過 git 自己存的憑證繼續同步。"],
"msqUNq": ["現成的資料夾和範本,幫你快速上手。"],
"msuDyW": ["為第一次開啟這個專案的使用者設定同步預設值。這項設定會提交到你的儲存庫。"],
@@ -4303,6 +4309,7 @@
],
"tsiTqO": ["貼上你的 API 金鑰"],
"tvMvze": ["無法將「", ["targetName"], "」移到", ["trashNoun"], "。是否要改為永久刪除?"],
+ "txGF-X": [["agentName"], " 未在執行。請開始新的對話以登入。"],
"txUHO8": ["第 ", ["displayLine"], " 行:", ["localizedMessage"]],
"txmRmK": ["調整「技能」面板大小"],
"tzGWeg": ["正在準備解除安裝 OpenKnowledge"],
diff --git a/packages/app/src/locales/zh-Hant/messages.po b/packages/app/src/locales/zh-Hant/messages.po
index c34f93f57..a98466627 100644
--- a/packages/app/src/locales/zh-Hant/messages.po
+++ b/packages/app/src/locales/zh-Hant/messages.po
@@ -302,11 +302,6 @@ msgstr "{0} 不經詢問即執行操作 — OpenKnowledge 無法為其加入權
msgid "{0} added, {1} removed"
msgstr "新增 {0} 項,移除 {1} 項"
-#. placeholder {0}: info.agent.name
-#: src/components/acp/ThreadView.tsx
-msgid "{0} can't continue this chat — the transcript is kept, but the agent session is gone."
-msgstr "{0} 無法繼續此對話 — 對話記錄已保留,但智慧代理的工作階段已遺失。"
-
#. placeholder {0}: info.agent.name
#: src/components/acp/ThreadView.tsx
msgid "{0} doesn't offer any settings to adjust"
@@ -549,6 +544,10 @@ msgstr "{agent} 讀取 OpenKnowledge 為 {sourceAgent} 寫入的工作區 MCP
msgid "troubleshooting.openclaw.central-store-missing"
msgstr "{agent} 的中央技能庫還不存在;先啟動一次 {agent} 讓它建立,然後再試。"
+#: src/components/acp/ThreadView.tsx
+msgid "{agentName} can't pick this chat back up. The transcript is kept, so start a new chat to continue."
+msgstr "{agentName} 無法繼續此對話。記錄會保留,請開始新的對話以繼續。"
+
#: src/components/acp/ThreadView.tsx
msgid "{agentName} couldn't start a conversation."
msgstr "{agentName} 無法開始對話。"
@@ -562,10 +561,30 @@ msgstr "{agentName} 無法啟動。"
msgid "{agentName} doesn't accept image attachments."
msgstr "{agentName} 不接受圖片附件。"
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} isn't running. Start a new chat to sign in."
+msgstr "{agentName} 未在執行。請開始新的對話以登入。"
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needed you to sign in."
+msgstr "{agentName} 之前需要你登入。"
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needed you to sign in. Resume this chat to try again."
+msgstr "{agentName} 之前需要你登入。恢復此對話以重試。"
+
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} needs you to sign in."
+msgstr "{agentName} 需要你登入。"
+
#: src/components/acp/AgentNoticeAnnouncer.tsx
msgid "{agentName} reported: {headline}"
msgstr "{agentName} 回報:{headline}"
+#: src/components/acp/thread-auth-offer.ts
+msgid "{agentName} stopped with an error."
+msgstr "{agentName} 因錯誤已停止。"
+
#: src/components/SyncStatusBadge.tsx
msgid "{ahead} ahead"
msgstr "領先 {ahead} 個"
@@ -4312,11 +4331,10 @@ msgstr "無法傳送你的註解——工作區還沒準備好。"
msgid "Couldn't send your prompt — please try again."
msgstr "無法送出你的提示——請再試一次。"
-#. placeholder {0}: info.agent.name
-#. placeholder {1}: errorText(err)
+#. placeholder {0}: errorText(err)
#: src/components/acp/ThreadView.tsx
-msgid "Couldn't start {0}: {1}"
-msgstr "無法啟動 {0}:{1}"
+msgid "Couldn't start {agentName}: {0}"
+msgstr "無法啟動 {agentName}:{0}"
#: src/components/SlidesToolbarControls.tsx
msgid "Couldn't start Slidev."
@@ -8677,10 +8695,10 @@ msgstr "新分支 <0>{trimmed}</0> 會從目前的提交建立,放在 <1>.ok/w
msgid "New changes from your remote appear in your copy automatically."
msgstr "來自遠端的新變更會自動出現在你的副本裡。"
-#. placeholder {0}: info.agent.name
+#: src/components/acp/thread-auth-offer.ts
#: src/components/acp/ThreadView.tsx
-msgid "New chat with {0}"
-msgstr "與 {0} 的新對話"
+msgid "New chat with {agentName}"
+msgstr "與 {agentName} 的新對話"
#: src/components/AppMenubar.tsx
#: src/components/command-palette-commands.ts
@@ -9722,6 +9740,10 @@ msgstr "來源:{mirrorSrc}"
msgid "Open terminal"
msgstr "開啟終端機"
+#: src/components/acp/thread-auth-offer.ts
+msgid "Open terminal to sign in"
+msgstr "開啟終端機以登入"
+
#: src/components/ShareBranchSwitchDialog.tsx
msgid "Open that worktree instead"
msgstr "改為開啟那個 worktree"
@@ -11653,6 +11675,10 @@ msgstr "已還原到 {0} 的版本"
msgid "Results capped — this workspace has more files than search can index. A missing file may be a cap artifact, not a typo."
msgstr "結果已被截斷——這個工作區的檔案數超過搜尋能索引的上限。找不到某個檔案可能是上限造成的,不是打錯字。"
+#: src/components/acp/thread-auth-offer.ts
+msgid "Resume chat"
+msgstr "恢復對話"
+
#: src/components/acp/ThreadView.tsx
msgid "Resuming the chat"
msgstr "正在恢復對話"
@@ -11661,6 +11687,7 @@ msgstr "正在恢復對話"
msgid "Retrieving…"
msgstr "擷取中…"
+#: src/components/acp/thread-auth-offer.ts
#: src/components/acp/ThreadView.tsx
#: src/components/ActivityModeContent.tsx
#: src/components/BugReportHistory.tsx
@@ -11676,6 +11703,7 @@ msgstr "重試"
msgid "Retry push"
msgstr "重試推送"
+#: src/components/acp/ThreadView.tsx
#: src/components/TrashFailureModal.tsx
msgid "Retrying"
msgstr "正在重試"
@@ -12672,6 +12700,7 @@ msgstr "顯示在程式碼內文上方。在 markdown 中以 `title=\"...\"` 的
msgid "Sifting…"
msgstr "篩查中…"
+#: src/components/acp/thread-auth-offer.ts
#: src/components/settings/AccountSection.tsx
#: src/components/settings/SyncSection.tsx
#: src/components/ShareBranchSwitchDialog.tsx
@@ -12683,7 +12712,7 @@ msgstr "登入"
msgid "Sign in to {agentName} first"
msgstr "請先登入 {agentName}"
-#: src/components/acp/ThreadView.tsx
+#: src/components/acp/thread-auth-offer.ts
msgid "Sign in to {agentName} to continue."
msgstr "請登入 {agentName} 以繼續。"
diff --git a/packages/core/src/acp/thread-protocol.ts b/packages/core/src/acp/thread-protocol.ts
index 99d4b74f3..0b770ef04 100644
--- a/packages/core/src/acp/thread-protocol.ts
+++ b/packages/core/src/acp/thread-protocol.ts
@@ -125,6 +125,7 @@ export interface ThreadInfo {
availableCommands?: AvailableCommand[] | null;
lastSeq: number;
archived?: boolean;
+ resumable?: boolean;
queue?: QueuedMessage[];
steer?: SteerMessage;
signInOutput?: string[];
diff --git a/packages/server/src/acp/thread-manager.integration.test.ts b/packages/server/src/acp/thread-manager.integration.test.ts
index 2db52ee69..2f70f6e82 100644
--- a/packages/server/src/acp/thread-manager.integration.test.ts
+++ b/packages/server/src/acp/thread-manager.integration.test.ts
@@ -92,6 +92,7 @@ function internals(manager: AcpThreadManager): {
pendingPermissionCount: (threadId: string) => number;
turnActive: (threadId: string) => boolean;
child: (threadId: string) => ChildProcess | null | undefined;
+ sessionId: (threadId: string) => string | null | undefined;
} {
const m = manager as unknown as {
reapIdleThreads: () => void;
@@ -101,6 +102,7 @@ function internals(manager: AcpThreadManager): {
pendingPermissions: Map<unknown, unknown>;
turnActive: boolean;
child: ChildProcess | null;
+ sessionId: string | null;
}
>;
};
@@ -109,6 +111,7 @@ function internals(manager: AcpThreadManager): {
pendingPermissionCount: (threadId) => m.threads.get(threadId)?.pendingPermissions.size ?? 0,
turnActive: (threadId) => m.threads.get(threadId)?.turnActive ?? false,
child: (threadId) => m.threads.get(threadId)?.child,
+ sessionId: (threadId) => m.threads.get(threadId)?.sessionId,
};
}
@@ -1347,6 +1350,29 @@ describe('AcpThreadManager persistence + resume', () => {
expect(agentChunks(replayed)).toContain(notedEcho('first message'));
}, 45_000);
+ test('an agent that drops its resume capability retires the offer instead of repeating it', async () => {
+ const contentDir = tmp();
+ const localDir = tmp();
+ writeResumableAgentEntry(localDir, 'fake-flip', { FAKE_CAPS: 'resume' });
+ const manager = makeManager(contentDir, localDir);
+ await manager.init();
+ const threadId = await runOneTurn(manager, 'fake-flip', 'first message');
+ await manager.closeThread(threadId);
+ expect(manager.getInfo(threadId)?.resumable).toBe(true);
+
+ writeResumableAgentEntry(localDir, 'fake-flip', { FAKE_CAPS: '' });
+ await expect(manager.resumeThread(threadId, 'again')).rejects.toMatchObject({
+ code: 'resume-unsupported',
+ });
+ expect(manager.getInfo(threadId)?.archived).toBe(true);
+ expect(manager.getInfo(threadId)?.resumable).toBe(false);
+
+ const manager2 = makeManager(contentDir, localDir);
+ await manager2.init();
+ const rehydrated = manager2.listThreads().find((t) => t.threadId === threadId);
+ expect(rehydrated?.resumable).toBe(false);
+ }, 45_000);
+
test('delete refuses live threads, removes archived ones and their files', async () => {
const contentDir = tmp();
const localDir = tmp();
@@ -2747,6 +2773,36 @@ describe('AcpThreadManager retry', () => {
await manager.closeThread(info.threadId);
}, 40_000);
+ test('retries a thread that opened a session before the agent demanded sign-in', async () => {
+ const contentDir = tmp();
+ const localDir = tmp();
+ const marker = join(tmp(), 'prompt-auth-cleared');
+ writeSessionThenPromptAuthAgentEntry(localDir, 'session-then-auth', marker);
+
+ const manager = makeManager(contentDir, localDir);
+ const info = await manager.createThread({
+ agent: { source: 'custom', id: 'session-then-auth' },
+ });
+ await manager.subscribe(info.threadId, 0, () => {});
+ await waitUntil(() => manager.getInfo(info.threadId)?.status === 'ready', 15_000, 'ready');
+
+ expect(internals(manager).sessionId(info.threadId)).toBe('session-before-auth');
+
+ manager.sendPrompt(info.threadId, 'anything');
+ await waitUntil(
+ () => manager.getInfo(info.threadId)?.status === 'auth_required',
+ 15_000,
+ 'the prompt to park on sign-in',
+ );
+ expect(internals(manager).sessionId(info.threadId)).toBe('session-before-auth');
+
+ writeFileSync(marker, '');
+ const retried = await manager.retryThread(info.threadId);
+ expect(retried.status).toBe('ready');
+
+ await manager.closeThread(info.threadId);
+ }, 40_000);
+
test('refuses a thread that started fine', async () => {
const contentDir = tmp();
const localDir = tmp();
@@ -3093,6 +3149,60 @@ process.stdin.on('data', (chunk) => {
);
}
+function writeSessionThenPromptAuthAgentEntry(
+ localDir: string,
+ id: string,
+ markerPath: string,
+): void {
+ const agentPath = join(localDir, `${id}.mjs`);
+ writeFileSync(
+ agentPath,
+ `
+import { existsSync } from 'node:fs';
+const MARKER = ${JSON.stringify(markerPath)};
+const write = (msg) => process.stdout.write(JSON.stringify(msg) + '\\n');
+let buffer = '';
+process.stdin.setEncoding('utf8');
+process.stdin.on('data', (chunk) => {
+ buffer += chunk;
+ let idx = buffer.indexOf('\\n');
+ while (idx !== -1) {
+ const line = buffer.slice(0, idx);
+ buffer = buffer.slice(idx + 1);
+ idx = buffer.indexOf('\\n');
+ if (line.trim() === '') continue;
+ const msg = JSON.parse(line);
+ if (msg.method === 'initialize') {
+ write({
+ jsonrpc: '2.0',
+ id: msg.id,
+ result: { protocolVersion: 1, agentCapabilities: {}, authMethods: [] },
+ });
+ } else if (msg.method === 'session/new') {
+ write({ jsonrpc: '2.0', id: msg.id, result: { sessionId: 'session-before-auth' } });
+ } else if (msg.method === 'session/prompt') {
+ if (existsSync(MARKER)) {
+ write({ jsonrpc: '2.0', id: msg.id, result: { stopReason: 'end_turn' } });
+ } else {
+ write({
+ jsonrpc: '2.0',
+ id: msg.id,
+ error: { code: -32000, message: 'Authentication required' },
+ });
+ }
+ } else if (msg.id !== undefined) {
+ write({ jsonrpc: '2.0', id: msg.id, result: {} });
+ }
+ }
+});
+`,
+ );
+ writeFileSync(
+ join(localDir, 'acp-agents.json'),
+ JSON.stringify([{ id, name: `Fake ${id}`, command: 'node', args: [agentPath] }]),
+ );
+}
+
describe('AcpThreadManager auth classification', () => {
type StatusEvent = Extract<ThreadEvent, { kind: 'status' }>;
@@ -3623,6 +3733,109 @@ describe('AcpThreadManager auth classification', () => {
}, 30_000);
});
+describe('AcpThreadManager resumability signal', () => {
+ test('a thread parked on sign-in never opened a session, and says so', async () => {
+ const contentDir = tmp();
+ const localDir = tmp();
+ writeSessionFailingAgentEntry(localDir, 'auth-agent', {
+ code: -32000,
+ message: 'Authentication required',
+ data: { detail: 'x' },
+ });
+ const manager = makeManager(contentDir, localDir);
+ await manager.init();
+ const info = await manager.createThread({ agent: { source: 'custom', id: 'auth-agent' } });
+ await manager.subscribe(info.threadId, 0, () => {});
+ await waitUntil(
+ () => manager.getInfo(info.threadId)?.status === 'auth_required',
+ 15_000,
+ 'auth_required',
+ );
+ expect(manager.getInfo(info.threadId)?.resumable).toBe(false);
+
+ await manager.closeThread(info.threadId);
+ expect(manager.getInfo(info.threadId)?.archived).toBe(true);
+ expect(manager.getInfo(info.threadId)?.resumable).toBe(false);
+
+ const manager2 = makeManager(contentDir, localDir);
+ await manager2.init();
+ const rehydrated = manager2.listThreads().find((t) => t.threadId === info.threadId);
+ expect(rehydrated?.archived).toBe(true);
+ expect(rehydrated?.resumable).toBe(false);
+ }, 45_000);
+
+ test('an agent that advertises no resume capability leaves its session unresumable', async () => {
+ const contentDir = tmp();
+ const localDir = tmp();
+ writeAuthenticatingAgentEntry(localDir, 'signin-agent');
+ const manager = makeManager(contentDir, localDir);
+ await manager.init();
+ const info = await manager.createThread({ agent: { source: 'custom', id: 'signin-agent' } });
+ await manager.subscribe(info.threadId, 0, () => {});
+ await waitUntil(
+ () => manager.getInfo(info.threadId)?.status === 'auth_required',
+ 15_000,
+ 'auth_required',
+ );
+ expect(manager.getInfo(info.threadId)?.resumable).toBe(false);
+
+ const signedIn = await manager.authenticateThread(info.threadId, 'test_login');
+ expect(signedIn.status).toBe('ready');
+ expect(signedIn.resumable).toBe(false);
+ expect(manager.getInfo(info.threadId)?.resumable).toBe(false);
+
+ manager.sendPrompt(info.threadId, 'hello');
+ await waitUntil(() => internals(manager).turnActive(info.threadId), 5_000, 'turn active');
+ await waitUntil(() => !internals(manager).turnActive(info.threadId), 10_000, 'turn ended');
+
+ await manager.closeThread(info.threadId);
+ expect(manager.getInfo(info.threadId)?.resumable).toBe(false);
+
+ const manager2 = makeManager(contentDir, localDir);
+ await manager2.init();
+ const rehydrated = manager2.listThreads().find((t) => t.threadId === info.threadId);
+ expect(rehydrated?.archived).toBe(true);
+ expect(rehydrated?.resumable).toBe(false);
+ }, 45_000);
+
+ test('an agent that advertises resume reports its thread resumable, on disk too', async () => {
+ const contentDir = tmp();
+ const localDir = tmp();
+ writeResumableAgentEntry(localDir, 'resume-agent', { FAKE_CAPS: 'resume' });
+ const manager = makeManager(contentDir, localDir);
+ await manager.init();
+ const info = await manager.createThread({ agent: { source: 'custom', id: 'resume-agent' } });
+ await manager.subscribe(info.threadId, 0, () => {});
+ await waitUntil(() => manager.getInfo(info.threadId)?.status === 'ready', 15_000, 'ready');
+ expect(manager.getInfo(info.threadId)?.resumable).toBe(true);
+
+ manager.sendPrompt(info.threadId, 'hello');
+ await waitUntil(() => internals(manager).turnActive(info.threadId), 5_000, 'turn active');
+ await waitUntil(() => !internals(manager).turnActive(info.threadId), 10_000, 'turn ended');
+
+ await manager.closeThread(info.threadId);
+ expect(manager.getInfo(info.threadId)?.resumable).toBe(true);
+
+ const manager2 = makeManager(contentDir, localDir);
+ await manager2.init();
+ const rehydrated = manager2.listThreads().find((t) => t.threadId === info.threadId);
+ expect(rehydrated?.archived).toBe(true);
+ expect(rehydrated?.resumable).toBe(true);
+ }, 45_000);
+
+ test('an agent that only loads sessions counts as resumable too', async () => {
+ const contentDir = tmp();
+ const localDir = tmp();
+ writeResumableAgentEntry(localDir, 'load-agent', { FAKE_CAPS: 'load' });
+ const manager = makeManager(contentDir, localDir);
+ await manager.init();
+ const info = await manager.createThread({ agent: { source: 'custom', id: 'load-agent' } });
+ await manager.subscribe(info.threadId, 0, () => {});
+ await waitUntil(() => manager.getInfo(info.threadId)?.status === 'ready', 15_000, 'ready');
+ expect(manager.getInfo(info.threadId)?.resumable).toBe(true);
+ }, 45_000);
+});
+
describe('AcpThreadManager agent presence', () => {
type Collected = Array<{ seq: number; event: ThreadEvent }>;
const collect = (into: Collected) => (frame: ThreadServerFrame) => {
diff --git a/packages/server/src/acp/thread-manager.ts b/packages/server/src/acp/thread-manager.ts
index fadc10643..764481fe6 100644
--- a/packages/server/src/acp/thread-manager.ts
+++ b/packages/server/src/acp/thread-manager.ts
@@ -517,6 +517,7 @@ export class AcpThreadManager {
availableCommands: null,
lastSeq: -1,
archived: false,
+ resumable: false,
},
docName: params.docName,
agentRef: { source: params.agent.source, id: params.agent.id },
@@ -1489,6 +1490,7 @@ export class AcpThreadManager {
mcpServers,
});
record.sessionId = session.sessionId;
+ record.info.resumable = resumableFromCapabilities(init);
record.envNotePending = true;
this.persistence.queueMetaWrite(record.info.threadId, this.buildMeta(record));
if (session.modes !== undefined && session.modes !== null) {
@@ -1580,6 +1582,10 @@ export class AcpThreadManager {
this.emitStatus(t, 'installing');
try {
if (sessionId === null) {
+ this.opts.log.warn(
+ { threadId, agentId: t.info.agent.id, cause: 'no-session' },
+ '[acp-threads] thread is not resumable',
+ );
throw new ThreadOpError(
'resume-unsupported',
'this thread never completed an agent session',
@@ -1590,6 +1596,7 @@ export class AcpThreadManager {
throw new ThreadOpError('not-ready', 'thread closed during resume');
}
const { conn, init } = handshake;
+ t.info.resumable = resumableFromCapabilities(init);
const { servers: mcpServers } = await this.buildMcpServers(
t,
init,
@@ -1618,6 +1625,10 @@ export class AcpThreadManager {
t.suppressUpdates = false;
}
} else {
+ this.opts.log.warn(
+ { threadId, agentId: t.info.agent.id, cause: 'no-resume-capability' },
+ '[acp-threads] thread is not resumable',
+ );
throw new ThreadOpError(
'resume-unsupported',
`${t.info.agent.name} doesn't support resuming previous sessions`,
@@ -1683,9 +1694,6 @@ export class AcpThreadManager {
if (t.info.status !== 'error' && t.info.status !== 'auth_required' && !t.authInFlight) {
throw new ThreadOpError('not-ready', 'this thread did not fail to start');
}
- if (t.sessionId !== null) {
- throw new ThreadOpError('not-ready', 'this thread already has an agent session');
- }
if (t.resumeInFlight) {
throw new ThreadOpError('not-ready', 'a retry is already in progress');
}
@@ -2736,6 +2744,7 @@ export class AcpThreadManager {
t.conn = null;
t.lastInit = null;
t.terminals = null;
+ t.sessionId = null;
try {
conn?.close();
} catch {}
@@ -2914,6 +2923,7 @@ function rehydratedRecord(meta: PersistedThreadMeta): ThreadRecord {
...meta.info,
status,
archived: true,
+ resumable: meta.info.resumable === false ? false : meta.sessionId !== null,
queue: undefined,
steer: undefined,
signInOutput: undefined,
@@ -3031,6 +3041,11 @@ function authMachineDetail(err: unknown, t: ThreadRecord): string | undefined {
return joinMachineDetail(agentErrorData(err), duringSignIn);
}
+function resumableFromCapabilities(init: InitializeResponse): boolean {
+ const caps = init.agentCapabilities;
+ return caps?.sessionCapabilities?.resume != null || caps?.loadSession === true;
+}
+
function threadAuthMethods(methods: InitializeResponse['authMethods']): ThreadAuthMethod[] {
return (methods ?? []).flatMap((m) => {
if (typeof m !== 'object' || m === null) return [];
diff --git a/packages/server/src/acp/thread-persistence.test.ts b/packages/server/src/acp/thread-persistence.test.ts
index 5900e3ae3..4f1939e08 100644
--- a/packages/server/src/acp/thread-persistence.test.ts
+++ b/packages/server/src/acp/thread-persistence.test.ts
@@ -127,6 +127,41 @@ describe('ThreadPersistenceStore', () => {
expect(metas[0]?.cwd).toBe('/tmp/x');
});
+ test('a meta with no usable session id keeps its transcript and reads as unresumable', async () => {
+ const store = await makeStore();
+ store.queueMetaWrite('t1', meta('t1'));
+ await store.whenIdle('t1');
+ const { sessionId: _sessionId, ...withoutSessionId } = meta('nosession');
+ writeFileSync(store.metaPath('nosession'), JSON.stringify(withoutSessionId));
+ writeFileSync(store.metaPath('numeric'), JSON.stringify({ ...meta('numeric'), sessionId: 7 }));
+ writeFileSync(store.metaPath('never'), JSON.stringify({ ...meta('never'), sessionId: null }));
+
+ const metas = await store.scan();
+ expect(metas.map((m) => m.info.threadId).sort()).toEqual([
+ 'never',
+ 'nosession',
+ 'numeric',
+ 't1',
+ ]);
+ for (const threadId of ['never', 'nosession', 'numeric']) {
+ expect(metas.find((m) => m.info.threadId === threadId)?.sessionId).toBeNull();
+ }
+ expect(metas.find((m) => m.info.threadId === 't1')?.sessionId).toBe('sess-1');
+ });
+
+ test('a meta missing a field with no safe substitute is still skipped', async () => {
+ const store = await makeStore();
+ store.queueMetaWrite('t1', meta('t1'));
+ await store.whenIdle('t1');
+ const { cwd: _cwd, ...withoutCwd } = meta('nocwd');
+ writeFileSync(store.metaPath('nocwd'), JSON.stringify(withoutCwd));
+ const { agentRef: _agentRef, ...withoutAgent } = meta('noagent');
+ writeFileSync(store.metaPath('noagent'), JSON.stringify(withoutAgent));
+
+ const metas = await store.scan();
+ expect(metas.map((m) => m.info.threadId)).toEqual(['t1']);
+ });
+
test('an unparseable middle line is substituted, preserving later seqs', async () => {
const store = await makeStore();
store.appendEvents('t1', [ev(0)]);
diff --git a/packages/server/src/acp/thread-persistence.ts b/packages/server/src/acp/thread-persistence.ts
index 7cd78f639..13bcaafe9 100644
--- a/packages/server/src/acp/thread-persistence.ts
+++ b/packages/server/src/acp/thread-persistence.ts
@@ -186,6 +186,13 @@ export class ThreadPersistenceStore {
this.log.warn({ path }, '[acp-persist] skipping unreadable thread meta');
continue;
}
+ if (typeof parsed.sessionId !== 'string' && parsed.sessionId !== null) {
+ this.log.warn(
+ { path, invalidSessionId: parsed.sessionId },
+ '[acp-persist] thread meta has no usable session id; keeping the transcript as unresumable',
+ );
+ parsed.sessionId = null;
+ }
const meta = parsed as PersistedThreadMeta;
const threadId = meta.info.threadId;
if (seen.has(threadId)) continue;