Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

Rework the agent empty states and their handoff (#4738)

sarahc86c7d3c8f29
diff --git a/.changeset/acp-agent-empty-states.md b/.changeset/acp-agent-empty-states.md
new file mode 100644
index 000000000..654c51078
--- /dev/null
+++ b/.changeset/acp-agent-empty-states.md
@@ -0,0 +1,5 @@
+---
+"@inkeep/open-knowledge": patch
+---
+
+Starting an agent now looks different from an agent that is ready. The loading state is a lighter pulse, and a ready thread greets you with its brand mark and a short prompt that settles into place.
diff --git a/knip.config.ts b/knip.config.ts
index 6a38348d8..8b615429f 100644
--- a/knip.config.ts
+++ b/knip.config.ts
@@ -143,11 +143,15 @@ export default {
'packages/server': {
entry: ['src/**/*.test.ts', 'src/parse-worker.ts'],
project: 'src/**',
- ignoreDependencies: ['@types/shell-quote'],
+ ignoreDependencies: [
+ '@types/shell-quote',
+ ],
},
'packages/cli': {
entry: ['src/**/*.test.ts', 'scripts/*.ts', 'tests/**/*.ts', 'src/parse-worker.ts'],
- ignoreDependencies: ['yjs'],
+ ignoreDependencies: [
+ 'yjs',
+ ],
},
'packages/desktop': {
entry: [
diff --git a/packages/app/src/components/acp/ThreadView.dom.test.tsx b/packages/app/src/components/acp/ThreadView.dom.test.tsx
index 143e85b6e..44a4ecdb5 100644
--- a/packages/app/src/components/acp/ThreadView.dom.test.tsx
+++ b/packages/app/src/components/acp/ThreadView.dom.test.tsx
@@ -21,6 +21,7 @@ import type {
RenderedTerminal,
ThreadRenderModel,
} from '@/lib/acp/thread-event-model';
+import { expectVisualClassTokensAbsent } from '@/test-utils/visual-contract';
import { MockComposerMentionInput } from './composer-mention-input.test-helper';
i18n.load('en', {});
@@ -2822,6 +2823,12 @@ describe('ThreadView retry', () => {
expect(screen.queryByTestId('agent-thread-restore')).toBeNull();
expect(screen.getByTestId('agent-thread-auth-status')).toBeDefined();
+ const signInMark = screen.getByTestId('agent-thread-notice').firstElementChild;
+ expect(signInMark?.tagName.toLowerCase()).toBe('svg');
+ expectVisualClassTokensAbsent(signInMark?.getAttribute('class') ?? '', [
+ 'opacity-25',
+ 'grayscale',
+ ]);
});
test('a prompt failure offers Edit and resend instead of Retry, seeds the composer, and hides the failed pair', async () => {
diff --git a/packages/app/src/components/acp/ThreadView.empty-state.dom.test.tsx b/packages/app/src/components/acp/ThreadView.empty-state.dom.test.tsx
new file mode 100644
index 000000000..bf6e4f215
--- /dev/null
+++ b/packages/app/src/components/acp/ThreadView.empty-state.dom.test.tsx
@@ -0,0 +1,270 @@
+import type { ThreadInfo } from '@inkeep/open-knowledge-core/acp/thread-protocol';
+import { act, cleanup, render as rtlRender, screen, waitFor } from '@testing-library/react';
+import { useLayoutEffect } from 'react';
+import { afterEach, describe, expect, test, vi } from 'vitest';
+import { TooltipProvider } from '@/components/ui/tooltip';
+import type { ThreadRenderModel } from '@/lib/acp/thread-event-model';
+import {
+ expectVisualClassTokens,
+ expectVisualClassTokensAbsent,
+} from '@/test-utils/visual-contract';
+import { MockComposerMentionInput } from './composer-mention-input.test-helper';
+
+const render = (ui: Parameters<typeof rtlRender>[0]) => rtlRender(ui, { wrapper: TooltipProvider });
+
+function ReadyRowCommitRecorder({ commits }: { commits: (string | null)[] }) {
+ useLayoutEffect(() => {
+ const row = document.querySelector('[data-testid="agent-thread-ready"]');
+ commits.push(row?.getAttribute('class') ?? null);
+ });
+ return null;
+}
+
+function markOf(testId: string): Element {
+ const mark = screen.getByTestId(testId).firstElementChild;
+ expect(mark?.tagName.toLowerCase()).toBe('svg');
+ if (mark === null) throw new Error(`no mark inside ${testId}`);
+ return mark;
+}
+
+function signedOutModel(): ThreadRenderModel {
+ return {
+ items: [
+ {
+ kind: 'notice',
+ text: '',
+ tone: 'error',
+ failure: { reason: 'auth-required', agentMessage: 'sign in required' },
+ attempts: 1,
+ },
+ ],
+ plan: [],
+ turnActive: false,
+ tokenUsage: null,
+ terminals: {},
+ permissionsByToolCall: {},
+ };
+}
+
+function endSettleAnimation(element: HTMLElement): void {
+ act(() => {
+ for (const name of ['animationend', 'webkitAnimationEnd']) {
+ element.dispatchEvent(new Event(name, { bubbles: true }));
+ }
+ });
+}
+
+let model: ThreadRenderModel | null = null;
+
+vi.doMock('@/lib/acp/thread-client', () => ({
+ getAgentThreadClient: () => ({
+ respondPermission: () => {},
+ respondRuntimeConsent: () => {},
+ cancel: () => {},
+ prompt: () => {},
+ editQueued: () => {},
+ removeQueued: () => {},
+ setMode: () => {},
+ setConfigOption: () => {},
+ closeThread: () => {},
+ createThread: async () => {
+ throw new Error('unused');
+ },
+ resumeThread: async () => {
+ throw new Error('unused');
+ },
+ }),
+ ThreadChannelUnavailableError: class ThreadChannelUnavailableError extends Error {},
+ ThreadResumeError: class ThreadResumeError extends Error {
+ readonly code: string;
+ constructor(code: string, message: string) {
+ super(message);
+ this.code = code;
+ }
+ },
+ useAgentThread: () => ({ info: undefined, events: [], lastSeq: 5 }),
+ useAgentThreadModel: () => model,
+}));
+
+vi.doMock('@/editor/DocumentContext', () => ({
+ useDocumentContext: () => ({ systemProvider: null }),
+}));
+vi.doMock('@/lib/use-workspace', () => ({ useWorkspace: () => null }));
+vi.doMock('@/components/acp/AgentMarkdown', () => ({
+ AgentMarkdown: ({ text }: { text: string }) => <div>{text}</div>,
+}));
+vi.doMock('@/editor/ComposerMentionInput', () => ({
+ ComposerMentionInput: MockComposerMentionInput,
+}));
+vi.doMock('@/comments/queue-attachment', () => ({ prepareQueuedComments: async () => [] }));
+
+const { ThreadView } = await import('./ThreadView');
+
+function info(overrides?: Partial<ThreadInfo>): ThreadInfo {
+ return {
+ threadId: 'thread-1',
+ agent: { id: 'claude', name: 'Claude Agent', source: 'registry' },
+ title: 'Test thread',
+ status: 'ready',
+ createdAt: 1,
+ lastActivityAt: 2,
+ lastSeq: 5,
+ archived: false,
+ ...overrides,
+ };
+}
+
+afterEach(() => {
+ cleanup();
+ model = null;
+});
+
+describe('ACP thread empty state', () => {
+ test('invites the user in once the agent is ready', () => {
+ render(<ThreadView info={info()} />);
+
+ expect(screen.getByTestId('agent-thread-ready').textContent).toBe('What should we work on?');
+ });
+
+ test('skips the settle when an already-ready thread is re-opened', () => {
+ render(<ThreadView info={info()} />);
+
+ expect(screen.getByTestId('agent-thread-ready').className).not.toContain(
+ 'animate-agent-ready-settle',
+ );
+ });
+
+ test('settles when the ready row first mounts after the sign-in card', () => {
+ model = signedOutModel();
+ const view = render(<ThreadView info={info({ status: 'auth_required' })} />);
+
+ expect(screen.queryByTestId('agent-thread-ready')).toBeNull();
+
+ model = null;
+ view.rerender(<ThreadView info={info({ status: 'ready' })} />);
+
+ expect(screen.getByTestId('agent-thread-ready').className).toContain(
+ 'animate-agent-ready-settle',
+ );
+ });
+
+ test('carries the settle on the commit that first shows the ready row', () => {
+ const commits: (string | null)[] = [];
+ const view = render(
+ <>
+ <ThreadView info={info({ status: 'spawning' })} />
+ <ReadyRowCommitRecorder commits={commits} />
+ </>,
+ );
+
+ expect(commits.at(-1)).toBeNull();
+
+ view.rerender(
+ <>
+ <ThreadView info={info({ status: 'ready' })} />
+ <ReadyRowCommitRecorder commits={commits} />
+ </>,
+ );
+
+ const firstCommitShowingTheRow = commits.find((entry) => entry !== null);
+ expect(firstCommitShowingTheRow).toContain('animate-agent-ready-settle');
+ });
+
+ test('applies the settle when the agent finishes starting', () => {
+ const view = render(<ThreadView info={info({ status: 'spawning' })} />);
+
+ expect(screen.queryByTestId('agent-thread-ready')).toBeNull();
+
+ view.rerender(<ThreadView info={info({ status: 'ready' })} />);
+
+ expect(screen.getByTestId('agent-thread-ready').className).toContain(
+ 'animate-agent-ready-settle',
+ );
+ });
+
+ test('drops the settle class once it has played, so re-showing cannot replay it', async () => {
+ const view = render(<ThreadView info={info({ status: 'spawning' })} />);
+ view.rerender(<ThreadView info={info({ status: 'ready' })} />);
+
+ const row = await screen.findByTestId('agent-thread-ready');
+ expect(row.className).toContain('animate-agent-ready-settle');
+
+ endSettleAnimation(row);
+
+ await waitFor(() => {
+ expect(screen.getByTestId('agent-thread-ready').className).not.toContain(
+ 'animate-agent-ready-settle',
+ );
+ });
+ });
+
+ test('keeps the settle pending while the row has not painted, so a hidden tab still plays it', async () => {
+ vi.useFakeTimers();
+ try {
+ const view = render(<ThreadView info={info({ status: 'spawning' })} />);
+ view.rerender(<ThreadView info={info({ status: 'ready' })} />);
+
+ const row = screen.getByTestId('agent-thread-ready');
+
+ act(() => {
+ vi.advanceTimersByTime(5_000);
+ });
+
+ expect(row.className).toContain('animate-agent-ready-settle');
+ } finally {
+ vi.useRealTimers();
+ }
+ });
+
+ test('shows the mark in colour while the thread waits on sign-in', () => {
+ render(<ThreadView info={info({ status: 'auth_required' })} />);
+
+ expect(screen.getByTestId('agent-thread-auth-action')).not.toBeNull();
+ expectVisualClassTokensAbsent(markOf('agent-thread-auth-offer').getAttribute('class') ?? '', [
+ 'opacity-25',
+ 'grayscale',
+ ]);
+ });
+
+ test('keeps the mark grey on a thread that is not usable', () => {
+ render(<ThreadView info={info({ status: 'error' })} />);
+
+ expect(screen.getByTestId('agent-thread-auth-action')).not.toBeNull();
+ expectVisualClassTokens(markOf('agent-thread-auth-offer').getAttribute('class') ?? '', [
+ 'opacity-25',
+ 'grayscale',
+ ]);
+ });
+
+ test('shows the agent mark beside the invitation, at full colour rather than the disabled grey', () => {
+ render(<ThreadView info={info()} />);
+
+ const mark = screen.getByTestId('agent-thread-ready').querySelector('svg');
+ expect(mark).not.toBeNull();
+ const markClass = mark?.getAttribute('class') ?? '';
+ expectVisualClassTokens(markClass, ['size-6']);
+ expectVisualClassTokensAbsent(markClass, ['opacity-25', 'grayscale', 'size-12']);
+ });
+
+ test('keeps the starting mark grey, which the colour rule calls the not-usable state', () => {
+ render(<ThreadView info={info({ status: 'spawning' })} />);
+
+ expectVisualClassTokens(
+ markOf('agent-thread-starting-empty-state').getAttribute('class') ?? '',
+ ['opacity-25', 'grayscale'],
+ );
+ });
+
+ test('keeps the starting treatment while the agent spawns', () => {
+ render(<ThreadView info={info({ status: 'spawning' })} />);
+
+ expect(screen.queryByTestId('agent-thread-ready')).toBeNull();
+ expect(screen.getByTestId('agent-thread-transcript').textContent).toContain('Starting Claude');
+ });
+
+ test('does not show the invitation on an archived thread', () => {
+ render(<ThreadView info={info({ archived: true })} />);
+
+ expect(screen.queryByTestId('agent-thread-ready')).toBeNull();
+ });
+});
diff --git a/packages/app/src/components/acp/ThreadView.tsx b/packages/app/src/components/acp/ThreadView.tsx
index 7f2dc04b7..f5bdff091 100644
--- a/packages/app/src/components/acp/ThreadView.tsx
+++ b/packages/app/src/components/acp/ThreadView.tsx
@@ -283,6 +283,45 @@ function highlightStderr(machineDetail: string): ReactNode {
});
}
+function isSignInWaitingStatus(status: ThreadInfo['status']): boolean {
+ return status === 'auth_required' || status === 'authenticating';
+}
+
+function isStartingStatus(status: ThreadInfo['status']): boolean {
+ return status === 'installing' || status === 'spawning' || isSignInWaitingStatus(status);
+}
+
+function nextStartOutcome(
+ status: ThreadInfo['status'],
+ previous: ThreadInfo['status'],
+ announced: 'ready' | 'failed' | null,
+): 'ready' | 'failed' | null {
+ if (isStartingStatus(previous)) {
+ if (status === 'ready') return 'ready';
+ if (status === 'error' || status === 'exited') return 'failed';
+ }
+ switch (status) {
+ case 'installing':
+ case 'spawning':
+ case 'auth_required':
+ case 'authenticating':
+ return null;
+ case 'ready':
+ return announced;
+ case 'error':
+ case 'exited':
+ return announced === 'failed' ? 'failed' : null;
+ case 'running':
+ case 'awaiting_permission':
+ return null;
+ default: {
+ const exhaustive: never = status;
+ void exhaustive;
+ return null;
+ }
+ }
+}
+
export function ThreadView({
info,
active = true,
@@ -466,42 +505,17 @@ export function ThreadView({
const [newChatPending, setNewChatPending] = useState(false);
const [resumeError, setResumeError] = useState<ThreadResumeError | null>(null);
const displayedStartStatus = useDelayedInstallStatus(status);
- const wasStarting = useRef(false);
- const [startOutcome, setStartOutcome] = useState<'ready' | 'failed' | null>(null);
- useEffect(() => {
- if (
- status === 'installing' ||
- status === 'spawning' ||
- status === 'auth_required' ||
- status === 'authenticating'
- ) {
- wasStarting.current = true;
- setStartOutcome(null);
- return;
- }
- if (status === 'ready') {
- if (!wasStarting.current) return;
- wasStarting.current = false;
- setStartOutcome('ready');
- return;
- }
- if (status === 'error' || status === 'exited') {
- if (!wasStarting.current) {
- setStartOutcome((announced) => (announced === 'failed' ? announced : null));
- return;
- }
- wasStarting.current = false;
- setStartOutcome('failed');
- return;
- }
- if (status === 'running' || status === 'awaiting_permission') {
- wasStarting.current = false;
- setStartOutcome(null);
- return;
- }
- const exhaustive: never = status;
- void exhaustive;
- }, [status]);
+ const [startState, setStartState] = useState<{
+ seen: ThreadInfo['status'];
+ outcome: 'ready' | 'failed' | null;
+ }>({ seen: status, outcome: null });
+ if (startState.seen !== status) {
+ setStartState({
+ seen: status,
+ outcome: nextStartOutcome(status, startState.seen, startState.outcome),
+ });
+ }
+ const startOutcome = startState.outcome;
const startStatusMessage =
displayedStartStatus === 'installing'
? t`Installing ${agentName}…`
@@ -529,7 +543,7 @@ export function ThreadView({
? !resumePending && resumable
: (status === 'ready' || hasRecoverablePromptFailure) && !turnActive;
const signingIn = status === 'authenticating';
- const awaitingSignIn = status === 'auth_required' || signingIn;
+ const awaitingSignIn = isSignInWaitingStatus(status);
const canRetry = !archived && (status === 'error' || awaitingSignIn);
const terminalCli = useHarnessTerminalCli(info.agent.id);
const [retryPending, setRetryPending] = useState(false);
@@ -1113,6 +1127,7 @@ export function ThreadView({
<ThreadEmptyState
status={status}
displayedStartStatus={displayedStartStatus}
+ justSettled={startOutcome === 'ready'}
archived={archived}
agent={info.agent}
authOffer={authOffer}
@@ -2014,6 +2029,7 @@ function ThreadAuthOfferButton({
function ThreadEmptyState({
status,
displayedStartStatus,
+ justSettled,
archived,
agent,
authOffer,
@@ -2022,6 +2038,7 @@ function ThreadEmptyState({
}: {
status: ThreadInfo['status'];
displayedStartStatus: ThreadInfo['status'];
+ justSettled: boolean;
archived: boolean;
agent: ThreadInfo['agent'];
authOffer: ThreadAuthOfferWithoutSignIn;
@@ -2030,6 +2047,12 @@ function ThreadEmptyState({
}): ReactNode {
const { t } = useLingui();
const agentName = agentDisplayName(agent.name);
+ const [showSettle, setShowSettle] = useState(justSettled);
+ const [previousJustSettled, setPreviousJustSettled] = useState(justSettled);
+ if (previousJustSettled !== justSettled) {
+ setPreviousJustSettled(justSettled);
+ if (justSettled) setShowSettle(true);
+ }
if (archived) {
return <ThreadTranscriptSkeleton />;
@@ -2037,24 +2060,32 @@ function ThreadEmptyState({
if (status === 'ready') {
return (
- <div className="flex h-full flex-col items-center justify-center gap-3 px-6 text-center">
- <RegisteredAgentIcon
- agentId={agent.id}
- iconUrl={agent.iconUrl}
- className="size-12 opacity-25 grayscale"
- />
- <p className="text-muted-foreground text-sm">{t`Ask ${agentName}`}</p>
+ <div className="flex h-full items-center justify-center px-6">
+ <div
+ className={cn('flex items-center gap-2.5', showSettle && 'animate-agent-ready-settle')}
+ data-testid="agent-thread-ready"
+ onAnimationEnd={(event) => {
+ if (event.target === event.currentTarget) setShowSettle(false);
+ }}
+ >
+ <RegisteredAgentIcon agentId={agent.id} iconUrl={agent.iconUrl} className="size-6" />
+ <p className="text-foreground/70 text-center text-base">{t`What should we work on?`}</p>
+ </div>
</div>
);
}
if (authOffer.actionLabel !== null) {
+ const waitingOnSignIn = isSignInWaitingStatus(status);
return (
- <div className="flex h-full flex-col items-center justify-center gap-3 px-6 text-center">
+ <div
+ className="flex h-full flex-col items-center justify-center gap-3 px-6 text-center"
+ data-testid="agent-thread-auth-offer"
+ >
<RegisteredAgentIcon
agentId={agent.id}
iconUrl={agent.iconUrl}
- className="size-12 opacity-25 grayscale"
+ className={cn('size-12', !waitingOnSignIn && 'opacity-25 grayscale')}
/>
<p className="text-muted-foreground text-sm">{authOffer.headline}</p>
<ThreadAuthOfferButton
@@ -2075,13 +2106,16 @@ function ThreadEmptyState({
? t`Signing in to ${agentName}…`
: t`Connecting to ${agentName}…`;
return (
- <div className="flex h-full flex-col items-center justify-center gap-3 px-6 text-center">
+ <div
+ className="flex h-full flex-col items-center justify-center gap-2 px-6 text-center"
+ data-testid="agent-thread-starting-empty-state"
+ >
<RegisteredAgentIcon
agentId={agent.id}
iconUrl={agent.iconUrl}
- className="size-12 animate-pulse opacity-25 grayscale motion-reduce:animate-none"
+ className="size-8 animate-agent-mark-breathe opacity-25 grayscale motion-reduce:animate-none"
/>
- <p className="shimmer text-sm">{loadingMessage}</p>
+ <p className="shimmer-subtle text-sm">{loadingMessage}</p>
</div>
);
}
@@ -2378,11 +2412,7 @@ function ThreadAuthPrompt({
className="mx-auto flex w-full max-w-72 flex-col items-center gap-4 px-2 py-6 text-center"
data-testid="agent-thread-notice"
>
- <RegisteredAgentIcon
- agentId={agent.id}
- iconUrl={agent.iconUrl}
- className="size-12 opacity-25 grayscale"
- />
+ <RegisteredAgentIcon agentId={agent.id} iconUrl={agent.iconUrl} className="size-12" />
{}
<div className="sr-only" role="status" aria-live="polite">
{signingIn ? t`Signing in to ${agentName}` : ''}
diff --git a/packages/app/src/globals.css b/packages/app/src/globals.css
index 00c397f31..bd765a9dc 100644
--- a/packages/app/src/globals.css
+++ b/packages/app/src/globals.css
@@ -219,6 +219,31 @@
--animate-agent-breathing: agent-breathing 2.4s ease-in-out infinite;
--animate-undo-ready: undo-ready 600ms var(--ease-out-strong) forwards;
+ @keyframes agent-ready-settle {
+ from {
+ opacity: 0;
+ transform: translateY(3px) scale(0.96);
+ }
+ to {
+ opacity: 1;
+ transform: none;
+ }
+ }
+
+ --animate-agent-ready-settle: agent-ready-settle 240ms var(--ease-out-strong) both;
+
+ @keyframes agent-mark-breathe {
+ 0%,
+ 100% {
+ opacity: 0.25;
+ }
+ 50% {
+ opacity: 0.12;
+ }
+ }
+
+ --animate-agent-mark-breathe: agent-mark-breathe 2.4s ease-in-out infinite;
+
@keyframes sidebar-push-pulse {
0% {
box-shadow: inset 4px 0 0 0 color-mix(in oklab, var(--primary) 0%, transparent);
@@ -385,6 +410,36 @@
}
}
+/* A quieter shimmer for the agent-thread starting state, whose status line sits
+ alone in an otherwise empty pane. The sweep runs from `--muted-foreground` to
+ a 35% mix toward `--foreground`, so its floor is the contrast the text would
+ have had unswept and its peak stays far below the default utility's full
+ `--foreground`. Mixing toward `--background` instead would drop the trough
+ under WCAG AA on the default light theme. */
+@utility shimmer-subtle {
+ background: linear-gradient(
+ 90deg,
+ var(--muted-foreground) 25%,
+ color-mix(in oklab, var(--foreground) 35%, var(--muted-foreground)) 50%,
+ var(--muted-foreground) 75%
+ );
+ background-size: 200% 100%;
+ -webkit-background-clip: text;
+ background-clip: text;
+ -webkit-text-fill-color: transparent;
+ color: transparent;
+ animation: shimmer 1.5s linear infinite;
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .shimmer-subtle {
+ animation: none;
+ background: none;
+ -webkit-text-fill-color: var(--muted-foreground);
+ color: var(--muted-foreground);
+ }
+}
+
/* Reduced-motion override — keep the opacity crossfade as a comprehension
aid (the panel still appears/disappears) but pin the height so the
layout-triggering animation doesn't fire. Matches the rest of this
@@ -468,6 +523,23 @@
}
}
+/* The agent-ready settle keeps its fade for reduced-motion viewers — it is what
+ marks the agent becoming usable — and drops only the spatial part. */
+@media (prefers-reduced-motion: reduce) {
+ .animate-agent-ready-settle {
+ animation-name: agent-ready-fade;
+ }
+}
+
+@keyframes agent-ready-fade {
+ from {
+ opacity: 0;
+ }
+ to {
+ opacity: 1;
+ }
+}
+
/* Landing flash — transient highlight on the range a mode-switch jump lands on
(landing-flash-source.ts / landing-flash-wysiwyg.ts). A dedicated class, not
the agent-write flash, so its treatment can diverge from the agent wash later
diff --git a/packages/app/src/locales/ar/messages.json b/packages/app/src/locales/ar/messages.json
index 3e6523bb3..919bdbf9f 100644
--- a/packages/app/src/locales/ar/messages.json
+++ b/packages/app/src/locales/ar/messages.json
@@ -386,6 +386,7 @@
"3J7d2N": ["عنوان قسم كبير."],
"3JYy1p": ["لم يعد الفرع ", ["0"], " موجودًا. تم الاستنساخ إلى الفرع الافتراضي."],
"3JjdaA": ["تشغيل"],
+ "3Jsk1e": ["على ماذا نعمل؟"],
"3KOHFt": [
"إضافة خصائص (",
[
diff --git a/packages/app/src/locales/ar/messages.po b/packages/app/src/locales/ar/messages.po
index cd1518b83..b99d3c80f 100644
--- a/packages/app/src/locales/ar/messages.po
+++ b/packages/app/src/locales/ar/messages.po
@@ -2167,7 +2167,6 @@ msgstr "اسأل"
msgid "Ask {0} CLI"
msgstr "اسأل واجهة {0} السطرية"
-#: src/components/acp/ThreadView.tsx
#: src/components/handoff/agent-launcher-labels.tsx
#: src/components/handoff/OpenInAgentContextSubmenu.tsx
#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx
@@ -16059,6 +16058,10 @@ msgstr "ما الغرض من قاعدة المعرفة هذه؟"
msgid "What should the AI do? (optional)"
msgstr "ما الذي ينبغي أن يفعله الذكاء الاصطناعي؟ (اختياري)"
+#: src/components/acp/ThreadView.tsx
+msgid "What should we work on?"
+msgstr "على ماذا نعمل؟"
+
#: src/components/CreatedItemsList.tsx
msgid "What the agent may read, write, and surface."
msgstr "ما يجوز للوكيل قراءته وكتابته وإظهاره."
diff --git a/packages/app/src/locales/bn/messages.json b/packages/app/src/locales/bn/messages.json
index e51bbc0ae..1a41ba87f 100644
--- a/packages/app/src/locales/bn/messages.json
+++ b/packages/app/src/locales/bn/messages.json
@@ -320,6 +320,7 @@
"3J7d2N": ["বড় বিভাগ শিরোনাম।"],
"3JYy1p": ["ব্রাঞ্চ ", ["0"], " আর নেই। ডিফল্ট ব্রাঞ্চে ক্লোন করা হয়েছে।"],
"3JjdaA": ["চালানো"],
+ "3Jsk1e": ["আমরা কী নিয়ে কাজ করব?"],
"3KOHFt": [
"প্রপার্টি যোগ করুন (",
[
diff --git a/packages/app/src/locales/bn/messages.po b/packages/app/src/locales/bn/messages.po
index 7d9e6ffde..7f34a1380 100644
--- a/packages/app/src/locales/bn/messages.po
+++ b/packages/app/src/locales/bn/messages.po
@@ -2163,7 +2163,6 @@ msgstr "জিজ্ঞেস করুন"
msgid "Ask {0} CLI"
msgstr "{0} CLI-কে জিজ্ঞেস করুন"
-#: src/components/acp/ThreadView.tsx
#: src/components/handoff/agent-launcher-labels.tsx
#: src/components/handoff/OpenInAgentContextSubmenu.tsx
#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx
@@ -16055,6 +16054,10 @@ msgstr "এই জ্ঞানভাণ্ডারটি কিসের জন
msgid "What should the AI do? (optional)"
msgstr "AI-এর কী করা উচিত? (ঐচ্ছিক)"
+#: src/components/acp/ThreadView.tsx
+msgid "What should we work on?"
+msgstr "আমরা কী নিয়ে কাজ করব?"
+
#: src/components/CreatedItemsList.tsx
msgid "What the agent may read, write, and surface."
msgstr "এজেন্ট কী পড়তে, লিখতে ও সামনে আনতে পারে।"
diff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.json
index f83de3e50..24ba8107d 100644
--- a/packages/app/src/locales/en/messages.json
+++ b/packages/app/src/locales/en/messages.json
@@ -326,6 +326,7 @@
"3J7d2N": ["Big section heading."],
"3JYy1p": ["Branch ", ["0"], " no longer exists. Cloned to default branch."],
"3JjdaA": ["Run"],
+ "3Jsk1e": ["What should we work on?"],
"3KOHFt": [
"Add properties (",
[
diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.po
index 2b008952c..fa0e7158d 100644
--- a/packages/app/src/locales/en/messages.po
+++ b/packages/app/src/locales/en/messages.po
@@ -2167,7 +2167,6 @@ msgstr "Ask"
msgid "Ask {0} CLI"
msgstr "Ask {0} CLI"
-#: src/components/acp/ThreadView.tsx
#: src/components/handoff/agent-launcher-labels.tsx
#: src/components/handoff/OpenInAgentContextSubmenu.tsx
#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx
@@ -16059,6 +16058,10 @@ msgstr "What is this knowledge base for?"
msgid "What should the AI do? (optional)"
msgstr "What should the AI do? (optional)"
+#: src/components/acp/ThreadView.tsx
+msgid "What should we work on?"
+msgstr "What should we work on?"
+
#: src/components/CreatedItemsList.tsx
msgid "What the agent may read, write, and surface."
msgstr "What the agent may read, write, and surface."
diff --git a/packages/app/src/locales/es/messages.json b/packages/app/src/locales/es/messages.json
index 3aac13c1f..e42c15f53 100644
--- a/packages/app/src/locales/es/messages.json
+++ b/packages/app/src/locales/es/messages.json
@@ -374,6 +374,7 @@
"3J7d2N": ["Encabezado de sección grande."],
"3JYy1p": ["La rama ", ["0"], " ya no existe. Se clonó en la rama por defecto."],
"3JjdaA": ["Ejecutar"],
+ "3Jsk1e": ["¿En qué trabajamos?"],
"3KOHFt": [
"Añadir propiedades (",
[
diff --git a/packages/app/src/locales/es/messages.po b/packages/app/src/locales/es/messages.po
index e956b07bf..88cd13fc7 100644
--- a/packages/app/src/locales/es/messages.po
+++ b/packages/app/src/locales/es/messages.po
@@ -2167,7 +2167,6 @@ msgstr "Preguntar"
msgid "Ask {0} CLI"
msgstr "Preguntar a la CLI de {0}"
-#: src/components/acp/ThreadView.tsx
#: src/components/handoff/agent-launcher-labels.tsx
#: src/components/handoff/OpenInAgentContextSubmenu.tsx
#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx
@@ -16059,6 +16058,10 @@ msgstr "¿Para qué es esta base de conocimiento?"
msgid "What should the AI do? (optional)"
msgstr "¿Qué debería hacer la IA? (opcional)"
+#: src/components/acp/ThreadView.tsx
+msgid "What should we work on?"
+msgstr "¿En qué trabajamos?"
+
#: src/components/CreatedItemsList.tsx
msgid "What the agent may read, write, and surface."
msgstr "Lo que el agente puede leer, escribir y mostrar."
diff --git a/packages/app/src/locales/fr/messages.json b/packages/app/src/locales/fr/messages.json
index dc24d3cc4..8bd222ac2 100644
--- a/packages/app/src/locales/fr/messages.json
+++ b/packages/app/src/locales/fr/messages.json
@@ -388,6 +388,7 @@
"3J7d2N": ["Grand titre de section."],
"3JYy1p": ["La branche ", ["0"], " n'existe plus. Clonage effectué sur la branche par défaut."],
"3JjdaA": ["Exécuter"],
+ "3Jsk1e": ["Sur quoi travaillons-nous ?"],
"3KOHFt": [
"Ajouter des propriétés (",
[
diff --git a/packages/app/src/locales/fr/messages.po b/packages/app/src/locales/fr/messages.po
index 7158dad94..8ef303329 100644
--- a/packages/app/src/locales/fr/messages.po
+++ b/packages/app/src/locales/fr/messages.po
@@ -2167,7 +2167,6 @@ msgstr "Demander"
msgid "Ask {0} CLI"
msgstr "Demander à la CLI {0}"
-#: src/components/acp/ThreadView.tsx
#: src/components/handoff/agent-launcher-labels.tsx
#: src/components/handoff/OpenInAgentContextSubmenu.tsx
#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx
@@ -16059,6 +16058,10 @@ msgstr "À quoi sert cette base de connaissances ?"
msgid "What should the AI do? (optional)"
msgstr "Que doit faire l'IA ? (facultatif)"
+#: src/components/acp/ThreadView.tsx
+msgid "What should we work on?"
+msgstr "Sur quoi travaillons-nous ?"
+
#: src/components/CreatedItemsList.tsx
msgid "What the agent may read, write, and surface."
msgstr "Ce que l'agent peut lire, écrire et faire remonter."
diff --git a/packages/app/src/locales/hi/messages.json b/packages/app/src/locales/hi/messages.json
index 711a5a164..2e80c75ca 100644
--- a/packages/app/src/locales/hi/messages.json
+++ b/packages/app/src/locales/hi/messages.json
@@ -320,6 +320,7 @@
"3J7d2N": ["बड़ा अनुभाग शीर्षक।"],
"3JYy1p": ["ब्रांच ", ["0"], " अब मौजूद नहीं है। डिफ़ॉल्ट ब्रांच पर क्लोन किया गया।"],
"3JjdaA": ["चलाना"],
+ "3Jsk1e": ["हम किस पर काम करें?"],
"3KOHFt": [
"प्रॉपर्टी जोड़ें (",
[
diff --git a/packages/app/src/locales/hi/messages.po b/packages/app/src/locales/hi/messages.po
index 877d584fe..5fee40d22 100644
--- a/packages/app/src/locales/hi/messages.po
+++ b/packages/app/src/locales/hi/messages.po
@@ -2163,7 +2163,6 @@ msgstr "पूछें"
msgid "Ask {0} CLI"
msgstr "{0} CLI से पूछें"
-#: src/components/acp/ThreadView.tsx
#: src/components/handoff/agent-launcher-labels.tsx
#: src/components/handoff/OpenInAgentContextSubmenu.tsx
#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx
@@ -16055,6 +16054,10 @@ msgstr "यह ज्ञान आधार किस लिए है?"
msgid "What should the AI do? (optional)"
msgstr "AI को क्या करना चाहिए? (वैकल्पिक)"
+#: src/components/acp/ThreadView.tsx
+msgid "What should we work on?"
+msgstr "हम किस पर काम करें?"
+
#: src/components/CreatedItemsList.tsx
msgid "What the agent may read, write, and surface."
msgstr "एजेंट क्या पढ़, लिख और सामने ला सकता है।"
diff --git a/packages/app/src/locales/id/messages.json b/packages/app/src/locales/id/messages.json
index 5d4fae251..9f11b080d 100644
--- a/packages/app/src/locales/id/messages.json
+++ b/packages/app/src/locales/id/messages.json
@@ -330,6 +330,7 @@
"3J7d2N": ["Judul bagian besar."],
"3JYy1p": ["Cabang ", ["0"], " sudah tidak ada. Dikloning ke cabang bawaan."],
"3JjdaA": ["Jalankan"],
+ "3Jsk1e": ["Apa yang ingin kita kerjakan?"],
"3KOHFt": [
"Tambahkan properti (",
["problemCount", "plural", { "other": ["#", " properti wajib belum ada"] }],
diff --git a/packages/app/src/locales/id/messages.po b/packages/app/src/locales/id/messages.po
index ff509a86e..8baa2215e 100644
--- a/packages/app/src/locales/id/messages.po
+++ b/packages/app/src/locales/id/messages.po
@@ -2163,7 +2163,6 @@ msgstr "Tanya"
msgid "Ask {0} CLI"
msgstr "Tanya CLI {0}"
-#: src/components/acp/ThreadView.tsx
#: src/components/handoff/agent-launcher-labels.tsx
#: src/components/handoff/OpenInAgentContextSubmenu.tsx
#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx
@@ -16055,6 +16054,10 @@ msgstr "Untuk apa basis pengetahuan ini?"
msgid "What should the AI do? (optional)"
msgstr "Apa yang harus dilakukan AI? (opsional)"
+#: src/components/acp/ThreadView.tsx
+msgid "What should we work on?"
+msgstr "Apa yang ingin kita kerjakan?"
+
#: src/components/CreatedItemsList.tsx
msgid "What the agent may read, write, and surface."
msgstr "Apa yang boleh dibaca, ditulis, dan ditampilkan agen."
diff --git a/packages/app/src/locales/ko/messages.json b/packages/app/src/locales/ko/messages.json
index 0c7a3f16e..38161629d 100644
--- a/packages/app/src/locales/ko/messages.json
+++ b/packages/app/src/locales/ko/messages.json
@@ -317,6 +317,7 @@
"3J7d2N": ["큰 섹션 제목입니다."],
"3JYy1p": ["브랜치 ", ["0"], "는 더 이상 존재하지 않습니다. 기본 브랜치로 클론했습니다."],
"3JjdaA": ["실행"],
+ "3Jsk1e": ["무엇을 작업할까요?"],
"3KOHFt": [
"속성 추가 (",
["problemCount", "plural", { "other": ["필수 속성 ", "#", "개 누락"] }],
diff --git a/packages/app/src/locales/ko/messages.po b/packages/app/src/locales/ko/messages.po
index d1a2dedb7..b70d504f9 100644
--- a/packages/app/src/locales/ko/messages.po
+++ b/packages/app/src/locales/ko/messages.po
@@ -2167,7 +2167,6 @@ msgstr "질문"
msgid "Ask {0} CLI"
msgstr "{0} CLI 질문"
-#: src/components/acp/ThreadView.tsx
#: src/components/handoff/agent-launcher-labels.tsx
#: src/components/handoff/OpenInAgentContextSubmenu.tsx
#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx
@@ -16059,6 +16058,10 @@ msgstr "이 지식 베이스는 무엇에 쓰나요?"
msgid "What should the AI do? (optional)"
msgstr "AI 작업 내용? (선택 사항)"
+#: src/components/acp/ThreadView.tsx
+msgid "What should we work on?"
+msgstr "무엇을 작업할까요?"
+
#: src/components/CreatedItemsList.tsx
msgid "What the agent may read, write, and surface."
msgstr "에이전트가 읽고, 쓰고, 표시할 수 있는 항목입니다."
diff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.json
index cbf971e6d..078b566f7 100644
--- a/packages/app/src/locales/pseudo/messages.json
+++ b/packages/app/src/locales/pseudo/messages.json
@@ -326,6 +326,7 @@
"3J7d2N": ["ßĩĝ śēćţĩōń ĥēàďĩńĝ."],
"3JYy1p": ["ßŕàńćĥ ", ["0"], " ńō ĺōńĝēŕ ēxĩśţś. Ćĺōńēď ţō ďēƒàũĺţ ƀŕàńćĥ."],
"3JjdaA": ["Ŕũń"],
+ "3Jsk1e": ["Ŵĥàţ śĥōũĺď ŵē ŵōŕķ ōń?"],
"3KOHFt": [
"Àďď ƥŕōƥēŕţĩēś (",
[
diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.po
index 1783c4588..525ae07e0 100644
--- a/packages/app/src/locales/pseudo/messages.po
+++ b/packages/app/src/locales/pseudo/messages.po
@@ -2163,7 +2163,6 @@ msgstr ""
msgid "Ask {0} CLI"
msgstr ""
-#: src/components/acp/ThreadView.tsx
#: src/components/handoff/agent-launcher-labels.tsx
#: src/components/handoff/OpenInAgentContextSubmenu.tsx
#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx
@@ -16055,6 +16054,10 @@ msgstr ""
msgid "What should the AI do? (optional)"
msgstr ""
+#: src/components/acp/ThreadView.tsx
+msgid "What should we work on?"
+msgstr ""
+
#: src/components/CreatedItemsList.tsx
msgid "What the agent may read, write, and surface."
msgstr ""
diff --git a/packages/app/src/locales/pt-BR/messages.json b/packages/app/src/locales/pt-BR/messages.json
index f4d2c63eb..d494956f1 100644
--- a/packages/app/src/locales/pt-BR/messages.json
+++ b/packages/app/src/locales/pt-BR/messages.json
@@ -374,6 +374,7 @@
"3J7d2N": ["Título de seção grande."],
"3JYy1p": ["O ramo ", ["0"], " não existe mais. Clonado no ramo padrão."],
"3JjdaA": ["Executar"],
+ "3Jsk1e": ["No que vamos trabalhar?"],
"3KOHFt": [
"Adicionar propriedades (",
[
diff --git a/packages/app/src/locales/pt-BR/messages.po b/packages/app/src/locales/pt-BR/messages.po
index 9432856a3..7d0500ad5 100644
--- a/packages/app/src/locales/pt-BR/messages.po
+++ b/packages/app/src/locales/pt-BR/messages.po
@@ -2163,7 +2163,6 @@ msgstr "Perguntar"
msgid "Ask {0} CLI"
msgstr "Perguntar à CLI do {0}"
-#: src/components/acp/ThreadView.tsx
#: src/components/handoff/agent-launcher-labels.tsx
#: src/components/handoff/OpenInAgentContextSubmenu.tsx
#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx
@@ -16055,6 +16054,10 @@ msgstr "Para que serve esta base de conhecimento?"
msgid "What should the AI do? (optional)"
msgstr "O que a IA deve fazer? (opcional)"
+#: src/components/acp/ThreadView.tsx
+msgid "What should we work on?"
+msgstr "No que vamos trabalhar?"
+
#: src/components/CreatedItemsList.tsx
msgid "What the agent may read, write, and surface."
msgstr "O que o agente pode ler, escrever e mostrar."
diff --git a/packages/app/src/locales/ur/messages.json b/packages/app/src/locales/ur/messages.json
index 59f7cde31..96c2abf84 100644
--- a/packages/app/src/locales/ur/messages.json
+++ b/packages/app/src/locales/ur/messages.json
@@ -327,6 +327,7 @@
"3J7d2N": ["بڑا سیکشن عنوان۔"],
"3JYy1p": ["برانچ ", ["0"], " اب موجود نہیں۔ طے شدہ برانچ پر کلون کر دیا گیا۔"],
"3JjdaA": ["چلانا"],
+ "3Jsk1e": ["ہم کس چیز پر کام کریں؟"],
"3KOHFt": [
"خصوصیات شامل کریں (",
[
diff --git a/packages/app/src/locales/ur/messages.po b/packages/app/src/locales/ur/messages.po
index 4753e704b..4ca4bdea6 100644
--- a/packages/app/src/locales/ur/messages.po
+++ b/packages/app/src/locales/ur/messages.po
@@ -2167,7 +2167,6 @@ msgstr "پوچھیں"
msgid "Ask {0} CLI"
msgstr "{0} CLI سے پوچھیں"
-#: src/components/acp/ThreadView.tsx
#: src/components/handoff/agent-launcher-labels.tsx
#: src/components/handoff/OpenInAgentContextSubmenu.tsx
#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx
@@ -16059,6 +16058,10 @@ msgstr "یہ نالج بیس کس لیے ہے؟"
msgid "What should the AI do? (optional)"
msgstr "AI کو کیا کرنا چاہیے؟ (اختیاری)"
+#: src/components/acp/ThreadView.tsx
+msgid "What should we work on?"
+msgstr "ہم کس چیز پر کام کریں؟"
+
#: src/components/CreatedItemsList.tsx
msgid "What the agent may read, write, and surface."
msgstr "ایجنٹ کیا پڑھ، لکھ اور ظاہر کر سکتا ہے۔"
diff --git a/packages/app/src/locales/zh-Hans/messages.json b/packages/app/src/locales/zh-Hans/messages.json
index 7c6fe3ad3..af3a1acf2 100644
--- a/packages/app/src/locales/zh-Hans/messages.json
+++ b/packages/app/src/locales/zh-Hans/messages.json
@@ -290,6 +290,7 @@
"3J7d2N": ["大号章节标题。"],
"3JYy1p": ["分支 ", ["0"], " 已不存在,已克隆到默认分支。"],
"3JjdaA": ["运行"],
+ "3Jsk1e": ["我们来做些什么?"],
"3KOHFt": [
"添加属性(",
["problemCount", "plural", { "other": ["缺少 ", "#", " 个必需属性"] }],
diff --git a/packages/app/src/locales/zh-Hans/messages.po b/packages/app/src/locales/zh-Hans/messages.po
index 1154111d2..e50508f1f 100644
--- a/packages/app/src/locales/zh-Hans/messages.po
+++ b/packages/app/src/locales/zh-Hans/messages.po
@@ -2167,7 +2167,6 @@ msgstr "询问"
msgid "Ask {0} CLI"
msgstr "询问 {0} CLI"
-#: src/components/acp/ThreadView.tsx
#: src/components/handoff/agent-launcher-labels.tsx
#: src/components/handoff/OpenInAgentContextSubmenu.tsx
#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx
@@ -16059,6 +16058,10 @@ msgstr "这个知识库是做什么用的?"
msgid "What should the AI do? (optional)"
msgstr "希望 AI 做什么?(可选)"
+#: src/components/acp/ThreadView.tsx
+msgid "What should we work on?"
+msgstr "我们来做些什么?"
+
#: src/components/CreatedItemsList.tsx
msgid "What the agent may read, write, and surface."
msgstr "智能体可以读取、写入和呈现的内容。"
diff --git a/packages/app/src/locales/zh-Hant/messages.json b/packages/app/src/locales/zh-Hant/messages.json
index 44518458c..5425ebb13 100644
--- a/packages/app/src/locales/zh-Hant/messages.json
+++ b/packages/app/src/locales/zh-Hant/messages.json
@@ -292,6 +292,7 @@
"3J7d2N": ["大型章節標題。"],
"3JYy1p": ["分支 ", ["0"], " 已不存在,已改為複製預設分支。"],
"3JjdaA": ["執行"],
+ "3Jsk1e": ["我們來做些什麼?"],
"3KOHFt": [
"新增屬性(",
["problemCount", "plural", { "other": ["缺少 ", "#", " 個必要屬性"] }],
diff --git a/packages/app/src/locales/zh-Hant/messages.po b/packages/app/src/locales/zh-Hant/messages.po
index 8927e2c92..aac673175 100644
--- a/packages/app/src/locales/zh-Hant/messages.po
+++ b/packages/app/src/locales/zh-Hant/messages.po
@@ -2167,7 +2167,6 @@ msgstr "詢問"
msgid "Ask {0} CLI"
msgstr "詢問 {0} CLI"
-#: src/components/acp/ThreadView.tsx
#: src/components/handoff/agent-launcher-labels.tsx
#: src/components/handoff/OpenInAgentContextSubmenu.tsx
#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx
@@ -16059,6 +16058,10 @@ msgstr "這個知識庫是要做什麼用的?"
msgid "What should the AI do? (optional)"
msgstr "希望 AI 做什麼?(選填)"
+#: src/components/acp/ThreadView.tsx
+msgid "What should we work on?"
+msgstr "我們來做些什麼?"
+
#: src/components/CreatedItemsList.tsx
msgid "What the agent may read, write, and surface."
msgstr "代理可以讀取、寫入和呈現的內容。"
diff --git a/packages/app/tests/integration/bug3-source-mode-writeback.test.ts b/packages/app/tests/integration/bug3-source-mode-writeback.test.ts
index 8a60e5826..a28cc2b18 100644
--- a/packages/app/tests/integration/bug3-source-mode-writeback.test.ts
+++ b/packages/app/tests/integration/bug3-source-mode-writeback.test.ts
@@ -1,3 +1,4 @@
+
import { readFileSync } from 'node:fs';
import { join } from 'node:path';
import { setTimeout as wait } from 'node:timers/promises';
diff --git a/packages/app/tests/integration/indented-jsx-byte-sacred.test.ts b/packages/app/tests/integration/indented-jsx-byte-sacred.test.ts
index 6fcdc23f2..4fc2c11f9 100644
--- a/packages/app/tests/integration/indented-jsx-byte-sacred.test.ts
+++ b/packages/app/tests/integration/indented-jsx-byte-sacred.test.ts
@@ -1,3 +1,4 @@
+
import { setTimeout as wait } from 'node:timers/promises';
import { normalizeBridge } from '@inkeep/open-knowledge-core';
import { updateYFragment } from '@tiptap/y-tiptap';
diff --git a/packages/app/tests/integration/interior-edit-freshness.test.ts b/packages/app/tests/integration/interior-edit-freshness.test.ts
index 40b5cdfd6..9f2f6feb6 100644
--- a/packages/app/tests/integration/interior-edit-freshness.test.ts
+++ b/packages/app/tests/integration/interior-edit-freshness.test.ts
@@ -1,3 +1,4 @@
+
import { setTimeout as wait } from 'node:timers/promises';
import { updateYFragment, yXmlFragmentToProseMirrorRootNode } from '@tiptap/y-tiptap';
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
diff --git a/packages/app/tests/integration/keystroke-cadence-danger-space.test.ts b/packages/app/tests/integration/keystroke-cadence-danger-space.test.ts
index 93666af70..2a085742b 100644
--- a/packages/app/tests/integration/keystroke-cadence-danger-space.test.ts
+++ b/packages/app/tests/integration/keystroke-cadence-danger-space.test.ts
@@ -1,3 +1,4 @@
+
import { setTimeout as wait } from 'node:timers/promises';
import { updateYFragment, yXmlFragmentToProseMirrorRootNode } from '@tiptap/y-tiptap';
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
diff --git a/packages/app/tests/integration/producer-guard-wiring.test.ts b/packages/app/tests/integration/producer-guard-wiring.test.ts
index 867598d34..878d5196b 100644
--- a/packages/app/tests/integration/producer-guard-wiring.test.ts
+++ b/packages/app/tests/integration/producer-guard-wiring.test.ts
@@ -1,3 +1,4 @@
+
import { setTimeout as wait } from 'node:timers/promises';
import { updateYFragment, yXmlFragmentToProseMirrorRootNode } from '@tiptap/y-tiptap';
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
diff --git a/packages/app/tests/integration/qa-039-reconciliation-counters-http.test.ts b/packages/app/tests/integration/qa-039-reconciliation-counters-http.test.ts
index 0970ac12f..4ada3cf26 100644
--- a/packages/app/tests/integration/qa-039-reconciliation-counters-http.test.ts
+++ b/packages/app/tests/integration/qa-039-reconciliation-counters-http.test.ts
@@ -1,3 +1,4 @@
+
import { randomUUID } from 'node:crypto';
import { afterEach, describe, expect, test } from 'vitest';
import { agentWriteMd, createTestServer, type TestServer } from './test-harness';
diff --git a/packages/app/tests/integration/qa-045-restore-after-gc.test.ts b/packages/app/tests/integration/qa-045-restore-after-gc.test.ts
index b632185e1..cbe2b705f 100644
--- a/packages/app/tests/integration/qa-045-restore-after-gc.test.ts
+++ b/packages/app/tests/integration/qa-045-restore-after-gc.test.ts
@@ -1,3 +1,4 @@
+
import { execFileSync } from 'node:child_process';
import { randomUUID } from 'node:crypto';
import { join } from 'node:path';
diff --git a/packages/app/tests/integration/qa-050-rollback-undo-shipped-path.test.ts b/packages/app/tests/integration/qa-050-rollback-undo-shipped-path.test.ts
index c530ce4ba..89bc9b4d9 100644
--- a/packages/app/tests/integration/qa-050-rollback-undo-shipped-path.test.ts
+++ b/packages/app/tests/integration/qa-050-rollback-undo-shipped-path.test.ts
@@ -1,3 +1,4 @@
+
import { randomUUID } from 'node:crypto';
import { afterAll, afterEach, beforeAll, describe, expect, test } from 'vitest';
import type * as Y from 'yjs';
diff --git a/packages/app/tests/integration/undo-after-rollback.test.ts b/packages/app/tests/integration/undo-after-rollback.test.ts
index d3767adc9..a78aeb0e4 100644
--- a/packages/app/tests/integration/undo-after-rollback.test.ts
+++ b/packages/app/tests/integration/undo-after-rollback.test.ts
@@ -1,3 +1,4 @@
+
import { ROLLBACK_ORIGIN } from '@inkeep/open-knowledge-server';
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
import * as Y from 'yjs';
diff --git a/packages/app/tests/integration/undo-recycle-reset.test.ts b/packages/app/tests/integration/undo-recycle-reset.test.ts
index b076f955c..e7cc69c3f 100644
--- a/packages/app/tests/integration/undo-recycle-reset.test.ts
+++ b/packages/app/tests/integration/undo-recycle-reset.test.ts
@@ -1,3 +1,4 @@
+
import { writeFileSync } from 'node:fs';
import { join } from 'node:path';
import { setTimeout as wait } from 'node:timers/promises';
diff --git a/packages/app/tests/integration/undo-rederive-survival.test.ts b/packages/app/tests/integration/undo-rederive-survival.test.ts
index 7935e35f8..9ddcd0730 100644
--- a/packages/app/tests/integration/undo-rederive-survival.test.ts
+++ b/packages/app/tests/integration/undo-rederive-survival.test.ts
@@ -1,3 +1,4 @@
+
import { prependFrontmatter } from '@inkeep/open-knowledge-core';
import { Plugin, PluginKey } from '@tiptap/pm/state';
import { updateYFragment, yXmlFragmentToProseMirrorRootNode } from '@tiptap/y-tiptap';
diff --git a/packages/core/src/bridge/compose.ts b/packages/core/src/bridge/compose.ts
index f4cc8a286..2a597ec3d 100644
--- a/packages/core/src/bridge/compose.ts
+++ b/packages/core/src/bridge/compose.ts
@@ -1,3 +1,4 @@
+
import { prependFrontmatter, stripFrontmatter } from '../extensions/frontmatter.ts';
export type ComposeAdjustment = 'none' | 'body' | 'frontmatter' | 'unresolved';
diff --git a/packages/core/src/bridge/doc-boundary-space.ts b/packages/core/src/bridge/doc-boundary-space.ts
index 8fb428b90..01ef76a9f 100644
--- a/packages/core/src/bridge/doc-boundary-space.ts
+++ b/packages/core/src/bridge/doc-boundary-space.ts
@@ -1,3 +1,4 @@
+
import { FRONTMATTER_RE, stripFrontmatter } from '../extensions/frontmatter.ts';
import { carriedEdgeEmpties, type DocEdgeEmpties } from '../markdown/doc-edge-blank-runs.ts';
diff --git a/packages/core/src/markdown/comment-promoter.ts b/packages/core/src/markdown/comment-promoter.ts
index fc267cbea..fb0ba5a7c 100644
--- a/packages/core/src/markdown/comment-promoter.ts
+++ b/packages/core/src/markdown/comment-promoter.ts
@@ -1,3 +1,4 @@
+
import type { Nodes, Paragraph, PhrasingContent, Root, RootContent, Text } from 'mdast';
import { SKIP, visit } from 'unist-util-visit';
import type { VFile } from 'vfile';
diff --git a/packages/core/src/markdown/merged-walker.ts b/packages/core/src/markdown/merged-walker.ts
index bfd7e3109..fa3cfcd86 100644
--- a/packages/core/src/markdown/merged-walker.ts
+++ b/packages/core/src/markdown/merged-walker.ts
@@ -1,3 +1,4 @@
+
import type { Nodes, Parent, Root } from 'mdast';
import { SKIP, visit } from 'unist-util-visit';
import type { VFile } from 'vfile';
diff --git a/packages/core/src/markdown/safe-url.ts b/packages/core/src/markdown/safe-url.ts
index 4d3250d3a..8be632ba4 100644
--- a/packages/core/src/markdown/safe-url.ts
+++ b/packages/core/src/markdown/safe-url.ts
@@ -1,3 +1,4 @@
+
export const SAFE_URL_SCHEMES = ['https', 'http', 'mailto', 'tel', 'ftp', 'sms'] as const;
const SCHEME_ALT = SAFE_URL_SCHEMES.map((s) => `${s}:`).join('|');