The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor: remove thread task board surfaces
Steven Enamakeld2aa96b0a8f6
diff --git a/app/src/components/ai-elements/index.ts b/app/src/components/ai-elements/index.tsindex c326bc0b89..71e100d7c1 100644--- a/app/src/components/ai-elements/index.ts+++ b/app/src/components/ai-elements/index.ts@@ -22,7 +22,7 @@* interleaved narration). Both upstream components are whole-panel* collapsibles that hide that trail behind one "Thought for N seconds"* summary — the opposite of the chosen design.- * - `Task` / `Plan` — `ThreadTodoStrip` and `PlanReviewCard` are the real+ * - `Plan` — `PlanReviewCard` is the real* surfaces. The strip wants a plain `ui/Collapsible`, not `Task`'s* search-icon trigger and bordered rail; the review card is a blocking* decision surface that must not be collapsible at all.diff --git a/app/src/features/conversations/Conversations.processSourceCommand.test.tsx b/app/src/features/conversations/Conversations.processSourceCommand.test.tsxindex a3d72dd2d9..1196eb788f 100644--- a/app/src/features/conversations/Conversations.processSourceCommand.test.tsx+++ b/app/src/features/conversations/Conversations.processSourceCommand.test.tsx@@ -28,26 +28,23 @@ import themeReducer from '../../store/themeSlice';import threadReducer from '../../store/threadSlice';import type { Thread } from '../../types/thread';-const { mockGetThreads, mockGetThreadMessages, mockGetTaskBoard, mockUseUsageState } = vi.hoisted(- () => ({- mockGetThreads: vi.fn().mockResolvedValue({ threads: [], count: 0 }),- mockGetThreadMessages: vi.fn().mockResolvedValue({ messages: [], count: 0 }),- mockGetTaskBoard: vi.fn().mockResolvedValue(null),- mockUseUsageState: vi.fn(() => ({- teamUsage: null,- currentPlan: null,- currentTier: 'FREE' as const,- isFreeTier: true,- usagePct: 0,- isNearLimit: false,- isAtLimit: false,- isBudgetExhausted: false,- shouldShowBudgetCompletedMessage: false,- isLoading: false,- refresh: vi.fn(),- })),- })-);+const { mockGetThreads, mockGetThreadMessages, mockUseUsageState } = vi.hoisted(() => ({+ mockGetThreads: vi.fn().mockResolvedValue({ threads: [], count: 0 }),+ mockGetThreadMessages: vi.fn().mockResolvedValue({ messages: [], count: 0 }),+ mockUseUsageState: vi.fn(() => ({+ teamUsage: null,+ currentPlan: null,+ currentTier: 'FREE' as const,+ isFreeTier: true,+ usagePct: 0,+ isNearLimit: false,+ isAtLimit: false,+ isBudgetExhausted: false,+ shouldShowBudgetCompletedMessage: false,+ isLoading: false,+ refresh: vi.fn(),+ })),+}));vi.mock('../../services/chatService', () => ({chatCancel: vi.fn().mockResolvedValue(true),@@ -73,13 +70,6 @@ vi.mock('../../services/api/threadApi', () => ({hasMore: false,hasTranscript: false,}),- getTaskBoard: mockGetTaskBoard,- putTaskBoard: vi- .fn()- .mockResolvedValue({ threadId: 't-1', cards: [], updatedAt: '2026-05-04T10:00:00Z' }),- decidePlan: vi- .fn()- .mockResolvedValue({ threadId: 't-1', cards: [], updatedAt: '2026-05-04T10:00:00Z' }),appendMessage: vi.fn(async (_threadId: string, message: unknown) => message),deleteThread: vi.fn().mockResolvedValue({ deleted: true }),generateTitleIfNeeded: vi.fn().mockResolvedValue({}),diff --git a/app/src/features/conversations/Conversations.taskBoard.test.tsx b/app/src/features/conversations/Conversations.taskBoard.test.tsxdeleted file mode 100644index 5fef16bb48..0000000000--- a/app/src/features/conversations/Conversations.taskBoard.test.tsx+++ /dev/null@@ -1,252 +0,0 @@-/**- * The thread todo board must render on the surface `/chat` actually shows.- *- * `ThreadTodoStrip`'s only mount was inside `legacyMainPanel`, and the panel- * choice is an either/or - `composer === 'mic-cloud' ? legacyMainPanel :- * assistantUiMainPanel` - so on the default text composer the strip was- * unreachable. `onTaskBoardUpdated` kept filling `taskBoardByThread` and- * nothing downstream ever read it: a long multi-step turn lost its entire- * plan/progress strip.- *- * These tests render the page the way the route does (no `composer` prop) and- * assert the strip is on it.- */-import { combineReducers, configureStore } from '@reduxjs/toolkit';-import { act, render, screen } from '@testing-library/react';-import { Provider } from 'react-redux';-import { MemoryRouter } from 'react-router-dom';-import { describe, expect, it, vi } from 'vitest';--import { SidebarSlotOutlet, SidebarSlotProvider } from '../../components/layout/shell/SidebarSlot';-import agentProfileReducer from '../../store/agentProfileSlice';-import chatRuntimeReducer, { setTaskBoardForThread } from '../../store/chatRuntimeSlice';-import layoutReducer from '../../store/layoutSlice';-import socketReducer from '../../store/socketSlice';-import themeReducer from '../../store/themeSlice';-import threadReducer from '../../store/threadSlice';-import type { Thread } from '../../types/thread';-import type { TaskBoard } from '../../types/turnState';--const { mockGetThreads, mockGetThreadMessages, mockGetTaskBoard, mockUseUsageState } = vi.hoisted(- () => ({- mockGetThreads: vi.fn().mockResolvedValue({ threads: [], count: 0 }),- mockGetThreadMessages: vi.fn().mockResolvedValue({ messages: [], count: 0 }),- mockGetTaskBoard: vi.fn().mockResolvedValue(null),- mockUseUsageState: vi.fn(() => ({- teamUsage: null,- currentPlan: null,- currentTier: 'FREE' as const,- isFreeTier: true,- usagePct: 0,- isNearLimit: false,- isAtLimit: false,- isBudgetExhausted: false,- shouldShowBudgetCompletedMessage: false,- isLoading: false,- refresh: vi.fn(),- })),- })-);--vi.mock('../../services/chatService', () => ({- chatCancel: vi.fn().mockResolvedValue(true),- chatClearQueue: vi.fn().mockResolvedValue(0),- chatSend: vi.fn().mockResolvedValue(undefined),- subscribeChatEvents: vi.fn(() => () => {}),- useRustChat: vi.fn(() => true),-}));--vi.mock('../../services/api/threadApi', () => ({- threadApi: {- createNewThread: vi.fn().mockResolvedValue({ id: 'new-thread', labels: [] }),- getThreads: mockGetThreads,- getThreadMessages: mockGetThreadMessages,- getTurnState: vi.fn().mockResolvedValue(null),- getTurnStateHistory: vi.fn().mockResolvedValue([]),- getDerivedTranscript: vi- .fn()- .mockResolvedValue({- threadId: 'none',- items: [],- total: 0,- hasMore: false,- hasTranscript: false,- }),- getTaskBoard: mockGetTaskBoard,- putTaskBoard: vi- .fn()- .mockResolvedValue({ threadId: 't-1', cards: [], updatedAt: '2026-05-04T10:00:00Z' }),- decidePlan: vi- .fn()- .mockResolvedValue({ threadId: 't-1', cards: [], updatedAt: '2026-05-04T10:00:00Z' }),- appendMessage: vi.fn(async (_threadId: string, message: unknown) => message),- deleteThread: vi.fn().mockResolvedValue({ deleted: true }),- generateTitleIfNeeded: vi.fn().mockResolvedValue({}),- updateMessage: vi.fn().mockResolvedValue({}),- purge: vi.fn().mockResolvedValue({}),- updateLabels: vi.fn().mockResolvedValue({}),- updateTitle: vi.fn().mockResolvedValue({}),- persistReaction: vi.fn().mockResolvedValue({}),- listRuns: vi.fn().mockResolvedValue([]),- listRunEvents: vi.fn().mockResolvedValue([]),- },-}));--vi.mock('../../services/api/agentProfilesApi', () => ({- agentProfilesApi: {- list: vi.fn().mockResolvedValue({ activeProfileId: 'default', profiles: [] }),- select: vi.fn().mockResolvedValue({ activeProfileId: 'default', profiles: [] }),- upsert: vi.fn().mockResolvedValue({ activeProfileId: 'default', profiles: [] }),- delete: vi.fn().mockResolvedValue({ activeProfileId: 'default', profiles: [] }),- },-}));--vi.mock('../../services/api/openrouterFreeModels', () => ({- applyOpenRouterFreeModels: () => undefined,-}));--vi.mock('../../hooks/useUsageState', () => ({ useUsageState: mockUseUsageState }));--vi.mock('../../components/chat/ChatNewWindowHero', () => ({ default: () => null }));--vi.mock('../../store/socketSelectors', () => ({- selectSocketStatus: (state: { socket?: { byUser?: Record<string, { status: string }> } }) =>- state.socket?.byUser?.__pending__?.status ?? 'disconnected',-}));--vi.mock('../../hooks/useStickToBottom', () => ({- useStickToBottom: vi.fn(() => ({ containerRef: { current: null }, endRef: { current: null } })),-}));--vi.mock('../../utils/openUrl', () => ({ openUrl: vi.fn() }));--const mockCallCoreRpc = vi.fn().mockResolvedValue({});-vi.mock('../../services/coreRpcClient', async orig => {- const actual = await orig<typeof import('../../services/coreRpcClient')>();- return { ...actual, callCoreRpc: (...args: unknown[]) => mockCallCoreRpc(...args) };-});--vi.mock('../../lib/coreState/store', () => ({- getCoreStateSnapshot: vi.fn(() => ({- isBootstrapping: false,- isReady: true,- snapshot: {- auth: { isAuthenticated: false, userId: null, user: null, profileId: null },- sessionToken: null,- currentUser: null,- onboardingCompleted: true,- chatOnboardingCompleted: true,- analyticsEnabled: false,- localState: {},- runtime: {},- },- })),- isWelcomeLocked: vi.fn(() => false),- setCoreStateSnapshot: vi.fn(),-}));--const THREAD_ID = 'board-thread';--const thread: Thread = {- id: THREAD_ID,- title: 'Board thread',- chatId: null,- isActive: false,- messageCount: 0,- lastMessageAt: '2026-01-01T00:00:00.000Z',- createdAt: '2026-01-01T00:00:00.000Z',- labels: ['general'],-};--const board: TaskBoard = {- threadId: THREAD_ID,- updatedAt: '2026-09-03T10:00:00Z',- cards: [- {- id: 'card-1',- title: 'Read the migration audit',- status: 'in_progress',- order: 0,- updatedAt: '2026-09-03T10:00:00Z',- },- {- id: 'card-2',- title: 'Re-wire the composer header',- status: 'todo',- order: 1,- updatedAt: '2026-09-03T10:00:00Z',- },- ],-};--function buildStore(preload: Record<string, unknown>) {- return configureStore({- reducer: combineReducers({- thread: threadReducer,- layout: layoutReducer,- socket: socketReducer,- chatRuntime: chatRuntimeReducer,- agentProfiles: agentProfileReducer,- theme: themeReducer,- }),- preloadedState: preload as never,- });-}--async function renderChat(taskBoard: TaskBoard | null) {- mockGetThreads.mockResolvedValue({ threads: [thread], count: 1 });- // The page also hydrates the board from the core on thread select; leaving- // this at the default would overwrite whatever the socket path put in Redux.- mockGetTaskBoard.mockResolvedValue(taskBoard);- const store = buildStore({- thread: {- threads: [thread],- selectedThreadId: THREAD_ID,- activeThreadIds: {},- welcomeThreadId: null,- messagesByThreadId: { [THREAD_ID]: [] },- messages: [],- isLoadingThreads: false,- isLoadingMessages: false,- messagesError: null,- },- socket: { byUser: { __pending__: { status: 'connected', socketId: 'socket-1' } } },- });- // Through the real reducer, exactly as `onTaskBoardUpdated` does. A partial- // `chatRuntime` in `preloadedState` would replace the whole slice and drop- // every other key the page reads.- if (taskBoard) store.dispatch(setTaskBoardForThread({ threadId: THREAD_ID, board: taskBoard }));- const { default: Conversations } = await import('./Conversations');-- await act(async () => {- render(- <Provider store={store}>- <MemoryRouter initialEntries={['/chat']}>- <SidebarSlotProvider>- <SidebarSlotOutlet />- {/* `composer` omitted on purpose: that is what the /chat route- does, and it is what selects `assistantUiMainPanel`. */}- <Conversations />- </SidebarSlotProvider>- </MemoryRouter>- </Provider>- );- });- return store;-}--describe('thread task board on the assistant-ui chat surface', () => {- it('renders the todo strip on the default text composer', async () => {- await renderChat(board);-- const strip = await screen.findByTestId('thread-todo-strip');- expect(strip).toBeInTheDocument();- expect(strip).toHaveTextContent('Read the migration audit');- expect(strip).toHaveTextContent('Re-wire the composer header');- });-- it('stays out of the way when the thread has no board', async () => {- await renderChat(null);- expect(screen.queryByTestId('thread-todo-strip')).not.toBeInTheDocument();- });-});diff --git a/app/src/features/conversations/Conversations.tsx b/app/src/features/conversations/Conversations.tsxindex a0d364f180..93e1297532 100644--- a/app/src/features/conversations/Conversations.tsx+++ b/app/src/features/conversations/Conversations.tsx@@ -26,12 +26,6 @@ import {type ChatThreadViewHandle,} from '../../features/conversations/components/ChatThreadView';import { PlanReviewCard } from '../../features/conversations/components/PlanReviewCard';-import {- ThreadGoalEditorPanel,- ThreadGoalFooterTrigger,- useThreadGoal,-} from '../../features/conversations/components/ThreadGoalChip';-import { ThreadTodoStrip } from '../../features/conversations/components/ThreadTodoStrip';import {evaluateComposerSend,getComposerBlockedSendFeedback,@@ -62,7 +56,6 @@ import {import { useRegisterAction } from '../../lib/commands/useRegisterAction';import { useT } from '../../lib/i18n/I18nContext';import type { TurnProcessTrail } from '../../providers/assistantUiMessages';-import { threadApi } from '../../services/api/threadApi';import { fetchThreadTokenUsage } from '../../services/api/threadUsageApi';import {aiRegenerate,@@ -90,7 +83,6 @@ import {type ProcessingTranscriptItem,type QueuedFollowup,registerParallelRequest,- setTaskBoardForThread,setToolTimelineForThread,type ToolTimelineEntry,} from '../../store/chatRuntimeSlice';@@ -283,10 +275,6 @@ const Conversations = ({: false;const firstActiveThreadId = Object.keys(activeThreadIds)[0] ?? null;- // Thread-goal controller shared by the footer trigger (under the composer)- // and the editor panel (above the composer).- const threadGoal = useThreadGoal(selectedThreadId ?? null);-const [inputValue, setInputValue] = useState('');const [attachments, setAttachments] = useState<Attachment[]>([]);// What ingest counts its budget against. Tracks state on every render (so a@@ -422,7 +410,6 @@ const Conversations = ({state => state.chatRuntime.interruptedAssistantByThread);const processingByThread = useAppSelector(state => state.chatRuntime.processingByThread);- const taskBoardByThread = useAppSelector(state => state.chatRuntime.taskBoardByThread);const inferenceStatusByThread = useAppSelector(state => state.chatRuntime.inferenceStatusByThread);@@ -579,7 +566,7 @@ const Conversations = ({const handleComposerSendRef = useRef<((text?: string) => Promise<void>) | null>(null);const handleStopGenerationRef = useRef<(() => void) | null>(null);// Per-thread "turn signature": the last-seen tuple of progress-slice- // references [inferenceStatus, streamingAssistant, toolTimeline, taskBoard]+ // references [inferenceStatus, streamingAssistant, toolTimeline]// for each thread that owns a live silence timer. Redux Toolkit (immer)// only produces new references for the thread whose slice actually changed,// so comparing references lets the rearm effect (a) detect a turn completing@@ -775,16 +762,6 @@ const Conversations = ({if (selectedThreadId) {void dispatch(loadThreadMessages(selectedThreadId));void dispatch(fetchAndHydrateTurnState(selectedThreadId));- void threadApi- .getTaskBoard(selectedThreadId)- .then(board => {- if (board) {- dispatch(setTaskBoardForThread({ threadId: selectedThreadId, board }));- }- })- .catch(error => {- debug('getTaskBoard failed: %o', error);- });}}, [selectedThreadId, dispatch]);@@ -876,9 +853,9 @@ const Conversations = ({// thread. Top-level tool / iteration events bump `inferenceStatusByThread`;// pure-text streams (no tools) only bump `streamingAssistantByThread`;// sub-agent activity (a delegated `Research`/`Tools Agent`/`Memory Tree`- // turn whose tools run in a child task) bumps `toolTimelineByThread` and- // `taskBoardByThread` without necessarily re-emitting a top-level status- // change, so all four must be watched — otherwise a long sub-agent loop+ // turn whose tools run in a child task) bumps `toolTimelineByThread` without+ // necessarily re-emitting a top-level status change, so it must be watched —+ // otherwise a long sub-agent loop// would trip the safety timer mid-run even though the user can see the// delegated tools firing in the timeline. When the status is cleared// (chat_done / chat_error), drop the timer — the completion handlers@@ -902,7 +879,6 @@ const Conversations = ({inferenceStatusByThread[threadId],streamingAssistantByThread[threadId],toolTimelineByThread[threadId],- taskBoardByThread[threadId],// #4270: liveness beat. Kept LAST so the done-transition probe on// `current[0]` (status) is unaffected; a beat alone still flips the// `changed` check and rearms the timer through a silent reasoning phase.@@ -928,7 +904,6 @@ const Conversations = ({inferenceStatusByThread,streamingAssistantByThread,toolTimelineByThread,- taskBoardByThread,inferenceHeartbeatByThread,]);@@ -1790,8 +1765,6 @@ const Conversations = ({// Poll-free live signal: lights the badge when memories are syncing even if// no sub-agent is running and the panel is closed.const memorySyncActive = useMemorySyncActive();- const selectedTaskBoard = selectedThreadId ? (taskBoardByThread[selectedThreadId] ?? null) : null;- const hasTaskBoard = Boolean(selectedTaskBoard?.cards.length);// A plan the orchestrator parked for interactive review (request_plan_review// gate). When present, the PlanReviewCard renders above the composer and// resolves the parked turn; the todo strip stays read-only progress.@@ -1922,7 +1895,6 @@ const Conversations = ({!isLoadingMessages &&!messagesError &&!hasVisibleMessages &&- !hasTaskBoard &&!hasLiveAgentActivity;// Track the floating composer footer's height so the message list can reserve@@ -2260,7 +2232,6 @@ const Conversations = ({threadId={selectedThreadId ?? null}variant={variant}bottomPadding={!isSidebar ? composerFooterHeight + 16 : undefined}- hasFooterContent={hasTaskBoard}isLoading={isLoadingMessages}loadError={messagesError}emptyContent={@@ -2377,28 +2348,6 @@ const Conversations = ({{agentGateCards}- {/* Thread-scoped todo list the agent maintains as it works — read-only,- pinned above the composer. Distinct from the Intelligence-tab kanban- (global `user-tasks`). Renders nothing when the thread has no active- cards. */}- {selectedThreadId && (- <ThreadTodoStrip- board={selectedTaskBoard}- disabled={!selectedThreadId}- onViewSession={card => {- if (!card.sessionThreadId) return;- // Navigation only — do NOT mark the thread active. activeThreadId- // tracks a true in-flight turn; forcing a completed session active- // would wedge the composer.- dispatch(setSelectedThread(card.sessionThreadId));- void dispatch(loadThreadMessages(card.sessionThreadId));- if (shouldSyncChatRoute) {- navigate(chatThreadPath(card.sessionThreadId));- }- }}- />- )}-{/* Cancel the in-flight turn for composer modes that don't render thetext ChatComposer (mic-cloud + voice). The text composer carries itsown in-box Stop button, so the footer control only appears for the@@ -2465,9 +2414,7 @@ const Conversations = ({// validateAndReadFile, which honors modelSupportsVision.allowedMimeTypes={[]}attachmentsEnabled={CHAT_ATTACHMENTS_ENABLED}- // Header stack above the input box (outside its blue focus ring):- // queued follow-ups + the thread-goal editor (opened via the- // footer "Set goal" trigger). Entries that render null are no-ops.+ // Header stack above the input box (outside its blue focus ring).headerSlots={[selectedThreadId && (queuedFollowupsByThread[selectedThreadId]?.length ?? 0) > 0 ? (<QueuedFollowups@@ -2476,7 +2423,6 @@ const Conversations = ({onClear={() => void handleClearQueuedFollowups()}/>) : null,- <ThreadGoalEditorPanel key="thread-goal" ctl={threadGoal} />,]}mascotDock={mascotDock}modelOverride={composerModelOverride ?? resolvedModel}@@ -2558,11 +2504,7 @@ const Conversations = ({<divclassName="mt-2 flex items-center justify-between gap-2"data-walkthrough="chat-agent-panel">- <div className="flex min-w-0 items-center gap-2">- <ComposerTokenStats model={resolvedModel} threadId={selectedThreadId} />- {/* Set/show the thread goal; click opens the editor above the composer. */}- <ThreadGoalFooterTrigger ctl={threadGoal} />- </div>+ <ComposerTokenStats model={resolvedModel} threadId={selectedThreadId} />{!isSidebar && (<div className="flex shrink-0 items-center gap-2"><div@@ -2633,29 +2575,6 @@ const Conversations = ({{sendErrorBanner}{sendAdvisoryBanner}{liveArtifactDeck}- {/* The thread todo board. Its only other mount is inside- `legacyMainPanel`, which the text surface never renders, so- `taskBoardByThread` reached Redux and stopped there: a long- multi-step turn lost its whole plan/progress strip. This is the same- position relative to the composer that the legacy panel gave it, and- the strip renders nothing when the board is empty, so it is inert on- an ordinary turn. */}- {selectedThreadId && (- <ThreadTodoStrip- board={selectedTaskBoard}- onViewSession={card => {- if (!card.sessionThreadId) return;- // Navigation only - do NOT mark the thread active. activeThreadId- // tracks a true in-flight turn; forcing a completed session active- // would wedge the composer.- dispatch(setSelectedThread(card.sessionThreadId));- void dispatch(loadThreadMessages(card.sessionThreadId));- if (shouldSyncChatRoute) {- navigate(chatThreadPath(card.sessionThreadId));- }- }}- />- )}{selectedThreadId && (queuedFollowupsByThread[selectedThreadId]?.length ?? 0) > 0 ? (<QueuedFollowupsitems={queuedFollowupsByThread[selectedThreadId] ?? []}@@ -2665,9 +2584,7 @@ const Conversations = ({</>);- // Left-hand controls in the assistant-ui composer toolbar, alongside the- // model pill and the thread-goal trigger — the assistant-ui equivalent of- // `legacyMainPanel`'s footer row.+ // Left-hand controls in the assistant-ui composer toolbar.const assistantComposerFooterExtras = (<>{renderBackgroundProcessesButton(() => setShowBackgroundProcesses(true))}@@ -2683,7 +2600,6 @@ const Conversations = ({: 'flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden'}><AssistantUiChat- threadGoal={threadGoal}model={composerModelOverride ?? resolvedModel ?? CHAT_MODEL_HINT}modelContextWindow={composerModelContextWindow}composerHeader={assistantComposerHeader}diff --git a/app/src/features/conversations/components/AssistantUiChat.slots.test.tsx b/app/src/features/conversations/components/AssistantUiChat.slots.test.tsxindex a4f787eed8..0a43fe3f7f 100644--- a/app/src/features/conversations/components/AssistantUiChat.slots.test.tsx+++ b/app/src/features/conversations/components/AssistantUiChat.slots.test.tsx@@ -21,7 +21,6 @@ import chatRuntimeReducer from '../../../store/chatRuntimeSlice';import mascotReducer from '../../../store/mascotSlice';import threadReducer from '../../../store/threadSlice';import { AssistantUiChat } from './AssistantUiChat';-import type { ThreadGoalController } from './ThreadGoalChip';const THREAD_ID = 't-slots';@@ -59,38 +58,12 @@ function buildStore() {});}-/**- * A fresh controller object every time, the way `useThreadGoal` returns one:- * it is a bare object literal, so its identity changes on every host render.- */-function goalController(overrides: Partial<ThreadGoalController> = {}): ThreadGoalController {- return {- threadId: THREAD_ID,- goal: null,- expanded: false,- draft: '',- busy: false,- setDraft: vi.fn(),- open: vi.fn(),- close: vi.fn(),- toggle: vi.fn(),- save: vi.fn(),- complete: vi.fn(),- pause: vi.fn(),- resume: vi.fn(),- clear: vi.fn(),- ...overrides,- };-}-function chat(- threadGoal: ThreadGoalController,onOpenHumanMode?: () => void,overrides: { attachmentsEnabled?: boolean; attachmentInteractionBlocked?: boolean } = {}) {return (<AssistantUiChat- threadGoal={threadGoal}model={null}onModelChange={vi.fn()}inputValue=""@@ -112,22 +85,6 @@ function composerShell(): HTMLElement {}describe('assistant-ui composer slots', () => {- it('shows the thread-goal editor once the controller expands', async () => {- const store = buildStore();- const { rerender } = render(<Provider store={store}>{chat(goalController())}</Provider>);-- expect(screen.queryByPlaceholderText('What should this thread accomplish?')).toBeNull();-- // The host re-renders with a new controller object carrying `expanded`.- // `ComposerExtras` holds a constant identity and has no dependency on it,- // so this only appears if the slot re-renders with its host.- rerender(<Provider store={store}>{chat(goalController({ expanded: true }))}</Provider>);-- expect(- await screen.findByPlaceholderText('What should this thread accomplish?')- ).toBeInTheDocument();- });-it('keeps the idle mascot button mounted across a host re-render', () => {const store = buildStore();const navigate = vi.fn();@@ -135,12 +92,12 @@ describe('assistant-ui composer slots', () => {// (`onOpenHumanMode={() => navigate('/human')}`). That changing identity is// what used to remount the slot.const { rerender } = render(- <Provider store={store}>{chat(goalController(), () => navigate('/human'))}</Provider>+ <Provider store={store}>{chat(() => navigate('/human'))}</Provider>);const button = screen.getByTestId('composer-human-mode');- rerender(<Provider store={store}>{chat(goalController(), () => navigate('/human'))}</Provider>);+ rerender(<Provider store={store}>{chat(() => navigate('/human'))}</Provider>);expect(screen.getByTestId('composer-human-mode')).toBe(button);});@@ -149,10 +106,7 @@ describe('assistant-ui composer slots', () => {const store = buildStore();render(<Provider store={store}>- {chat(goalController(), undefined, {- attachmentsEnabled: true,- attachmentInteractionBlocked: true,- })}+ {chat(undefined, { attachmentsEnabled: true, attachmentInteractionBlocked: true })}</Provider>);@@ -167,7 +121,7 @@ describe('assistant-ui composer slots', () => {it('leaves the assistant-ui dropzone in charge when the host takes no files', () => {const store = buildStore();- render(<Provider store={store}>{chat(goalController())}</Provider>);+ render(<Provider store={store}>{chat()}</Provider>);const dataTransfer = { types: ['Files'], dropEffect: 'copy' };fireEvent.dragOver(composerShell(), { dataTransfer });diff --git a/app/src/features/conversations/components/AssistantUiChat.tsx b/app/src/features/conversations/components/AssistantUiChat.tsxindex f10e4ee6dc..9bb57429f1 100644--- a/app/src/features/conversations/components/AssistantUiChat.tsx+++ b/app/src/features/conversations/components/AssistantUiChat.tsx@@ -6,7 +6,6 @@ import { type ReactNode, useCallback, useEffect, useMemo, useRef } from 'react';import AttachmentPreview from '../../../components/chat/AttachmentPreview';import { Button } from '../../../components/ui';import type { Attachment } from '../../../lib/attachments';-import { useRegisterAction } from '../../../lib/commands/useRegisterAction';import { useSlashCommands } from '../../../lib/commands/useSlashCommands';import { useT } from '../../../lib/i18n/I18nContext';import type { TurnProcessTrail } from '../../../providers/assistantUiMessages';@@ -21,11 +20,6 @@ import { TurnFooter } from './aui/TurnFooter';import { TurnFooterHost } from './aui/turnFooterHost';import { ChatToolFallback, ChatToolGroup } from './ChatToolParts';import { contextUsageFromTokenUsage, ContextWindowPill } from './composer/ContextWindowPill';-import {- type ThreadGoalController,- ThreadGoalEditorPanel,- ThreadGoalFooterTrigger,-} from './ThreadGoalChip';const EMPTY_TOKEN_USAGE = emptySessionTokenUsage();const selectComposerText = (state: AssistantState) => state.composer.text;@@ -64,7 +58,6 @@ function ComposerTextBridge({* send/cancel path as the legacy composer.*/export function AssistantUiChat({- threadGoal,model,modelContextWindow,onModelChange,@@ -86,7 +79,6 @@ export function AssistantUiChat({canOpenSubagent,onOpenTurnProcess,}: {- threadGoal: ThreadGoalController;model: string | null;modelContextWindow?: number | null;onModelChange: (value: string | null, contextWindow?: number | null) => void;@@ -145,18 +137,6 @@ export function AssistantUiChat({() => contextUsageFromTokenUsage(tokenUsage, modelContextWindow),[modelContextWindow, tokenUsage]);- const openThreadGoal = threadGoal.open;-- useRegisterAction({- id: 'chat.goal',- label: 'Set thread goal',- labelKey: 'conversations.composer.command.goal',- group: 'Chat',- handler: openThreadGoal,- enabled: () => selectedThreadId !== null,- keywords: ['goal', 'objective', 'thread goal'],- slashCommand: { id: 'goal', descriptionKey: 'conversations.composer.command.goal' },- });const slashCommands = useSlashCommands();// Every prop the composer slots below read, refreshed on each host render.@@ -177,7 +157,6 @@ export function AssistantUiChat({onAttachFiles,onOpenHumanMode,onRemoveAttachment,- threadGoal,});slotPropsRef.current = {attachments,@@ -189,7 +168,6 @@ export function AssistantUiChat({onAttachFiles,onOpenHumanMode,onRemoveAttachment,- threadGoal,};// Read through a ref for the same reason `ComposerHeader` does below: the// slot is rendered by type, so closing over the node would remount the whole@@ -197,14 +175,10 @@ export function AssistantUiChat({const composerFooterExtrasRef = useRef(composerFooterExtras);composerFooterExtrasRef.current = composerFooterExtras;const ComposerExtras = useCallback(() => {- const { contextUsage: usage, threadGoal: goalCtl } = slotPropsRef.current;+ const { contextUsage: usage } = slotPropsRef.current;return (<><ContextWindowPill usage={usage} />- <div className="absolute right-0 bottom-full left-0 pb-2">- <ThreadGoalEditorPanel ctl={goalCtl} />- </div>- <ThreadGoalFooterTrigger ctl={goalCtl} />{composerFooterExtrasRef.current}</>);diff --git a/app/src/features/conversations/components/AssistantUiInferenceStatus.test.tsx b/app/src/features/conversations/components/AssistantUiInferenceStatus.test.tsxindex b027121645..ec26877bbb 100644--- a/app/src/features/conversations/components/AssistantUiInferenceStatus.test.tsx+++ b/app/src/features/conversations/components/AssistantUiInferenceStatus.test.tsx@@ -29,7 +29,6 @@ import chatRuntimeReducer, {import mascotReducer from '../../../store/mascotSlice';import threadReducer from '../../../store/threadSlice';import { AssistantUiChat } from './AssistantUiChat';-import type { ThreadGoalController } from './ThreadGoalChip';const THREAD_ID = 't-status';@@ -78,28 +77,10 @@ function buildStore() {});}-const threadGoal: ThreadGoalController = {- threadId: THREAD_ID,- goal: null,- expanded: false,- draft: '',- busy: false,- setDraft: vi.fn(),- open: vi.fn(),- close: vi.fn(),- toggle: vi.fn(),- save: vi.fn(),- complete: vi.fn(),- pause: vi.fn(),- resume: vi.fn(),- clear: vi.fn(),-};-function renderChat(store: ReturnType<typeof buildStore>) {return render(<Provider store={store}><AssistantUiChat- threadGoal={threadGoal}model={null}onModelChange={vi.fn()}inputValue=""diff --git a/app/src/features/conversations/components/TaskBoardCardArticle.tsx b/app/src/features/conversations/components/TaskBoardCardArticle.tsxdeleted file mode 100644index 971c5a3bc9..0000000000--- a/app/src/features/conversations/components/TaskBoardCardArticle.tsx+++ /dev/null@@ -1,264 +0,0 @@-import createDebug from 'debug';-import {- LuArrowLeft,- LuArrowRight,- LuBot,- LuCircleCheck,- LuClipboardList,- LuDatabase,- LuExternalLink,- LuPlay,- LuShieldCheck,- LuWrench,-} from 'react-icons/lu';--import Badge from '../../../components/ui/Badge';-import Button from '../../../components/ui/Button';-import { useT } from '../../../lib/i18n/I18nContext';-import type { TaskBoardCard, TaskBoardCardStatus } from '../../../types/turnState';-import { readSourceMetadata, sourceBadgeLabel } from './taskBoardMetadata';--const log = createDebug('app:conversations:task-board-card');--/** Whether a status owns a kanban column in the default 5-column set. */-export type IsColumnStatus = (status: TaskBoardCardStatus) => boolean;--/**- * One card on the task board.- *- * Extracted out of `TaskKanbanBoard.tsx` when that file was split. Two things- * changed with the move, both corrections rather than redesigns:- *- * - **The `ocean-*` classes were dead.** `ocean` is not defined anywhere in- * `tailwind.config.js`, so `bg-ocean-600` / `text-ocean-700` emitted no CSS- * at all and the "Approve", "Work task" and "View work" affordances rendered- * with no background. They are the shared {@link Button} / {@link Badge}- * primitives now, on the real `primary-*` tokens.- * - **The hand-rolled metadata pills are {@link Badge}es**, which publish their- * tone as `data-variant` instead of a Tailwind class string. `sky-*` was a- * raw Tailwind palette scale that does not follow a user's theme; those- * source/evidence pills read as `primary` now.- */-export function TaskBoardCardArticle({- card,- columnStatus,- disabled,- onMove,- hasBriefActions,- isColumnStatus,- columnFor,- onDecidePlan,- onWorkTask,- onViewSession,- working,- mutating,- onOpenBrief,-}: {- card: TaskBoardCard;- columnStatus: TaskBoardCardStatus;- disabled: boolean;- onMove?: (card: TaskBoardCard, direction: -1 | 1) => void;- hasBriefActions: boolean;- isColumnStatus: IsColumnStatus;- columnFor: (status: TaskBoardCardStatus) => TaskBoardCardStatus;- onDecidePlan?: (card: TaskBoardCard, approve: boolean) => void;- onWorkTask?: (card: TaskBoardCard) => void;- onViewSession?: (card: TaskBoardCard) => void;- working: boolean;- mutating: boolean;- onOpenBrief: () => void;-}) {- const { t } = useT();- const source = readSourceMetadata(card.sourceMetadata);- const isDraggable = !disabled && Boolean(onMove);-- const handleDragStart = (e: React.DragEvent<HTMLElement>) => {- log('drag start card=%s from column=%s', card.id, columnStatus);- e.dataTransfer.setData('application/x-task-card-id', card.id);- e.dataTransfer.effectAllowed = 'move';- };-- return (- <article- draggable={isDraggable}- onDragStart={isDraggable ? handleDragStart : undefined}- className={`rounded-lg border border-line bg-surface px-2.5 py-2 shadow-xs transition-opacity ${- mutating ? 'opacity-50' : 'opacity-100'- } ${isDraggable ? 'cursor-grab active:cursor-grabbing' : ''}`}>- <div className="flex items-start gap-2">- <p className="min-w-0 flex-1 wrap-break-word text-xs font-medium leading-snug text-content">- {card.title}- </p>- {card.sessionThreadId && onViewSession ? (- <Button- variant="tertiary"- size="xs"- title={t('conversations.taskKanban.viewWork')}- onClick={() => onViewSession(card)}- className="shrink-0 gap-1 px-1.5 text-[10px] text-primary-700 dark:text-primary-200">- <LuExternalLink className="h-3 w-3 flex-none" />- {t('conversations.taskKanban.viewWork')}- </Button>- ) : card.status === 'awaiting_approval' && onDecidePlan ? (- <div className="flex shrink-0 items-center gap-1">- <Button- variant="primary"- size="xs"- title={t('chat.approval.approve')}- disabled={disabled}- onClick={() => onDecidePlan(card, true)}- className="px-1.5 text-[10px]">- {t('chat.approval.approve')}- </Button>- <Button- variant="secondary"- size="xs"- title={t('chat.approval.deny')}- disabled={disabled}- onClick={() => onDecidePlan(card, false)}- className="px-1.5 text-[10px]">- {t('chat.approval.deny')}- </Button>- </div>- ) : onWorkTask && card.status !== 'done' ? (- <Button- variant="primary"- size="xs"- title={t('conversations.taskKanban.workTask')}- disabled={disabled || working}- onClick={() => onWorkTask(card)}- className="shrink-0 gap-1 px-1.5 text-[10px]">- <LuPlay className="h-3 w-3" />- {working- ? t('conversations.taskKanban.startingTask')- : t('conversations.taskKanban.workTask')}- </Button>- ) : onMove && isColumnStatus(columnFor(card.status)) ? (- <div className="flex shrink-0 items-center gap-0.5">- <Button- iconOnly- variant="tertiary"- size="sm"- title={t('conversations.taskKanban.moveLeft')}- aria-label={t('conversations.taskKanban.moveLeft')}- disabled={disabled || columnStatus === 'todo'}- onClick={() => onMove(card, -1)}- className="h-7 w-7 text-content-faint hover:text-content-secondary">- <LuArrowLeft className="h-4 w-4" />- </Button>- <Button- iconOnly- variant="tertiary"- size="sm"- title={t('conversations.taskKanban.moveRight')}- aria-label={t('conversations.taskKanban.moveRight')}- disabled={disabled || columnStatus === 'done'}- onClick={() => onMove(card, 1)}- className="h-7 w-7 text-content-faint hover:text-content-secondary">- <LuArrowRight className="h-4 w-4" />- </Button>- </div>- ) : null}- </div>- <div className="mt-2 flex flex-wrap gap-1.5">- {card.assignedAgent && (- <Badge variant="primary" className="max-w-full gap-1 text-[10px]">- <LuBot className="h-3 w-3 flex-none" />- <span className="truncate">{card.assignedAgent}</span>- </Badge>- )}- {card.allowedTools && card.allowedTools.length > 0 && (- <Badge className="gap-1 text-[10px]">- <LuWrench className="h-3 w-3" />- {card.allowedTools.length}- </Badge>- )}- {source && (- <Badge variant="primary" className="max-w-full gap-1 text-[10px]">- <LuDatabase className="h-3 w-3 flex-none" />- <span className="truncate">{sourceBadgeLabel(source, t)}</span>- </Badge>- )}- {source?.url && (- <a- href={source.url}- target="_blank"- rel="noreferrer"- title={t('conversations.taskKanban.source.openExternal')}- className="inline-flex items-center gap-1 rounded-md bg-surface-subtle px-1.5 py-0.5 text-[10px] text-content-secondary hover:bg-surface-strong">- <LuExternalLink className="h-3 w-3" />- {t('conversations.taskKanban.source.openExternalShort')}- </a>- )}- {card.approvalMode && (- <Badge variant="warning" className="gap-1 text-[10px]">- <LuShieldCheck className="h-3 w-3" />- {card.approvalMode === 'required'- ? t('conversations.taskKanban.approval.requiredBadge')- : t('conversations.taskKanban.approval.notRequiredBadge')}- </Badge>- )}- {card.acceptanceCriteria && card.acceptanceCriteria.length > 0 && (- <Badge variant="success" className="gap-1 text-[10px]">- <LuCircleCheck className="h-3 w-3" />- {card.acceptanceCriteria.length}- </Badge>- )}- {/* Status badge: ready → "Ready to start" (sage); rejected → "Rejected" (coral) */}- {card.status === 'ready' && (- <Badge variant="success" className="text-[10px]">- {t('conversations.taskKanban.statusBadge.ready')}- </Badge>- )}- {card.status === 'rejected' && (- <Badge variant="danger" className="text-[10px]">- {t('conversations.taskKanban.statusBadge.rejected')}- </Badge>- )}- {/* Evidence badge: shown on the card when evidence is present */}- {card.evidence && card.evidence.length > 0 && (- <Badge variant="primary" className="text-[10px]">- {t('conversations.taskKanban.evidenceBadge').replace(- '{count}',- String(card.evidence.length)- )}- </Badge>- )}- </div>- {card.objective && (- <p className="mt-1 wrap-break-word text-[11px] leading-snug text-content-muted">- {card.objective}- </p>- )}- {card.notes && (- <p className="mt-1 wrap-break-word text-[11px] leading-snug text-content-muted">- {card.notes}- </p>- )}- {/* Blocker text: always shown for blocked cards (column or status) */}- {card.blocker && (card.status === 'blocked' || columnStatus === 'blocked') && (- <p className="mt-1 wrap-break-word text-[11px] leading-snug text-coral-600">- {card.blocker}- </p>- )}- {(hasBriefActions ||- card.plan?.length ||- card.allowedTools?.length ||- card.acceptanceCriteria?.length ||- card.evidence?.length ||- card.objective ||- card.assignedAgent ||- card.approvalMode ||- source) && (- <Button- variant="tertiary"- size="xs"- onClick={onOpenBrief}- className="mt-2 gap-1 px-0 text-[11px] text-primary-600 hover:bg-transparent hover:underline dark:text-primary-300">- <LuClipboardList className="h-3 w-3" />- {t('conversations.taskKanban.briefButton')}- </Button>- )}- </article>- );-}diff --git a/app/src/features/conversations/components/TaskBriefDialog.tsx b/app/src/features/conversations/components/TaskBriefDialog.tsxdeleted file mode 100644index 6e34ef2158..0000000000--- a/app/src/features/conversations/components/TaskBriefDialog.tsx+++ /dev/null@@ -1,453 +0,0 @@-import createDebug from 'debug';-import { useState } from 'react';-import { LuExternalLink, LuX } from 'react-icons/lu';--import Button from '../../../components/ui/Button';-import { DialogContent, DialogRoot, DialogTitle } from '../../../components/ui/Dialog';-import NativeSelect from '../../../components/ui/NativeSelect';-import TextArea from '../../../components/ui/TextArea';-import TextField from '../../../components/ui/TextField';-import { useT } from '../../../lib/i18n/I18nContext';-import type { TaskBoardCard, TaskBoardCardStatus } from '../../../types/turnState';-import { COLUMN_STATUSES, STATUS_LABEL_KEYS } from './taskBoardColumns';-import {- emptyToNull,- formatUrgency,- joinLines,- providerLabel,- readSourceMetadata,- splitLines,- type TaskSourceMetadata,-} from './taskBoardMetadata';--const log = createDebug('app:conversations:task-brief');--const FIELD_LABEL = 'mb-1 block text-xs font-semibold text-content-muted';--/**- * The per-card "Task brief" — read-only detail, or the full editor when the- * caller supplied `onUpdate`.- *- * Extracted out of `TaskKanbanBoard.tsx` when that file was split, and moved- * onto the shared Radix {@link DialogRoot}: the hand-rolled `createPortal` +- * fixed scrim it replaced had no focus trap, no Escape handling, no scroll- * lock and no focus restore — a modal editor is the single worst place in the- * app to be missing those. The inputs are the shared- * {@link TextField} / {@link TextArea} / {@link NativeSelect} primitives; each- * still sits inside its own `<label>`, so every field keeps its accessible- * name.- */-export function TaskBriefDialog({- card,- disabled,- onClose,- onUpdate,- onDelete,-}: {- card: TaskBoardCard;- disabled: boolean;- onClose: () => void;- onUpdate?: (card: TaskBoardCard, nextCard: TaskBoardCard) => void;- onDelete?: (card: TaskBoardCard) => void;-}) {- const { t } = useT();- const source = readSourceMetadata(card.sourceMetadata);- const editable = Boolean(onUpdate) && !disabled;- const deletable = Boolean(onDelete) && !disabled;-- const [title, setTitle] = useState(card.title);- const [status, setStatus] = useState<TaskBoardCardStatus>(card.status);- const [objective, setObjective] = useState(card.objective ?? '');- const [assignedAgent, setAssignedAgent] = useState(card.assignedAgent ?? '');- const [approvalMode, setApprovalMode] = useState(card.approvalMode ?? '');- const [plan, setPlan] = useState(joinLines(card.plan));- const [allowedTools, setAllowedTools] = useState(joinLines(card.allowedTools));- const [acceptanceCriteria, setAcceptanceCriteria] = useState(joinLines(card.acceptanceCriteria));- const [evidence, setEvidence] = useState(joinLines(card.evidence));- const [notes, setNotes] = useState(card.notes ?? '');- const [blocker, setBlocker] = useState(card.blocker ?? '');-- const handleDelete = () => {- if (!deletable) return;- log('delete card=%s', card.id);- onDelete?.(card);- onClose();- };-- const save = () => {- if (!editable) return;- const trimmedTitle = title.trim();- if (!trimmedTitle) return;- log('save card=%s status=%s', card.id, status);- onUpdate?.(card, {- ...card,- title: trimmedTitle,- status,- objective: emptyToNull(objective),- assignedAgent: emptyToNull(assignedAgent),- approvalMode:- approvalMode === 'required' || approvalMode === 'not_required' ? approvalMode : null,- plan: splitLines(plan),- allowedTools: splitLines(allowedTools),- acceptanceCriteria: splitLines(acceptanceCriteria),- evidence: splitLines(evidence),- notes: emptyToNull(notes),- blocker: emptyToNull(blocker),- });- onClose();- };-- const statusOptions = COLUMN_STATUSES.includes(status)- ? COLUMN_STATUSES- : [status, ...COLUMN_STATUSES];-- return (- // `open` is hard-coded: the board only mounts this component while a card- // is selected. `onOpenChange` routes Escape / outside-click to `onClose`.- <DialogRoot- open- onOpenChange={next => {- if (!next) onClose();- }}>- <DialogContent- aria-describedby={undefined}- data-testid="task-brief-dialog"- className="max-h-[calc(100vh-3rem)] max-w-xl overflow-y-auto border border-line p-4">- <div className="mb-3 flex items-start justify-between gap-3">- <div className="min-w-0">- <p className="text-[11px] font-semibold uppercase text-content-faint">- {t('conversations.taskKanban.briefTitle')}- </p>- {/* `asChild` keeps the historical h3 so `getByRole('heading')` still- resolves the card title. */}- <DialogTitle asChild>- <h3 className="wrap-break-word text-base font-semibold text-content">{card.title}</h3>- </DialogTitle>- </div>- <Button- iconOnly- variant="tertiary"- size="sm"- aria-label={t('conversations.taskKanban.closeBrief')}- onClick={onClose}- className="flex-none">- <LuX className="h-4 w-4" />- </Button>- </div>-- {source && <SourceBrief source={source} />}-- {editable ? (- <div className="space-y-3 text-sm">- <label className="block">- <span className={FIELD_LABEL}>{t('conversations.taskKanban.field.title')}</span>- <TextField value={title} onChange={e => setTitle(e.target.value)} />- </label>- <div className="grid gap-3 sm:grid-cols-3">- <label className="block">- <span className={FIELD_LABEL}>{t('conversations.taskKanban.field.status')}</span>- <NativeSelect- value={status}- onChange={e => setStatus(e.target.value as TaskBoardCardStatus)}- className="w-full">- {statusOptions.map(s => (- <option key={s} value={s}>- {t(STATUS_LABEL_KEYS[s])}- </option>- ))}- </NativeSelect>- </label>- <BriefInput- label={t('conversations.taskKanban.field.assignedAgent')}- value={assignedAgent}- onChange={setAssignedAgent}- />- <label className="block">- <span className={FIELD_LABEL}>{t('conversations.taskKanban.field.approval')}</span>- <NativeSelect- value={approvalMode}- onChange={e => setApprovalMode(e.target.value)}- className="w-full">- <option value="">{t('conversations.taskKanban.approval.default')}</option>- <option value="required">- {t('conversations.taskKanban.approval.required')}- </option>- <option value="not_required">- {t('conversations.taskKanban.approval.notRequired')}- </option>- </NativeSelect>- </label>- </div>- <BriefInput- label={t('conversations.taskKanban.field.objective')}- value={objective}- onChange={setObjective}- />- <BriefTextarea- label={t('conversations.taskKanban.field.plan')}- value={plan}- onChange={setPlan}- />- <BriefTextarea- label={t('conversations.taskKanban.field.allowedTools')}- value={allowedTools}- onChange={setAllowedTools}- />- <BriefTextarea- label={t('conversations.taskKanban.field.acceptanceCriteria')}- value={acceptanceCriteria}- onChange={setAcceptanceCriteria}- />- <BriefTextarea- label={t('conversations.taskKanban.field.evidence')}- value={evidence}- onChange={setEvidence}- />- <BriefTextarea- label={t('conversations.taskKanban.field.notes')}- value={notes}- onChange={setNotes}- />- <BriefTextarea- label={t('conversations.taskKanban.field.blocker')}- value={blocker}- onChange={setBlocker}- />- <div className="flex items-center justify-between gap-2 pt-1">- {deletable ? (- <Button variant="secondary" tone="danger" size="sm" onClick={handleDelete}>- {t('conversations.taskKanban.deleteCard')}- </Button>- ) : (- <span />- )}- <div className="flex gap-2">- <Button variant="secondary" size="sm" onClick={onClose}>- {t('common.cancel')}- </Button>- <Button variant="primary" size="sm" onClick={save} disabled={!title.trim()}>- {t('conversations.taskKanban.saveChanges')}- </Button>- </div>- </div>- </div>- ) : (- <div className="space-y-4 text-sm">- <BriefText- label={t('conversations.taskKanban.field.objective')}- value={card.objective}- />- <BriefText- label={t('conversations.taskKanban.field.assignedAgent')}- value={card.assignedAgent}- mono- />- <BriefText- label={t('conversations.taskKanban.field.approval')}- value={- card.approvalMode === 'required'- ? t('conversations.taskKanban.approval.requiredBeforeExecution')- : card.approvalMode === 'not_required'- ? t('conversations.taskKanban.approval.notRequired')- : undefined- }- />- <BriefList- label={t('conversations.taskKanban.field.plan')}- values={card.plan}- ordered- />- <BriefList- label={t('conversations.taskKanban.field.allowedTools')}- values={card.allowedTools}- mono- />- <BriefList- label={t('conversations.taskKanban.field.acceptanceCriteria')}- values={card.acceptanceCriteria}- />- <BriefList- label={t('conversations.taskKanban.field.evidence')}- values={card.evidence}- />- <BriefText label={t('conversations.taskKanban.field.notes')} value={card.notes} />- <BriefText- label={t('conversations.taskKanban.field.blocker')}- value={card.blocker}- tone="danger"- />- {deletable && (- <div className="flex justify-end pt-1">- <Button variant="secondary" tone="danger" size="sm" onClick={handleDelete}>- {t('conversations.taskKanban.deleteCard')}- </Button>- </div>- )}- </div>- )}- </DialogContent>- </DialogRoot>- );-}--/**- * The upstream task-source provenance panel. `sky-*` was a raw Tailwind- * palette scale that does not follow a user's theme; this reads on the- * semantic `primary-*` tokens now.- */-function SourceBrief({ source }: { source: TaskSourceMetadata }) {- const { t } = useT();- const urgency = formatUrgency(source.urgency, t);-- return (- <div className="mb-4 rounded-lg border border-primary-200 bg-primary-50 p-3 text-sm dark:border-primary-500/20 dark:bg-primary-500/10">- <div className="mb-2 flex flex-wrap items-center justify-between gap-2">- <h4 className="text-xs font-semibold text-primary-800 dark:text-primary-100">- {t('conversations.taskKanban.source.title')}- </h4>- {source.url && (- <a- href={source.url}- target="_blank"- rel="noreferrer"- className="inline-flex items-center gap-1 text-xs font-medium text-primary-600 hover:text-primary-700 dark:text-primary-300 dark:hover:text-primary-200">- <LuExternalLink className="h-3 w-3" />- {t('conversations.taskKanban.source.openExternal')}- </a>- )}- </div>- <dl className="grid gap-2 sm:grid-cols-2">- <SourceBriefField- label={t('settings.taskSources.provider')}- value={providerLabel(source.provider, t)}- />- <SourceBriefField- label={t('conversations.taskKanban.source.sourceId')}- value={source.sourceId}- mono- />- <SourceBriefField- label={t('conversations.taskKanban.source.externalId')}- value={source.externalId}- mono- />- <SourceBriefField label={t('conversations.taskKanban.source.repo')} value={source.repo} />- <SourceBriefField label={t('conversations.taskKanban.source.urgency')} value={urgency} />- </dl>- </div>- );-}--function SourceBriefField({- label,- value,- mono = false,-}: {- label: string;- value?: string;- mono?: boolean;-}) {- if (!value) return null;- return (- <div className="min-w-0">- <dt className="text-[11px] font-semibold text-primary-700 dark:text-primary-200">{label}</dt>- <dd className={`mt-0.5 wrap-break-word text-xs text-content ${mono ? 'font-mono' : ''}`}>- {value}- </dd>- </div>- );-}--function BriefInput({- label,- value,- onChange,-}: {- label: string;- value: string;- onChange: (value: string) => void;-}) {- return (- <label className="block">- <span className={FIELD_LABEL}>{label}</span>- <TextField value={value} onChange={e => onChange(e.target.value)} />- </label>- );-}--function BriefTextarea({- label,- value,- onChange,-}: {- label: string;- value: string;- onChange: (value: string) => void;-}) {- return (- <label className="block">- <span className={FIELD_LABEL}>{label}</span>- <TextArea- value={value}- onChange={e => onChange(e.target.value)}- rows={3}- className="resize-y"- />- </label>- );-}--function BriefText({- label,- value,- mono = false,- tone = 'default',-}: {- label: string;- value?: string | null;- mono?: boolean;- tone?: 'default' | 'danger';-}) {- if (!value) return null;- return (- <div>- <h4 className="mb-1 text-xs font-semibold text-content-muted">{label}</h4>- <p- className={`wrap-break-word text-sm ${- mono ? 'font-mono' : ''- } ${tone === 'danger' ? 'text-coral-600' : 'text-content'}`}>- {value}- </p>- </div>- );-}--function BriefList({- label,- values,- ordered = false,- mono = false,-}: {- label: string;- values?: string[];- ordered?: boolean;- mono?: boolean;-}) {- if (!values?.length) return null;- const List = ordered ? 'ol' : 'ul';- return (- <div>- <h4 className="mb-1 text-xs font-semibold text-content-muted">{label}</h4>- <List- className={`space-y-1 ${- ordered ? 'list-decimal' : 'list-disc'- } list-inside text-sm text-content ${mono ? 'font-mono' : ''}`}>- {values.map((value, index) => (- <li key={index} className="wrap-break-word">- {value}- </li>- ))}- </List>- </div>- );-}diff --git a/app/src/features/conversations/components/TaskKanbanBoard.test.tsx b/app/src/features/conversations/components/TaskKanbanBoard.test.tsxdeleted file mode 100644index d3bb857fb2..0000000000--- a/app/src/features/conversations/components/TaskKanbanBoard.test.tsx+++ /dev/null@@ -1,243 +0,0 @@-import { fireEvent, render, screen, waitFor } from '@testing-library/react';-import { beforeEach, describe, expect, it, vi } from 'vitest';--import type { TaskBoard, TaskBoardCard } from '../../../types/turnState';-import {- isTauri,- openhumanTaskSourcesFetch,- openhumanTaskSourcesList,- openhumanTaskSourcesStatus,- openhumanTaskSourcesSync,- openhumanTaskSourcesUpdate,-} from '../../../utils/tauriCommands';-import { TaskKanbanBoard } from './TaskKanbanBoard';--// Echo i18n keys so we can query by the stable key strings.-vi.mock('../../../lib/i18n/I18nContext', () => ({ useT: () => ({ t: (key: string) => key }) }));-vi.mock('../../../utils/tauriCommands', () => ({- isTauri: vi.fn(),- openhumanTaskSourcesFetch: vi.fn(),- openhumanTaskSourcesList: vi.fn(),- openhumanTaskSourcesStatus: vi.fn(),- openhumanTaskSourcesSync: vi.fn(),- openhumanTaskSourcesUpdate: vi.fn(),-}));--// TaskSourceControls navigates to the settings page via useNavigate(); these-// tests render the board without a <Router>, so capture navigation via a spy.-const navigateSpy = vi.hoisted(() => vi.fn());-vi.mock('react-router-dom', async () => {- const actual = await vi.importActual<typeof import('react-router-dom')>('react-router-dom');- return {- ...actual,- useNavigate: () => navigateSpy,- useLocation: () => ({ pathname: '/chat', search: '', hash: '', state: null, key: 'test' }),- };-});--function card(partial: Partial<TaskBoardCard>): TaskBoardCard {- return {- id: 'c1',- title: 'Do thing',- status: 'todo',- order: 0,- updatedAt: '',- ...partial,- } as TaskBoardCard;-}--function board(cards: TaskBoardCard[]): TaskBoard {- return { threadId: 't1', cards, updatedAt: '' };-}--describe('TaskKanbanBoard approval surface', () => {- beforeEach(() => {- vi.clearAllMocks();- vi.mocked(isTauri).mockReturnValue(true);- vi.mocked(openhumanTaskSourcesList).mockResolvedValue([- {- id: 'src-1',- provider: 'github',- name: 'Open issues',- enabled: true,- filter: { provider: 'github', repo: 'tinyhumans/openhuman', assignee_is_me: true },- intervalSecs: 600,- target: 'agent_todo_proactive',- maxTasksPerFetch: 10,- createdAt: '2026-06-02T00:00:00Z',- },- ]);- vi.mocked(openhumanTaskSourcesStatus).mockResolvedValue({- enabled: true,- defaultIntervalSecs: 600,- sourceCount: 1,- enabledSourceCount: 1,- });- vi.mocked(openhumanTaskSourcesFetch).mockResolvedValue({- sourceId: 'src-1',- provider: 'github',- fetched: 3,- routed: 2,- skippedDupe: 1,- pruned: 0,- });- vi.mocked(openhumanTaskSourcesSync).mockResolvedValue([- { sourceId: 'src-1', provider: 'github', fetched: 3, routed: 2, skippedDupe: 1, pruned: 1 },- ]);- vi.mocked(openhumanTaskSourcesUpdate).mockResolvedValue({- id: 'src-1',- provider: 'github',- name: 'Open issues',- enabled: false,- filter: { provider: 'github', repo: 'tinyhumans/openhuman', assignee_is_me: true },- intervalSecs: 600,- target: 'agent_todo_proactive',- maxTasksPerFetch: 10,- createdAt: '2026-06-02T00:00:00Z',- });- });-- it('renders Approve/Reject on an awaiting_approval card and calls onDecidePlan', () => {- const onDecidePlan = vi.fn();- render(- <TaskKanbanBoard- board={board([card({ id: 'a', status: 'awaiting_approval', title: 'Needs approval' })])}- onDecidePlan={onDecidePlan}- />- );-- fireEvent.click(screen.getByTitle('chat.approval.approve'));- expect(onDecidePlan).toHaveBeenCalledWith(expect.objectContaining({ id: 'a' }), true);-- fireEvent.click(screen.getByTitle('chat.approval.deny'));- expect(onDecidePlan).toHaveBeenCalledWith(expect.objectContaining({ id: 'a' }), false);- });-- it('buckets ready→in_progress column and rejected→done column so the cards still render', () => {- render(- <TaskKanbanBoard- board={board([- card({ id: 'r', status: 'ready', title: 'Ready card' }),- card({ id: 'x', status: 'rejected', title: 'Rejected card' }),- ])}- />- );-- expect(screen.getByText('Ready card')).toBeInTheDocument();- expect(screen.getByText('Rejected card')).toBeInTheDocument();- // An approval-flow card without onDecidePlan shows no approve/reject controls.- expect(screen.queryByTitle('chat.approval.approve')).toBeNull();- });-- it('edit dialog status select has a matching option for approval-flow statuses', () => {- // Regression: the dialog <select> must carry an <option> for every status,- // not just the four column statuses — otherwise an awaiting_approval card- // renders a controlled select with no matching option (React warns and the- // value silently shows as the first option, hiding the real status).- render(- <TaskKanbanBoard- board={board([card({ id: 'a', status: 'awaiting_approval', title: 'Needs approval' })])}- onUpdateCard={vi.fn()}- />- );-- fireEvent.click(screen.getByText('conversations.taskKanban.briefButton'));-- // The status select shows the awaiting_approval label as its selected- // value, proving a matching option exists (no fallback to 'todo').- expect(- screen.getByDisplayValue('conversations.taskKanban.awaitingApproval')- ).toBeInTheDocument();- });-- it('renders task-source metadata on cards and in the brief dialog', () => {- render(- <TaskKanbanBoard- board={board([- card({- id: 'sourced',- title: '[github] Fix issue',- sourceMetadata: {- provider: 'github',- source_id: 'src-1',- external_id: '42',- repo: 'tinyhumans/openhuman',- url: 'https://github.com/tinyhumans/openhuman/issues/42',- urgency: 0.82,- },- }),- ])}- />- );-- expect(- screen.getByText('settings.taskSources.providers.github · tinyhumans/openhuman#42')- ).toBeInTheDocument();- expect(screen.getByText('conversations.taskKanban.source.openExternalShort')).toHaveAttribute(- 'href',- 'https://github.com/tinyhumans/openhuman/issues/42'- );-- fireEvent.click(screen.getByText('conversations.taskKanban.briefButton'));-- expect(screen.getByText('conversations.taskKanban.source.title')).toBeInTheDocument();- expect(screen.getByText('src-1')).toBeInTheDocument();- expect(screen.getByText('42')).toBeInTheDocument();- expect(screen.getByText('conversations.taskKanban.source.urgencyValue')).toBeInTheDocument();- });-- it('opens task-source controls and calls fetch/toggle actions', async () => {- render(<TaskKanbanBoard board={{ threadId: 'task-sources', updatedAt: '', cards: [] }} />);-- fireEvent.click(screen.getByText('conversations.taskKanban.sourcesButton'));-- expect(await screen.findByText('Open issues')).toBeInTheDocument();-- fireEvent.click(screen.getByText('settings.taskSources.fetchNow'));- await waitFor(() => expect(openhumanTaskSourcesFetch).toHaveBeenCalledWith('src-1'));-- fireEvent.click(screen.getByText('settings.taskSources.syncAll'));- await waitFor(() => expect(openhumanTaskSourcesSync).toHaveBeenCalled());-- fireEvent.click(screen.getByText('settings.taskSources.disable'));- await waitFor(() =>- expect(openhumanTaskSourcesUpdate).toHaveBeenCalledWith('src-1', { enabled: false })- );-- // "Manage sources" jumps to the merged Integrations settings page- // (task-sources was folded into /settings/integrations).- fireEvent.click(screen.getByText('conversations.taskKanban.sources.manage'));- expect(navigateSpy).toHaveBeenCalledWith('/settings/integrations');- });-- it('shows a "View work" button on a card with a session thread and calls onViewSession', () => {- const onViewSession = vi.fn();- render(- <TaskKanbanBoard- board={board([- card({- id: 'c1',- title: 'Worked card',- status: 'in_progress',- sessionThreadId: 'task-xyz',- }),- ])}- onViewSession={onViewSession}- />- );-- fireEvent.click(screen.getByTitle('conversations.taskKanban.viewWork'));- expect(onViewSession).toHaveBeenCalledWith(expect.objectContaining({ id: 'c1' }));- });-- it('omits the "View work" button when the card has no session thread', () => {- render(- <TaskKanbanBoard- board={board([card({ id: 'c2', title: 'Unworked card', status: 'todo' })])}- onViewSession={vi.fn()}- />- );-- expect(screen.queryByTitle('conversations.taskKanban.viewWork')).toBeNull();- });-});diff --git a/app/src/features/conversations/components/TaskKanbanBoard.tsx b/app/src/features/conversations/components/TaskKanbanBoard.tsxdeleted file mode 100644index 1d06b8274d..0000000000--- a/app/src/features/conversations/components/TaskKanbanBoard.tsx+++ /dev/null@@ -1,260 +0,0 @@-import createDebug from 'debug';-import { useMemo, useState } from 'react';-import { LuDatabase } from 'react-icons/lu';--import {- CollapsibleContent,- CollapsibleRoot,- CollapsibleTrigger,-} from '../../../components/ui/Collapsible';-import { useT } from '../../../lib/i18n/I18nContext';-import type { TaskBoard, TaskBoardCard, TaskBoardCardStatus } from '../../../types/turnState';-import { TaskBoardCardArticle } from './TaskBoardCardArticle';-import {- COLUMN_ACCENT,- COLUMN_DEFS,- type ColumnDef,- columnFor,- isColumnStatus,-} from './taskBoardColumns';-import { readSourceMetadata } from './taskBoardMetadata';-import { TaskBriefDialog } from './TaskBriefDialog';-import { TaskSourceControls } from './TaskSourceControls';--export type { ColumnDef } from './taskBoardColumns';--const log = createDebug('app:conversations:task-kanban');--const TASK_SOURCES_THREAD_ID = 'task-sources';--interface TaskKanbanBoardProps {- board: TaskBoard;- disabled?: boolean;- /** Column layout. Defaults to the 5-column set; the orchestrator board passes- * a 4-column set (Pending / Active / Blocked / Completed). */- columns?: ColumnDef[];- headerTitleKey?: string;- /** Hide the board's own "Tasks" title row — used where the caller already- * renders a heading for the board, to avoid a doubled-up title. */- hideHeader?: boolean;- onMove?: (card: TaskBoardCard, status: TaskBoardCardStatus) => void;- onUpdateCard?: (card: TaskBoardCard, nextCard: TaskBoardCard) => void;- onDeleteCard?: (card: TaskBoardCard) => void;- /** Approve/reject a card awaiting plan approval. */- onDecidePlan?: (card: TaskBoardCard, approve: boolean) => void;- /** Start work on a card from a higher-level task board. */- onWorkTask?: (card: TaskBoardCard) => void;- /** Jump to the card's agent session in Conversations. Shown on any card that- * carries a `sessionThreadId` (a run is live or has happened). */- onViewSession?: (card: TaskBoardCard) => void;- workingCardId?: string | null;- /** Card id currently being mutated (move/update) — shows a loading indicator. */- mutatingCardId?: string | null;-}--/**- * The task board: one column per status, cards draggable between them, and a- * per-card brief that opens as a modal.- *- * The 1243-line original was split into `TaskBoardCardArticle`,- * `TaskSourceControls`, `TaskBriefDialog`, `taskBoardColumns` and- * `taskBoardMetadata`; what stays here is the board itself. Two behavioural- * corrections rode along with the split — see those files — and the- * sources strip is now the shared Radix {@link CollapsibleRoot}, so its- * trigger carries real `aria-expanded`/`aria-controls` wiring rather than a- * hand-set `aria-expanded` on a `<button>` with no `aria-controls` at all.- */-export function TaskKanbanBoard({- board,- disabled = false,- columns = COLUMN_DEFS,- headerTitleKey = 'conversations.taskKanban.title',- hideHeader = false,- onMove,- onUpdateCard,- onDeleteCard,- onDecidePlan,- onWorkTask,- onViewSession,- workingCardId = null,- mutatingCardId = null,-}: TaskKanbanBoardProps) {- const { t } = useT();- const [selectedCardId, setSelectedCardId] = useState<string | null>(null);- const [sourceControlsOpen, setSourceControlsOpen] = useState(false);- const [dragOverColumn, setDragOverColumn] = useState<TaskBoardCardStatus | null>(null);-- // Per-instance column layout so a caller can override it (e.g. the- // orchestrator's 4-column board). The status→column mapping helpers stay- // shared, since any custom `columns` is a subset of the default statuses.- const columnDefs = columns;- const statusIndex = useMemo(- () => new Map(columnDefs.map((column, index) => [column.status, index])),- [columnDefs]- );-- const selectedCard = useMemo(- () => board.cards.find(card => card.id === selectedCardId) ?? null,- [board.cards, selectedCardId]- );- const isTaskSourcesBoard = board.threadId === TASK_SOURCES_THREAD_ID;- const hasSourceCards = board.cards.some(card => readSourceMetadata(card.sourceMetadata));- const showSourceControls = isTaskSourcesBoard || hasSourceCards;-- // Always render (even with 0 cards) so a live agent board stays visible.- const cardsByStatus = columnDefs.reduce(- (acc, column) => {- acc[column.status] = [];- return acc;- },- {} as Record<TaskBoardCardStatus, TaskBoardCard[]>- );-- for (const card of [...board.cards].sort((a, b) => a.order - b.order)) {- cardsByStatus[columnFor(card.status)]?.push(card);- }-- const moveCard = (card: TaskBoardCard, direction: -1 | 1) => {- const current = statusIndex.get(columnFor(card.status)) ?? 0;- const next = columnDefs[current + direction]?.status;- if (!next || disabled) return;- log('move card=%s %s -> %s', card.id, card.status, next);- onMove?.(card, next);- };-- // Cards can only be moved when the board is enabled and a handler exists.- // Gate every drag-and-drop entry point on this so a disabled board cannot be- // mutated via drop events (parity with moveCard's `disabled` guard above).- const canMoveCards = !disabled && Boolean(onMove);-- const handleDragOver = (e: React.DragEvent<HTMLElement>, columnStatus: TaskBoardCardStatus) => {- if (!canMoveCards) return;- e.preventDefault();- e.dataTransfer.dropEffect = 'move';- setDragOverColumn(columnStatus);- };-- const handleDragLeave = (e: React.DragEvent<HTMLElement>) => {- if (!canMoveCards) return;- if (!e.currentTarget.contains(e.relatedTarget as Node)) {- setDragOverColumn(null);- }- };-- const handleDrop = (e: React.DragEvent<HTMLElement>, targetColumnStatus: TaskBoardCardStatus) => {- if (!canMoveCards) return;- e.preventDefault();- setDragOverColumn(null);- const cardId = e.dataTransfer.getData('application/x-task-card-id');- if (!cardId) return;- const draggedCard = board.cards.find(c => c.id === cardId);- if (!draggedCard) return;- const currentColumn = columnFor(draggedCard.status);- if (currentColumn === targetColumnStatus) return;- log('drop card=%s %s -> %s', cardId, currentColumn, targetColumnStatus);- onMove?.(draggedCard, targetColumnStatus);- };-- return (- <div className="py-3">- {!hideHeader && (- // The header row and the sources strip share one disclosure: the strip- // is the collapsible body, the "Sources" chip is its trigger.- <CollapsibleRoot- open={sourceControlsOpen}- onOpenChange={next => {- log('task sources controls open=%s', next);- setSourceControlsOpen(next);- }}>- <div className="mb-2 flex items-center justify-between gap-3">- <h4 className="text-xs font-semibold uppercase tracking-wide text-content-muted">- {t(headerTitleKey)}- </h4>- <div className="flex items-center gap-2">- {showSourceControls && (- <CollapsibleTrigger- size="sm"- className="w-auto justify-start gap-1 rounded-md border border-line px-2 py-1 text-[10px] font-medium text-content-secondary">- <LuDatabase className="h-3 w-3" />- {t('conversations.taskKanban.sourcesButton')}- </CollapsibleTrigger>- )}- <span className="text-[10px] text-content-faint">{board.cards.length}</span>- </div>- </div>- {showSourceControls && (- <CollapsibleContent size="sm" className="px-0 pb-0">- <TaskSourceControls disabled={disabled} compact={!isTaskSourcesBoard} />- </CollapsibleContent>- )}- </CollapsibleRoot>- )}- <div className="grid grid-cols-1 gap-2 sm:grid-cols-3 lg:grid-cols-5">- {columnDefs.map(column => {- const cards = cardsByStatus[column.status];- const isBlockedColumn = column.status === 'blocked';- const isDragTarget = dragOverColumn === column.status;- const accentClass = COLUMN_ACCENT[column.status] ?? '';- return (- <section- key={column.status}- className={`min-w-0 rounded-lg bg-surface-muted p-2 ${accentClass} ${- isDragTarget ? 'bg-primary-50/60 ring-2 ring-primary-400 dark:bg-primary-500/5' : ''- }`}- onDragOver={canMoveCards ? e => handleDragOver(e, column.status) : undefined}- onDragLeave={canMoveCards ? handleDragLeave : undefined}- onDrop={canMoveCards ? e => handleDrop(e, column.status) : undefined}>- <div className="mb-2 flex items-center justify-between gap-2">- <h5 className="truncate text-[11px] font-medium text-content-secondary">- {t(column.labelKey)}- </h5>- <span className="text-[10px] text-content-faint">{cards.length}</span>- </div>- {/* "Needs your input" banner at top of Blocked column */}- {isBlockedColumn && cards.length > 0 && (- <div className="mb-2 rounded-md bg-coral-50 px-2 py-1.5 text-[10px] font-medium text-coral-700 dark:bg-coral-500/10 dark:text-coral-300">- {t('conversations.taskKanban.needsInput')}- </div>- )}- <div className="space-y-2">- {cards.length === 0 ? (- <p className="py-2 text-center text-[10px] text-content-faint">- {t('conversations.taskKanban.emptyColumn')}- </p>- ) : (- cards.map(card => (- <TaskBoardCardArticle- key={card.id}- card={card}- columnStatus={column.status}- disabled={disabled}- onMove={onMove ? moveCard : undefined}- hasBriefActions={Boolean(onUpdateCard || onDeleteCard)}- isColumnStatus={isColumnStatus}- columnFor={columnFor}- onDecidePlan={onDecidePlan}- onWorkTask={onWorkTask}- onViewSession={onViewSession}- working={workingCardId === card.id}- mutating={mutatingCardId === card.id}- onOpenBrief={() => setSelectedCardId(card.id)}- />- ))- )}- </div>- </section>- );- })}- </div>- {selectedCard && (- <TaskBriefDialog- card={selectedCard}- disabled={disabled}- onClose={() => setSelectedCardId(null)}- onUpdate={onUpdateCard}- onDelete={onDeleteCard}- />- )}- </div>- );-}diff --git a/app/src/features/conversations/components/TaskSourceControls.tsx b/app/src/features/conversations/components/TaskSourceControls.tsxdeleted file mode 100644index 72f1887684..0000000000--- a/app/src/features/conversations/components/TaskSourceControls.tsx+++ /dev/null@@ -1,259 +0,0 @@-import createDebug from 'debug';-import { useCallback, useEffect, useState } from 'react';-import { LuRefreshCw } from 'react-icons/lu';-import { useNavigate } from 'react-router-dom';--import { Alert } from '../../../components/ui/Alert';-import Badge from '../../../components/ui/Badge';-import Button from '../../../components/ui/Button';-import Card from '../../../components/ui/Card';-import { useT } from '../../../lib/i18n/I18nContext';-import {- isTauri,- openhumanTaskSourcesFetch,- openhumanTaskSourcesList,- openhumanTaskSourcesStatus,- openhumanTaskSourcesSync,- openhumanTaskSourcesUpdate,- type TaskSource,- type TaskSourcesStatus,-} from '../../../utils/tauriCommands';-import { formatFetchNotice, formatSyncNotice, providerLabel } from './taskBoardMetadata';--const log = createDebug('app:conversations:task-sources');--/**- * The task-source management strip that folds out of the board header.- *- * Extracted out of `TaskKanbanBoard.tsx` when that file was split. The panel- * chrome is the shared {@link Card}, the error/notice lines are {@link Alert}s- * (which carry `role="alert"`/`data-variant` rather than a tinted `<p>`), the- * per-source enabled state is a {@link Badge}, and every control is the shared- * {@link Button} — the previous `text-ocean-600` link colour named a scale that- * does not exist in `tailwind.config.js` and therefore emitted no CSS.- */-export function TaskSourceControls({ disabled, compact }: { disabled: boolean; compact: boolean }) {- const { t } = useT();- const navigate = useNavigate();- const [loading, setLoading] = useState(true);- const [sources, setSources] = useState<TaskSource[]>([]);- const [status, setStatus] = useState<TaskSourcesStatus | null>(null);- const [error, setError] = useState<string | null>(null);- const [notice, setNotice] = useState<string | null>(null);- const [busyKey, setBusyKey] = useState<string | null>(null);-- const load = useCallback(async () => {- if (!isTauri()) {- log('load skipped: not running under Tauri');- setLoading(false);- setError(t('conversations.taskKanban.sources.desktopOnly'));- return;- }- log('load start');- setLoading(true);- setError(null);- try {- const [nextSources, nextStatus] = await Promise.all([- openhumanTaskSourcesList(),- openhumanTaskSourcesStatus(),- ]);- log('load ok sources=%d enabled=%s', nextSources.length, nextStatus.enabled);- setSources(nextSources);- setStatus(nextStatus);- } catch (err) {- log('load failed err=%o', err);- setError(- `${t('settings.taskSources.loadError')}: ${err instanceof Error ? err.message : String(err)}`- );- } finally {- setLoading(false);- }- }, [t]);-- useEffect(() => {- const id = window.setTimeout(() => {- void load();- }, 0);- return () => window.clearTimeout(id);- }, [load]);-- const toggleSource = async (source: TaskSource) => {- if (busyKey) return;- log('toggle source=%s -> enabled=%s', source.id, !source.enabled);- setBusyKey(`toggle:${source.id}`);- setError(null);- setNotice(null);- try {- const updated = await openhumanTaskSourcesUpdate(source.id, { enabled: !source.enabled });- setSources(prev => prev.map(item => (item.id === updated.id ? updated : item)));- } catch (err) {- log('toggle failed source=%s err=%o', source.id, err);- setError(err instanceof Error ? err.message : String(err));- } finally {- setBusyKey(null);- }- };-- const fetchSource = async (source: TaskSource) => {- if (busyKey) return;- log('fetch source=%s', source.id);- setBusyKey(`fetch:${source.id}`);- setError(null);- setNotice(null);- try {- const outcome = await openhumanTaskSourcesFetch(source.id);- await load();- if (outcome.error) {- log('fetch source=%s returned an error outcome', source.id);- setError(outcome.error);- } else {- setNotice(formatFetchNotice(outcome, t));- }- } catch (err) {- log('fetch failed source=%s err=%o', source.id, err);- setError(err instanceof Error ? err.message : String(err));- } finally {- setBusyKey(null);- }- };-- const syncSources = async () => {- if (busyKey) return;- log('sync all sources');- setBusyKey('sync');- setError(null);- setNotice(null);- try {- const outcomes = await openhumanTaskSourcesSync();- await load();- const firstError = outcomes.find(outcome => outcome.error)?.error;- if (firstError) {- log('sync returned an error outcome');- setError(firstError);- } else {- setNotice(formatSyncNotice(outcomes, t));- }- } catch (err) {- log('sync failed err=%o', err);- setError(err instanceof Error ? err.message : String(err));- } finally {- setBusyKey(null);- }- };-- return (- <Card className="mb-3">- <div className="p-3">- <div className="flex flex-wrap items-center justify-between gap-2">- <div className="min-w-0">- <h5 className="text-xs font-semibold text-content">- {t('conversations.taskKanban.sources.title')}- </h5>- {!compact && status && (- <p className="text-[11px] text-content-muted">- {status.enabled- ? t('conversations.taskKanban.sources.statusEnabled')- : t('settings.taskSources.disabledBanner')}- </p>- )}- </div>- <div className="flex items-center gap-2">- <Button- variant="tertiary"- size="xs"- onClick={() => navigate('/settings/integrations')}- className="px-0 text-[11px] text-primary-600 hover:bg-transparent hover:underline dark:text-primary-300">- {t('conversations.taskKanban.sources.manage')}- </Button>- <Button- variant="secondary"- size="xs"- disabled={disabled || loading || busyKey !== null || sources.length === 0}- onClick={() => void syncSources()}- className="gap-1 px-2 text-[11px]">- <LuRefreshCw className="h-3 w-3" />- {busyKey === 'sync'- ? t('settings.taskSources.syncing')- : t('settings.taskSources.syncAll')}- </Button>- <Button- iconOnly- variant="secondary"- size="sm"- aria-label={t('settings.taskSources.refresh')}- disabled={loading}- onClick={() => void load()}- className="h-7 w-7">- <LuRefreshCw className="h-3.5 w-3.5" />- </Button>- </div>- </div>- {error && (- <Alert variant="destructive" className="mt-2 text-[11px]">- {error}- </Alert>- )}- {notice && (- <Alert variant="info" className="mt-2 text-[11px]">- {notice}- </Alert>- )}- {loading ? (- <p className="mt-2 text-[11px] text-content-faint">{t('common.loading')}</p>- ) : sources.length === 0 ? (- <p className="mt-2 text-[11px] text-content-faint">{t('settings.taskSources.empty')}</p>- ) : (- <ul className="mt-3 grid gap-2 sm:grid-cols-2">- {sources.map(source => (- <li key={source.id} className="min-w-0 rounded-lg border border-line px-2.5 py-2">- <div className="flex items-start justify-between gap-2">- <div className="min-w-0">- <p className="truncate text-xs font-medium text-content">- {source.name || providerLabel(source.provider, t)}- </p>- <p className="truncate text-[11px] text-content-muted">- {providerLabel(source.provider, t)}- {source.target === 'agent_todo_proactive'- ? ` · ${t('settings.taskSources.proactive')}`- : ''}- </p>- </div>- <Badge- variant={source.enabled ? 'success' : 'neutral'}- className="flex-none text-[10px]">- {source.enabled- ? t('settings.taskSources.statusEnabled')- : t('settings.taskSources.statusDisabled')}- </Badge>- </div>- <div className="mt-2 flex flex-wrap gap-1.5">- <Button- variant="secondary"- size="xs"- disabled={disabled || busyKey !== null}- onClick={() => void fetchSource(source)}- className="gap-1 px-2 text-[11px]">- <LuRefreshCw className="h-3 w-3" />- {busyKey === `fetch:${source.id}`- ? t('settings.taskSources.fetching')- : t('settings.taskSources.fetchNow')}- </Button>- <Button- variant="secondary"- size="xs"- disabled={disabled || busyKey !== null}- onClick={() => void toggleSource(source)}- className="px-2 text-[11px]">- {source.enabled- ? t('settings.taskSources.disable')- : t('settings.taskSources.enable')}- </Button>- </div>- </li>- ))}- </ul>- )}- </div>- </Card>- );-}diff --git a/app/src/features/conversations/components/ThreadGoalChip.test.tsx b/app/src/features/conversations/components/ThreadGoalChip.test.tsxdeleted file mode 100644index 1a71ae7c9c..0000000000--- a/app/src/features/conversations/components/ThreadGoalChip.test.tsx+++ /dev/null@@ -1,97 +0,0 @@-import { fireEvent, render, screen, waitFor } from '@testing-library/react';-import { describe, expect, it, vi } from 'vitest';--import type { ThreadGoal } from '../../../services/api/threadGoalApi';-import { ThreadGoalEditorPanel, ThreadGoalFooterTrigger, useThreadGoal } from './ThreadGoalChip';--// Echo i18n keys so assertions are on stable key strings.-vi.mock('../../../lib/i18n/I18nContext', () => ({ useT: () => ({ t: (key: string) => key }) }));--function goal(partial: Partial<ThreadGoal> = {}): ThreadGoal {- return {- threadId: 't1',- goalId: 'g1',- objective: 'Ship the release',- status: 'active',- tokenBudget: 1000,- tokensUsed: 250,- timeUsedSeconds: 0,- createdAtMs: 0,- updatedAtMs: 0,- continuationSuppressed: false,- ...partial,- };-}--function stubApi(initial: ThreadGoal | null) {- return {- get: vi.fn().mockResolvedValue(initial),- set: vi.fn().mockResolvedValue(goal()),- complete: vi.fn().mockResolvedValue(goal({ status: 'complete' })),- pause: vi.fn().mockResolvedValue(goal({ status: 'paused' })),- resume: vi.fn().mockResolvedValue(goal()),- clear: vi.fn().mockResolvedValue(true),- } as unknown as typeof import('../../../services/api/threadGoalApi').threadGoalApi;-}--/** Harness wiring the shared controller to both pieces, as Conversations does. */-function Harness({ api }: { api: ReturnType<typeof stubApi> }) {- const ctl = useThreadGoal('t1', api);- return (- <div>- <ThreadGoalEditorPanel ctl={ctl} />- <ThreadGoalFooterTrigger ctl={ctl} />- </div>- );-}--describe('ThreadGoal footer trigger + editor panel', () => {- it('shows a footer "Set goal" trigger and no editor when empty', async () => {- const api = stubApi(null);- render(<Harness api={api} />);- await waitFor(() => expect(api.get).toHaveBeenCalledWith('t1'));- expect(await screen.findByText('conversations.threadGoal.setCta')).toBeTruthy();- // Editor stays closed until clicked.- expect(screen.queryByPlaceholderText('conversations.threadGoal.placeholder')).toBeNull();- });-- it('clicking the trigger opens the editor input above; saving calls set', async () => {- const api = stubApi(null);- render(<Harness api={api} />);- fireEvent.click(await screen.findByText('conversations.threadGoal.setCta'));- const input = screen.getByPlaceholderText('conversations.threadGoal.placeholder');- fireEvent.change(input, { target: { value: 'New objective' } });- fireEvent.click(screen.getByText('conversations.threadGoal.save'));- await waitFor(() => expect(api.set).toHaveBeenCalledWith('t1', 'New objective'));- });-- it('shows the goal status + objective in the footer trigger when set', async () => {- const api = stubApi(goal());- render(<Harness api={api} />);- expect(await screen.findByText('Ship the release')).toBeTruthy();- expect(screen.getByText('conversations.threadGoal.status.active')).toBeTruthy();- // Editor (with the token budget) is closed until the trigger is clicked.- expect(screen.queryByText(/250 \/ 1,000/)).toBeNull();- });-- it('opening an existing goal seeds the input and exposes lifecycle actions', async () => {- const api = stubApi(goal());- render(<Harness api={api} />);- fireEvent.click(await screen.findByTitle('Ship the release'));- const input = screen.getByPlaceholderText<HTMLInputElement>(- 'conversations.threadGoal.placeholder'- );- expect(input.value).toBe('Ship the release');- expect(screen.getByText(/250 \/ 1,000/)).toBeTruthy();- fireEvent.click(screen.getByLabelText('conversations.threadGoal.complete'));- await waitFor(() => expect(api.complete).toHaveBeenCalledWith('t1'));- });-- it('shows Resume (not Pause) in the editor for a paused goal', async () => {- const api = stubApi(goal({ status: 'paused' }));- render(<Harness api={api} />);- fireEvent.click(await screen.findByTitle('Ship the release'));- expect(screen.getByLabelText('conversations.threadGoal.resume')).toBeTruthy();- expect(screen.queryByLabelText('conversations.threadGoal.pause')).toBeNull();- });-});diff --git a/app/src/features/conversations/components/ThreadGoalChip.tsx b/app/src/features/conversations/components/ThreadGoalChip.tsxdeleted file mode 100644index 561b02b012..0000000000--- a/app/src/features/conversations/components/ThreadGoalChip.tsx+++ /dev/null@@ -1,338 +0,0 @@-import React, { useCallback, useEffect, useRef, useState } from 'react';--import { useT } from '../../../lib/i18n/I18nContext';-import {- type ThreadGoal,- threadGoalApi,- type ThreadGoalStatus,-} from '../../../services/api/threadGoalApi';--/**- * Per-thread goal UI — a Codex-style completion contract the agent pursues- * across turns. Split into two pieces sharing one {@link useThreadGoal}- * controller so the trigger can live in the composer footer while the editor- * opens above the composer:- *- * - {@link ThreadGoalFooterTrigger} — a compact affordance in the footer under- * the composer ("Set goal" when empty; status + objective when set). Click to- * open the editor.- * - {@link ThreadGoalEditorPanel} — the input field + status/budget + actions,- * rendered above the composer, shown only while expanded.- *- * Distinct from the global long-term goals list (Intelligence tab) and the- * thread task board (todo strip). Liveness: fetch on thread change + light poll- * so agent/continuation-driven changes surface without a manual refresh.- */--const POLL_INTERVAL_MS = 10_000;--/** Shared controller returned by {@link useThreadGoal}. */-export interface ThreadGoalController {- threadId: string | null;- goal: ThreadGoal | null;- /** Whether the editor panel (above the composer) is open. */- expanded: boolean;- draft: string;- busy: boolean;- setDraft: (value: string) => void;- /** Open the editor, seeding the draft from the current objective. */- open: () => void;- close: () => void;- /** Toggle the editor open/closed (open seeds the draft). */- toggle: () => void;- /** Persist the draft as the objective (no-op on empty), then collapse. */- save: () => void;- complete: () => void;- pause: () => void;- resume: () => void;- clear: () => void;-}--/** Tailwind classes per status, using the app's ocean/sage/amber/coral palette. */-function statusClasses(status: ThreadGoalStatus): string {- switch (status) {- case 'active':- return 'bg-primary-50 text-primary-700 dark:bg-primary-900/40 dark:text-primary-200';- case 'paused':- return 'bg-surface-subtle text-content-secondary';- case 'budget_limited':- return 'bg-amber-50 text-amber-700 dark:bg-amber-900/40 dark:text-amber-200';- case 'complete':- return 'bg-sage-50 text-sage-700 dark:bg-sage-900/40 dark:text-sage-200';- default:- return 'bg-surface-subtle text-content-secondary';- }-}--/**- * Goal state + actions for `threadId`. Call once in the parent and hand the- * result to both the footer trigger and the editor panel so they stay in sync.- */-export function useThreadGoal(- threadId: string | null,- api: typeof threadGoalApi = threadGoalApi-): ThreadGoalController {- const [goal, setGoal] = useState<ThreadGoal | null>(null);- const [expanded, setExpanded] = useState(false);- const [draft, setDraft] = useState('');- const [busy, setBusy] = useState(false);- // Guard against thread-switch races resolving onto the wrong thread.- const activeThread = useRef(threadId);-- const refresh = useCallback(async () => {- if (!threadId) {- setGoal(null);- return;- }- try {- const g = await api.get(threadId);- if (activeThread.current === threadId) setGoal(g);- } catch {- /* best-effort; keep last known goal */- }- }, [api, threadId]);-- // Reset the editor + cached goal when the thread changes. Done in a useEffect- // rather than during render to avoid React's nested-update detection, which- // can cascade with concurrent state changes into a "Maximum update depth- // exceeded" error (TAURI-REACT-2G).- const prevThreadRef = useRef(threadId);- useEffect(() => {- if (prevThreadRef.current !== threadId) {- prevThreadRef.current = threadId;- activeThread.current = threadId; // keep the race guard in sync- setExpanded(false);- setGoal(null);- }- }, [threadId]);-- // Fetch on mount/thread-change and poll lightly. `refresh` is async, so its- // setState lands in a later microtask (not a synchronous effect write).- useEffect(() => {- if (!threadId) return;- // eslint-disable-next-line react-hooks/set-state-in-effect -- async fetch; setState lands post-await- void refresh();- const id = window.setInterval(() => void refresh(), POLL_INTERVAL_MS);- return () => window.clearInterval(id);- }, [threadId, refresh]);-- const runAction = useCallback(- async (fn: () => Promise<ThreadGoal | null | boolean>, collapse: boolean) => {- setBusy(true);- try {- await fn();- await refresh();- if (collapse) setExpanded(false);- } finally {- setBusy(false);- }- },- [refresh]- );-- const open = useCallback(() => {- setDraft(goal?.objective ?? '');- setExpanded(true);- }, [goal]);-- const close = useCallback(() => setExpanded(false), []);-- const toggle = useCallback(() => {- setExpanded(prev => {- if (!prev) setDraft(goal?.objective ?? '');- return !prev;- });- }, [goal]);-- const save = useCallback(() => {- if (!threadId) return;- const objective = draft.trim();- if (!objective) return;- void runAction(() => api.set(threadId, objective), true);- }, [api, draft, runAction, threadId]);-- const complete = useCallback(() => {- if (threadId) void runAction(() => api.complete(threadId), true);- }, [api, runAction, threadId]);- const pause = useCallback(() => {- if (threadId) void runAction(() => api.pause(threadId), false);- }, [api, runAction, threadId]);- const resume = useCallback(() => {- if (threadId) void runAction(() => api.resume(threadId), false);- }, [api, runAction, threadId]);- const clear = useCallback(() => {- if (threadId) void runAction(() => api.clear(threadId), true);- }, [api, runAction, threadId]);-- return {- threadId,- goal,- expanded,- draft,- busy,- setDraft,- open,- close,- toggle,- save,- complete,- pause,- resume,- clear,- };-}--/** Compact trigger for the composer footer: "Set goal" or the current goal. */-export function ThreadGoalFooterTrigger({- ctl,-}: {- ctl: ThreadGoalController;-}): React.ReactElement | null {- const { t } = useT();- if (!ctl.threadId) return null;-- if (!ctl.goal) {- return (- <button- type="button"- onClick={ctl.toggle}- aria-expanded={ctl.expanded}- className="inline-flex items-center gap-1 rounded-md px-1.5 py-0.5 text-xs text-content-muted hover:bg-surface-hover hover:text-content-secondary">- <span aria-hidden>◎</span>- {t('conversations.threadGoal.setCta')}- </button>- );- }-- return (- <button- type="button"- onClick={ctl.toggle}- aria-expanded={ctl.expanded}- title={ctl.goal.objective}- className="inline-flex min-w-0 items-center gap-1.5 rounded-md px-1.5 py-0.5 text-xs hover:bg-surface-hover">- <span aria-hidden className="shrink-0 text-content-faint">- ◎- </span>- <span- className={`shrink-0 rounded px-1 py-0.5 text-[10px] font-medium uppercase tracking-wide ${statusClasses(ctl.goal.status)}`}>- {t(`conversations.threadGoal.status.${ctl.goal.status}`)}- </span>- {/* Truncate long objectives instead of scrolling them. The full text is- reachable via the button's `title` tooltip (hover) and by clicking to- open the editor, so a moving label would only distract. */}- <span className="block min-w-0 max-w-[18rem] truncate text-content-secondary">- {ctl.goal.objective}- </span>- </button>- );-}--/** Expanded editor above the composer: input + budget + lifecycle actions. */-export function ThreadGoalEditorPanel({- ctl,-}: {- ctl: ThreadGoalController;-}): React.ReactElement | null {- const { t } = useT();- if (!ctl.threadId || !ctl.expanded) return null;-- const goal = ctl.goal;- const budgetText =- goal && typeof goal.tokenBudget === 'number' && goal.tokenBudget > 0- ? `${goal.tokensUsed.toLocaleString()} / ${goal.tokenBudget.toLocaleString()} ${t('conversations.threadGoal.tokensSuffix')}`- : null;-- return (- <div className="flex flex-col gap-1.5 rounded-xl border border-line bg-surface-muted px-3 py-2">- {/* Controls row — lifecycle (left) + budget and Cancel/Save (right) —- sits above the input so the input gets the full width below. */}- <div className="flex items-center gap-1">- {goal && goal.status === 'active' && (- <PanelButton- label={t('conversations.threadGoal.pause')}- disabled={ctl.busy}- onClick={ctl.pause}- />- )}- {goal && goal.status === 'paused' && (- <PanelButton- label={t('conversations.threadGoal.resume')}- disabled={ctl.busy}- onClick={ctl.resume}- />- )}- {goal && goal.status !== 'complete' && (- <PanelButton- label={t('conversations.threadGoal.complete')}- disabled={ctl.busy}- onClick={ctl.complete}- />- )}- {goal && (- <PanelButton- label={t('conversations.threadGoal.clear')}- disabled={ctl.busy}- onClick={ctl.clear}- />- )}- <div className="ml-auto flex items-center gap-1">- {budgetText && (- <span className="shrink-0 text-[11px] tabular-nums text-content-faint">- {budgetText}- </span>- )}- <button- type="button"- onClick={ctl.close}- className="shrink-0 rounded px-2 py-0.5 text-xs text-content-muted hover:bg-surface-hover">- {t('conversations.threadGoal.cancel')}- </button>- <button- type="button"- onClick={ctl.save}- disabled={!ctl.draft.trim() || ctl.busy}- className="shrink-0 rounded px-2 py-0.5 text-xs font-medium text-primary-600 hover:bg-primary-50 disabled:opacity-40 dark:text-primary-300 dark:hover:bg-primary-900/40">- {t('conversations.threadGoal.save')}- </button>- </div>- </div>-- {/* Full-width objective input below the controls. */}- <input- autoFocus- value={ctl.draft}- onChange={e => ctl.setDraft(e.target.value)}- onKeyDown={e => {- if (e.key === 'Enter') ctl.save();- if (e.key === 'Escape') ctl.close();- }}- placeholder={t('conversations.threadGoal.placeholder')}- aria-label={t('conversations.threadGoal.placeholder')}- className="w-full border-0 bg-transparent text-sm text-content outline-hidden focus:outline-hidden focus:ring-0 placeholder:text-content-faint"- />- </div>- );-}--function PanelButton({- label,- onClick,- disabled,-}: {- label: string;- onClick: () => void;- disabled?: boolean;-}): React.ReactElement {- return (- <button- type="button"- title={label}- aria-label={label}- onClick={onClick}- disabled={disabled}- className="rounded px-1.5 py-0.5 text-[11px] text-content-muted hover:bg-surface-hover disabled:opacity-40">- {label}- </button>- );-}diff --git a/app/src/features/conversations/components/ThreadTodoStrip.test.tsx b/app/src/features/conversations/components/ThreadTodoStrip.test.tsxdeleted file mode 100644index a3ad35fcb9..0000000000--- a/app/src/features/conversations/components/ThreadTodoStrip.test.tsx+++ /dev/null@@ -1,176 +0,0 @@-import { fireEvent, render, screen } from '@testing-library/react';-import { describe, expect, it, vi } from 'vitest';--import type { TaskBoard, TaskBoardCard } from '../../../types/turnState';-import { ThreadTodoStrip } from './ThreadTodoStrip';--// Echo i18n keys so we can assert on the stable key string.-vi.mock('../../../lib/i18n/I18nContext', () => ({ useT: () => ({ t: (key: string) => key }) }));--function card(partial: Partial<TaskBoardCard>): TaskBoardCard {- return {- id: 'c1',- title: 'Do thing',- status: 'todo',- order: 0,- updatedAt: '',- ...partial,- } as TaskBoardCard;-}--function board(cards: TaskBoardCard[]): TaskBoard {- return { threadId: 't1', cards, updatedAt: '' };-}--describe('ThreadTodoStrip', () => {- it('renders nothing when board is null', () => {- const { container } = render(<ThreadTodoStrip board={null} />);- expect(container).toBeEmptyDOMElement();- });-- it('renders nothing when there are no active cards', () => {- const { container } = render(- <ThreadTodoStrip- board={board([card({ id: 'a', status: 'done' }), card({ id: 'b', status: 'rejected' })])}- />- );- expect(container).toBeEmptyDOMElement();- });-- it('lists active cards and hides done/rejected ones', () => {- render(- <ThreadTodoStrip- board={board([- card({ id: 'a', title: 'Active work', status: 'in_progress' }),- card({ id: 'b', title: 'Queued work', status: 'todo' }),- card({ id: 'c', title: 'Finished work', status: 'done' }),- card({ id: 'd', title: 'Dropped work', status: 'rejected' }),- ])}- />- );- expect(screen.getByText('Active work')).toBeInTheDocument();- expect(screen.getByText('Queued work')).toBeInTheDocument();- expect(screen.queryByText('Finished work')).not.toBeInTheDocument();- expect(screen.queryByText('Dropped work')).not.toBeInTheDocument();- });-- it('shows a done/total progress count excluding rejected cards', () => {- render(- <ThreadTodoStrip- board={board([- card({ id: 'a', status: 'in_progress' }),- card({ id: 'b', status: 'done' }),- card({ id: 'c', status: 'rejected' }),- ])}- />- );- // 1 done out of 2 tracked (rejected excluded entirely).- expect(screen.getByText('1/2')).toBeInTheDocument();- });-- it('orders active cards by their `order` field', () => {- render(- <ThreadTodoStrip- board={board([- card({ id: 'a', title: 'Second', status: 'todo', order: 5 }),- card({ id: 'b', title: 'First', status: 'todo', order: 1 }),- ])}- />- );- const items = screen.getAllByRole('listitem').map(li => li.textContent);- expect(items[0]).toContain('First');- expect(items[1]).toContain('Second');- });-- it('falls back to objective then id when title is blank', () => {- render(- <ThreadTodoStrip- board={board([- card({ id: 'a', title: ' ', objective: 'Ship it', status: 'todo' }),- card({ id: 'only-id', title: '', objective: null, status: 'todo' }),- ])}- />- );- expect(screen.getByText('Ship it')).toBeInTheDocument();- expect(screen.getByText('only-id')).toBeInTheDocument();- });-- it('collapses and expands the list when the header is clicked', () => {- render(- <ThreadTodoStrip board={board([card({ id: 'a', title: 'Active work', status: 'todo' })])} />- );- expect(screen.getByText('Active work')).toBeInTheDocument();- const header = screen.getByRole('button', { expanded: true });- fireEvent.click(header);- expect(screen.queryByText('Active work')).not.toBeInTheDocument();- fireEvent.click(screen.getByRole('button', { expanded: false }));- expect(screen.getByText('Active work')).toBeInTheDocument();- });-- it('renders Approve/Reject only for awaiting_approval cards when onDecidePlan is provided', () => {- const onDecidePlan = vi.fn();- render(- <ThreadTodoStrip- board={board([- card({ id: 'parked', title: 'Needs sign-off', status: 'awaiting_approval' }),- card({ id: 'plain', title: 'Just working', status: 'in_progress' }),- ])}- onDecidePlan={onDecidePlan}- />- );- // Exactly one Approve and one Reject — only the parked card has them.- expect(screen.getAllByText('chat.approval.approve')).toHaveLength(1);- expect(screen.getAllByText('chat.approval.deny')).toHaveLength(1);-- fireEvent.click(screen.getByText('chat.approval.approve'));- expect(onDecidePlan).toHaveBeenCalledWith(expect.objectContaining({ id: 'parked' }), true);- fireEvent.click(screen.getByText('chat.approval.deny'));- expect(onDecidePlan).toHaveBeenCalledWith(expect.objectContaining({ id: 'parked' }), false);- });-- it('surfaces the blocker reason for blocked cards', () => {- render(- <ThreadTodoStrip- board={board([- card({ id: 'b', title: 'Stuck step', status: 'blocked', blocker: 'needs API key' }),- ])}- />- );- expect(screen.getByText('Stuck step')).toBeInTheDocument();- expect(screen.getByText('needs API key')).toBeInTheDocument();- });-- it('renders a View work jump only for cards with a session when onViewSession is provided', () => {- const onViewSession = vi.fn();- render(- <ThreadTodoStrip- board={board([- card({- id: 'linked',- title: 'Has session',- status: 'in_progress',- sessionThreadId: 's1',- }),- card({ id: 'plain', title: 'No session', status: 'in_progress' }),- ])}- onViewSession={onViewSession}- />- );- expect(screen.getAllByText('conversations.taskKanban.viewWork')).toHaveLength(1);- fireEvent.click(screen.getByText('conversations.taskKanban.viewWork'));- expect(onViewSession).toHaveBeenCalledWith(expect.objectContaining({ id: 'linked' }));- });-- it('stays fully read-only (no approve/reject) when onDecidePlan is omitted', () => {- render(- <ThreadTodoStrip- board={board([- card({ id: 'parked', title: 'Needs sign-off', status: 'awaiting_approval' }),- ])}- />- );- expect(screen.getByText('Needs sign-off')).toBeInTheDocument();- expect(screen.queryByText('chat.approval.approve')).not.toBeInTheDocument();- expect(screen.queryByText('chat.approval.deny')).not.toBeInTheDocument();- });-});diff --git a/app/src/features/conversations/components/ThreadTodoStrip.tsx b/app/src/features/conversations/components/ThreadTodoStrip.tsxdeleted file mode 100644index cd8249ab01..0000000000--- a/app/src/features/conversations/components/ThreadTodoStrip.tsx+++ /dev/null@@ -1,195 +0,0 @@-import React, { useMemo, useState } from 'react';--import { useT } from '../../../lib/i18n/I18nContext';-import type { TaskBoard, TaskBoardCard, TaskBoardCardStatus } from '../../../types/turnState';--/**- * Compact, read-only strip that surfaces the *current conversation thread's*- * task board ("todo list") directly above the composer. It mirrors hermes-agent's- * pinned todo panel: a one-glance plan the agent maintains as it works through a- * multi-step task.- *- * Read-only by design — the agent owns the board via its `todo` tool (mutations- * arrive live through the `task_board_updated` socket event into- * `taskBoardByThread`). Direct user editing lives in the full board UI, not here.- *- * This is NOT the Intelligence-tab kanban (that board is the global `user-tasks`- * list). This strip is strictly scoped to the selected chat thread.- */--/** Statuses that represent live, actionable work — shown in the strip. */-const ACTIVE_STATUSES: readonly TaskBoardCardStatus[] = [- 'in_progress',- 'todo',- 'ready',- 'awaiting_approval',- 'blocked',-];--/** Terminal "finished" status — counted toward progress, not listed. */-const DONE_STATUS: TaskBoardCardStatus = 'done';--/** Plain-text glyph per status (monochrome, terminal-style — like hermes). */-function statusGlyph(status: TaskBoardCardStatus): string {- switch (status) {- case 'in_progress':- return '[~]';- case 'blocked':- return '[!]';- case 'awaiting_approval':- return '[?]';- case 'done':- return '[x]';- case 'rejected':- return '[-]';- case 'todo':- case 'ready':- default:- return '[ ]';- }-}--/** Tailwind text-color token per status, matching the app's semantic palette. */-function statusColorClass(status: TaskBoardCardStatus): string {- switch (status) {- case 'in_progress':- return 'text-primary-600 dark:text-primary-300 font-medium';- case 'blocked':- return 'text-coral-600 dark:text-coral-300';- case 'awaiting_approval':- return 'text-amber-700 dark:text-amber-300';- default:- return 'text-content-secondary';- }-}--interface Props {- board: TaskBoard | null;- /**- * Decide a parked plan (`awaiting_approval` card). When provided, those cards —- * and only those — gain inline Approve/Reject controls; every other card stays- * read-only. Omit to keep the strip fully read-only.- */- onDecidePlan?: (card: TaskBoardCard, approve: boolean) => void;- /**- * Jump to a card's linked agent session. When provided, cards that carry a- * `sessionThreadId` (stamped by the autonomous/manual task-session flow) gain a- * "View work" affordance. Omit to hide it.- */- onViewSession?: (card: TaskBoardCard) => void;- /** Disable the approve/reject controls (e.g. no thread selected). */- disabled?: boolean;-}--export const ThreadTodoStrip: React.FC<Props> = ({- board,- onDecidePlan,- onViewSession,- disabled = false,-}) => {- const { t } = useT();- const [collapsed, setCollapsed] = useState(false);-- const { activeCards, doneCount, total } = useMemo(() => {- const cards = board?.cards ?? [];- // Exclude `rejected` cards entirely; they're neither active nor progress.- const tracked = cards.filter(c => c.status !== 'rejected');- const active = tracked- .filter(c => ACTIVE_STATUSES.includes(c.status))- .sort((a, b) => a.order - b.order);- return {- activeCards: active,- doneCount: tracked.filter(c => c.status === DONE_STATUS).length,- total: tracked.length,- };- }, [board]);-- // Nothing to plan → render nothing (no empty chrome above the composer).- if (activeCards.length === 0) return null;-- return (- <div- className="mb-2 rounded-xl border border-line bg-surface-muted text-xs shadow-xs"- data-testid="thread-todo-strip">- <button- type="button"- onClick={() => setCollapsed(prev => !prev)}- aria-expanded={!collapsed}- className="flex w-full items-center gap-1.5 px-3 py-2 text-left text-content-muted transition-colors hover:text-content-secondary">- <span aria-hidden className="text-primary-500">- {collapsed ? '▸' : '▾'}- </span>- <span className="font-semibold text-content-secondary">- {t('conversations.threadTodo.title')}- </span>- <span className="text-content-faint">- {doneCount}/{total}- </span>- </button>-- {!collapsed && (- // Cap the expanded list so a long plan (one card per step) can't cover- // the latest messages/controls above the composer — scroll instead.- <ul className="flex max-h-48 flex-col gap-0.5 overflow-y-auto px-3 pb-2 pl-5">- {activeCards.map(card => (- <li- key={card.id}- className={`flex items-start gap-1.5 wrap-break-word ${statusColorClass(card.status)}`}>- <span aria-hidden className="font-mono">- {statusGlyph(card.status)}- </span>- <span className="flex min-w-0 flex-1 flex-col">- <span className="min-w-0">{cardLabel(card)}</span>- {card.status === 'blocked' && card.blocker?.trim() && (- // Surface why a step is stuck + what's needed next, matching- // the todo-tool guidance to set `blocked` with a `blocker`.- <span className="min-w-0 text-[11px] text-coral-600/80 dark:text-coral-300/80">- {card.blocker.trim()}- </span>- )}- </span>- {card.sessionThreadId && onViewSession && (- <button- type="button"- title={t('conversations.taskKanban.viewWork')}- onClick={() => onViewSession(card)}- className="shrink-0 rounded-md border border-line px-1.5 py-0.5 text-[10px] font-medium text-content-secondary transition-colors hover:bg-surface-hover">- {t('conversations.taskKanban.viewWork')}- </button>- )}- {card.status === 'awaiting_approval' && onDecidePlan && (- <span className="flex shrink-0 items-center gap-1">- <button- type="button"- title={t('chat.approval.approve')}- disabled={disabled}- onClick={() => onDecidePlan(card, true)}- className="rounded-md bg-primary-600 px-1.5 py-0.5 text-[10px] font-medium text-content-inverted transition-colors hover:bg-primary-700 disabled:opacity-40">- {t('chat.approval.approve')}- </button>- <button- type="button"- title={t('chat.approval.deny')}- disabled={disabled}- onClick={() => onDecidePlan(card, false)}- className="rounded-md border border-line px-1.5 py-0.5 text-[10px] font-medium text-content-secondary transition-colors hover:bg-surface-hover disabled:opacity-40">- {t('chat.approval.deny')}- </button>- </span>- )}- </li>- ))}- </ul>- )}- </div>- );-};--/** Prefer the card title; fall back to its objective, then a generic label. */-function cardLabel(card: TaskBoardCard): string {- const title = card.title?.trim();- if (title) return title;- const objective = card.objective?.trim();- if (objective) return objective;- return card.id;-}diff --git a/app/src/features/conversations/components/__tests__/TaskKanbanBoard.test.tsx b/app/src/features/conversations/components/__tests__/TaskKanbanBoard.test.tsxdeleted file mode 100644index 2ddfd19b29..0000000000--- a/app/src/features/conversations/components/__tests__/TaskKanbanBoard.test.tsx+++ /dev/null@@ -1,348 +0,0 @@-import { fireEvent, render, screen } from '@testing-library/react';-import { describe, expect, it, vi } from 'vitest';--import type { TaskBoard } from '../../../../types/turnState';-import { TaskKanbanBoard } from '../TaskKanbanBoard';--const board: TaskBoard = {- threadId: 'thread-1',- updatedAt: '2026-05-04T10:00:05Z',- cards: [- {- id: 'task-1',- title: 'Draft plan',- status: 'todo',- objective: 'Prepare the implementation handoff',- plan: ['Read existing board code', 'Update shared card shape'],- assignedAgent: 'planner',- allowedTools: ['todo', 'spawn_subagent'],- approvalMode: 'required',- acceptanceCriteria: ['Schema round-trips'],- evidence: ['unit tests'],- notes: 'Scope frontend and backend work',- order: 0,- updatedAt: '2026-05-04T10:00:05Z',- },- {- id: 'task-2',- title: 'Wait for token',- status: 'blocked',- blocker: 'Missing credentials',- order: 1,- updatedAt: '2026-05-04T10:00:05Z',- },- ],-};--describe('TaskKanbanBoard', () => {- it('renders five columns including Blocked as its own column', () => {- render(<TaskKanbanBoard board={board} />);-- // The board now surfaces five columns; Blocked is its own column.- expect(screen.getByText('Pending')).toBeInTheDocument();- expect(screen.getByText('Working')).toBeInTheDocument();- expect(screen.getByText('Done')).toBeInTheDocument();- // Blocked is now a visible column (not bucketed into Done)- expect(screen.getByText('Blocked')).toBeInTheDocument();- expect(screen.queryByText('To do')).not.toBeInTheDocument();- expect(screen.getByText('Draft plan')).toBeInTheDocument();- // The blocked card is rendered in Blocked column with its blocker reason.- expect(screen.getByText('Wait for token')).toBeInTheDocument();- expect(screen.getByText('Prepare the implementation handoff')).toBeInTheDocument();- expect(screen.getByText('planner')).toBeInTheDocument();- expect(screen.getByText('approval')).toBeInTheDocument();- expect(screen.getByText('Scope frontend and backend work')).toBeInTheDocument();- expect(screen.getByText('Missing credentials')).toBeInTheDocument();- });-- it('opens a task brief with plan, tools, criteria, and evidence', () => {- render(<TaskKanbanBoard board={board} />);-- fireEvent.click(screen.getAllByText('Task brief')[0]);-- expect(screen.getByRole('heading', { name: 'Draft plan' })).toBeInTheDocument();- expect(screen.getByText('Required before execution')).toBeInTheDocument();- expect(screen.getByText('Read existing board code')).toBeInTheDocument();- expect(screen.getByText('spawn_subagent')).toBeInTheDocument();- expect(screen.getByText('Schema round-trips')).toBeInTheDocument();- expect(screen.getByText('unit tests')).toBeInTheDocument();- });-- it('calls onMove with awaiting_approval when a todo card is moved right', () => {- const onMove = vi.fn();- render(<TaskKanbanBoard board={board} onMove={onMove} />);-- const moveRightButtons = screen.getAllByLabelText('Move right');- fireEvent.click(moveRightButtons[0]);-- // todo → awaiting_approval (new second column)- expect(onMove).toHaveBeenCalledWith(board.cards[0], 'awaiting_approval');- });-- it('lets users edit a task brief and save the updated card', () => {- const onUpdateCard = vi.fn();- render(<TaskKanbanBoard board={board} onUpdateCard={onUpdateCard} />);-- fireEvent.click(screen.getAllByText('Task brief')[0]);- fireEvent.change(screen.getByLabelText('Title'), { target: { value: 'Updated plan' } });- fireEvent.change(screen.getByLabelText('Assigned agent'), {- target: { value: 'code_executor' },- });- fireEvent.change(screen.getByLabelText('Plan'), {- target: { value: 'Inspect files\nPatch UI' },- });- fireEvent.change(screen.getByLabelText('Allowed tools'), {- target: { value: 'todo\nfile_read' },- });- fireEvent.change(screen.getByLabelText('Approval'), { target: { value: 'not_required' } });- fireEvent.change(screen.getByLabelText('Status'), { target: { value: 'in_progress' } });- fireEvent.click(screen.getByText('Save changes'));-- expect(onUpdateCard).toHaveBeenCalledWith(- board.cards[0],- expect.objectContaining({- title: 'Updated plan',- assignedAgent: 'code_executor',- plan: ['Inspect files', 'Patch UI'],- allowedTools: ['todo', 'file_read'],- approvalMode: 'not_required',- status: 'in_progress',- })- );- });-- it('shows not-required approval details and danger tone blockers', () => {- render(- <TaskKanbanBoard- board={{- ...board,- cards: [- {- ...board.cards[0],- approvalMode: 'not_required',- blocker: 'External dependency is down',- },- ],- }}- />- );-- fireEvent.click(screen.getByText('Task brief'));-- expect(screen.getByText('Not required')).toBeInTheDocument();- expect(screen.getByText('External dependency is down')).toHaveClass('text-coral-600');- });-- it('buckets ready→in_progress column and rejected→done column', () => {- render(- <TaskKanbanBoard- board={{- ...board,- cards: [- { id: 'r', title: 'Ready card', status: 'ready', order: 0, updatedAt: '' },- { id: 'x', title: 'Rejected card', status: 'rejected', order: 1, updatedAt: '' },- ],- }}- />- );-- expect(screen.getByText('Ready card')).toBeInTheDocument();- expect(screen.getByText('Rejected card')).toBeInTheDocument();- // ready card gets a "Ready to start" badge- expect(screen.getByText('Ready to start')).toBeInTheDocument();- // rejected card gets a "Rejected" badge- expect(screen.getByText('Rejected')).toBeInTheDocument();- });-- it('renders awaiting_approval card in its own Awaiting Approval column', () => {- render(- <TaskKanbanBoard- board={{- ...board,- cards: [- {- id: 'ap',- title: 'Awaiting approval task',- status: 'awaiting_approval',- order: 0,- updatedAt: '',- },- ],- }}- />- );-- expect(screen.getByText('Awaiting approval task')).toBeInTheDocument();- // The column header should be rendered- expect(screen.getByText('Awaiting Approval')).toBeInTheDocument();- });-- it('shows "Needs your input" banner in Blocked column when it has cards', () => {- render(<TaskKanbanBoard board={board} />);-- // board has a blocked card ("Wait for token") — banner should show- expect(screen.getByText('These tasks need your input')).toBeInTheDocument();- });-- it('renders empty column placeholder text when a column has no cards', () => {- render(- <TaskKanbanBoard- board={{- threadId: 'thread-empty',- updatedAt: '',- cards: [{ id: 't1', title: 'Only pending', status: 'todo', order: 0, updatedAt: '' }],- }}- />- );-- // Done column should show "No tasks" placeholder- const emptyPlaceholders = screen.getAllByText('No tasks');- expect(emptyPlaceholders.length).toBeGreaterThan(0);- });-- it('shows evidence badge on card when evidence array is non-empty', () => {- render(- <TaskKanbanBoard- board={{- ...board,- cards: [- {- id: 'ev',- title: 'Evidence task',- status: 'todo',- order: 0,- updatedAt: '',- evidence: ['test result A', 'test result B'],- },- ],- }}- />- );-- // Evidence badge shows count- expect(screen.getByText('Evidence (2)')).toBeInTheDocument();- });-- it('empty board still renders all five columns', () => {- render(<TaskKanbanBoard board={{ threadId: 'empty-board', updatedAt: '', cards: [] }} />);-- expect(screen.getByText('Pending')).toBeInTheDocument();- expect(screen.getByText('Awaiting Approval')).toBeInTheDocument();- expect(screen.getByText('Working')).toBeInTheDocument();- expect(screen.getByText('Blocked')).toBeInTheDocument();- expect(screen.getByText('Done')).toBeInTheDocument();- });-- it('drag-and-drop: dragStart on card then drop on a column calls onMove', () => {- const onMove = vi.fn();- render(- <TaskKanbanBoard- board={{- threadId: 'dnd-board',- updatedAt: '',- cards: [- { id: 'drag-card', title: 'Draggable task', status: 'todo', order: 0, updatedAt: '' },- ],- }}- onMove={onMove}- />- );-- const card = screen.getByText('Draggable task').closest('article')!;- // Simulate drag start- fireEvent.dragStart(card, { dataTransfer: { setData: vi.fn(), effectAllowed: 'move' } });-- // Find the Done column section and simulate drop- const sections = document.querySelectorAll('section');- // sections[0]=Pending, [1]=AwaitingApproval, [2]=InProgress, [3]=Blocked, [4]=Done- const doneSection = sections[4];- fireEvent.dragOver(doneSection, { dataTransfer: { dropEffect: 'move' } });- fireEvent.drop(doneSection, {- dataTransfer: {- getData: (key: string) => (key === 'application/x-task-card-id' ? 'drag-card' : ''),- },- });-- expect(onMove).toHaveBeenCalledWith(expect.objectContaining({ id: 'drag-card' }), 'done');- });-- it('drag-and-drop: dropping a card on its own column does not call onMove', () => {- const onMove = vi.fn();- render(- <TaskKanbanBoard- board={{- threadId: 'dnd-noop-board',- updatedAt: '',- cards: [- { id: 'same-col-card', title: 'Pending task', status: 'todo', order: 0, updatedAt: '' },- ],- }}- onMove={onMove}- />- );-- const card = screen.getByText('Pending task').closest('article')!;- fireEvent.dragStart(card, { dataTransfer: { setData: vi.fn(), effectAllowed: 'move' } });-- // sections[0] = Pending — the todo card's own column- const pendingSection = document.querySelectorAll('section')[0];- fireEvent.dragOver(pendingSection, { dataTransfer: { dropEffect: 'move' } });- fireEvent.drop(pendingSection, {- dataTransfer: {- getData: (key: string) => (key === 'application/x-task-card-id' ? 'same-col-card' : ''),- },- });-- expect(onMove).not.toHaveBeenCalled();- });-- it('drag-and-drop: a disabled board does not call onMove on drop', () => {- const onMove = vi.fn();- render(- <TaskKanbanBoard- board={{- threadId: 'dnd-disabled-board',- updatedAt: '',- cards: [- { id: 'disabled-card', title: 'Locked task', status: 'todo', order: 0, updatedAt: '' },- ],- }}- onMove={onMove}- disabled- />- );-- const card = screen.getByText('Locked task').closest('article')!;- // Disabled cards must not be draggable from the source side …- expect(card.getAttribute('draggable')).toBe('false');-- // … and a drop event must be a no-op even if one is dispatched.- const doneSection = document.querySelectorAll('section')[4];- fireEvent.drop(doneSection, {- dataTransfer: {- getData: (key: string) => (key === 'application/x-task-card-id' ? 'disabled-card' : ''),- },- });-- expect(onMove).not.toHaveBeenCalled();- });-- it('arrow buttons still call onMove as a11y fallback', () => {- const onMove = vi.fn();- render(- <TaskKanbanBoard- board={{- threadId: 'a11y-board',- updatedAt: '',- cards: [{ id: 'a1', title: 'Arrow task', status: 'todo', order: 0, updatedAt: '' }],- }}- onMove={onMove}- />- );-- const moveRightButtons = screen.getAllByLabelText('Move right');- fireEvent.click(moveRightButtons[0]);-- expect(onMove).toHaveBeenCalledWith(expect.objectContaining({ id: 'a1' }), 'awaiting_approval');- });-});diff --git a/app/src/features/conversations/components/taskBoardColumns.ts b/app/src/features/conversations/components/taskBoardColumns.tsdeleted file mode 100644index aeabfae610..0000000000--- a/app/src/features/conversations/components/taskBoardColumns.ts+++ /dev/null@@ -1,73 +0,0 @@-/**- * Column layout and status→column mapping for the task board.- *- * Extracted verbatim out of `TaskKanbanBoard.tsx` when that file was split, so- * the board, the card and the brief editor can each reach the same table- * without importing one another.- */-import type { TaskBoardCardStatus } from '../../../types/turnState';--export type ColumnDef = { status: TaskBoardCardStatus; labelKey: string };--/**- * Default board layout — five columns:- * Pending / Awaiting Approval / In Progress / Blocked / Done.- * Callers can pass their own `columns` (e.g. the orchestrator's 4-column board).- */-export const COLUMN_DEFS: ColumnDef[] = [- { status: 'todo', labelKey: 'conversations.taskKanban.pending' },- { status: 'awaiting_approval', labelKey: 'conversations.taskKanban.awaitingApprovalColumn' },- { status: 'in_progress', labelKey: 'conversations.taskKanban.working' },- { status: 'blocked', labelKey: 'conversations.taskKanban.blockedColumn' },- { status: 'done', labelKey: 'conversations.taskKanban.done' },-];--/** Statuses offered in the edit dialog's status dropdown (the default set). */-export const COLUMN_STATUSES = COLUMN_DEFS.map(column => column.status);--/** Per-column visual accent: left-border + background tint. Empty string = no accent. */-export const COLUMN_ACCENT: Record<TaskBoardCardStatus, string> = {- todo: '',- awaiting_approval:- 'border-l-2 border-l-amber-400 bg-amber-50/60 dark:bg-amber-500/5 dark:border-l-amber-500/60',- in_progress: '',- blocked:- 'border-l-2 border-l-coral-400 bg-coral-50/60 dark:bg-coral-500/5 dark:border-l-coral-500/60',- done: '',- ready: '',- rejected: '',-};--/** Label key for *every* status, including statuses that don't own a kanban- * column. Drives the edit dialog's status `<select>`. */-export const STATUS_LABEL_KEYS: Record<TaskBoardCardStatus, string> = {- todo: 'conversations.taskKanban.pending',- awaiting_approval: 'conversations.taskKanban.awaitingApproval',- ready: 'conversations.taskKanban.ready',- in_progress: 'conversations.taskKanban.working',- blocked: 'conversations.taskKanban.blocked',- done: 'conversations.taskKanban.done',- rejected: 'conversations.taskKanban.rejected',-};--/** Default status→column index, over the full column set. Used by the shared- * status helpers below (a caller's custom `columns` are always a subset). */-const STATUS_INDEX = new Map(COLUMN_DEFS.map((column, index) => [column.status, index]));--/** Whether a status owns a kanban column (in the default set). */-export function isColumnStatus(status: TaskBoardCardStatus): boolean {- return STATUS_INDEX.has(status);-}--/** Map a card status to the column it renders under.- * ready → in_progress column; rejected → done column; else its own status. */-export function columnFor(status: TaskBoardCardStatus): TaskBoardCardStatus {- switch (status) {- case 'ready':- return 'in_progress';- case 'rejected':- return 'done';- default:- return status;- }-}diff --git a/app/src/features/conversations/components/taskBoardMetadata.ts b/app/src/features/conversations/components/taskBoardMetadata.tsdeleted file mode 100644index 55443eb4c9..0000000000--- a/app/src/features/conversations/components/taskBoardMetadata.ts+++ /dev/null@@ -1,116 +0,0 @@-/**- * Pure helpers shared by the task-board surfaces: reading the loosely-typed- * `sourceMetadata` blob off a card, labelling providers, and the small- * text/line conversions the brief editor round-trips through.- *- * Extracted verbatim out of `TaskKanbanBoard.tsx` when that file was split —- * no behaviour changed, only the location.- */-import type { FetchOutcome } from '../../../utils/tauriCommands';--export interface TaskSourceMetadata {- provider?: string;- sourceId?: string;- externalId?: string;- url?: string;- repo?: string;- urgency?: number;-}--export function readString(value: unknown): string | undefined {- return typeof value === 'string' && value.trim() ? value.trim() : undefined;-}--export function readNumber(value: unknown): number | undefined {- if (typeof value === 'number' && Number.isFinite(value)) return value;- if (typeof value === 'string') {- const parsed = Number(value);- if (Number.isFinite(parsed)) return parsed;- }- return undefined;-}--export function readSourceMetadata(- value: Record<string, unknown> | null | undefined-): TaskSourceMetadata | null {- if (!value || typeof value !== 'object') return null;- const provider = readString(value.provider);- const sourceId = readString(value.source_id) ?? readString(value.sourceId);- const externalId = readString(value.external_id) ?? readString(value.externalId);- const url = readString(value.url);- const repo = readString(value.repo);- const urgency = readNumber(value.urgency);- if (!provider && !sourceId && !externalId && !url && !repo && urgency === undefined) {- return null;- }- return { provider, sourceId, externalId, url, repo, urgency };-}--export function providerLabel(provider: string | undefined, t: (key: string) => string): string {- switch (provider) {- case 'github':- return t('settings.taskSources.providers.github');- case 'notion':- return t('settings.taskSources.providers.notion');- case 'linear':- return t('settings.taskSources.providers.linear');- case 'clickup':- return t('settings.taskSources.providers.clickup');- default:- return provider ?? t('conversations.taskKanban.source.unknownProvider');- }-}--export function sourceBadgeLabel(source: TaskSourceMetadata, t: (key: string) => string): string {- const provider = providerLabel(source.provider, t);- if (source.repo && source.externalId) return `${provider} · ${source.repo}#${source.externalId}`;- if (source.externalId) return `${provider} · ${source.externalId}`;- return provider;-}--export function formatUrgency(- urgency: number | undefined,- t: (key: string) => string-): string | undefined {- if (urgency === undefined) return undefined;- const percent = Math.round(Math.max(0, Math.min(1, urgency)) * 100);- return t('conversations.taskKanban.source.urgencyValue').replace('{percent}', String(percent));-}--export function formatFetchNotice(outcome: FetchOutcome, t: (key: string) => string): string {- return t('settings.taskSources.fetchResult')- .replace('{routed}', String(outcome.routed))- .replace('{fetched}', String(outcome.fetched))- .replace('{pruned}', String(outcome.pruned ?? 0));-}--export function formatSyncNotice(outcomes: FetchOutcome[], t: (key: string) => string): string {- const totals = outcomes.reduce(- (acc, outcome) => ({- fetched: acc.fetched + outcome.fetched,- routed: acc.routed + outcome.routed,- pruned: acc.pruned + (outcome.pruned ?? 0),- }),- { fetched: 0, routed: 0, pruned: 0 }- );- return t('settings.taskSources.fetchResult')- .replace('{routed}', String(totals.routed))- .replace('{fetched}', String(totals.fetched))- .replace('{pruned}', String(totals.pruned));-}--export function joinLines(values?: string[]): string {- return values?.join('\n') ?? '';-}--export function splitLines(value: string): string[] {- return value- .split('\n')- .map(line => line.trim())- .filter(Boolean);-}--export function emptyToNull(value: string): string | null {- const trimmed = value.trim();- return trimmed ? trimmed : null;-}diff --git a/app/src/features/conversations/taskPlanActions.test.ts b/app/src/features/conversations/taskPlanActions.test.tsdeleted file mode 100644index 00c008eb20..0000000000--- a/app/src/features/conversations/taskPlanActions.test.ts+++ /dev/null@@ -1,65 +0,0 @@-import { beforeEach, describe, expect, it, vi } from 'vitest';--import type { TaskBoardCard } from '../../types/turnState';-import { runDecidePlan } from './taskPlanActions';--const mockDecidePlan = vi.fn();-vi.mock('../../services/api/threadApi', () => ({- threadApi: { decidePlan: (...args: unknown[]) => mockDecidePlan(...args) },-}));--function card(id = 'c1'): TaskBoardCard {- return { id, title: 'T', status: 'awaiting_approval', order: 0, updatedAt: '' };-}--const t = (key: string) => key;--describe('runDecidePlan', () => {- beforeEach(() => mockDecidePlan.mockReset());-- it('is a no-op when there is no active thread', async () => {- const dispatch = vi.fn();- const notify = vi.fn();-- await runDecidePlan({ threadId: null, card: card(), approve: true, dispatch, notify, t });-- expect(mockDecidePlan).not.toHaveBeenCalled();- expect(dispatch).not.toHaveBeenCalled();- expect(notify).not.toHaveBeenCalled();- });-- it('dispatches the refreshed board on success', async () => {- mockDecidePlan.mockResolvedValueOnce({ threadId: 't1', cards: [], updatedAt: '' });- const dispatch = vi.fn();- const notify = vi.fn();-- await runDecidePlan({ threadId: 't1', card: card(), approve: true, dispatch, notify, t });-- expect(mockDecidePlan).toHaveBeenCalledWith('t1', 'c1', true);- expect(dispatch).toHaveBeenCalledTimes(1);- expect(notify).not.toHaveBeenCalled();- });-- it('does not dispatch when the RPC returns null', async () => {- mockDecidePlan.mockResolvedValueOnce(null);- const dispatch = vi.fn();- const notify = vi.fn();-- await runDecidePlan({ threadId: 't1', card: card(), approve: false, dispatch, notify, t });-- expect(mockDecidePlan).toHaveBeenCalledWith('t1', 'c1', false);- expect(dispatch).not.toHaveBeenCalled();- expect(notify).not.toHaveBeenCalled();- });-- it('notifies (without throwing or dispatching) on RPC failure', async () => {- mockDecidePlan.mockRejectedValueOnce(new Error('boom'));- const dispatch = vi.fn();- const notify = vi.fn();-- await runDecidePlan({ threadId: 't1', card: card(), approve: true, dispatch, notify, t });-- expect(notify).toHaveBeenCalledWith('conversations.taskKanban.updateFailed');- expect(dispatch).not.toHaveBeenCalled();- });-});diff --git a/app/src/features/conversations/taskPlanActions.ts b/app/src/features/conversations/taskPlanActions.tsdeleted file mode 100644index 316bb85288..0000000000--- a/app/src/features/conversations/taskPlanActions.ts+++ /dev/null@@ -1,51 +0,0 @@-/**- * Task-plan approval action, extracted from `Conversations` so the whole- * guard → decide → persist → refresh → error-advisory flow is unit-testable- * without mounting the conversations page.- */-import debugFactory from 'debug';--import { threadApi } from '../../services/api/threadApi';-import { setTaskBoardForThread } from '../../store/chatRuntimeSlice';-import type { TaskBoardCard } from '../../types/turnState';--const debug = debugFactory('conversations:taskPlan');--interface RunDecidePlanArgs {- /** Active thread; a no-op when null (nothing to decide against). */- threadId: string | null;- card: TaskBoardCard;- approve: boolean;- /** Redux dispatch (kept loosely typed so callers don't need the store type). */- dispatch: (action: unknown) => void;- /** Surface a user-facing advisory on failure. */- notify: (message: string) => void;- /** Translator for the advisory message. */- t: (key: string) => string;-}--/**- * Approve or reject a card's plan via the core RPC, then optimistically refresh- * the thread's board from the returned snapshot. A failure is logged and- * surfaced via `notify` (never thrown) so a failed decision degrades- * gracefully. No-op when `threadId` is null.- */-export async function runDecidePlan({- threadId,- card,- approve,- dispatch,- notify,- t,-}: RunDecidePlanArgs): Promise<void> {- if (!threadId) return;- try {- const saved = await threadApi.decidePlan(threadId, card.id, approve);- if (saved) {- dispatch(setTaskBoardForThread({ threadId, board: saved }));- }- } catch (error) {- debug('decidePlan failed: %o', error);- notify(t('conversations.taskKanban.updateFailed'));- }-}diff --git a/app/src/lib/i18n/ar.ts b/app/src/lib/i18n/ar.tsindex 19a3d8f21a..3560a0fcc4 100644--- a/app/src/lib/i18n/ar.ts+++ b/app/src/lib/i18n/ar.ts@@ -780,9 +780,6 @@ const messages: TranslationMap = {'memory.empty': 'لا توجد ذكريات بعد. تُنشأ الذكريات تلقائيًا أثناء تفاعلك.','memory.tab.memory': 'الذاكرة','memory.tab.memoryTree': 'شجرة الذاكرة',- 'memory.tab.tasks': 'المهام',- 'memory.tab.tasksDescription':- 'أنشئ المهام وتتبعها: مهامك الخاصة بالإضافة إلى اللوحات التي يبنيها وكلاؤك عبر المحادثات.','memory.tab.subconscious': 'اللاوعي','memory.tab.agentWork': 'عمل الوكيل','memory.tab.agentWorkDescription':@@ -3208,9 +3205,6 @@ const messages: TranslationMap = {'انتهت صلاحية جلسة OpenHuman. سجّل الدخول مرة أخرى لتحميل المشغّلات.','composio.triggers.needsConfiguration': 'يحتاج إلى إعداد','composio.triggers.noneAvailable': 'لا توجد مشغّلات متاحة حاليًا لـ',- 'conversations.taskKanban.moveLeft': 'نقل لليسار',- 'conversations.taskKanban.moveRight': 'نقل لليمين',- 'conversations.taskKanban.title': 'المهام','conversations.threadTodo.title': 'الخطة','conversations.composer.context.title': 'نافذة السياق','conversations.composer.context.input': 'المدخلات',@@ -3218,7 +3212,6 @@ const messages: TranslationMap = {'conversations.composer.context.output': 'المخرجات','conversations.composer.context.cost': 'التكلفة','conversations.composer.command.clear': 'مسح المحادثة',- 'conversations.composer.command.goal': 'تحديد هدف المحادثة أو تعديله','conversations.planReview.title': 'مراجعة الخطة','conversations.planReview.subtitle':'وافق لتشغيلها، أو ارفضها لتجاهلها، أو أرسل ملاحظات لتعديلها.',@@ -3227,62 +3220,6 @@ const messages: TranslationMap = {'conversations.planReview.feedbackLabel': 'طلب تغييرات','conversations.planReview.feedbackPlaceholder': 'صف ما الذي يجب تغييره…','conversations.planReview.sendFeedback': 'إرسال الملاحظات',- 'conversations.threadGoal.label': 'الهدف',- 'conversations.threadGoal.setCta': 'تحديد هدف',- 'conversations.threadGoal.placeholder': 'ما الذي يجب أن تحققه هذه المحادثة؟',- 'conversations.threadGoal.save': 'حفظ',- 'conversations.threadGoal.cancel': 'إلغاء',- 'conversations.threadGoal.edit': 'تعديل الهدف',- 'conversations.threadGoal.clear': 'مسح الهدف',- 'conversations.threadGoal.complete': 'وضع علامة كمكتمل',- 'conversations.threadGoal.pause': 'إيقاف مؤقت',- 'conversations.threadGoal.resume': 'استئناف',- 'conversations.threadGoal.tokensSuffix': 'رمز',- 'conversations.threadGoal.status.active': 'نشط',- 'conversations.threadGoal.status.paused': 'متوقف مؤقتًا',- 'conversations.threadGoal.status.budget_limited': 'تم بلوغ الحد',- 'conversations.threadGoal.status.complete': 'مكتمل',- 'conversations.taskKanban.approval.default': 'التقصير',- 'conversations.taskKanban.approval.notRequired': 'غير مطلوب',- 'conversations.taskKanban.approval.notRequiredBadge': 'عدم الموافقة',- 'conversations.taskKanban.approval.required': 'المطلوب',- 'conversations.taskKanban.approval.requiredBadge': 'الموافقة',- 'conversations.taskKanban.approval.requiredBeforeExecution': 'مطلوب قبل الإعدام',- 'conversations.taskKanban.briefButton': 'موجز',- 'conversations.taskKanban.briefTitle': 'موجز',- 'conversations.taskKanban.closeBrief': 'موجز المهام',- 'conversations.taskKanban.field.acceptanceCriteria': 'معايير القبول',- 'conversations.taskKanban.field.allowedTools': 'الأدوات المسموح بها',- 'conversations.taskKanban.field.approval': 'الموافقة',- 'conversations.taskKanban.field.assignedAgent': 'وكيل موقع',- 'conversations.taskKanban.field.blocker': 'Blocker',- 'conversations.taskKanban.field.evidence': 'الأدلة',- 'conversations.taskKanban.field.notes': 'الحواشي',- 'conversations.taskKanban.field.objective': 'الهدف',- 'conversations.taskKanban.field.plan': 'الخطة',- 'conversations.taskKanban.field.status': 'الحالة',- 'conversations.taskKanban.field.title': 'العنوان',- 'conversations.taskKanban.saveChanges': 'التغييرات',- 'conversations.taskKanban.deleteCard': 'Delete',- 'conversations.taskKanban.workTask': 'العمل على المهمة',- 'conversations.taskKanban.viewWork': 'عرض العمل',- 'conversations.taskKanban.startingTask': 'جارٍ البدء…',- 'conversations.taskKanban.updateFailed': 'ولم يتمكن من استكمال المهمة؛ ولم يتم توفير التغييرات.',- 'conversations.taskKanban.sourcesButton': 'المصادر',- 'conversations.taskKanban.source.openExternal': 'فتح المهمة الخارجية',- 'conversations.taskKanban.source.openExternalShort': 'فتح',- 'conversations.taskKanban.source.unknownProvider': 'مصدر غير معروف',- 'conversations.taskKanban.source.urgencyValue': 'الأولوية {percent}%',- 'conversations.taskKanban.sources.desktopOnly':- 'تتوفر عناصر التحكم في مصادر المهام في تطبيق سطح المكتب.',- 'conversations.taskKanban.sources.title': 'مصادر المهام',- 'conversations.taskKanban.sources.statusEnabled': 'الجلب التلقائي مفعّل',- 'conversations.taskKanban.sources.manage': 'إدارة المصادر',- 'conversations.taskKanban.source.title': 'المصدر',- 'conversations.taskKanban.source.sourceId': 'معرّف المصدر',- 'conversations.taskKanban.source.externalId': 'المعرّف الخارجي',- 'conversations.taskKanban.source.repo': 'المستودع',- 'conversations.taskKanban.source.urgency': 'الأولوية','conversations.toolTimeline.turn': 'دور','conversations.toolTimeline.step': 'خطوة','conversations.toolTimeline.workerThread': 'محادثة عامل',@@ -3369,45 +3306,6 @@ const messages: TranslationMap = {'intelligence.diagram.imageAlt': 'أحدث مخطط بنية OpenHuman المُولَّد','intelligence.diagram.refreshesEvery': 'يتجدد كل {seconds} ثانية','intelligence.memoryText.entityTypePrefix': 'نوع الكيان',- 'intelligence.tasks.activeBoardOne': 'لوحة نشطة واحدة عبر المحادثات',- 'intelligence.tasks.activeBoardOther': '{count} لوحات نشطة عبر المحادثات',- 'intelligence.tasks.empty': 'لا توجد لوحات مهام للوكيل بعد',- 'intelligence.tasks.emptyHint': 'تلميح الفراغ',- 'intelligence.tasks.failedToLoad': 'فشل التحميل',- 'intelligence.tasks.live': 'مباشر',- 'intelligence.tasks.loadingBoards': 'جارٍ تحميل لوحات المهام…',- 'intelligence.tasks.threadPrefix': 'المحادثة {thread}',- 'intelligence.tasks.subtitle': 'مهمتك ومجالس عمل العملاء عبر مكان العمل',- 'intelligence.tasks.newTask': 'المهمة الجديدة',- 'intelligence.tasks.personalBoardTitle': 'عملاء',- 'intelligence.tasks.personalEmpty': 'لا مهام شخصية حتى الآن',- 'intelligence.tasks.composer.title': 'المهمة الجديدة',- 'intelligence.tasks.composer.titleLabel': 'العنوان',- 'intelligence.tasks.composer.titlePlaceholder': 'ماذا يجب أن نفعل؟',- 'intelligence.tasks.composer.statusLabel': 'الحالة',- 'intelligence.tasks.composer.attachLabel': 'مواكبة المحادثة',- 'intelligence.tasks.composer.attachNone': 'شخصية (لا محادثة)',- 'intelligence.tasks.composer.objectiveLabel': 'الهدف',- 'intelligence.tasks.composer.objectivePlaceholder': 'اختياري - النتيجة المنشودة',- 'intelligence.tasks.composer.notesLabel': 'الحواشي',- 'intelligence.tasks.composer.notesPlaceholder': 'الملاحظات الاختيارية',- 'intelligence.tasks.composer.create': 'إنشاء مهمة',- 'intelligence.tasks.composer.creating': 'خلق...',- 'intelligence.tasks.composer.createFailed': 'لا يمكن خلق المهمة',- 'intelligence.tasks.composer.assignAgentLabel': 'دع وكيلًا يعمل على هذه المهمة تلقائيًا',- 'intelligence.tasks.composer.assignAgentHint':- 'تلتقطها لوحة المهام وتنفّذها نيابةً عنك. اتركها مغلقة للحصول على مهمة شخصية عادية.',- 'intelligence.tasks.sourceList.subtitle': 'مهام المصادر التي تنتظر التحول إلى عمل للوكيل.',- 'intelligence.tasks.sourceList.empty': 'لا توجد مهام مصادر في الانتظار.',- 'intelligence.tasks.sourceList.queued': 'في قائمة الانتظار',- 'intelligence.tasks.sourceList.workOnTask': 'العمل على المهمة',- 'intelligence.tasks.sourcePlan.title': 'تنقيح مهمة المصدر',- 'intelligence.tasks.sourcePlan.subtitle': 'راجع مسودة البحث قبل إنشاء مهمة للوكيل.',- 'intelligence.tasks.sourcePlan.researchAgent': 'مسودة وكيل البحث',- 'intelligence.tasks.sourcePlan.approve': 'الموافقة على الخطة',- 'intelligence.tasks.sourcePlan.creating': 'جارٍ إنشاء المهمة…',- 'intelligence.tasks.sourcePlan.createFailed': 'تعذر إنشاء مهمة الوكيل',- 'intelligence.tasks.workTaskFailed': 'تعذر بدء العمل على المهمة','intelligence.workTask.sourceTaskHeading': 'المهمة المصدر:','intelligence.workTask.repositoryLine': '- المستودع: {repo}','intelligence.workTask.externalIdLine': '- المعرّف الخارجي: {externalId}',@@ -5691,7 +5589,6 @@ const messages: TranslationMap = {'composio.integrationSlugsPlaceholder': 'gmail، slack، ...','composio.notYetRouted': 'لم يتم توجيهه بعد','composio.triggers.loading': 'جارٍ التحميل…',- 'conversations.taskKanban.todo': 'للتنفيذ','chat.addReaction': 'إضافة تفاعل','chat.agentProfile.create': 'إنشاء ملف تعريف الوكيل','chat.agentProfile.createFailed': 'تعذر إنشاء ملف تعريف الوكيل.',@@ -5710,23 +5607,6 @@ const messages: TranslationMap = {'settings.composio.loading': 'جارٍ التحميل…','settings.mascot.noCharactersAvailable': 'لا توجد شخصيات OpenHuman متاحة بعد','skills.uninstall.confirmTitle': 'إلغاء تثبيت {name}؟',- 'conversations.taskKanban.blocked': 'محظور',- 'conversations.taskKanban.done': 'مكتمل',- 'conversations.taskKanban.pending': 'تنتهي',- 'conversations.taskKanban.working': 'العمل',- 'conversations.taskKanban.awaitingApproval': 'في انتظار الموافقة',- 'conversations.taskKanban.ready': 'جاهز',- 'conversations.taskKanban.rejected': 'مرفوض',- 'conversations.taskKanban.inProgress': 'قيد التنفيذ',- 'conversations.taskKanban.awaitingApprovalColumn': 'في انتظار الموافقة',- 'conversations.taskKanban.blockedColumn': 'محظور',- 'conversations.taskKanban.evidenceBadge': 'الأدلة ({count})',- 'conversations.taskKanban.needsInput': 'هذه المهام تحتاج إلى مدخلاتك',- 'conversations.taskKanban.emptyColumn': 'لا توجد مهام',- 'conversations.taskKanban.dragHint': 'اسحب للتنقل بين الأعمدة',- 'conversations.taskKanban.movingCard': 'جارٍ النقل…',- 'conversations.taskKanban.statusBadge.ready': 'جاهز للبدء',- 'conversations.taskKanban.statusBadge.rejected': 'مرفوض','intelligence.memoryChunk.detail.copiedHint': 'تم النسخ','settings.composio.notYetRouted': 'لم يتم توجيهه بعد','devOptions.menuAi': 'تكوين الذكاء الاصطناعي',diff --git a/app/src/lib/i18n/bn.ts b/app/src/lib/i18n/bn.tsindex 63da7e1515..4fda7e343d 100644--- a/app/src/lib/i18n/bn.ts+++ b/app/src/lib/i18n/bn.ts@@ -799,9 +799,6 @@ const messages: TranslationMap = {'এখনো কোনো মেমোরি নেই। আপনি যত ইন্টারঅ্যাক্ট করবেন, মেমোরি স্বয়ংক্রিয়ভাবে তৈরি হবে।','memory.tab.memory': 'মেমোরি','memory.tab.memoryTree': 'মেমোরি ট্রি',- 'memory.tab.tasks': 'টাস্ক',- 'memory.tab.tasksDescription':- 'টাস্ক তৈরি করুন এবং ট্র্যাক করুন: আপনার নিজের কাজের তালিকা এবং এজেন্টরা কথোপকথন জুড়ে যে বোর্ডগুলি তৈরি করে।','memory.tab.subconscious': 'সাবকনশাস','memory.tab.agentWork': 'এজেন্ট কাজ','memory.tab.agentWorkDescription':@@ -3285,9 +3282,6 @@ const messages: TranslationMap = {'আপনার OpenHuman সেশনের মেয়াদ শেষ হয়েছে। ট্রিগার লোড করতে আবার সাইন ইন করুন।','composio.triggers.needsConfiguration': 'কনফিগারেশন প্রয়োজন','composio.triggers.noneAvailable': 'বর্তমানে কোনো ট্রিগার উপলব্ধ নেই',- 'conversations.taskKanban.moveLeft': 'বামে সরান',- 'conversations.taskKanban.moveRight': 'ডানে সরান',- 'conversations.taskKanban.title': 'টাস্ক','conversations.threadTodo.title': 'পরিকল্পনা','conversations.composer.context.title': 'কনটেক্সট উইন্ডো','conversations.composer.context.input': 'ইনপুট',@@ -3295,7 +3289,6 @@ const messages: TranslationMap = {'conversations.composer.context.output': 'আউটপুট','conversations.composer.context.cost': 'খরচ','conversations.composer.command.clear': 'কথোপকথন মুছে ফেলুন',- 'conversations.composer.command.goal': 'থ্রেডের লক্ষ্য নির্ধারণ বা সম্পাদনা করুন','conversations.planReview.title': 'পরিকল্পনা পর্যালোচনা করুন','conversations.planReview.subtitle':'চালানোর জন্য অনুমোদন করুন, বাতিল করতে প্রত্যাখ্যান করুন, অথবা সংশোধনের জন্য মতামত পাঠান।',@@ -3304,61 +3297,6 @@ const messages: TranslationMap = {'conversations.planReview.feedbackLabel': 'পরিবর্তন অনুরোধ করুন','conversations.planReview.feedbackPlaceholder': 'কী পরিবর্তন করতে হবে বর্ণনা করুন…','conversations.planReview.sendFeedback': 'মতামত পাঠান',- 'conversations.threadGoal.label': 'লক্ষ্য',- 'conversations.threadGoal.setCta': 'লক্ষ্য নির্ধারণ',- 'conversations.threadGoal.placeholder': 'এই থ্রেডে কী অর্জন করতে হবে?',- 'conversations.threadGoal.save': 'সংরক্ষণ',- 'conversations.threadGoal.cancel': 'বাতিল',- 'conversations.threadGoal.edit': 'লক্ষ্য সম্পাদনা',- 'conversations.threadGoal.clear': 'লক্ষ্য মুছুন',- 'conversations.threadGoal.complete': 'সম্পন্ন হিসেবে চিহ্নিত করুন',- 'conversations.threadGoal.pause': 'বিরতি',- 'conversations.threadGoal.resume': 'পুনরায় শুরু',- 'conversations.threadGoal.tokensSuffix': 'টোকেন',- 'conversations.threadGoal.status.active': 'সক্রিয়',- 'conversations.threadGoal.status.paused': 'বিরতিতে',- 'conversations.threadGoal.status.budget_limited': 'বাজেট শেষ',- 'conversations.threadGoal.status.complete': 'সম্পন্ন',- 'conversations.taskKanban.approval.default': 'ডিফল্ট',- 'conversations.taskKanban.approval.notRequired': 'প্রয়োজন নেই',- 'conversations.taskKanban.approval.notRequiredBadge': 'অনুমোদন করা হবে না',- 'conversations.taskKanban.approval.required': 'আবশ্যক',- 'conversations.taskKanban.approval.requiredBadge': 'অনুমোদন',- 'conversations.taskKanban.approval.requiredBeforeExecution': 'সঞ্চালনের পূর্বে আবশ্যক',- 'conversations.taskKanban.briefButton': 'কাজের সংক্ষিপ্ত',- 'conversations.taskKanban.briefTitle': 'কাজের সংক্ষিপ্ত',- 'conversations.taskKanban.closeBrief': 'স্বল্প বিরতি বন্ধ করুন',- 'conversations.taskKanban.field.acceptanceCriteria': 'বিশেষ মান গ্রহণ করা হবে',- 'conversations.taskKanban.field.allowedTools': 'ব্যবহারের জন্য চিহ্নিত সামগ্রী',- 'conversations.taskKanban.field.approval': 'বিবিধ বৈশিষ্ট্য',- 'conversations.taskKanban.field.assignedAgent': 'বরাদ্দকৃত এজেন্ট',- 'conversations.taskKanban.field.blocker': 'স্তম্ভ',- 'conversations.taskKanban.field.evidence': 'প্রমাণ',- 'conversations.taskKanban.field.notes': 'নোট',- 'conversations.taskKanban.field.objective': 'উদ্দেশ্য',- 'conversations.taskKanban.field.plan': 'পরিকল্পনা',- 'conversations.taskKanban.field.status': 'অবস্থা',- 'conversations.taskKanban.field.title': 'শিরোনাম',- 'conversations.taskKanban.saveChanges': 'পরিবর্তন সংরক্ষণ করা হবে',- 'conversations.taskKanban.deleteCard': 'Delete',- 'conversations.taskKanban.workTask': 'কাজ শুরু করুন',- 'conversations.taskKanban.viewWork': 'কাজ দেখুন',- 'conversations.taskKanban.startingTask': 'শুরু হচ্ছে...',- 'conversations.taskKanban.updateFailed': 'কাজটি সংরক্ষণ করা যায়নি।',- 'conversations.taskKanban.sourcesButton': 'উৎস',- 'conversations.taskKanban.source.openExternal': 'বাহ্যিক কাজ খুলুন',- 'conversations.taskKanban.source.openExternalShort': 'খুলুন',- 'conversations.taskKanban.source.unknownProvider': 'অজানা উৎস',- 'conversations.taskKanban.source.urgencyValue': 'জরুরিতা {percent}%',- 'conversations.taskKanban.sources.desktopOnly': 'টাস্ক উৎস নিয়ন্ত্রণ ডেস্কটপ অ্যাপে উপলভ্য।',- 'conversations.taskKanban.sources.title': 'টাস্ক উৎস',- 'conversations.taskKanban.sources.statusEnabled': 'স্বয়ংক্রিয় পোলিং চালু',- 'conversations.taskKanban.sources.manage': 'উৎস পরিচালনা করুন',- 'conversations.taskKanban.source.title': 'উৎস',- 'conversations.taskKanban.source.sourceId': 'উৎস আইডি',- 'conversations.taskKanban.source.externalId': 'বাহ্যিক আইডি',- 'conversations.taskKanban.source.repo': 'রিপোজিটরি',- 'conversations.taskKanban.source.urgency': 'জরুরিতা','conversations.toolTimeline.turn': 'টার্ন','conversations.toolTimeline.step': 'ধাপ','conversations.toolTimeline.workerThread': 'ওয়ার্কার থ্রেড',@@ -3447,45 +3385,6 @@ const messages: TranslationMap = {'intelligence.diagram.imageAlt': 'সর্বশেষ তৈরি OpenHuman আর্কিটেকচার ডায়াগ্রাম','intelligence.diagram.refreshesEvery': 'প্রতি {seconds}s-এ রিফ্রেশ হয়','intelligence.memoryText.entityTypePrefix': 'এনটিটি ধরন',- 'intelligence.tasks.activeBoardOne': 'কথোপকথনজুড়ে ১টি সক্রিয় বোর্ড',- 'intelligence.tasks.activeBoardOther': 'কথোপকথনজুড়ে {count}টি সক্রিয় বোর্ড',- 'intelligence.tasks.empty': 'এখনো কোনো এজেন্ট টাস্ক বোর্ড নেই',- 'intelligence.tasks.emptyHint': 'খালি হিন্ট',- 'intelligence.tasks.failedToLoad': 'লোড করতে ব্যর্থ',- 'intelligence.tasks.live': 'লাইভ',- 'intelligence.tasks.loadingBoards': 'টাস্ক বোর্ড লোড হচ্ছে…',- 'intelligence.tasks.threadPrefix': 'থ্রেড {thread}',- 'intelligence.tasks.subtitle': 'তোমার কাজ আর এজেন্ট বোর্ড পুরো কর্মক্ষেত্রে.',- 'intelligence.tasks.newTask': 'নতুন কাজ',- 'intelligence.tasks.personalBoardTitle': 'এজেন্ট কাজ',- 'intelligence.tasks.personalEmpty': 'ব্যক্তিগত কোনো কর্ম বর্তমানে উপলব্ধ নয়',- 'intelligence.tasks.composer.title': 'নতুন কাজ',- 'intelligence.tasks.composer.titleLabel': 'শিরোনাম',- 'intelligence.tasks.composer.titlePlaceholder': 'কী করতে হবে?',- 'intelligence.tasks.composer.statusLabel': 'অবস্থা',- 'intelligence.tasks.composer.attachLabel': 'কথোপকথনের সাথে সংযুক্ত করুন',- 'intelligence.tasks.composer.attachNone': 'ব্যক্তিগত (কোনো আলাপন নেই)',- 'intelligence.tasks.composer.objectiveLabel': 'উদ্দেশ্য',- 'intelligence.tasks.composer.objectivePlaceholder': 'ঐচ্ছিক ফলাফল',- 'intelligence.tasks.composer.notesLabel': 'নোট',- 'intelligence.tasks.composer.notesPlaceholder': 'ঐচ্ছিক নোট',- 'intelligence.tasks.composer.create': 'কাজ তৈরি করুন ( T)',- 'intelligence.tasks.composer.creating': 'তৈরি করা হচ্ছে...',- 'intelligence.tasks.composer.createFailed': 'কাজ তৈরি করতে ব্যর্থ',- 'intelligence.tasks.composer.assignAgentLabel': 'একজন এজেন্টকে স্বয়ংক্রিয়ভাবে এটি করতে দিন',- 'intelligence.tasks.composer.assignAgentHint':- 'টাস্ক বোর্ড এটি তুলে নিয়ে আপনার হয়ে চালাবে। সাধারণ ব্যক্তিগত কাজের জন্য বন্ধ রাখুন।',- 'intelligence.tasks.sourceList.subtitle': 'এজেন্টের কাজে রূপান্তরের অপেক্ষায় থাকা উৎস কাজ।',- 'intelligence.tasks.sourceList.empty': 'অপেক্ষায় কোনো উৎস কাজ নেই।',- 'intelligence.tasks.sourceList.queued': 'সারিবদ্ধ',- 'intelligence.tasks.sourceList.workOnTask': 'কাজটি করুন',- 'intelligence.tasks.sourcePlan.title': 'উৎস কাজ পরিমার্জন করুন',- 'intelligence.tasks.sourcePlan.subtitle': 'এজেন্ট কাজ তৈরির আগে গবেষণা খসড়া পর্যালোচনা করুন।',- 'intelligence.tasks.sourcePlan.researchAgent': 'গবেষণা এজেন্টের খসড়া',- 'intelligence.tasks.sourcePlan.approve': 'পরিকল্পনা অনুমোদন করুন',- 'intelligence.tasks.sourcePlan.creating': 'কাজ তৈরি হচ্ছে...',- 'intelligence.tasks.sourcePlan.createFailed': 'এজেন্ট কাজ তৈরি করা যায়নি',- 'intelligence.tasks.workTaskFailed': 'কাজ শুরু করা যায়নি','intelligence.workTask.sourceTaskHeading': 'উৎস টাস্ক:','intelligence.workTask.repositoryLine': '- রিপোজিটরি: {repo}','intelligence.workTask.externalIdLine': '- বাহ্যিক আইডি: {externalId}',@@ -5824,7 +5723,6 @@ const messages: TranslationMap = {'composio.integrationSlugsPlaceholder': 'gmail, slack, ...','composio.notYetRouted': 'এখনও রুট করা হয়নি','composio.triggers.loading': 'লোড হচ্ছে…',- 'conversations.taskKanban.todo': 'করণীয়','chat.addReaction': 'প্রতিক্রিয়া যোগ করুন','chat.agentProfile.create': 'এজেন্ট প্রোফাইল তৈরি করুন','chat.agentProfile.createFailed': 'এজেন্ট প্রোফাইল তৈরি করা যায়নি।',@@ -5843,23 +5741,6 @@ const messages: TranslationMap = {'settings.composio.loading': 'লোড হচ্ছে…','settings.mascot.noCharactersAvailable': 'কোনো OpenHuman ক্যারেক্টার এখনও উপলব্ধ নেই','skills.uninstall.confirmTitle': '{name} আনইনস্টল করবেন?',- 'conversations.taskKanban.blocked': 'ব্লকড',- 'conversations.taskKanban.done': 'সম্পন্ন',- 'conversations.taskKanban.pending': 'অসমাপ্ত',- 'conversations.taskKanban.working': 'কাজের',- 'conversations.taskKanban.awaitingApproval': 'অপেক্ষা করা',- 'conversations.taskKanban.ready': 'প্রস্তুত',- 'conversations.taskKanban.rejected': 'প্রত্যাখ্যান করা হয়েছে',- 'conversations.taskKanban.inProgress': 'চলমান',- 'conversations.taskKanban.awaitingApprovalColumn': 'অনুমোদনের অপেক্ষায়',- 'conversations.taskKanban.blockedColumn': 'বাধাপ্রাপ্ত',- 'conversations.taskKanban.evidenceBadge': 'প্রমাণ ({count})',- 'conversations.taskKanban.needsInput': 'এই কাজগুলোর জন্য আপনার মতামত প্রয়োজন',- 'conversations.taskKanban.emptyColumn': 'কোনো কাজ নেই',- 'conversations.taskKanban.dragHint': 'কলামের মধ্যে সরাতে টেনে আনুন',- 'conversations.taskKanban.movingCard': 'সরানো হচ্ছে…',- 'conversations.taskKanban.statusBadge.ready': 'শুরু করতে প্রস্তুত',- 'conversations.taskKanban.statusBadge.rejected': 'প্রত্যাখ্যাত','intelligence.memoryChunk.detail.copiedHint': 'কপি হয়েছে','settings.composio.notYetRouted': 'এখনও রুট করা হয়নি','devOptions.menuAi': 'AI কনফিগারেশন',diff --git a/app/src/lib/i18n/de.ts b/app/src/lib/i18n/de.tsindex d5a5b972b4..05e0b2c360 100644--- a/app/src/lib/i18n/de.ts+++ b/app/src/lib/i18n/de.ts@@ -831,9 +831,6 @@ const messages: TranslationMap = {'Noch keine Erinnerungen. Erinnerungen werden automatisch erstellt, während du interagierst.','memory.tab.memory': 'Erinnerung','memory.tab.memoryTree': 'Erinnerungsbaum',- 'memory.tab.tasks': 'Aufgaben',- 'memory.tab.tasksDescription':- 'Aufgaben erstellen und verfolgen – eigene To-dos sowie die Boards, die Agenten in Gesprächen anlegen.','memory.tab.subconscious': 'Unterbewusstsein','memory.tab.agentWork': 'Agentenarbeit','memory.tab.agentWorkDescription':@@ -3379,9 +3376,6 @@ const messages: TranslationMap = {'Deine OpenHuman-Sitzung ist abgelaufen. Melde dich erneut an, um Trigger zu laden.','composio.triggers.needsConfiguration': 'Muss konfiguriert werden','composio.triggers.noneAvailable': 'Derzeit sind keine Auslöser verfügbar für',- 'conversations.taskKanban.moveLeft': 'Bewege dich nach links',- 'conversations.taskKanban.moveRight': 'Bewege dich nach rechts',- 'conversations.taskKanban.title': 'Aufgaben','conversations.threadTodo.title': 'Plan','conversations.composer.context.title': 'Kontextfenster','conversations.composer.context.input': 'Eingabe',@@ -3389,7 +3383,6 @@ const messages: TranslationMap = {'conversations.composer.context.output': 'Ausgabe','conversations.composer.context.cost': 'Kosten','conversations.composer.command.clear': 'Unterhaltung leeren',- 'conversations.composer.command.goal': 'Ziel des Threads festlegen oder bearbeiten','conversations.planReview.title': 'Plan prüfen','conversations.planReview.subtitle':'Genehmigen zum Ausführen, ablehnen zum Verwerfen oder Feedback zum Überarbeiten senden.',@@ -3398,63 +3391,6 @@ const messages: TranslationMap = {'conversations.planReview.feedbackLabel': 'Änderungen anfordern','conversations.planReview.feedbackPlaceholder': 'Beschreiben Sie, was geändert werden soll…','conversations.planReview.sendFeedback': 'Feedback senden',- 'conversations.threadGoal.label': 'Ziel',- 'conversations.threadGoal.setCta': 'Ziel festlegen',- 'conversations.threadGoal.placeholder': 'Was soll dieser Thread erreichen?',- 'conversations.threadGoal.save': 'Speichern',- 'conversations.threadGoal.cancel': 'Abbrechen',- 'conversations.threadGoal.edit': 'Ziel bearbeiten',- 'conversations.threadGoal.clear': 'Ziel löschen',- 'conversations.threadGoal.complete': 'Als erledigt markieren',- 'conversations.threadGoal.pause': 'Pausieren',- 'conversations.threadGoal.resume': 'Fortsetzen',- 'conversations.threadGoal.tokensSuffix': 'Tokens',- 'conversations.threadGoal.status.active': 'Aktiv',- 'conversations.threadGoal.status.paused': 'Pausiert',- 'conversations.threadGoal.status.budget_limited': 'Budget erreicht',- 'conversations.threadGoal.status.complete': 'Abgeschlossen',- 'conversations.taskKanban.approval.default': 'Standard',- 'conversations.taskKanban.approval.notRequired': 'Nicht erforderlich',- 'conversations.taskKanban.approval.notRequiredBadge': 'keine Genehmigung',- 'conversations.taskKanban.approval.required': 'Erforderlich',- 'conversations.taskKanban.approval.requiredBadge': 'approval',- 'conversations.taskKanban.approval.requiredBeforeExecution': 'Vor der Ausführung erforderlich',- 'conversations.taskKanban.briefButton': 'Aufgabenbeschreibung',- 'conversations.taskKanban.briefTitle': 'Aufgabenbeschreibung',- 'conversations.taskKanban.closeBrief': 'Aufgabenbeschreibung abschließen',- 'conversations.taskKanban.field.acceptanceCriteria': 'Akzeptanzkriterien',- 'conversations.taskKanban.field.allowedTools': 'Erlaubte Werkzeuge',- 'conversations.taskKanban.field.approval': 'Genehmigung',- 'conversations.taskKanban.field.assignedAgent': 'Zugewiesener Agent',- 'conversations.taskKanban.field.blocker': 'Blocker',- 'conversations.taskKanban.field.evidence': 'Beweis',- 'conversations.taskKanban.field.notes': 'Notizen',- 'conversations.taskKanban.field.objective': 'Objektiv',- 'conversations.taskKanban.field.plan': 'Planen',- 'conversations.taskKanban.field.status': 'Status',- 'conversations.taskKanban.field.title': 'Titel',- 'conversations.taskKanban.saveChanges': 'Änderungen speichern',- 'conversations.taskKanban.deleteCard': 'Löschen',- 'conversations.taskKanban.workTask': 'Aufgabe bearbeiten',- 'conversations.taskKanban.viewWork': 'Arbeit anzeigen',- 'conversations.taskKanban.startingTask': 'Startet…',- 'conversations.taskKanban.updateFailed':- 'Aufgabe konnte nicht aktualisiert werden; Änderungen wurden nicht gespeichert.',- 'conversations.taskKanban.sourcesButton': 'Quellen',- 'conversations.taskKanban.source.openExternal': 'Externe Aufgabe öffnen',- 'conversations.taskKanban.source.openExternalShort': 'Öffnen',- 'conversations.taskKanban.source.unknownProvider': 'Unbekannte Quelle',- 'conversations.taskKanban.source.urgencyValue': 'Dringlichkeit {percent}%',- 'conversations.taskKanban.sources.desktopOnly':- 'Aufgabenquellen-Steuerungen sind in der Desktop-App verfügbar.',- 'conversations.taskKanban.sources.title': 'Aufgabenquellen',- 'conversations.taskKanban.sources.statusEnabled': 'Automatische Abfrage aktiviert',- 'conversations.taskKanban.sources.manage': 'Quellen verwalten',- 'conversations.taskKanban.source.title': 'Quelle',- 'conversations.taskKanban.source.sourceId': 'Quellen-ID',- 'conversations.taskKanban.source.externalId': 'Externe ID',- 'conversations.taskKanban.source.repo': 'Repository',- 'conversations.taskKanban.source.urgency': 'Dringlichkeit','conversations.toolTimeline.turn': 'drehen','conversations.toolTimeline.step': 'Schritt','conversations.toolTimeline.workerThread': 'Worker-Thread',@@ -3545,47 +3481,6 @@ const messages: TranslationMap = {'intelligence.diagram.imageAlt': 'Zuletzt generiertes OpenHuman-Architekturdiagramm','intelligence.diagram.refreshesEvery': 'Aktualisiert alle {seconds} s','intelligence.memoryText.entityTypePrefix': 'Entitätstyp',- 'intelligence.tasks.activeBoardOne': '1 aktives Forum für alle Gespräche',- 'intelligence.tasks.activeBoardOther': '{count} aktive Boards in allen Gesprächen',- 'intelligence.tasks.empty': 'Noch keine Agenten-Taskboards',- 'intelligence.tasks.emptyHint': 'Leerer Hinweis',- 'intelligence.tasks.failedToLoad': 'Laden fehlgeschlagen',- 'intelligence.tasks.live': 'leben',- 'intelligence.tasks.loadingBoards': 'Taskboards werden geladen…',- 'intelligence.tasks.threadPrefix': 'Gewinde {thread}',- 'intelligence.tasks.subtitle': 'Ihre Aufgaben und Agenten-Taskboards im gesamten Arbeitsbereich.',- 'intelligence.tasks.newTask': 'Neue Aufgabe',- 'intelligence.tasks.personalBoardTitle': 'Agentenaufgaben',- 'intelligence.tasks.personalEmpty': 'Noch keine persönlichen Aufgaben',- 'intelligence.tasks.composer.title': 'Neue Aufgabe',- 'intelligence.tasks.composer.titleLabel': 'Titel',- 'intelligence.tasks.composer.titlePlaceholder': 'Was muss getan werden?',- 'intelligence.tasks.composer.statusLabel': 'Status',- 'intelligence.tasks.composer.attachLabel': 'Dem Gespräch beifügen',- 'intelligence.tasks.composer.attachNone': 'Persönlich (kein Gespräch)',- 'intelligence.tasks.composer.objectiveLabel': 'Objektiv',- 'intelligence.tasks.composer.objectivePlaceholder': 'Optional – das gewünschte Ergebnis',- 'intelligence.tasks.composer.notesLabel': 'Notizen',- 'intelligence.tasks.composer.notesPlaceholder': 'Optionale Notizen',- 'intelligence.tasks.composer.create': 'Aufgabe erstellen',- 'intelligence.tasks.composer.creating': 'Erstellen…',- 'intelligence.tasks.composer.createFailed': 'Die Aufgabe konnte nicht erstellt werden',- 'intelligence.tasks.composer.assignAgentLabel': 'Einen Agenten automatisch daran arbeiten lassen',- 'intelligence.tasks.composer.assignAgentHint':- 'Das Aufgabenboard übernimmt sie und erledigt sie für dich. Für eine einfache persönliche Aufgabe ausgeschaltet lassen.',- 'intelligence.tasks.sourceList.subtitle':- 'Quellaufgaben, die in Agentenarbeit umgewandelt werden sollen.',- 'intelligence.tasks.sourceList.empty': 'Keine Quellaufgaben in der Warteschlange.',- 'intelligence.tasks.sourceList.queued': 'Eingereiht',- 'intelligence.tasks.sourceList.workOnTask': 'Aufgabe bearbeiten',- 'intelligence.tasks.sourcePlan.title': 'Quellaufgabe verfeinern',- 'intelligence.tasks.sourcePlan.subtitle':- 'Prüfen Sie den Rechercheentwurf, bevor eine Agentenaufgabe erstellt wird.',- 'intelligence.tasks.sourcePlan.researchAgent': 'Entwurf des Recherche-Agenten',- 'intelligence.tasks.sourcePlan.approve': 'Plan genehmigen',- 'intelligence.tasks.sourcePlan.creating': 'Aufgabe wird erstellt…',- 'intelligence.tasks.sourcePlan.createFailed': 'Die Agentenaufgabe konnte nicht erstellt werden',- 'intelligence.tasks.workTaskFailed': 'Die Arbeit an der Aufgabe konnte nicht gestartet werden','intelligence.workTask.sourceTaskHeading': 'Quellaufgabe:','intelligence.workTask.repositoryLine': '- Repository (Repo): {repo}','intelligence.workTask.externalIdLine': '- Externe ID: {externalId}',@@ -5979,7 +5874,6 @@ const messages: TranslationMap = {'composio.integrationSlugsPlaceholder': 'Gmail, Slack, ...','composio.notYetRouted': 'noch nicht geroutet','composio.triggers.loading': 'Laden…',- 'conversations.taskKanban.todo': 'Zu tun','chat.addReaction': 'Reaktion hinzufügen','chat.agentProfile.create': 'Agentenprofil erstellen','chat.agentProfile.createFailed': 'Agentenprofil konnte nicht erstellt werden.',@@ -5998,23 +5892,6 @@ const messages: TranslationMap = {'settings.composio.loading': 'Laden…','settings.mascot.noCharactersAvailable': 'Es sind noch keine OpenHuman Zeichen verfügbar','skills.uninstall.confirmTitle': '{name} deinstallieren?',- 'conversations.taskKanban.blocked': 'Blockiert',- 'conversations.taskKanban.done': 'Fertig',- 'conversations.taskKanban.pending': 'Ausstehend',- 'conversations.taskKanban.working': 'Arbeiten',- 'conversations.taskKanban.awaitingApproval': 'Warten auf Genehmigung',- 'conversations.taskKanban.ready': 'Bereit',- 'conversations.taskKanban.rejected': 'Abgelehnt',- 'conversations.taskKanban.inProgress': 'In Bearbeitung',- 'conversations.taskKanban.awaitingApprovalColumn': 'Wartet auf Genehmigung',- 'conversations.taskKanban.blockedColumn': 'Blockiert',- 'conversations.taskKanban.evidenceBadge': 'Belege ({count})',- 'conversations.taskKanban.needsInput': 'Diese Aufgaben erfordern Ihre Eingabe',- 'conversations.taskKanban.emptyColumn': 'Keine Aufgaben',- 'conversations.taskKanban.dragHint': 'Ziehen zum Verschieben zwischen Spalten',- 'conversations.taskKanban.movingCard': 'Wird verschoben…',- 'conversations.taskKanban.statusBadge.ready': 'Bereit zum Start',- 'conversations.taskKanban.statusBadge.rejected': 'Abgelehnt','intelligence.memoryChunk.detail.copiedHint': 'kopiert','settings.composio.notYetRouted': 'noch nicht geroutet','devOptions.menuAi': 'KI-Konfiguration',diff --git a/app/src/lib/i18n/en.ts b/app/src/lib/i18n/en.tsindex d6391e1025..bc96c6eb8f 100644--- a/app/src/lib/i18n/en.ts+++ b/app/src/lib/i18n/en.ts@@ -694,9 +694,6 @@ const en: TranslationMap = {'memory.empty': 'No memories yet. Memories are created automatically as you interact.','memory.tab.memory': 'Memory','memory.tab.memoryTree': 'Memory Tree',- 'memory.tab.tasks': 'Tasks',- 'memory.tab.tasksDescription':- 'Create and track tasks: your own to-dos plus the boards your agents build across conversations.','memory.tab.subconscious': 'Subconscious','memory.tab.agentWork': 'Agent Work','memory.tab.agentWorkDescription':@@ -3716,9 +3713,6 @@ const en: TranslationMap = {'Your OpenHuman session expired. Sign in again to load triggers.','composio.triggers.needsConfiguration': 'Needs configuration','composio.triggers.noneAvailable': 'No triggers are currently available for',- 'conversations.taskKanban.moveLeft': 'Move left',- 'conversations.taskKanban.moveRight': 'Move right',- 'conversations.taskKanban.title': 'Tasks','conversations.threadTodo.title': 'Plan','conversations.composer.context.title': 'Context window','conversations.composer.context.input': 'Input',@@ -3726,7 +3720,6 @@ const en: TranslationMap = {'conversations.composer.context.output': 'Output','conversations.composer.context.cost': 'Cost','conversations.composer.command.clear': 'Clear the conversation',- 'conversations.composer.command.goal': 'Set or edit the thread goal','conversations.planReview.title': 'Review plan','conversations.planReview.subtitle':'Approve to run it, reject to discard, or send feedback to revise.',@@ -3736,62 +3729,6 @@ const en: TranslationMap = {'conversations.planReview.feedbackPlaceholder': 'Describe what to change…','conversations.planReview.sendFeedback': 'Send feedback',// Thread-level goal chip (Codex-style per-thread completion contract).- 'conversations.threadGoal.label': 'Goal',- 'conversations.threadGoal.setCta': 'Set goal',- 'conversations.threadGoal.placeholder': 'What should this thread accomplish?',- 'conversations.threadGoal.save': 'Save',- 'conversations.threadGoal.cancel': 'Cancel',- 'conversations.threadGoal.edit': 'Edit goal',- 'conversations.threadGoal.clear': 'Clear goal',- 'conversations.threadGoal.complete': 'Mark complete',- 'conversations.threadGoal.pause': 'Pause',- 'conversations.threadGoal.resume': 'Resume',- 'conversations.threadGoal.tokensSuffix': 'tokens',- 'conversations.threadGoal.status.active': 'Active',- 'conversations.threadGoal.status.paused': 'Paused',- 'conversations.threadGoal.status.budget_limited': 'Budget reached',- 'conversations.threadGoal.status.complete': 'Complete',- 'conversations.taskKanban.approval.default': 'Default',- 'conversations.taskKanban.approval.notRequired': 'Not required',- 'conversations.taskKanban.approval.notRequiredBadge': 'no approval',- 'conversations.taskKanban.approval.required': 'Required',- 'conversations.taskKanban.approval.requiredBadge': 'approval',- 'conversations.taskKanban.approval.requiredBeforeExecution': 'Required before execution',- 'conversations.taskKanban.briefButton': 'Task brief',- 'conversations.taskKanban.briefTitle': 'Task brief',- 'conversations.taskKanban.closeBrief': 'Close task brief',- 'conversations.taskKanban.field.acceptanceCriteria': 'Acceptance criteria',- 'conversations.taskKanban.field.allowedTools': 'Allowed tools',- 'conversations.taskKanban.field.approval': 'Approval',- 'conversations.taskKanban.field.assignedAgent': 'Assigned agent',- 'conversations.taskKanban.field.blocker': 'Blocker',- 'conversations.taskKanban.field.evidence': 'Evidence',- 'conversations.taskKanban.field.notes': 'Notes',- 'conversations.taskKanban.field.objective': 'Objective',- 'conversations.taskKanban.field.plan': 'Plan',- 'conversations.taskKanban.field.status': 'Status',- 'conversations.taskKanban.field.title': 'Title',- 'conversations.taskKanban.saveChanges': 'Save changes',- 'conversations.taskKanban.deleteCard': 'Delete',- 'conversations.taskKanban.workTask': 'Work task',- 'conversations.taskKanban.viewWork': 'View work',- 'conversations.taskKanban.startingTask': 'Starting…',- 'conversations.taskKanban.updateFailed': 'Could not update task; changes were not saved.',- 'conversations.taskKanban.sourcesButton': 'Sources',- 'conversations.taskKanban.source.openExternal': 'Open external task',- 'conversations.taskKanban.source.openExternalShort': 'Open',- 'conversations.taskKanban.source.unknownProvider': 'Unknown source',- 'conversations.taskKanban.source.urgencyValue': 'Urgency {percent}%',- 'conversations.taskKanban.sources.desktopOnly':- 'Task source controls are available in the desktop app.',- 'conversations.taskKanban.sources.title': 'Task sources',- 'conversations.taskKanban.sources.statusEnabled': 'Automatic polling enabled',- 'conversations.taskKanban.sources.manage': 'Manage sources',- 'conversations.taskKanban.source.title': 'Source',- 'conversations.taskKanban.source.sourceId': 'Source ID',- 'conversations.taskKanban.source.externalId': 'External ID',- 'conversations.taskKanban.source.repo': 'Repository',- 'conversations.taskKanban.source.urgency': 'Urgency','conversations.toolTimeline.turn': 'turn','conversations.toolTimeline.step': 'step','conversations.toolTimeline.workerThread': 'worker thread',@@ -3967,47 +3904,6 @@ const en: TranslationMap = {'intelligence.diagram.imageAlt': 'Latest generated OpenHuman architecture diagram','intelligence.diagram.refreshesEvery': 'Refreshes every {seconds}s','intelligence.memoryText.entityTypePrefix': 'Entity type',- 'intelligence.tasks.activeBoardOne': '1 active board across conversations',- 'intelligence.tasks.activeBoardOther': '{count} active boards across conversations',- 'intelligence.tasks.empty': 'No agent task boards yet',- 'intelligence.tasks.emptyHint':- 'Task boards appear here when your agent is running multi-step jobs.',- 'intelligence.tasks.failedToLoad': 'Failed to load',- 'intelligence.tasks.live': 'live',- 'intelligence.tasks.loadingBoards': 'Loading task boards…',- 'intelligence.tasks.threadPrefix': 'Thread {thread}',- 'intelligence.tasks.subtitle': 'Your tasks and agent task boards across the workspace.',- 'intelligence.tasks.newTask': 'New task',- 'intelligence.tasks.personalBoardTitle': 'Agent Tasks',- 'intelligence.tasks.personalEmpty': 'No personal tasks yet',- 'intelligence.tasks.composer.title': 'New task',- 'intelligence.tasks.composer.titleLabel': 'Title',- 'intelligence.tasks.composer.titlePlaceholder': 'What needs to be done?',- 'intelligence.tasks.composer.statusLabel': 'Status',- 'intelligence.tasks.composer.attachLabel': 'Attach to conversation',- 'intelligence.tasks.composer.attachNone': 'Personal (no conversation)',- 'intelligence.tasks.composer.objectiveLabel': 'Objective',- 'intelligence.tasks.composer.objectivePlaceholder': 'Optional: the desired outcome',- 'intelligence.tasks.composer.notesLabel': 'Notes',- 'intelligence.tasks.composer.notesPlaceholder': 'Optional notes',- 'intelligence.tasks.composer.create': 'Create task',- 'intelligence.tasks.composer.creating': 'Creating…',- 'intelligence.tasks.composer.createFailed': "Couldn't create the task",- 'intelligence.tasks.composer.assignAgentLabel': 'Let an agent work on this automatically',- 'intelligence.tasks.composer.assignAgentHint':- 'The task board picks it up and runs it for you. Leave off for a plain personal to-do.',- 'intelligence.tasks.sourceList.subtitle': 'Source tasks waiting to become agent work.',- 'intelligence.tasks.sourceList.empty': 'No source tasks waiting.',- 'intelligence.tasks.sourceList.queued': 'Queued',- 'intelligence.tasks.sourceList.workOnTask': 'Work on task',- 'intelligence.tasks.sourcePlan.title': 'Refine source task',- 'intelligence.tasks.sourcePlan.subtitle':- 'Review the research draft before creating an agent task.',- 'intelligence.tasks.sourcePlan.researchAgent': 'Research agent draft',- 'intelligence.tasks.sourcePlan.approve': 'Approve Plan',- 'intelligence.tasks.sourcePlan.creating': 'Creating task…',- 'intelligence.tasks.sourcePlan.createFailed': "Couldn't create the agent task",- 'intelligence.tasks.workTaskFailed': "Couldn't start work on the task",'intelligence.workTask.sourceTaskHeading': 'Source task:','intelligence.workTask.repositoryLine': '- Repository: {repo}','intelligence.workTask.externalIdLine': '- External ID: {externalId}',@@ -6563,7 +6459,6 @@ const en: TranslationMap = {'composio.integrationSlugsPlaceholder': 'gmail, slack, ...','composio.notYetRouted': 'not yet routed','composio.triggers.loading': 'Loading…',- 'conversations.taskKanban.todo': 'To do','chat.addReaction': 'Add reaction','chat.agentProfile.create': 'Create agent profile','chat.agentProfile.createFailed': 'Could not create agent profile.',@@ -6582,23 +6477,6 @@ const en: TranslationMap = {'settings.composio.loading': 'Loading…','settings.mascot.noCharactersAvailable': 'No OpenHuman characters are available yet','skills.uninstall.confirmTitle': 'Uninstall {name}?',- 'conversations.taskKanban.blocked': 'Blocked',- 'conversations.taskKanban.done': 'Done',- 'conversations.taskKanban.pending': 'Pending',- 'conversations.taskKanban.working': 'Working',- 'conversations.taskKanban.awaitingApproval': 'Awaiting approval',- 'conversations.taskKanban.ready': 'Ready',- 'conversations.taskKanban.rejected': 'Rejected',- 'conversations.taskKanban.inProgress': 'In progress',- 'conversations.taskKanban.awaitingApprovalColumn': 'Awaiting Approval',- 'conversations.taskKanban.blockedColumn': 'Blocked',- 'conversations.taskKanban.evidenceBadge': 'Evidence ({count})',- 'conversations.taskKanban.needsInput': 'These tasks need your input',- 'conversations.taskKanban.emptyColumn': 'No tasks',- 'conversations.taskKanban.dragHint': 'Drag to move between columns',- 'conversations.taskKanban.movingCard': 'Moving…',- 'conversations.taskKanban.statusBadge.ready': 'Ready to start',- 'conversations.taskKanban.statusBadge.rejected': 'Rejected','intelligence.memoryChunk.detail.copiedHint': 'copied','settings.composio.notYetRouted': 'not yet routed',// Developer options menu items (#2225)diff --git a/app/src/lib/i18n/es.ts b/app/src/lib/i18n/es.tsindex b642378fcb..737cf0b8cc 100644--- a/app/src/lib/i18n/es.ts+++ b/app/src/lib/i18n/es.ts@@ -818,9 +818,6 @@ const messages: TranslationMap = {'memory.empty': 'Sin recuerdos aún. Los recuerdos se crean automáticamente mientras interactúas.','memory.tab.memory': 'Memoria','memory.tab.memoryTree': 'Árbol de memoria',- 'memory.tab.tasks': 'Tareas',- 'memory.tab.tasksDescription':- 'Crea y realiza un seguimiento de tareas: tus propios pendientes más los tableros que tus agentes crean a lo largo de las conversaciones.','memory.tab.subconscious': 'Subconsciente','memory.tab.agentWork': 'Trabajo del agente','memory.tab.agentWorkDescription':@@ -3345,9 +3342,6 @@ const messages: TranslationMap = {'Tu sesión de OpenHuman ha caducado. Vuelve a iniciar sesión para cargar los triggers.','composio.triggers.needsConfiguration': 'Necesita configuración','composio.triggers.noneAvailable': 'Actualmente no hay triggers disponibles para',- 'conversations.taskKanban.moveLeft': 'Mover a la izquierda',- 'conversations.taskKanban.moveRight': 'Mover a la derecha',- 'conversations.taskKanban.title': 'Tareas','conversations.threadTodo.title': 'Plan','conversations.composer.context.title': 'Ventana de contexto','conversations.composer.context.input': 'Entrada',@@ -3355,7 +3349,6 @@ const messages: TranslationMap = {'conversations.composer.context.output': 'Salida','conversations.composer.context.cost': 'Coste','conversations.composer.command.clear': 'Vaciar la conversación',- 'conversations.composer.command.goal': 'Definir o editar el objetivo del hilo','conversations.planReview.title': 'Revisar plan','conversations.planReview.subtitle':'Aprueba para ejecutarlo, recházalo para descartarlo o envía comentarios para revisarlo.',@@ -3364,63 +3357,6 @@ const messages: TranslationMap = {'conversations.planReview.feedbackLabel': 'Solicitar cambios','conversations.planReview.feedbackPlaceholder': 'Describe qué cambiar…','conversations.planReview.sendFeedback': 'Enviar comentarios',- 'conversations.threadGoal.label': 'Objetivo',- 'conversations.threadGoal.setCta': 'Definir objetivo',- 'conversations.threadGoal.placeholder': '¿Qué debe lograr este hilo?',- 'conversations.threadGoal.save': 'Guardar',- 'conversations.threadGoal.cancel': 'Cancelar',- 'conversations.threadGoal.edit': 'Editar objetivo',- 'conversations.threadGoal.clear': 'Borrar objetivo',- 'conversations.threadGoal.complete': 'Marcar como completado',- 'conversations.threadGoal.pause': 'Pausar',- 'conversations.threadGoal.resume': 'Reanudar',- 'conversations.threadGoal.tokensSuffix': 'tokens',- 'conversations.threadGoal.status.active': 'Activo',- 'conversations.threadGoal.status.paused': 'En pausa',- 'conversations.threadGoal.status.budget_limited': 'Presupuesto agotado',- 'conversations.threadGoal.status.complete': 'Completado',- 'conversations.taskKanban.approval.default': 'Por defecto',- 'conversations.taskKanban.approval.notRequired': 'No requerido',- 'conversations.taskKanban.approval.notRequiredBadge': 'sin aprobación',- 'conversations.taskKanban.approval.required': 'Requerido',- 'conversations.taskKanban.approval.requiredBadge': 'aprobación',- 'conversations.taskKanban.approval.requiredBeforeExecution': 'Requerido antes de la ejecución',- 'conversations.taskKanban.briefButton': 'Resumen de la tarea',- 'conversations.taskKanban.briefTitle': 'Resumen de la tarea',- 'conversations.taskKanban.closeBrief': 'Cerrar resumen de tarea',- 'conversations.taskKanban.field.acceptanceCriteria': 'Criterios de aceptación',- 'conversations.taskKanban.field.allowedTools': 'Herramientas permitidas',- 'conversations.taskKanban.field.approval': 'Aprobación',- 'conversations.taskKanban.field.assignedAgent': 'Agente asignado',- 'conversations.taskKanban.field.blocker': 'bloqueador',- 'conversations.taskKanban.field.evidence': 'Evidencia',- 'conversations.taskKanban.field.notes': 'Notas',- 'conversations.taskKanban.field.objective': 'Objetivo',- 'conversations.taskKanban.field.plan': 'Plan',- 'conversations.taskKanban.field.status': 'Estado',- 'conversations.taskKanban.field.title': 'Título',- 'conversations.taskKanban.saveChanges': 'Guardar cambios',- 'conversations.taskKanban.deleteCard': 'Borrar',- 'conversations.taskKanban.workTask': 'Trabajar tarea',- 'conversations.taskKanban.viewWork': 'Ver trabajo',- 'conversations.taskKanban.startingTask': 'Iniciando…',- 'conversations.taskKanban.updateFailed':- 'No se pudo actualizar la tarea; los cambios no se guardaron.',- 'conversations.taskKanban.sourcesButton': 'Fuentes',- 'conversations.taskKanban.source.openExternal': 'Abrir tarea externa',- 'conversations.taskKanban.source.openExternalShort': 'Abrir',- 'conversations.taskKanban.source.unknownProvider': 'Fuente desconocida',- 'conversations.taskKanban.source.urgencyValue': 'Urgencia {percent}%',- 'conversations.taskKanban.sources.desktopOnly':- 'Los controles de fuentes de tareas están disponibles en la app de escritorio.',- 'conversations.taskKanban.sources.title': 'Fuentes de tareas',- 'conversations.taskKanban.sources.statusEnabled': 'Sondeo automático activado',- 'conversations.taskKanban.sources.manage': 'Gestionar fuentes',- 'conversations.taskKanban.source.title': 'Fuente',- 'conversations.taskKanban.source.sourceId': 'ID de fuente',- 'conversations.taskKanban.source.externalId': 'ID externo',- 'conversations.taskKanban.source.repo': 'Repositorio',- 'conversations.taskKanban.source.urgency': 'Urgencia','conversations.toolTimeline.turn': 'turno','conversations.toolTimeline.step': 'Paso','conversations.toolTimeline.workerThread': 'hilo de worker',@@ -3510,49 +3446,6 @@ const messages: TranslationMap = {'intelligence.diagram.imageAlt': 'Último diagrama de arquitectura de OpenHuman generado','intelligence.diagram.refreshesEvery': 'Se actualiza cada {seconds}s','intelligence.memoryText.entityTypePrefix': 'Tipo de entidad',- 'intelligence.tasks.activeBoardOne': '1 tablero activo entre conversaciones',- 'intelligence.tasks.activeBoardOther': '{count} tableros activos entre conversaciones',- 'intelligence.tasks.empty': 'Sin tableros de tareas de agente aún',- 'intelligence.tasks.emptyHint': 'Sugerencia de vacío',- 'intelligence.tasks.failedToLoad': 'No se pudo cargar',- 'intelligence.tasks.live': 'en vivo',- 'intelligence.tasks.loadingBoards': 'Cargando tableros de tareas…',- 'intelligence.tasks.threadPrefix': 'Hilo {thread}',- 'intelligence.tasks.subtitle':- 'Sus tareas y paneles de tareas de agentes en todo el espacio de trabajo.',- 'intelligence.tasks.newTask': 'Nueva tarea',- 'intelligence.tasks.personalBoardTitle': 'Tareas del agente',- 'intelligence.tasks.personalEmpty': 'Aún no hay tareas personales',- 'intelligence.tasks.composer.title': 'Nueva tarea',- 'intelligence.tasks.composer.titleLabel': 'Título',- 'intelligence.tasks.composer.titlePlaceholder': '¿Qué hay que hacer?',- 'intelligence.tasks.composer.statusLabel': 'Estado',- 'intelligence.tasks.composer.attachLabel': 'Adjuntar a la conversación',- 'intelligence.tasks.composer.attachNone': 'Personal (sin conversación)',- 'intelligence.tasks.composer.objectiveLabel': 'Objetivo',- 'intelligence.tasks.composer.objectivePlaceholder': 'Opcional: el resultado deseado',- 'intelligence.tasks.composer.notesLabel': 'Notas',- 'intelligence.tasks.composer.notesPlaceholder': 'Notas opcionales',- 'intelligence.tasks.composer.create': 'Crear tarea',- 'intelligence.tasks.composer.creating': 'Creando…',- 'intelligence.tasks.composer.createFailed': 'No se pudo crear la tarea',- 'intelligence.tasks.composer.assignAgentLabel':- 'Deja que un agente se encargue de esto automáticamente',- 'intelligence.tasks.composer.assignAgentHint':- 'El tablero de tareas la toma y la ejecuta por ti. Déjalo desactivado para una tarea personal simple.',- 'intelligence.tasks.sourceList.subtitle':- 'Tareas de fuentes esperando convertirse en trabajo del agente.',- 'intelligence.tasks.sourceList.empty': 'No hay tareas de fuentes en espera.',- 'intelligence.tasks.sourceList.queued': 'En cola',- 'intelligence.tasks.sourceList.workOnTask': 'Trabajar en la tarea',- 'intelligence.tasks.sourcePlan.title': 'Refinar tarea de fuente',- 'intelligence.tasks.sourcePlan.subtitle':- 'Revisa el borrador de investigación antes de crear una tarea de agente.',- 'intelligence.tasks.sourcePlan.researchAgent': 'Borrador del agente investigador',- 'intelligence.tasks.sourcePlan.approve': 'Aprobar plan',- 'intelligence.tasks.sourcePlan.creating': 'Creando tarea…',- 'intelligence.tasks.sourcePlan.createFailed': 'No se pudo crear la tarea del agente',- 'intelligence.tasks.workTaskFailed': 'No se pudo iniciar el trabajo en la tarea','intelligence.workTask.sourceTaskHeading': 'Tarea de origen:','intelligence.workTask.repositoryLine': '- Repositorio: {repo}','intelligence.workTask.externalIdLine': '- ID externo: {externalId}',@@ -5938,7 +5831,6 @@ const messages: TranslationMap = {'composio.integrationSlugsPlaceholder': 'gmail, holgura, ...','composio.notYetRouted': 'aún sin enrutar','composio.triggers.loading': 'Cargando…',- 'conversations.taskKanban.todo': 'Pendiente','chat.addReaction': 'Añadir reacción','chat.agentProfile.create': 'Crear perfil de agente','chat.agentProfile.createFailed': 'No se pudo crear el perfil del agente.',@@ -5957,23 +5849,6 @@ const messages: TranslationMap = {'settings.composio.loading': 'Cargando…','settings.mascot.noCharactersAvailable': 'Aún no hay personajes de OpenHuman disponibles','skills.uninstall.confirmTitle': '¿Desinstalar {name}?',- 'conversations.taskKanban.blocked': 'Bloqueado',- 'conversations.taskKanban.done': 'Completado',- 'conversations.taskKanban.pending': 'Pendiente',- 'conversations.taskKanban.working': 'Laboral',- 'conversations.taskKanban.awaitingApproval': 'En espera de aprobación',- 'conversations.taskKanban.ready': 'Listo',- 'conversations.taskKanban.rejected': 'Rechazado',- 'conversations.taskKanban.inProgress': 'En progreso',- 'conversations.taskKanban.awaitingApprovalColumn': 'En espera de aprobación',- 'conversations.taskKanban.blockedColumn': 'Bloqueado',- 'conversations.taskKanban.evidenceBadge': 'Evidencia ({count})',- 'conversations.taskKanban.needsInput': 'Estas tareas necesitan tu participación',- 'conversations.taskKanban.emptyColumn': 'Sin tareas',- 'conversations.taskKanban.dragHint': 'Arrastra para mover entre columnas',- 'conversations.taskKanban.movingCard': 'Moviendo…',- 'conversations.taskKanban.statusBadge.ready': 'Listo para empezar',- 'conversations.taskKanban.statusBadge.rejected': 'Rechazado','intelligence.memoryChunk.detail.copiedHint': 'copiado','settings.composio.notYetRouted': 'aún sin enrutar','devOptions.menuAi': 'Configuración de IA',diff --git a/app/src/lib/i18n/fr.ts b/app/src/lib/i18n/fr.tsindex 0d79a03342..6c94a8c466 100644--- a/app/src/lib/i18n/fr.ts+++ b/app/src/lib/i18n/fr.ts@@ -830,9 +830,6 @@ const messages: TranslationMap = {"Aucun souvenir pour l'instant. Les souvenirs sont créés automatiquement au fil de tes interactions.",'memory.tab.memory': 'Mémoire','memory.tab.memoryTree': 'Arbre de mémoire',- 'memory.tab.tasks': 'Tâches',- 'memory.tab.tasksDescription':- 'Créez et suivez des tâches: vos propres listes de choses à faire ainsi que les tableaux que vos agents construisent au fil des conversations.','memory.tab.subconscious': 'Subconscient','memory.tab.agentWork': "Travail de l'agent",'memory.tab.agentWorkDescription':@@ -3370,9 +3367,6 @@ const messages: TranslationMap = {'Votre session OpenHuman a expiré. Reconnectez-vous pour charger les déclencheurs.','composio.triggers.needsConfiguration': 'Configuration requise','composio.triggers.noneAvailable': "Aucun déclencheur n'est actuellement disponible pour",- 'conversations.taskKanban.moveLeft': 'Déplacer à gauche',- 'conversations.taskKanban.moveRight': 'Déplacer à droite',- 'conversations.taskKanban.title': 'Tâches','conversations.threadTodo.title': 'Plan','conversations.composer.context.title': 'Fenêtre de contexte','conversations.composer.context.input': 'Entrée',@@ -3380,7 +3374,6 @@ const messages: TranslationMap = {'conversations.composer.context.output': 'Sortie','conversations.composer.context.cost': 'Coût','conversations.composer.command.clear': 'Effacer la conversation',- 'conversations.composer.command.goal': 'Définir ou modifier l’objectif du fil','conversations.planReview.title': 'Examiner le plan','conversations.planReview.subtitle':'Approuvez pour l’exécuter, rejetez pour l’abandonner ou envoyez un retour pour le réviser.',@@ -3389,63 +3382,6 @@ const messages: TranslationMap = {'conversations.planReview.feedbackLabel': 'Demander des modifications','conversations.planReview.feedbackPlaceholder': 'Décrivez ce qu’il faut changer…','conversations.planReview.sendFeedback': 'Envoyer un retour',- 'conversations.threadGoal.label': 'Objectif',- 'conversations.threadGoal.setCta': 'Définir un objectif',- 'conversations.threadGoal.placeholder': 'Que doit accomplir ce fil ?',- 'conversations.threadGoal.save': 'Enregistrer',- 'conversations.threadGoal.cancel': 'Annuler',- 'conversations.threadGoal.edit': 'Modifier l’objectif',- 'conversations.threadGoal.clear': 'Effacer l’objectif',- 'conversations.threadGoal.complete': 'Marquer comme terminé',- 'conversations.threadGoal.pause': 'Suspendre',- 'conversations.threadGoal.resume': 'Reprendre',- 'conversations.threadGoal.tokensSuffix': 'jetons',- 'conversations.threadGoal.status.active': 'Actif',- 'conversations.threadGoal.status.paused': 'En pause',- 'conversations.threadGoal.status.budget_limited': 'Budget atteint',- 'conversations.threadGoal.status.complete': 'Terminé',- 'conversations.taskKanban.approval.default': 'Par défaut',- 'conversations.taskKanban.approval.notRequired': 'Non requis',- 'conversations.taskKanban.approval.notRequiredBadge': 'aucune approbation',- 'conversations.taskKanban.approval.required': 'Requis',- 'conversations.taskKanban.approval.requiredBadge': 'approbation',- 'conversations.taskKanban.approval.requiredBeforeExecution': "Requis avant l'exécution",- 'conversations.taskKanban.briefButton': 'Résumé de la tâche',- 'conversations.taskKanban.briefTitle': 'Résumé de la tâche',- 'conversations.taskKanban.closeBrief': 'Fermer le résumé de la tâche',- 'conversations.taskKanban.field.acceptanceCriteria': "Critères d'acceptation",- 'conversations.taskKanban.field.allowedTools': 'Outils autorisés',- 'conversations.taskKanban.field.approval': 'Approbation',- 'conversations.taskKanban.field.assignedAgent': 'Agent assigné',- 'conversations.taskKanban.field.blocker': 'Blocage',- 'conversations.taskKanban.field.evidence': 'Preuve',- 'conversations.taskKanban.field.notes': 'Notes',- 'conversations.taskKanban.field.objective': 'Objectif',- 'conversations.taskKanban.field.plan': 'Plan',- 'conversations.taskKanban.field.status': 'Statut',- 'conversations.taskKanban.field.title': 'Titre',- 'conversations.taskKanban.saveChanges': 'Enregistrer les modifications',- 'conversations.taskKanban.deleteCard': 'Supprimer',- 'conversations.taskKanban.workTask': 'Travailler la tâche',- 'conversations.taskKanban.viewWork': 'Voir le travail',- 'conversations.taskKanban.startingTask': 'Démarrage…',- 'conversations.taskKanban.updateFailed':- "Impossible de mettre à jour la tâche; les modifications n'ont pas été enregistrées.",- 'conversations.taskKanban.sourcesButton': 'Sources',- 'conversations.taskKanban.source.openExternal': 'Ouvrir la tâche externe',- 'conversations.taskKanban.source.openExternalShort': 'Ouvrir',- 'conversations.taskKanban.source.unknownProvider': 'Source inconnue',- 'conversations.taskKanban.source.urgencyValue': 'Urgence {percent}%',- 'conversations.taskKanban.sources.desktopOnly':- 'Les contrôles des sources de tâches sont disponibles dans l’application de bureau.',- 'conversations.taskKanban.sources.title': 'Sources de tâches',- 'conversations.taskKanban.sources.statusEnabled': 'Interrogation automatique activée',- 'conversations.taskKanban.sources.manage': 'Gérer les sources',- 'conversations.taskKanban.source.title': 'Source',- 'conversations.taskKanban.source.sourceId': 'ID de source',- 'conversations.taskKanban.source.externalId': 'ID externe',- 'conversations.taskKanban.source.repo': 'Dépôt',- 'conversations.taskKanban.source.urgency': 'Urgence','conversations.toolTimeline.turn': 'tour','conversations.toolTimeline.step': 'Étape','conversations.toolTimeline.workerThread': 'fil worker',@@ -3535,48 +3471,6 @@ const messages: TranslationMap = {'intelligence.diagram.imageAlt': "Dernier diagramme d'architecture OpenHuman généré",'intelligence.diagram.refreshesEvery': 'Actualise toutes les {seconds}s','intelligence.memoryText.entityTypePrefix': "Type d'entité",- 'intelligence.tasks.activeBoardOne': '1 tableau actif dans les conversations',- 'intelligence.tasks.activeBoardOther': '{count} tableaux actifs dans les conversations',- 'intelligence.tasks.empty': "Aucun tableau de tâches agent pour l'instant",- 'intelligence.tasks.emptyHint': 'Indice vide',- 'intelligence.tasks.failedToLoad': 'Échec du chargement',- 'intelligence.tasks.live': 'en direct',- 'intelligence.tasks.loadingBoards': 'Chargement des tableaux de tâches…',- 'intelligence.tasks.threadPrefix': 'Fil {thread}',- 'intelligence.tasks.subtitle':- "Vos tâches et tableaux de tâches d'agent dans tout l'espace de travail.",- 'intelligence.tasks.newTask': 'Nouvelle tâche',- 'intelligence.tasks.personalBoardTitle': "Tâches de l'agent",- 'intelligence.tasks.personalEmpty': 'Pas encore de tâches personnelles',- 'intelligence.tasks.composer.title': 'Nouvelle tâche',- 'intelligence.tasks.composer.titleLabel': 'Titre',- 'intelligence.tasks.composer.titlePlaceholder': 'Que faut-il faire?',- 'intelligence.tasks.composer.statusLabel': 'Statut',- 'intelligence.tasks.composer.attachLabel': 'Joindre à la conversation',- 'intelligence.tasks.composer.attachNone': 'Personnel (pas de conversation)',- 'intelligence.tasks.composer.objectiveLabel': 'Objectif',- 'intelligence.tasks.composer.objectivePlaceholder': 'Optionnel: le résultat souhaité',- 'intelligence.tasks.composer.notesLabel': 'Notes',- 'intelligence.tasks.composer.notesPlaceholder': 'Notes facultatives',- 'intelligence.tasks.composer.create': 'Créer une tâche',- 'intelligence.tasks.composer.creating': 'Création…',- 'intelligence.tasks.composer.createFailed': 'Impossible de créer la tâche',- 'intelligence.tasks.composer.assignAgentLabel': "Laisser un agent s'en charger automatiquement",- 'intelligence.tasks.composer.assignAgentHint':- "Le tableau des tâches la prend en charge et l'exécute pour vous. Laissez désactivé pour une simple tâche personnelle.",- 'intelligence.tasks.sourceList.subtitle':- "Tâches de sources en attente de devenir du travail d'agent.",- 'intelligence.tasks.sourceList.empty': 'Aucune tâche de source en attente.',- 'intelligence.tasks.sourceList.queued': 'En file',- 'intelligence.tasks.sourceList.workOnTask': 'Travailler sur la tâche',- 'intelligence.tasks.sourcePlan.title': 'Affiner la tâche source',- 'intelligence.tasks.sourcePlan.subtitle':- "Vérifiez le brouillon de recherche avant de créer une tâche d'agent.",- 'intelligence.tasks.sourcePlan.researchAgent': "Brouillon de l'agent de recherche",- 'intelligence.tasks.sourcePlan.approve': 'Approuver le plan',- 'intelligence.tasks.sourcePlan.creating': 'Création de la tâche…',- 'intelligence.tasks.sourcePlan.createFailed': "Impossible de créer la tâche d'agent",- 'intelligence.tasks.workTaskFailed': 'Impossible de démarrer le travail sur la tâche','intelligence.workTask.sourceTaskHeading': 'Tâche source :','intelligence.workTask.repositoryLine': '- Dépôt : {repo}','intelligence.workTask.externalIdLine': '- ID externe : {externalId}',@@ -5965,7 +5859,6 @@ const messages: TranslationMap = {'composio.integrationSlugsPlaceholder': 'gmail, slack, ...','composio.notYetRouted': 'pas encore routé','composio.triggers.loading': 'Chargement…',- 'conversations.taskKanban.todo': 'À faire','chat.addReaction': 'Ajouter une réaction','chat.agentProfile.create': "Créer un profil d'agent",'chat.agentProfile.createFailed': "Impossible de créer le profil d'agent.",@@ -5984,23 +5877,6 @@ const messages: TranslationMap = {'settings.composio.loading': 'Chargement…','settings.mascot.noCharactersAvailable': "Aucun personnage OpenHuman n'est encore disponible",'skills.uninstall.confirmTitle': 'Désinstaller {name} ?',- 'conversations.taskKanban.blocked': 'Bloqué',- 'conversations.taskKanban.done': 'Terminé',- 'conversations.taskKanban.pending': 'En attente',- 'conversations.taskKanban.working': 'Travailler',- 'conversations.taskKanban.awaitingApproval': "En attente d'approbation",- 'conversations.taskKanban.ready': 'Prêt',- 'conversations.taskKanban.rejected': 'rejeté',- 'conversations.taskKanban.inProgress': 'En cours',- 'conversations.taskKanban.awaitingApprovalColumn': "En attente d'approbation",- 'conversations.taskKanban.blockedColumn': 'Bloqué',- 'conversations.taskKanban.evidenceBadge': 'Preuves ({count})',- 'conversations.taskKanban.needsInput': 'Ces tâches nécessitent votre intervention',- 'conversations.taskKanban.emptyColumn': 'Aucune tâche',- 'conversations.taskKanban.dragHint': 'Glisser pour déplacer entre les colonnes',- 'conversations.taskKanban.movingCard': 'Déplacement…',- 'conversations.taskKanban.statusBadge.ready': 'Prêt à démarrer',- 'conversations.taskKanban.statusBadge.rejected': 'Rejeté','intelligence.memoryChunk.detail.copiedHint': 'copié','settings.composio.notYetRouted': 'pas encore routé','devOptions.menuAi': "Configuration de l'IA",diff --git a/app/src/lib/i18n/hi.ts b/app/src/lib/i18n/hi.tsindex 27c2620d1a..7da6cbe2fb 100644--- a/app/src/lib/i18n/hi.ts+++ b/app/src/lib/i18n/hi.ts@@ -799,9 +799,6 @@ const messages: TranslationMap = {'memory.empty': 'अभी कोई मेमोरी नहीं है। बातचीत के दौरान मेमोरी अपने आप बनती है।','memory.tab.memory': 'मेमोरी','memory.tab.memoryTree': 'मेमोरी ट्री',- 'memory.tab.tasks': 'कार्य',- 'memory.tab.tasksDescription':- 'कार्य बनाएं और ट्रैक करें: आपके अपने टू-डू और साथ ही वे बोर्ड जो आपके एजेंट वार्तालापों में बनाते हैं।','memory.tab.subconscious': 'सबकॉन्शस','memory.tab.agentWork': 'एजेंट कार्य','memory.tab.agentWorkDescription':@@ -3287,9 +3284,6 @@ const messages: TranslationMap = {'आपका OpenHuman सत्र समाप्त हो गया है। ट्रिगर्स लोड करने के लिए फिर से साइन इन करें।','composio.triggers.needsConfiguration': 'कॉन्फिगरेशन ज़रूरी है','composio.triggers.noneAvailable': 'वर्तमान में कोई ट्रिगर उपलब्ध नहीं है',- 'conversations.taskKanban.moveLeft': 'बाएं ले जाएं',- 'conversations.taskKanban.moveRight': 'दाएं ले जाएं',- 'conversations.taskKanban.title': 'टास्क','conversations.threadTodo.title': 'योजना','conversations.composer.context.title': 'कॉन्टेक्स्ट विंडो','conversations.composer.context.input': 'इनपुट',@@ -3297,7 +3291,6 @@ const messages: TranslationMap = {'conversations.composer.context.output': 'आउटपुट','conversations.composer.context.cost': 'लागत','conversations.composer.command.clear': 'बातचीत साफ़ करें',- 'conversations.composer.command.goal': 'थ्रेड का लक्ष्य तय करें या बदलें','conversations.planReview.title': 'योजना की समीक्षा करें','conversations.planReview.subtitle':'इसे चलाने के लिए स्वीकृत करें, हटाने के लिए अस्वीकार करें, या संशोधित करने के लिए प्रतिक्रिया भेजें।',@@ -3306,62 +3299,6 @@ const messages: TranslationMap = {'conversations.planReview.feedbackLabel': 'बदलाव का अनुरोध करें','conversations.planReview.feedbackPlaceholder': 'वर्णन करें कि क्या बदलना है…','conversations.planReview.sendFeedback': 'प्रतिक्रिया भेजें',- 'conversations.threadGoal.label': 'लक्ष्य',- 'conversations.threadGoal.setCta': 'लक्ष्य सेट करें',- 'conversations.threadGoal.placeholder': 'इस थ्रेड को क्या हासिल करना चाहिए?',- 'conversations.threadGoal.save': 'सहेजें',- 'conversations.threadGoal.cancel': 'रद्द करें',- 'conversations.threadGoal.edit': 'लक्ष्य संपादित करें',- 'conversations.threadGoal.clear': 'लक्ष्य हटाएँ',- 'conversations.threadGoal.complete': 'पूर्ण के रूप में चिह्नित करें',- 'conversations.threadGoal.pause': 'रोकें',- 'conversations.threadGoal.resume': 'फिर शुरू करें',- 'conversations.threadGoal.tokensSuffix': 'टोकन',- 'conversations.threadGoal.status.active': 'सक्रिय',- 'conversations.threadGoal.status.paused': 'रुका हुआ',- 'conversations.threadGoal.status.budget_limited': 'बजट समाप्त',- 'conversations.threadGoal.status.complete': 'पूर्ण',- 'conversations.taskKanban.approval.default': 'डिफ़ॉल्ट',- 'conversations.taskKanban.approval.notRequired': 'आवश्यकता नहीं',- 'conversations.taskKanban.approval.notRequiredBadge': 'कोई अनुमोदन नहीं',- 'conversations.taskKanban.approval.required': 'आवश्यक',- 'conversations.taskKanban.approval.requiredBadge': 'अनुमोदन',- 'conversations.taskKanban.approval.requiredBeforeExecution': 'निष्पादन से पहले आवश्यक',- 'conversations.taskKanban.briefButton': 'कार्य संक्षिप्त',- 'conversations.taskKanban.briefTitle': 'कार्य संक्षिप्त',- 'conversations.taskKanban.closeBrief': 'बंद कार्य संक्षिप्त',- 'conversations.taskKanban.field.acceptanceCriteria': 'स्वीकृति मानदंड',- 'conversations.taskKanban.field.allowedTools': 'अनुमति उपकरण',- 'conversations.taskKanban.field.approval': 'स्वीकृति',- 'conversations.taskKanban.field.assignedAgent': 'असाइन एजेंट',- 'conversations.taskKanban.field.blocker': 'ब्लॉकर',- 'conversations.taskKanban.field.evidence': 'प्रमाण',- 'conversations.taskKanban.field.notes': 'नोट',- 'conversations.taskKanban.field.objective': 'उद्देश्य',- 'conversations.taskKanban.field.plan': 'योजना',- 'conversations.taskKanban.field.status': 'स्थिति',- 'conversations.taskKanban.field.title': 'शीर्षक',- 'conversations.taskKanban.saveChanges': 'परिवर्तन सहेजें',- 'conversations.taskKanban.deleteCard': 'Delete',- 'conversations.taskKanban.workTask': 'कार्य शुरू करें',- 'conversations.taskKanban.viewWork': 'कार्य देखें',- 'conversations.taskKanban.startingTask': 'शुरू हो रहा है…',- 'conversations.taskKanban.updateFailed': 'कार्य अद्यतन नहीं कर सका; परिवर्तन बचाया नहीं गया।',- 'conversations.taskKanban.sourcesButton': 'स्रोत',- 'conversations.taskKanban.source.openExternal': 'बाहरी कार्य खोलें',- 'conversations.taskKanban.source.openExternalShort': 'खोलें',- 'conversations.taskKanban.source.unknownProvider': 'अज्ञात स्रोत',- 'conversations.taskKanban.source.urgencyValue': 'तात्कालिकता {percent}%',- 'conversations.taskKanban.sources.desktopOnly':- 'कार्य स्रोत नियंत्रण डेस्कटॉप ऐप में उपलब्ध हैं।',- 'conversations.taskKanban.sources.title': 'कार्य स्रोत',- 'conversations.taskKanban.sources.statusEnabled': 'स्वचालित पोलिंग चालू है',- 'conversations.taskKanban.sources.manage': 'स्रोत प्रबंधित करें',- 'conversations.taskKanban.source.title': 'स्रोत',- 'conversations.taskKanban.source.sourceId': 'स्रोत ID',- 'conversations.taskKanban.source.externalId': 'बाहरी ID',- 'conversations.taskKanban.source.repo': 'रिपॉज़िटरी',- 'conversations.taskKanban.source.urgency': 'तात्कालिकता','conversations.toolTimeline.turn': 'टर्न','conversations.toolTimeline.step': 'चरण','conversations.toolTimeline.workerThread': 'वर्कर थ्रेड',@@ -3450,46 +3387,6 @@ const messages: TranslationMap = {'intelligence.diagram.imageAlt': 'OpenHuman का नवीनतम जेनरेटेड आर्किटेक्चर डायग्राम','intelligence.diagram.refreshesEvery': 'हर {seconds}s पर रीफ्रेश होता है','intelligence.memoryText.entityTypePrefix': 'इकाई प्रकार',- 'intelligence.tasks.activeBoardOne': 'बातचीतों में 1 सक्रिय बोर्ड',- 'intelligence.tasks.activeBoardOther': 'बातचीतों में {count} सक्रिय बोर्ड',- 'intelligence.tasks.empty': 'अभी कोई एजेंट टास्क बोर्ड नहीं',- 'intelligence.tasks.emptyHint': 'खाली संकेत',- 'intelligence.tasks.failedToLoad': 'लोड नहीं हो पाया',- 'intelligence.tasks.live': 'लाइव',- 'intelligence.tasks.loadingBoards': 'टास्क बोर्ड लोड हो रहे हैं…',- 'intelligence.tasks.threadPrefix': 'थ्रेड {thread}',- 'intelligence.tasks.subtitle': 'कार्यस्थल पर आपके कार्य और एजेंट कार्य बोर्ड।',- 'intelligence.tasks.newTask': 'नया कार्य',- 'intelligence.tasks.personalBoardTitle': 'एजेंट कार्य',- 'intelligence.tasks.personalEmpty': 'अभी तक कोई व्यक्तिगत कार्य नहीं',- 'intelligence.tasks.composer.title': 'नया कार्य',- 'intelligence.tasks.composer.titleLabel': 'शीर्षक',- 'intelligence.tasks.composer.titlePlaceholder': 'क्या करना चाहिए?',- 'intelligence.tasks.composer.statusLabel': 'स्थिति',- 'intelligence.tasks.composer.attachLabel': 'बातचीत करने के लिए संलग्न',- 'intelligence.tasks.composer.attachNone': 'व्यक्तिगत (कोई बातचीत नहीं)',- 'intelligence.tasks.composer.objectiveLabel': 'उद्देश्य',- 'intelligence.tasks.composer.objectivePlaceholder': 'वैकल्पिक - वांछित परिणाम',- 'intelligence.tasks.composer.notesLabel': 'नोट',- 'intelligence.tasks.composer.notesPlaceholder': 'वैकल्पिक नोट्स',- 'intelligence.tasks.composer.create': 'कार्य',- 'intelligence.tasks.composer.creating': 'बनाना',- 'intelligence.tasks.composer.createFailed': 'काम नहीं कर सका',- 'intelligence.tasks.composer.assignAgentLabel': 'किसी एजेंट को इसे स्वचालित रूप से करने दें',- 'intelligence.tasks.composer.assignAgentHint':- 'टास्क बोर्ड इसे उठाकर आपके लिए चला देगा। सामान्य निजी कार्य के लिए इसे बंद रखें।',- 'intelligence.tasks.sourceList.subtitle': 'एजेंट कार्य बनने की प्रतीक्षा कर रहे स्रोत कार्य।',- 'intelligence.tasks.sourceList.empty': 'कोई स्रोत कार्य प्रतीक्षा में नहीं है।',- 'intelligence.tasks.sourceList.queued': 'कतार में',- 'intelligence.tasks.sourceList.workOnTask': 'कार्य पर काम करें',- 'intelligence.tasks.sourcePlan.title': 'स्रोत कार्य को परिष्कृत करें',- 'intelligence.tasks.sourcePlan.subtitle':- 'एजेंट कार्य बनाने से पहले शोध ड्राफ्ट की समीक्षा करें।',- 'intelligence.tasks.sourcePlan.researchAgent': 'शोध एजेंट ड्राफ्ट',- 'intelligence.tasks.sourcePlan.approve': 'योजना स्वीकृत करें',- 'intelligence.tasks.sourcePlan.creating': 'कार्य बनाया जा रहा है…',- 'intelligence.tasks.sourcePlan.createFailed': 'एजेंट कार्य नहीं बन सका',- 'intelligence.tasks.workTaskFailed': 'कार्य पर काम शुरू नहीं हो सका','intelligence.workTask.sourceTaskHeading': 'स्रोत कार्य:','intelligence.workTask.repositoryLine': '- रिपॉज़िटरी: {repo}','intelligence.workTask.externalIdLine': '- बाहरी आईडी: {externalId}',@@ -5825,7 +5722,6 @@ const messages: TranslationMap = {'composio.integrationSlugsPlaceholder': 'जीमेल, स्लैक, ...','composio.notYetRouted': 'अभी तक रूट नहीं हुआ','composio.triggers.loading': 'लोड हो रहा है…',- 'conversations.taskKanban.todo': 'करना है','chat.addReaction': 'प्रतिक्रिया जोड़ें','chat.agentProfile.create': 'एजेंट प्रोफ़ाइल बनाएं','chat.agentProfile.createFailed': 'एजेंट प्रोफ़ाइल नहीं बनाई जा सकी.',@@ -5844,23 +5740,6 @@ const messages: TranslationMap = {'settings.composio.loading': 'लोड हो रहा है…','settings.mascot.noCharactersAvailable': 'अभी तक कोई OpenHuman कैरेक्टर उपलब्ध नहीं है','skills.uninstall.confirmTitle': '{name} अनइंस्टॉल करें?',- 'conversations.taskKanban.blocked': 'अवरुद्ध',- 'conversations.taskKanban.done': 'पूर्ण',- 'conversations.taskKanban.pending': 'लंबित',- 'conversations.taskKanban.working': 'कार्य',- 'conversations.taskKanban.awaitingApproval': 'अनुमति देना',- 'conversations.taskKanban.ready': 'रेडी',- 'conversations.taskKanban.rejected': 'अस्वीकार',- 'conversations.taskKanban.inProgress': 'प्रगति पर',- 'conversations.taskKanban.awaitingApprovalColumn': 'अनुमोदन की प्रतीक्षा में',- 'conversations.taskKanban.blockedColumn': 'अवरुद्ध',- 'conversations.taskKanban.evidenceBadge': 'साक्ष्य ({count})',- 'conversations.taskKanban.needsInput': 'इन कार्यों के लिए आपके इनपुट की आवश्यकता है',- 'conversations.taskKanban.emptyColumn': 'कोई कार्य नहीं',- 'conversations.taskKanban.dragHint': 'कॉलम के बीच स्थानांतरित करने के लिए खींचें',- 'conversations.taskKanban.movingCard': 'स्थानांतरित हो रहा है…',- 'conversations.taskKanban.statusBadge.ready': 'शुरू करने के लिए तैयार',- 'conversations.taskKanban.statusBadge.rejected': 'अस्वीकृत','intelligence.memoryChunk.detail.copiedHint': 'कॉपी हो गया','settings.composio.notYetRouted': 'अभी तक रूट नहीं हुआ','devOptions.menuAi': 'एआई कॉन्फ़िगरेशन',diff --git a/app/src/lib/i18n/id.ts b/app/src/lib/i18n/id.tsindex f5f3fab69e..a08c1c7001 100644--- a/app/src/lib/i18n/id.ts+++ b/app/src/lib/i18n/id.ts@@ -808,9 +808,6 @@ const messages: TranslationMap = {'memory.empty': 'Belum ada memori. Memori dibuat otomatis saat Anda berinteraksi.','memory.tab.memory': 'Memori','memory.tab.memoryTree': 'Pohon Memori',- 'memory.tab.tasks': 'Tugas',- 'memory.tab.tasksDescription':- 'Buat dan lacak tugas: to-do Anda sendiri beserta papan yang dibangun agen Anda di berbagai percakapan.','memory.tab.subconscious': 'Bawah sadar','memory.tab.agentWork': 'Kerja agen','memory.tab.agentWorkDescription':@@ -3300,9 +3297,6 @@ const messages: TranslationMap = {'Sesi OpenHuman Anda telah berakhir. Masuk lagi untuk memuat trigger.','composio.triggers.needsConfiguration': 'Perlu konfigurasi','composio.triggers.noneAvailable': 'Tidak ada trigger yang tersedia saat ini untuk',- 'conversations.taskKanban.moveLeft': 'Pindah ke kiri',- 'conversations.taskKanban.moveRight': 'Pindah ke kanan',- 'conversations.taskKanban.title': 'Tugas','conversations.threadTodo.title': 'Rencana','conversations.composer.context.title': 'Jendela konteks','conversations.composer.context.input': 'Masukan',@@ -3310,7 +3304,6 @@ const messages: TranslationMap = {'conversations.composer.context.output': 'Keluaran','conversations.composer.context.cost': 'Biaya','conversations.composer.command.clear': 'Bersihkan percakapan',- 'conversations.composer.command.goal': 'Tetapkan atau ubah tujuan utas','conversations.planReview.title': 'Tinjau rencana','conversations.planReview.subtitle':'Setujui untuk menjalankannya, tolak untuk membuangnya, atau kirim masukan untuk merevisinya.',@@ -3319,62 +3312,6 @@ const messages: TranslationMap = {'conversations.planReview.feedbackLabel': 'Minta perubahan','conversations.planReview.feedbackPlaceholder': 'Jelaskan apa yang harus diubah…','conversations.planReview.sendFeedback': 'Kirim masukan',- 'conversations.threadGoal.label': 'Tujuan',- 'conversations.threadGoal.setCta': 'Tetapkan tujuan',- 'conversations.threadGoal.placeholder': 'Apa yang harus dicapai utas ini?',- 'conversations.threadGoal.save': 'Simpan',- 'conversations.threadGoal.cancel': 'Batal',- 'conversations.threadGoal.edit': 'Edit tujuan',- 'conversations.threadGoal.clear': 'Hapus tujuan',- 'conversations.threadGoal.complete': 'Tandai selesai',- 'conversations.threadGoal.pause': 'Jeda',- 'conversations.threadGoal.resume': 'Lanjutkan',- 'conversations.threadGoal.tokensSuffix': 'token',- 'conversations.threadGoal.status.active': 'Aktif',- 'conversations.threadGoal.status.paused': 'Dijeda',- 'conversations.threadGoal.status.budget_limited': 'Anggaran tercapai',- 'conversations.threadGoal.status.complete': 'Selesai',- 'conversations.taskKanban.approval.default': 'Default',- 'conversations.taskKanban.approval.notRequired': 'Tidak diperlukan',- 'conversations.taskKanban.approval.notRequiredBadge': 'tidak ada persetujuan',- 'conversations.taskKanban.approval.required': 'Diperlukan',- 'conversations.taskKanban.approval.requiredBadge': 'approval',- 'conversations.taskKanban.approval.requiredBeforeExecution': 'Diperlukan sebelum eksekusi',- 'conversations.taskKanban.briefButton': 'Ringkasan tugas',- 'conversations.taskKanban.briefTitle': 'Ringkasan tugas',- 'conversations.taskKanban.closeBrief': 'Tutup ringkasan tugas',- 'conversations.taskKanban.field.acceptanceCriteria': 'Kriteria penerimaan',- 'conversations.taskKanban.field.allowedTools': 'Alat yang diizinkan',- 'conversations.taskKanban.field.approval': 'Persetujuan',- 'conversations.taskKanban.field.assignedAgent': 'Agen yang ditugaskan',- 'conversations.taskKanban.field.blocker': 'Penghambat',- 'conversations.taskKanban.field.evidence': 'Bukti',- 'conversations.taskKanban.field.notes': 'Catatan',- 'conversations.taskKanban.field.objective': 'Tujuan',- 'conversations.taskKanban.field.plan': 'Rencana',- 'conversations.taskKanban.field.status': 'Status',- 'conversations.taskKanban.field.title': 'Judul',- 'conversations.taskKanban.saveChanges': 'Simpan perubahan',- 'conversations.taskKanban.deleteCard': 'Hapus',- 'conversations.taskKanban.workTask': 'Kerjakan tugas',- 'conversations.taskKanban.viewWork': 'Lihat pekerjaan',- 'conversations.taskKanban.startingTask': 'Memulai…',- 'conversations.taskKanban.updateFailed': 'Tak bisa memutakhirkan tugas; perubahan tak disimpan.',- 'conversations.taskKanban.sourcesButton': 'Sumber',- 'conversations.taskKanban.source.openExternal': 'Buka tugas eksternal',- 'conversations.taskKanban.source.openExternalShort': 'Buka',- 'conversations.taskKanban.source.unknownProvider': 'Sumber tidak dikenal',- 'conversations.taskKanban.source.urgencyValue': 'Urgensi {percent}%',- 'conversations.taskKanban.sources.desktopOnly':- 'Kontrol sumber tugas tersedia di aplikasi desktop.',- 'conversations.taskKanban.sources.title': 'Sumber tugas',- 'conversations.taskKanban.sources.statusEnabled': 'Polling otomatis aktif',- 'conversations.taskKanban.sources.manage': 'Kelola sumber',- 'conversations.taskKanban.source.title': 'Sumber',- 'conversations.taskKanban.source.sourceId': 'ID sumber',- 'conversations.taskKanban.source.externalId': 'ID eksternal',- 'conversations.taskKanban.source.repo': 'Repositori',- 'conversations.taskKanban.source.urgency': 'Urgensi','conversations.toolTimeline.turn': 'giliran','conversations.toolTimeline.step': 'Langkah','conversations.toolTimeline.workerThread': 'thread worker',@@ -3463,45 +3400,6 @@ const messages: TranslationMap = {'intelligence.diagram.imageAlt': 'Diagram arsitektur OpenHuman terbaru yang dihasilkan','intelligence.diagram.refreshesEvery': 'Diperbarui setiap {seconds}d','intelligence.memoryText.entityTypePrefix': 'Tipe entitas',- 'intelligence.tasks.activeBoardOne': '1 board aktif di seluruh percakapan',- 'intelligence.tasks.activeBoardOther': '{count} board aktif di seluruh percakapan',- 'intelligence.tasks.empty': 'Belum ada papan tugas agen',- 'intelligence.tasks.emptyHint': 'Petunjuk kosong',- 'intelligence.tasks.failedToLoad': 'Gagal memuat',- 'intelligence.tasks.live': 'langsung',- 'intelligence.tasks.loadingBoards': 'Memuat papan tugas...',- 'intelligence.tasks.threadPrefix': 'Utas {thread}',- 'intelligence.tasks.subtitle': 'Tugas Anda dan papan tugas agen di seluruh ruang kerja.',- 'intelligence.tasks.newTask': 'Tugas baru',- 'intelligence.tasks.personalBoardTitle': 'Tugas Agen',- 'intelligence.tasks.personalEmpty': 'Belum ada tugas pribadi',- 'intelligence.tasks.composer.title': 'Tugas baru',- 'intelligence.tasks.composer.titleLabel': 'Judul',- 'intelligence.tasks.composer.titlePlaceholder': 'Apa yang perlu dilakukan?',- 'intelligence.tasks.composer.statusLabel': 'Status',- 'intelligence.tasks.composer.attachLabel': 'Lampirkan ke percakapan',- 'intelligence.tasks.composer.attachNone': 'Pribadi (tanpa percakapan)',- 'intelligence.tasks.composer.objectiveLabel': 'Tujuan',- 'intelligence.tasks.composer.objectivePlaceholder': 'Opsional: hasil yang diinginkan',- 'intelligence.tasks.composer.notesLabel': 'Catatan',- 'intelligence.tasks.composer.notesPlaceholder': 'Catatan opsional',- 'intelligence.tasks.composer.create': 'Buat tugas',- 'intelligence.tasks.composer.creating': 'Membuat…',- 'intelligence.tasks.composer.createFailed': 'Gagal membuat tugas',- 'intelligence.tasks.composer.assignAgentLabel': 'Biarkan agen mengerjakan ini secara otomatis',- 'intelligence.tasks.composer.assignAgentHint':- 'Papan tugas akan mengambil dan menjalankannya untuk Anda. Biarkan nonaktif untuk tugas pribadi biasa.',- 'intelligence.tasks.sourceList.subtitle': 'Tugas sumber yang menunggu menjadi pekerjaan agen.',- 'intelligence.tasks.sourceList.empty': 'Tidak ada tugas sumber yang menunggu.',- 'intelligence.tasks.sourceList.queued': 'Dalam antrean',- 'intelligence.tasks.sourceList.workOnTask': 'Kerjakan tugas',- 'intelligence.tasks.sourcePlan.title': 'Perjelas tugas sumber',- 'intelligence.tasks.sourcePlan.subtitle': 'Tinjau draf riset sebelum membuat tugas agen.',- 'intelligence.tasks.sourcePlan.researchAgent': 'Draf agen riset',- 'intelligence.tasks.sourcePlan.approve': 'Setujui rencana',- 'intelligence.tasks.sourcePlan.creating': 'Membuat tugas…',- 'intelligence.tasks.sourcePlan.createFailed': 'Gagal membuat tugas agen',- 'intelligence.tasks.workTaskFailed': 'Gagal memulai pengerjaan tugas','intelligence.workTask.sourceTaskHeading': 'Tugas sumber:','intelligence.workTask.repositoryLine': '- Repositori: {repo}','intelligence.workTask.externalIdLine': '- ID eksternal: {externalId}',@@ -5855,7 +5753,6 @@ const messages: TranslationMap = {'composio.integrationSlugsPlaceholder': 'gmail, slack, ...','composio.notYetRouted': 'belum dirutekan','composio.triggers.loading': 'Memuat…',- 'conversations.taskKanban.todo': 'Akan dikerjakan','chat.addReaction': 'Tambahkan reaksi','chat.agentProfile.create': 'Buat profil agen','chat.agentProfile.createFailed': 'Tidak dapat membuat profil agen.',@@ -5874,23 +5771,6 @@ const messages: TranslationMap = {'settings.composio.loading': 'Memuat…','settings.mascot.noCharactersAvailable': 'Belum ada karakter OpenHuman yang tersedia','skills.uninstall.confirmTitle': 'Copot {name}?',- 'conversations.taskKanban.blocked': 'Terhambat',- 'conversations.taskKanban.done': 'Selesai',- 'conversations.taskKanban.pending': 'Tertunda',- 'conversations.taskKanban.working': 'Bekerja',- 'conversations.taskKanban.awaitingApproval': 'Menunggu persetujuan',- 'conversations.taskKanban.ready': 'Siap',- 'conversations.taskKanban.rejected': 'Ditolak',- 'conversations.taskKanban.inProgress': 'Sedang berjalan',- 'conversations.taskKanban.awaitingApprovalColumn': 'Menunggu Persetujuan',- 'conversations.taskKanban.blockedColumn': 'Terhambat',- 'conversations.taskKanban.evidenceBadge': 'Bukti ({count})',- 'conversations.taskKanban.needsInput': 'Tugas-tugas ini membutuhkan masukan Anda',- 'conversations.taskKanban.emptyColumn': 'Tidak ada tugas',- 'conversations.taskKanban.dragHint': 'Seret untuk memindahkan antar kolom',- 'conversations.taskKanban.movingCard': 'Memindahkan…',- 'conversations.taskKanban.statusBadge.ready': 'Siap dimulai',- 'conversations.taskKanban.statusBadge.rejected': 'Ditolak','intelligence.memoryChunk.detail.copiedHint': 'disalin','settings.composio.notYetRouted': 'belum dirutekan','devOptions.menuAi': 'Konfigurasi AI',diff --git a/app/src/lib/i18n/it.ts b/app/src/lib/i18n/it.tsindex 5aab7d099e..a4c64a5d89 100644--- a/app/src/lib/i18n/it.ts+++ b/app/src/lib/i18n/it.ts@@ -821,9 +821,6 @@ const messages: TranslationMap = {'Nessuna memoria ancora. Le memorie vengono create automaticamente mentre interagisci.','memory.tab.memory': 'Memoria','memory.tab.memoryTree': 'Albero della memoria',- 'memory.tab.tasks': 'Attività',- 'memory.tab.tasksDescription':- 'Crea e monitora le attività: i tuoi to-do personali e le board create dagli agenti nelle conversazioni.','memory.tab.subconscious': 'Subconscio','memory.tab.agentWork': "Lavoro dell'agente",'memory.tab.agentWorkDescription':@@ -3342,9 +3339,6 @@ const messages: TranslationMap = {'La tua sessione OpenHuman è scaduta. Accedi di nuovo per caricare i trigger.','composio.triggers.needsConfiguration': 'Richiede configurazione','composio.triggers.noneAvailable': 'Nessun trigger attualmente disponibile per',- 'conversations.taskKanban.moveLeft': 'Sposta a sinistra',- 'conversations.taskKanban.moveRight': 'Sposta a destra',- 'conversations.taskKanban.title': 'Attività','conversations.threadTodo.title': 'Piano','conversations.composer.context.title': 'Finestra di contesto','conversations.composer.context.input': 'Input',@@ -3352,7 +3346,6 @@ const messages: TranslationMap = {'conversations.composer.context.output': 'Output','conversations.composer.context.cost': 'Costo','conversations.composer.command.clear': 'Svuota la conversazione',- 'conversations.composer.command.goal': 'Imposta o modifica l’obiettivo della conversazione','conversations.planReview.title': 'Rivedi il piano','conversations.planReview.subtitle':'Approva per eseguirlo, rifiuta per scartarlo o invia un feedback per rivederlo.',@@ -3361,63 +3354,6 @@ const messages: TranslationMap = {'conversations.planReview.feedbackLabel': 'Richiedi modifiche','conversations.planReview.feedbackPlaceholder': 'Descrivi cosa cambiare…','conversations.planReview.sendFeedback': 'Invia feedback',- 'conversations.threadGoal.label': 'Obiettivo',- 'conversations.threadGoal.setCta': 'Imposta obiettivo',- 'conversations.threadGoal.placeholder': 'Cosa deve realizzare questa conversazione?',- 'conversations.threadGoal.save': 'Salva',- 'conversations.threadGoal.cancel': 'Annulla',- 'conversations.threadGoal.edit': 'Modifica obiettivo',- 'conversations.threadGoal.clear': 'Cancella obiettivo',- 'conversations.threadGoal.complete': 'Segna come completato',- 'conversations.threadGoal.pause': 'Sospendi',- 'conversations.threadGoal.resume': 'Riprendi',- 'conversations.threadGoal.tokensSuffix': 'token',- 'conversations.threadGoal.status.active': 'Attivo',- 'conversations.threadGoal.status.paused': 'In pausa',- 'conversations.threadGoal.status.budget_limited': 'Budget raggiunto',- 'conversations.threadGoal.status.complete': 'Completato',- 'conversations.taskKanban.approval.default': 'Predefinito',- 'conversations.taskKanban.approval.notRequired': 'Non richiesto',- 'conversations.taskKanban.approval.notRequiredBadge': 'nessuna approvazione',- 'conversations.taskKanban.approval.required': 'Obbligatorio',- 'conversations.taskKanban.approval.requiredBadge': 'approvazione',- 'conversations.taskKanban.approval.requiredBeforeExecution': "Richiesto prima dell'esecuzione",- 'conversations.taskKanban.briefButton': 'Breve compito',- 'conversations.taskKanban.briefTitle': 'Breve compito',- 'conversations.taskKanban.closeBrief': 'Chiudi riepilogo attività',- 'conversations.taskKanban.field.acceptanceCriteria': 'Criteri di accettazione',- 'conversations.taskKanban.field.allowedTools': 'Strumenti consentiti',- 'conversations.taskKanban.field.approval': 'Approvazione',- 'conversations.taskKanban.field.assignedAgent': 'Agente assegnato',- 'conversations.taskKanban.field.blocker': 'Bloccatore',- 'conversations.taskKanban.field.evidence': 'Prova',- 'conversations.taskKanban.field.notes': 'Note',- 'conversations.taskKanban.field.objective': 'Obiettivo',- 'conversations.taskKanban.field.plan': 'Piano',- 'conversations.taskKanban.field.status': 'Stato',- 'conversations.taskKanban.field.title': 'Titolo',- 'conversations.taskKanban.saveChanges': 'Salva modifiche',- 'conversations.taskKanban.deleteCard': 'Elimina',- 'conversations.taskKanban.workTask': "Lavora sull'attività",- 'conversations.taskKanban.viewWork': 'Visualizza lavoro',- 'conversations.taskKanban.startingTask': 'Avvio…',- 'conversations.taskKanban.updateFailed':- "Impossibile aggiornare l'attività; le modifiche non sono state salvate.",- 'conversations.taskKanban.sourcesButton': 'Fonti',- 'conversations.taskKanban.source.openExternal': 'Apri attività esterna',- 'conversations.taskKanban.source.openExternalShort': 'Apri',- 'conversations.taskKanban.source.unknownProvider': 'Fonte sconosciuta',- 'conversations.taskKanban.source.urgencyValue': 'Urgenza {percent}%',- 'conversations.taskKanban.sources.desktopOnly':- 'I controlli delle fonti attività sono disponibili nell’app desktop.',- 'conversations.taskKanban.sources.title': 'Fonti attività',- 'conversations.taskKanban.sources.statusEnabled': 'Polling automatico attivo',- 'conversations.taskKanban.sources.manage': 'Gestisci fonti',- 'conversations.taskKanban.source.title': 'Fonte',- 'conversations.taskKanban.source.sourceId': 'ID fonte',- 'conversations.taskKanban.source.externalId': 'ID esterno',- 'conversations.taskKanban.source.repo': 'Repository',- 'conversations.taskKanban.source.urgency': 'Urgenza','conversations.toolTimeline.turn': 'turno','conversations.toolTimeline.step': 'Passo','conversations.toolTimeline.workerThread': 'thread worker',@@ -3507,49 +3443,6 @@ const messages: TranslationMap = {'intelligence.diagram.imageAlt': "Ultimo diagramma dell'architettura OpenHuman generato",'intelligence.diagram.refreshesEvery': 'Si aggiorna ogni {seconds}s','intelligence.memoryText.entityTypePrefix': 'Tipo di entità',- 'intelligence.tasks.activeBoardOne': '1 board attiva tra le conversazioni',- 'intelligence.tasks.activeBoardOther': '{count} board attive tra le conversazioni',- 'intelligence.tasks.empty': "Nessuna board di attività dell'agente",- 'intelligence.tasks.emptyHint': 'Suggerimento vuoto',- 'intelligence.tasks.failedToLoad': 'Caricamento fallito',- 'intelligence.tasks.live': 'in tempo reale',- 'intelligence.tasks.loadingBoards': 'Caricamento board attività…',- 'intelligence.tasks.threadPrefix': 'Discussione {thread}',- 'intelligence.tasks.subtitle':- 'I tuoi compiti e le bacheche dei compiti degli agenti in tutto lo spazio di lavoro.',- 'intelligence.tasks.newTask': 'Nuovo compito',- 'intelligence.tasks.personalBoardTitle': "Compiti dell'agente",- 'intelligence.tasks.personalEmpty': 'Ancora nessun compito personale',- 'intelligence.tasks.composer.title': 'Nuovo compito',- 'intelligence.tasks.composer.titleLabel': 'Titolo',- 'intelligence.tasks.composer.titlePlaceholder': 'Cosa deve essere fatto?',- 'intelligence.tasks.composer.statusLabel': 'Stato',- 'intelligence.tasks.composer.attachLabel': 'Allega alla conversazione',- 'intelligence.tasks.composer.attachNone': 'Personale (nessuna conversazione)',- 'intelligence.tasks.composer.objectiveLabel': 'Obiettivo',- 'intelligence.tasks.composer.objectivePlaceholder': 'Facoltativo: il risultato desiderato',- 'intelligence.tasks.composer.notesLabel': 'Note',- 'intelligence.tasks.composer.notesPlaceholder': 'Note opzionali',- 'intelligence.tasks.composer.create': 'Crea attività',- 'intelligence.tasks.composer.creating': 'Creando…',- 'intelligence.tasks.composer.createFailed': 'Impossibile creare il task',- 'intelligence.tasks.composer.assignAgentLabel':- 'Lascia che un agente se ne occupi automaticamente',- 'intelligence.tasks.composer.assignAgentHint':- 'La bacheca delle attività la prende in carico e la esegue per te. Lascia disattivato per una semplice attività personale.',- 'intelligence.tasks.sourceList.subtitle':- "Attività dalle fonti in attesa di diventare lavoro dell'agente.",- 'intelligence.tasks.sourceList.empty': 'Nessuna attività da fonti in attesa.',- 'intelligence.tasks.sourceList.queued': 'In coda',- 'intelligence.tasks.sourceList.workOnTask': 'Lavora sull’attività',- 'intelligence.tasks.sourcePlan.title': 'Perfeziona attività sorgente',- 'intelligence.tasks.sourcePlan.subtitle':- "Rivedi la bozza di ricerca prima di creare un'attività agente.",- 'intelligence.tasks.sourcePlan.researchAgent': "Bozza dell'agente di ricerca",- 'intelligence.tasks.sourcePlan.approve': 'Approva piano',- 'intelligence.tasks.sourcePlan.creating': 'Creazione attività…',- 'intelligence.tasks.sourcePlan.createFailed': "Impossibile creare l'attività agente",- 'intelligence.tasks.workTaskFailed': "Impossibile avviare il lavoro sull'attività",'intelligence.workTask.sourceTaskHeading': 'Attività di origine:','intelligence.workTask.repositoryLine': '- Repository (deposito): {repo}','intelligence.workTask.externalIdLine': '- ID esterno: {externalId}',@@ -5921,7 +5814,6 @@ const messages: TranslationMap = {'composio.integrationSlugsPlaceholder': 'gmail, slack, ...','composio.notYetRouted': 'non ancora instradato','composio.triggers.loading': 'Caricamento…',- 'conversations.taskKanban.todo': 'Da fare','chat.addReaction': 'Aggiungi reazione','chat.agentProfile.create': 'Crea profilo agente','chat.agentProfile.createFailed': 'Impossibile creare il profilo agente.',@@ -5940,23 +5832,6 @@ const messages: TranslationMap = {'settings.composio.loading': 'Caricamento…','settings.mascot.noCharactersAvailable': 'Nessun personaggio OpenHuman disponibile','skills.uninstall.confirmTitle': 'Disinstallare {name}?',- 'conversations.taskKanban.blocked': 'Bloccato',- 'conversations.taskKanban.done': 'Fatto',- 'conversations.taskKanban.pending': 'In sospeso',- 'conversations.taskKanban.working': 'Lavorando',- 'conversations.taskKanban.awaitingApproval': 'In attesa di approvazione',- 'conversations.taskKanban.ready': 'Pronto',- 'conversations.taskKanban.rejected': 'Rifiutato',- 'conversations.taskKanban.inProgress': 'In corso',- 'conversations.taskKanban.awaitingApprovalColumn': 'In attesa di approvazione',- 'conversations.taskKanban.blockedColumn': 'Bloccato',- 'conversations.taskKanban.evidenceBadge': 'Prove ({count})',- 'conversations.taskKanban.needsInput': 'Queste attività richiedono il tuo contributo',- 'conversations.taskKanban.emptyColumn': 'Nessuna attività',- 'conversations.taskKanban.dragHint': 'Trascina per spostare tra le colonne',- 'conversations.taskKanban.movingCard': 'Spostamento…',- 'conversations.taskKanban.statusBadge.ready': 'Pronto per iniziare',- 'conversations.taskKanban.statusBadge.rejected': 'Rifiutato','intelligence.memoryChunk.detail.copiedHint': 'copiato','settings.composio.notYetRouted': 'non ancora instradato','devOptions.menuAi': 'Configurazione AI',diff --git a/app/src/lib/i18n/ko.ts b/app/src/lib/i18n/ko.tsindex aea323650c..4a15689826 100644--- a/app/src/lib/i18n/ko.ts+++ b/app/src/lib/i18n/ko.ts@@ -791,9 +791,6 @@ const messages: TranslationMap = {'memory.empty': '아직 메모리가 없습니다. 메모리는 상호작용하면서 자동으로 생성됩니다.','memory.tab.memory': '메모리','memory.tab.memoryTree': '메모리 트리',- 'memory.tab.tasks': '작업',- 'memory.tab.tasksDescription':- '작업을 만들고 추적하세요: 본인의 할 일 목록과 에이전트가 대화를 통해 구성한 보드가 모두 포함됩니다.','memory.tab.subconscious': '잠재의식','memory.tab.agentWork': '에이전트 작업','memory.tab.agentWorkDescription':@@ -3250,9 +3247,6 @@ const messages: TranslationMap = {'OpenHuman 세션이 만료되었습니다. 트리거를 불러오려면 다시 로그인하세요.','composio.triggers.needsConfiguration': '구성이 필요합니다','composio.triggers.noneAvailable': '현재 사용할 수 있는 트리거가 없습니다:',- 'conversations.taskKanban.moveLeft': '왼쪽으로 이동',- 'conversations.taskKanban.moveRight': '오른쪽으로 이동',- 'conversations.taskKanban.title': '작업','conversations.threadTodo.title': '계획','conversations.composer.context.title': '컨텍스트 창','conversations.composer.context.input': '입력',@@ -3260,7 +3254,6 @@ const messages: TranslationMap = {'conversations.composer.context.output': '출력','conversations.composer.context.cost': '비용','conversations.composer.command.clear': '대화 비우기',- 'conversations.composer.command.goal': '스레드 목표 설정 또는 수정','conversations.planReview.title': '계획 검토','conversations.planReview.subtitle':'실행하려면 승인하고, 버리려면 거부하거나, 수정하려면 의견을 보내세요.',@@ -3269,63 +3262,6 @@ const messages: TranslationMap = {'conversations.planReview.feedbackLabel': '변경 요청','conversations.planReview.feedbackPlaceholder': '무엇을 바꿀지 설명하세요…','conversations.planReview.sendFeedback': '의견 보내기',- 'conversations.threadGoal.label': '목표',- 'conversations.threadGoal.setCta': '목표 설정',- 'conversations.threadGoal.placeholder': '이 스레드가 무엇을 달성해야 하나요?',- 'conversations.threadGoal.save': '저장',- 'conversations.threadGoal.cancel': '취소',- 'conversations.threadGoal.edit': '목표 편집',- 'conversations.threadGoal.clear': '목표 지우기',- 'conversations.threadGoal.complete': '완료로 표시',- 'conversations.threadGoal.pause': '일시 중지',- 'conversations.threadGoal.resume': '재개',- 'conversations.threadGoal.tokensSuffix': '토큰',- 'conversations.threadGoal.status.active': '활성',- 'conversations.threadGoal.status.paused': '일시 중지됨',- 'conversations.threadGoal.status.budget_limited': '예산 도달',- 'conversations.threadGoal.status.complete': '완료',- 'conversations.taskKanban.approval.default': '기본값',- 'conversations.taskKanban.approval.notRequired': '필요 없음',- 'conversations.taskKanban.approval.notRequiredBadge': '승인 없음',- 'conversations.taskKanban.approval.required': '필수',- 'conversations.taskKanban.approval.requiredBadge': '승인',- 'conversations.taskKanban.approval.requiredBeforeExecution': '실행 전 필수',- 'conversations.taskKanban.briefButton': '작업 브리프',- 'conversations.taskKanban.briefTitle': '작업 브리프',- 'conversations.taskKanban.closeBrief': '작업 브리프 닫기',- 'conversations.taskKanban.field.acceptanceCriteria': '수락 기준',- 'conversations.taskKanban.field.allowedTools': '허용된 도구',- 'conversations.taskKanban.field.approval': '승인',- 'conversations.taskKanban.field.assignedAgent': '할당된 에이전트',- 'conversations.taskKanban.field.blocker': '차단 요소',- 'conversations.taskKanban.field.evidence': '증거',- 'conversations.taskKanban.field.notes': '메모',- 'conversations.taskKanban.field.objective': '목표',- 'conversations.taskKanban.field.plan': '계획',- 'conversations.taskKanban.field.status': '상태',- 'conversations.taskKanban.field.title': '제목',- 'conversations.taskKanban.saveChanges': '변경 사항 저장',- 'conversations.taskKanban.deleteCard': '삭제',- 'conversations.taskKanban.workTask': '작업 시작',- 'conversations.taskKanban.viewWork': '작업 보기',- 'conversations.taskKanban.startingTask': '시작 중…',- 'conversations.taskKanban.updateFailed':- '작업을 업데이트할 수 없어 변경 사항이 저장되지 않았습니다.',- 'conversations.taskKanban.sourcesButton': '소스',- 'conversations.taskKanban.source.openExternal': '외부 작업 열기',- 'conversations.taskKanban.source.openExternalShort': '열기',- 'conversations.taskKanban.source.unknownProvider': '알 수 없는 소스',- 'conversations.taskKanban.source.urgencyValue': '긴급도 {percent}%',- 'conversations.taskKanban.sources.desktopOnly':- '작업 소스 제어는 데스크톱 앱에서 사용할 수 있습니다.',- 'conversations.taskKanban.sources.title': '작업 소스',- 'conversations.taskKanban.sources.statusEnabled': '자동 폴링 켜짐',- 'conversations.taskKanban.sources.manage': '소스 관리',- 'conversations.taskKanban.source.title': '소스',- 'conversations.taskKanban.source.sourceId': '소스 ID',- 'conversations.taskKanban.source.externalId': '외부 ID',- 'conversations.taskKanban.source.repo': '저장소',- 'conversations.taskKanban.source.urgency': '긴급도','conversations.toolTimeline.turn': '턴','conversations.toolTimeline.step': '단계','conversations.toolTimeline.workerThread': '워커 스레드',@@ -3414,45 +3350,6 @@ const messages: TranslationMap = {'intelligence.diagram.imageAlt': '최신 생성된 OpenHuman 아키텍처 다이어그램','intelligence.diagram.refreshesEvery': '{seconds}초마다 새로 고침','intelligence.memoryText.entityTypePrefix': '엔터티 유형',- 'intelligence.tasks.activeBoardOne': '대화 전반에 활성 보드 1개',- 'intelligence.tasks.activeBoardOther': '대화 전반에 활성 보드 {count}개',- 'intelligence.tasks.empty': '아직 에이전트 작업 보드가 없습니다',- 'intelligence.tasks.emptyHint': '빈 상태 안내',- 'intelligence.tasks.failedToLoad': '불러오지 못했습니다',- 'intelligence.tasks.live': '실시간',- 'intelligence.tasks.loadingBoards': '작업 보드 불러오는 중…',- 'intelligence.tasks.threadPrefix': '스레드 {thread}',- 'intelligence.tasks.subtitle': '워크스페이스 전반의 내 작업과 에이전트 작업 보드입니다.',- 'intelligence.tasks.newTask': '새 작업',- 'intelligence.tasks.personalBoardTitle': '에이전트 작업',- 'intelligence.tasks.personalEmpty': '아직 개인 작업이 없습니다',- 'intelligence.tasks.composer.title': '새 작업',- 'intelligence.tasks.composer.titleLabel': '제목',- 'intelligence.tasks.composer.titlePlaceholder': '무엇을 해야 하나요?',- 'intelligence.tasks.composer.statusLabel': '상태',- 'intelligence.tasks.composer.attachLabel': '대화에 첨부',- 'intelligence.tasks.composer.attachNone': '개인용(대화 없음)',- 'intelligence.tasks.composer.objectiveLabel': '목표',- 'intelligence.tasks.composer.objectivePlaceholder': '선택 사항: 원하는 결과',- 'intelligence.tasks.composer.notesLabel': '메모',- 'intelligence.tasks.composer.notesPlaceholder': '선택 사항 메모',- 'intelligence.tasks.composer.create': '작업 만들기',- 'intelligence.tasks.composer.creating': '만드는 중…',- 'intelligence.tasks.composer.createFailed': '작업을 만들 수 없습니다',- 'intelligence.tasks.composer.assignAgentLabel': '에이전트가 이 작업을 자동으로 처리하도록 하기',- 'intelligence.tasks.composer.assignAgentHint':- '작업 보드가 이를 가져와 대신 실행합니다. 일반 개인 할 일은 꺼 두세요.',- 'intelligence.tasks.sourceList.subtitle': '에이전트 작업으로 전환될 소스 작업입니다.',- 'intelligence.tasks.sourceList.empty': '대기 중인 소스 작업이 없습니다.',- 'intelligence.tasks.sourceList.queued': '대기열에 추가됨',- 'intelligence.tasks.sourceList.workOnTask': '작업 시작',- 'intelligence.tasks.sourcePlan.title': '소스 작업 다듬기',- 'intelligence.tasks.sourcePlan.subtitle': '에이전트 작업을 만들기 전에 리서치 초안을 검토하세요.',- 'intelligence.tasks.sourcePlan.researchAgent': '리서치 에이전트 초안',- 'intelligence.tasks.sourcePlan.approve': '계획 승인',- 'intelligence.tasks.sourcePlan.creating': '작업 만드는 중…',- 'intelligence.tasks.sourcePlan.createFailed': '에이전트 작업을 만들 수 없습니다',- 'intelligence.tasks.workTaskFailed': '작업을 시작할 수 없습니다','intelligence.workTask.sourceTaskHeading': '소스 작업:','intelligence.workTask.repositoryLine': '- 저장소: {repo}','intelligence.workTask.externalIdLine': '- 외부 ID: {externalId}',@@ -5757,7 +5654,6 @@ const messages: TranslationMap = {'composio.integrationSlugsPlaceholder': 'gmail, slack, ...','composio.notYetRouted': '아직 라우팅되지 않음','composio.triggers.loading': '불러오는 중…',- 'conversations.taskKanban.todo': '할 일','chat.addReaction': '반응 추가','chat.agentProfile.create': '에이전트 프로필 생성','chat.agentProfile.createFailed': '에이전트 프로필을 생성할 수 없습니다.',@@ -5776,23 +5672,6 @@ const messages: TranslationMap = {'settings.composio.loading': '불러오는 중…','settings.mascot.noCharactersAvailable': '아직 사용할 수 있는 OpenHuman 캐릭터가 없습니다','skills.uninstall.confirmTitle': '{name}을(를) 제거하시겠습니까?',- 'conversations.taskKanban.blocked': '차단됨',- 'conversations.taskKanban.done': '완료',- 'conversations.taskKanban.pending': '대기 중',- 'conversations.taskKanban.working': '작업 중',- 'conversations.taskKanban.awaitingApproval': '승인 대기 중',- 'conversations.taskKanban.ready': '준비됨',- 'conversations.taskKanban.rejected': '거부됨',- 'conversations.taskKanban.inProgress': '진행 중',- 'conversations.taskKanban.awaitingApprovalColumn': '승인 대기 중',- 'conversations.taskKanban.blockedColumn': '차단됨',- 'conversations.taskKanban.evidenceBadge': '증거 ({count})',- 'conversations.taskKanban.needsInput': '이 작업들은 귀하의 입력이 필요합니다',- 'conversations.taskKanban.emptyColumn': '작업 없음',- 'conversations.taskKanban.dragHint': '열 사이를 이동하려면 끌어다 놓으세요',- 'conversations.taskKanban.movingCard': '이동 중…',- 'conversations.taskKanban.statusBadge.ready': '시작 준비됨',- 'conversations.taskKanban.statusBadge.rejected': '거부됨','intelligence.memoryChunk.detail.copiedHint': '복사됨','settings.composio.notYetRouted': '아직 라우팅되지 않음','devOptions.menuAi': 'AI 구성',diff --git a/app/src/lib/i18n/pl.ts b/app/src/lib/i18n/pl.tsindex c9980b44e6..1f8de98402 100644--- a/app/src/lib/i18n/pl.ts+++ b/app/src/lib/i18n/pl.ts@@ -815,9 +815,6 @@ const messages: TranslationMap = {'Brak wspomnień. Wspomnienia powstają automatycznie podczas korzystania z aplikacji.','memory.tab.memory': 'Pamięć','memory.tab.memoryTree': 'Drzewo pamięci',- 'memory.tab.tasks': 'Zadania',- 'memory.tab.tasksDescription':- 'Twórz i śledź zadania: własne listy do zrobienia oraz tablice, które Twoi agenci budują w rozmowach.','memory.tab.subconscious': 'Podświadomość','memory.tab.agentWork': 'Praca agenta','memory.tab.agentWorkDescription':@@ -3328,9 +3325,6 @@ const messages: TranslationMap = {'Twoja sesja OpenHuman wygasła. Zaloguj się ponownie, aby wczytać wyzwalacze.','composio.triggers.needsConfiguration': 'Wymaga konfiguracji','composio.triggers.noneAvailable': 'Brak dostępnych wyzwalaczy dla',- 'conversations.taskKanban.moveLeft': 'Przesuń w lewo',- 'conversations.taskKanban.moveRight': 'Przesuń w prawo',- 'conversations.taskKanban.title': 'Zadania','conversations.threadTodo.title': 'Plan','conversations.composer.context.title': 'Okno kontekstu','conversations.composer.context.input': 'Wejście',@@ -3338,7 +3332,6 @@ const messages: TranslationMap = {'conversations.composer.context.output': 'Wyjście','conversations.composer.context.cost': 'Koszt','conversations.composer.command.clear': 'Wyczyść rozmowę',- 'conversations.composer.command.goal': 'Ustaw lub zmień cel wątku','conversations.planReview.title': 'Przejrzyj plan','conversations.planReview.subtitle':'Zatwierdź, aby go uruchomić, odrzuć, aby go odrzucić, lub wyślij opinię, aby go poprawić.',@@ -3347,63 +3340,6 @@ const messages: TranslationMap = {'conversations.planReview.feedbackLabel': 'Poproś o zmiany','conversations.planReview.feedbackPlaceholder': 'Opisz, co zmienić…','conversations.planReview.sendFeedback': 'Wyślij opinię',- 'conversations.threadGoal.label': 'Cel',- 'conversations.threadGoal.setCta': 'Ustaw cel',- 'conversations.threadGoal.placeholder': 'Co ma osiągnąć ten wątek?',- 'conversations.threadGoal.save': 'Zapisz',- 'conversations.threadGoal.cancel': 'Anuluj',- 'conversations.threadGoal.edit': 'Edytuj cel',- 'conversations.threadGoal.clear': 'Wyczyść cel',- 'conversations.threadGoal.complete': 'Oznacz jako ukończone',- 'conversations.threadGoal.pause': 'Wstrzymaj',- 'conversations.threadGoal.resume': 'Wznów',- 'conversations.threadGoal.tokensSuffix': 'tokeny',- 'conversations.threadGoal.status.active': 'Aktywny',- 'conversations.threadGoal.status.paused': 'Wstrzymany',- 'conversations.threadGoal.status.budget_limited': 'Budżet wyczerpany',- 'conversations.threadGoal.status.complete': 'Ukończony',- 'conversations.taskKanban.approval.default': 'Domyślne',- 'conversations.taskKanban.approval.notRequired': 'Niewymagane',- 'conversations.taskKanban.approval.notRequiredBadge': 'bez zatwierdzenia',- 'conversations.taskKanban.approval.required': 'Wymagane',- 'conversations.taskKanban.approval.requiredBadge': 'zatwierdzenie',- 'conversations.taskKanban.approval.requiredBeforeExecution': 'Wymagane przed wykonaniem',- 'conversations.taskKanban.briefButton': 'Brief zadania',- 'conversations.taskKanban.briefTitle': 'Brief zadania',- 'conversations.taskKanban.closeBrief': 'Zamknij brief zadania',- 'conversations.taskKanban.field.acceptanceCriteria': 'Kryteria akceptacji',- 'conversations.taskKanban.field.allowedTools': 'Dozwolone narzędzia',- 'conversations.taskKanban.field.approval': 'Zatwierdzenie',- 'conversations.taskKanban.field.assignedAgent': 'Przypisany agent',- 'conversations.taskKanban.field.blocker': 'Bloker',- 'conversations.taskKanban.field.evidence': 'Dowody',- 'conversations.taskKanban.field.notes': 'Notatki',- 'conversations.taskKanban.field.objective': 'Cel',- 'conversations.taskKanban.field.plan': 'Plan',- 'conversations.taskKanban.field.status': 'Status',- 'conversations.taskKanban.field.title': 'Tytuł',- 'conversations.taskKanban.saveChanges': 'Zapisz zmiany',- 'conversations.taskKanban.deleteCard': 'Usuń',- 'conversations.taskKanban.workTask': 'Pracuj nad zadaniem',- 'conversations.taskKanban.viewWork': 'Zobacz pracę',- 'conversations.taskKanban.startingTask': 'Uruchamianie…',- 'conversations.taskKanban.updateFailed':- 'Nie udało się zaktualizować zadania; zmian nie zapisano.',- 'conversations.taskKanban.sourcesButton': 'Źródła',- 'conversations.taskKanban.source.openExternal': 'Otwórz zadanie zewnętrzne',- 'conversations.taskKanban.source.openExternalShort': 'Otwórz',- 'conversations.taskKanban.source.unknownProvider': 'Nieznane źródło',- 'conversations.taskKanban.source.urgencyValue': 'Pilność {percent}%',- 'conversations.taskKanban.sources.desktopOnly':- 'Kontrolki źródeł zadań są dostępne w aplikacji desktopowej.',- 'conversations.taskKanban.sources.title': 'Źródła zadań',- 'conversations.taskKanban.sources.statusEnabled': 'Automatyczne odpytywanie włączone',- 'conversations.taskKanban.sources.manage': 'Zarządzaj źródłami',- 'conversations.taskKanban.source.title': 'Źródło',- 'conversations.taskKanban.source.sourceId': 'ID źródła',- 'conversations.taskKanban.source.externalId': 'ID zewnętrzne',- 'conversations.taskKanban.source.repo': 'Repozytorium',- 'conversations.taskKanban.source.urgency': 'Pilność','conversations.toolTimeline.turn': 'tura','conversations.toolTimeline.step': 'Krok','conversations.toolTimeline.workerThread': 'wątek workera',@@ -3494,48 +3430,6 @@ const messages: TranslationMap = {'intelligence.diagram.imageAlt': 'Najnowszy wygenerowany diagram architektury OpenHuman','intelligence.diagram.refreshesEvery': 'Odświeża co {seconds}s','intelligence.memoryText.entityTypePrefix': 'Typ encji',- 'intelligence.tasks.activeBoardOne': '1 aktywna tablica w rozmowach',- 'intelligence.tasks.activeBoardOther': '{count} aktywnych tablic w rozmowach',- 'intelligence.tasks.empty': 'Brak tablic zadań agenta',- 'intelligence.tasks.emptyHint': 'Tablice pojawią się tutaj po rozpoczęciu pracy z agentem.',- 'intelligence.tasks.failedToLoad': 'Nie udało się wczytać',- 'intelligence.tasks.live': 'na żywo',- 'intelligence.tasks.loadingBoards': 'Wczytywanie tablic zadań…',- 'intelligence.tasks.threadPrefix': 'Wątek {thread}',- 'intelligence.tasks.subtitle':- 'Twoje zadania i tablice zadań agentów w całej przestrzeni roboczej.',- 'intelligence.tasks.newTask': 'Nowe zadanie',- 'intelligence.tasks.personalBoardTitle': 'Zadania agenta',- 'intelligence.tasks.personalEmpty': 'Brak zadań osobistych',- 'intelligence.tasks.composer.title': 'Nowe zadanie',- 'intelligence.tasks.composer.titleLabel': 'Tytuł',- 'intelligence.tasks.composer.titlePlaceholder': 'Co trzeba zrobić?',- 'intelligence.tasks.composer.statusLabel': 'Status',- 'intelligence.tasks.composer.attachLabel': 'Dołącz do rozmowy',- 'intelligence.tasks.composer.attachNone': 'Osobiste (bez rozmowy)',- 'intelligence.tasks.composer.objectiveLabel': 'Cel',- 'intelligence.tasks.composer.objectivePlaceholder': 'Opcjonalnie: oczekiwany wynik',- 'intelligence.tasks.composer.notesLabel': 'Notatki',- 'intelligence.tasks.composer.notesPlaceholder': 'Opcjonalne notatki',- 'intelligence.tasks.composer.create': 'Utwórz zadanie',- 'intelligence.tasks.composer.creating': 'Tworzenie…',- 'intelligence.tasks.composer.createFailed': 'Nie udało się utworzyć zadania',- 'intelligence.tasks.composer.assignAgentLabel': 'Pozwól agentowi zająć się tym automatycznie',- 'intelligence.tasks.composer.assignAgentHint':- 'Tablica zadań przejmie je i wykona za Ciebie. Wyłącz dla zwykłego zadania osobistego.',- 'intelligence.tasks.sourceList.subtitle':- 'Zadania ze źródeł czekające na przekształcenie w pracę agenta.',- 'intelligence.tasks.sourceList.empty': 'Brak oczekujących zadań ze źródeł.',- 'intelligence.tasks.sourceList.queued': 'W kolejce',- 'intelligence.tasks.sourceList.workOnTask': 'Pracuj nad zadaniem',- 'intelligence.tasks.sourcePlan.title': 'Dopracuj zadanie źródłowe',- 'intelligence.tasks.sourcePlan.subtitle':- 'Sprawdź szkic badawczy przed utworzeniem zadania agenta.',- 'intelligence.tasks.sourcePlan.researchAgent': 'Szkic agenta badawczego',- 'intelligence.tasks.sourcePlan.approve': 'Zatwierdź plan',- 'intelligence.tasks.sourcePlan.creating': 'Tworzenie zadania…',- 'intelligence.tasks.sourcePlan.createFailed': 'Nie udało się utworzyć zadania agenta',- 'intelligence.tasks.workTaskFailed': 'Nie udało się rozpocząć pracy nad zadaniem','intelligence.workTask.sourceTaskHeading': 'Zadanie źródłowe:','intelligence.workTask.repositoryLine': '- Repozytorium: {repo}','intelligence.workTask.externalIdLine': '- Identyfikator zewnętrzny: {externalId}',@@ -5912,7 +5806,6 @@ const messages: TranslationMap = {'composio.integrationSlugsPlaceholder': 'gmail, slack, ...','composio.notYetRouted': 'jeszcze nie trasowane','composio.triggers.loading': 'Wczytywanie…',- 'conversations.taskKanban.todo': 'Do zrobienia','chat.addReaction': 'Dodaj reakcję','chat.agentProfile.create': 'Utwórz profil agenta','chat.agentProfile.createFailed': 'Nie udało się utworzyć profilu agenta.',@@ -5931,23 +5824,6 @@ const messages: TranslationMap = {'settings.composio.loading': 'Wczytywanie…','settings.mascot.noCharactersAvailable': 'Nie ma jeszcze dostępnych postaci OpenHuman','skills.uninstall.confirmTitle': 'Odinstalować {name}?',- 'conversations.taskKanban.blocked': 'Zablokowane',- 'conversations.taskKanban.done': 'Zrobione',- 'conversations.taskKanban.pending': 'Oczekujące',- 'conversations.taskKanban.working': 'W pracy',- 'conversations.taskKanban.awaitingApproval': 'Oczekuje na zatwierdzenie',- 'conversations.taskKanban.ready': 'Gotowe',- 'conversations.taskKanban.rejected': 'Odrzucone',- 'conversations.taskKanban.inProgress': 'W toku',- 'conversations.taskKanban.awaitingApprovalColumn': 'Oczekuje na zatwierdzenie',- 'conversations.taskKanban.blockedColumn': 'Zablokowane',- 'conversations.taskKanban.evidenceBadge': 'Dowody ({count})',- 'conversations.taskKanban.needsInput': 'Te zadania wymagają Twojego wkładu',- 'conversations.taskKanban.emptyColumn': 'Brak zadań',- 'conversations.taskKanban.dragHint': 'Przeciągnij, aby przenieść między kolumnami',- 'conversations.taskKanban.movingCard': 'Przenoszenie…',- 'conversations.taskKanban.statusBadge.ready': 'Gotowe do rozpoczęcia',- 'conversations.taskKanban.statusBadge.rejected': 'Odrzucone','intelligence.memoryChunk.detail.copiedHint': 'skopiowano','settings.composio.notYetRouted': 'jeszcze nie trasowane','devOptions.menuAi': 'Konfiguracja AI',diff --git a/app/src/lib/i18n/pt.ts b/app/src/lib/i18n/pt.tsindex 0a079c3fa1..de5ac86c39 100644--- a/app/src/lib/i18n/pt.ts+++ b/app/src/lib/i18n/pt.ts@@ -817,9 +817,6 @@ const messages: TranslationMap = {'Nenhuma memória ainda. As memórias são criadas automaticamente conforme você interage.','memory.tab.memory': 'Memória','memory.tab.memoryTree': 'Árvore de memória',- 'memory.tab.tasks': 'Tarefas',- 'memory.tab.tasksDescription':- 'Crie e acompanhe tarefas: seus próprios afazeres e os painéis que seus agentes constroem ao longo das conversas.','memory.tab.subconscious': 'Subconsciente','memory.tab.agentWork': 'Trabalho do agente','memory.tab.agentWorkDescription':@@ -3341,9 +3338,6 @@ const messages: TranslationMap = {'Sua sessão do OpenHuman expirou. Entre novamente para carregar os gatilhos.','composio.triggers.needsConfiguration': 'Precisa de configuração','composio.triggers.noneAvailable': 'Nenhum gatilho disponível no momento para',- 'conversations.taskKanban.moveLeft': 'Mover para esquerda',- 'conversations.taskKanban.moveRight': 'Mover para direita',- 'conversations.taskKanban.title': 'Tarefas','conversations.threadTodo.title': 'Plano','conversations.composer.context.title': 'Janela de contexto','conversations.composer.context.input': 'Entrada',@@ -3351,7 +3345,6 @@ const messages: TranslationMap = {'conversations.composer.context.output': 'Saída','conversations.composer.context.cost': 'Custo','conversations.composer.command.clear': 'Limpar a conversa',- 'conversations.composer.command.goal': 'Definir ou editar o objetivo da conversa','conversations.planReview.title': 'Revisar plano','conversations.planReview.subtitle':'Aprove para executá-lo, rejeite para descartá-lo ou envie comentários para revisá-lo.',@@ -3360,63 +3353,6 @@ const messages: TranslationMap = {'conversations.planReview.feedbackLabel': 'Solicitar alterações','conversations.planReview.feedbackPlaceholder': 'Descreva o que mudar…','conversations.planReview.sendFeedback': 'Enviar comentários',- 'conversations.threadGoal.label': 'Objetivo',- 'conversations.threadGoal.setCta': 'Definir objetivo',- 'conversations.threadGoal.placeholder': 'O que esta conversa deve realizar?',- 'conversations.threadGoal.save': 'Salvar',- 'conversations.threadGoal.cancel': 'Cancelar',- 'conversations.threadGoal.edit': 'Editar objetivo',- 'conversations.threadGoal.clear': 'Limpar objetivo',- 'conversations.threadGoal.complete': 'Marcar como concluído',- 'conversations.threadGoal.pause': 'Pausar',- 'conversations.threadGoal.resume': 'Retomar',- 'conversations.threadGoal.tokensSuffix': 'tokens',- 'conversations.threadGoal.status.active': 'Ativo',- 'conversations.threadGoal.status.paused': 'Pausado',- 'conversations.threadGoal.status.budget_limited': 'Orçamento atingido',- 'conversations.threadGoal.status.complete': 'Concluído',- 'conversations.taskKanban.approval.default': 'Padrão',- 'conversations.taskKanban.approval.notRequired': 'Não obrigatório',- 'conversations.taskKanban.approval.notRequiredBadge': 'sem aprovação',- 'conversations.taskKanban.approval.required': 'Obrigatório',- 'conversations.taskKanban.approval.requiredBadge': 'aprovação',- 'conversations.taskKanban.approval.requiredBeforeExecution': 'Necessário antes da execução',- 'conversations.taskKanban.briefButton': 'Resumo da tarefa',- 'conversations.taskKanban.briefTitle': 'Resumo da tarefa',- 'conversations.taskKanban.closeBrief': 'Fechar resumo da tarefa',- 'conversations.taskKanban.field.acceptanceCriteria': 'Critérios de aceitação',- 'conversations.taskKanban.field.allowedTools': 'Ferramentas permitidas',- 'conversations.taskKanban.field.approval': 'Aprovação',- 'conversations.taskKanban.field.assignedAgent': 'Agente designado',- 'conversations.taskKanban.field.blocker': 'Bloqueador',- 'conversations.taskKanban.field.evidence': 'Evidência',- 'conversations.taskKanban.field.notes': 'Notas',- 'conversations.taskKanban.field.objective': 'Objetivo',- 'conversations.taskKanban.field.plan': 'Plano',- 'conversations.taskKanban.field.status': 'Status',- 'conversations.taskKanban.field.title': 'Título',- 'conversations.taskKanban.saveChanges': 'Salvar alterações',- 'conversations.taskKanban.deleteCard': 'Excluir',- 'conversations.taskKanban.workTask': 'Trabalhar na tarefa',- 'conversations.taskKanban.viewWork': 'Ver trabalho',- 'conversations.taskKanban.startingTask': 'Iniciando…',- 'conversations.taskKanban.updateFailed':- 'Não foi possível atualizar a tarefa; as alterações não foram salvas.',- 'conversations.taskKanban.sourcesButton': 'Fontes',- 'conversations.taskKanban.source.openExternal': 'Abrir tarefa externa',- 'conversations.taskKanban.source.openExternalShort': 'Abrir',- 'conversations.taskKanban.source.unknownProvider': 'Fonte desconhecida',- 'conversations.taskKanban.source.urgencyValue': 'Urgência {percent}%',- 'conversations.taskKanban.sources.desktopOnly':- 'Os controles de fontes de tarefas estão disponíveis no app de desktop.',- 'conversations.taskKanban.sources.title': 'Fontes de tarefas',- 'conversations.taskKanban.sources.statusEnabled': 'Polling automático ativado',- 'conversations.taskKanban.sources.manage': 'Gerenciar fontes',- 'conversations.taskKanban.source.title': 'Fonte',- 'conversations.taskKanban.source.sourceId': 'ID da fonte',- 'conversations.taskKanban.source.externalId': 'ID externo',- 'conversations.taskKanban.source.repo': 'Repositório',- 'conversations.taskKanban.source.urgency': 'Urgência','conversations.toolTimeline.turn': 'turno','conversations.toolTimeline.step': 'Passo','conversations.toolTimeline.workerThread': 'thread de worker',@@ -3505,48 +3441,6 @@ const messages: TranslationMap = {'intelligence.diagram.imageAlt': 'Último diagrama de arquitetura OpenHuman gerado','intelligence.diagram.refreshesEvery': 'Atualiza a cada {seconds}s','intelligence.memoryText.entityTypePrefix': 'Tipo de entidade',- 'intelligence.tasks.activeBoardOne': '1 quadro ativo entre conversas',- 'intelligence.tasks.activeBoardOther': '{count} quadros ativos entre conversas',- 'intelligence.tasks.empty': 'Nenhum quadro de tarefas de agente ainda',- 'intelligence.tasks.emptyHint': 'Dica de vazio',- 'intelligence.tasks.failedToLoad': 'Falha ao carregar',- 'intelligence.tasks.live': 'ao vivo',- 'intelligence.tasks.loadingBoards': 'Carregando quadros de tarefas…',- 'intelligence.tasks.threadPrefix': 'Tópico {thread}',- 'intelligence.tasks.subtitle':- 'Suas tarefas e quadros de tarefas de agentes em todo o espaço de trabalho.',- 'intelligence.tasks.newTask': 'Nova tarefa',- 'intelligence.tasks.personalBoardTitle': 'Tarefas do Agente',- 'intelligence.tasks.personalEmpty': 'Nenhuma tarefa pessoal ainda',- 'intelligence.tasks.composer.title': 'Nova tarefa',- 'intelligence.tasks.composer.titleLabel': 'Título',- 'intelligence.tasks.composer.titlePlaceholder': 'O que precisa ser feito?',- 'intelligence.tasks.composer.statusLabel': 'Status',- 'intelligence.tasks.composer.attachLabel': 'Anexar à conversa',- 'intelligence.tasks.composer.attachNone': 'Pessoal (sem conversa)',- 'intelligence.tasks.composer.objectiveLabel': 'Objetivo',- 'intelligence.tasks.composer.objectivePlaceholder': 'Opcional: o resultado desejado',- 'intelligence.tasks.composer.notesLabel': 'Notas',- 'intelligence.tasks.composer.notesPlaceholder': 'Notas opcionais',- 'intelligence.tasks.composer.create': 'Criar tarefa',- 'intelligence.tasks.composer.creating': 'Criando…',- 'intelligence.tasks.composer.createFailed': 'Não foi possível criar a tarefa',- 'intelligence.tasks.composer.assignAgentLabel': 'Deixe um agente cuidar disto automaticamente',- 'intelligence.tasks.composer.assignAgentHint':- 'O quadro de tarefas o executa por você. Deixe desativado para uma tarefa pessoal simples.',- 'intelligence.tasks.sourceList.subtitle':- 'Tarefas de fontes aguardando virar trabalho de agente.',- 'intelligence.tasks.sourceList.empty': 'Nenhuma tarefa de fonte aguardando.',- 'intelligence.tasks.sourceList.queued': 'Na fila',- 'intelligence.tasks.sourceList.workOnTask': 'Trabalhar na tarefa',- 'intelligence.tasks.sourcePlan.title': 'Refinar tarefa da fonte',- 'intelligence.tasks.sourcePlan.subtitle':- 'Revise o rascunho de pesquisa antes de criar uma tarefa de agente.',- 'intelligence.tasks.sourcePlan.researchAgent': 'Rascunho do agente de pesquisa',- 'intelligence.tasks.sourcePlan.approve': 'Aprovar plano',- 'intelligence.tasks.sourcePlan.creating': 'Criando tarefa…',- 'intelligence.tasks.sourcePlan.createFailed': 'Não foi possível criar a tarefa de agente',- 'intelligence.tasks.workTaskFailed': 'Não foi possível iniciar o trabalho na tarefa','intelligence.workTask.sourceTaskHeading': 'Tarefa de origem:','intelligence.workTask.repositoryLine': '- Repositório: {repo}','intelligence.workTask.externalIdLine': '- ID externo: {externalId}',@@ -5915,7 +5809,6 @@ const messages: TranslationMap = {'composio.integrationSlugsPlaceholder': 'gmail, slack, ...','composio.notYetRouted': 'ainda não roteado','composio.triggers.loading': 'Carregando…',- 'conversations.taskKanban.todo': 'A fazer','chat.addReaction': 'Adicionar reação','chat.agentProfile.create': 'Criar perfil de agente','chat.agentProfile.createFailed': 'Não foi possível criar perfil de agente.',@@ -5934,23 +5827,6 @@ const messages: TranslationMap = {'settings.composio.loading': 'Carregando…','settings.mascot.noCharactersAvailable': 'Nenhum personagem do OpenHuman disponível ainda','skills.uninstall.confirmTitle': 'Desinstalar {name}?',- 'conversations.taskKanban.blocked': 'Bloqueado',- 'conversations.taskKanban.done': 'Concluído',- 'conversations.taskKanban.pending': 'Pendente',- 'conversations.taskKanban.working': 'Trabalhando',- 'conversations.taskKanban.awaitingApproval': 'Aguardando aprovação',- 'conversations.taskKanban.ready': 'Pronto',- 'conversations.taskKanban.rejected': 'Rejeitado',- 'conversations.taskKanban.inProgress': 'Em andamento',- 'conversations.taskKanban.awaitingApprovalColumn': 'Aguardando aprovação',- 'conversations.taskKanban.blockedColumn': 'Bloqueado',- 'conversations.taskKanban.evidenceBadge': 'Evidência ({count})',- 'conversations.taskKanban.needsInput': 'Estas tarefas precisam da sua participação',- 'conversations.taskKanban.emptyColumn': 'Sem tarefas',- 'conversations.taskKanban.dragHint': 'Arraste para mover entre colunas',- 'conversations.taskKanban.movingCard': 'Movendo…',- 'conversations.taskKanban.statusBadge.ready': 'Pronto para começar',- 'conversations.taskKanban.statusBadge.rejected': 'Rejeitado','intelligence.memoryChunk.detail.copiedHint': 'copiado','settings.composio.notYetRouted': 'ainda não roteado','devOptions.menuAi': 'Configuração de IA',diff --git a/app/src/lib/i18n/ru.ts b/app/src/lib/i18n/ru.tsindex e04dcab260..496f333f0a 100644--- a/app/src/lib/i18n/ru.ts+++ b/app/src/lib/i18n/ru.ts@@ -808,9 +808,6 @@ const messages: TranslationMap = {'memory.empty': 'Воспоминаний пока нет. Они создаются автоматически в процессе общения.','memory.tab.memory': 'Память','memory.tab.memoryTree': 'Дерево памяти',- 'memory.tab.tasks': 'Задачи',- 'memory.tab.tasksDescription':- 'Создавайте и отслеживайте задачи: ваши личные дела и доски, которые агенты формируют в ходе разговоров.','memory.tab.subconscious': 'Подсознание','memory.tab.agentWork': 'Работа агента','memory.tab.agentWorkDescription':@@ -3313,9 +3310,6 @@ const messages: TranslationMap = {'Срок действия сессии OpenHuman истёк. Войдите снова, чтобы загрузить триггеры.','composio.triggers.needsConfiguration': 'Требуется настройка','composio.triggers.noneAvailable': 'Сейчас нет доступных триггеров для',- 'conversations.taskKanban.moveLeft': 'Переместить влево',- 'conversations.taskKanban.moveRight': 'Переместить вправо',- 'conversations.taskKanban.title': 'Задачи','conversations.threadTodo.title': 'План','conversations.composer.context.title': 'Контекстное окно','conversations.composer.context.input': 'Ввод',@@ -3323,7 +3317,6 @@ const messages: TranslationMap = {'conversations.composer.context.output': 'Вывод','conversations.composer.context.cost': 'Стоимость','conversations.composer.command.clear': 'Очистить переписку',- 'conversations.composer.command.goal': 'Задать или изменить цель обсуждения','conversations.planReview.title': 'Проверить план','conversations.planReview.subtitle':'Одобрите для запуска, отклоните для отмены или отправьте отзыв для доработки.',@@ -3332,62 +3325,6 @@ const messages: TranslationMap = {'conversations.planReview.feedbackLabel': 'Запросить изменения','conversations.planReview.feedbackPlaceholder': 'Опишите, что изменить…','conversations.planReview.sendFeedback': 'Отправить отзыв',- 'conversations.threadGoal.label': 'Цель',- 'conversations.threadGoal.setCta': 'Задать цель',- 'conversations.threadGoal.placeholder': 'Чего должен достичь этот тред?',- 'conversations.threadGoal.save': 'Сохранить',- 'conversations.threadGoal.cancel': 'Отмена',- 'conversations.threadGoal.edit': 'Изменить цель',- 'conversations.threadGoal.clear': 'Очистить цель',- 'conversations.threadGoal.complete': 'Отметить выполненным',- 'conversations.threadGoal.pause': 'Пауза',- 'conversations.threadGoal.resume': 'Возобновить',- 'conversations.threadGoal.tokensSuffix': 'токены',- 'conversations.threadGoal.status.active': 'Активна',- 'conversations.threadGoal.status.paused': 'На паузе',- 'conversations.threadGoal.status.budget_limited': 'Бюджет исчерпан',- 'conversations.threadGoal.status.complete': 'Завершена',- 'conversations.taskKanban.approval.default': 'По умолчанию',- 'conversations.taskKanban.approval.notRequired': 'Не требуется',- 'conversations.taskKanban.approval.notRequiredBadge': 'нет одобрения',- 'conversations.taskKanban.approval.required': 'Необходимый',- 'conversations.taskKanban.approval.requiredBadge': 'approval',- 'conversations.taskKanban.approval.requiredBeforeExecution': 'Требуется перед выполнением',- 'conversations.taskKanban.briefButton': 'Краткое описание задачи',- 'conversations.taskKanban.briefTitle': 'Краткое описание задачи',- 'conversations.taskKanban.closeBrief': 'Закрыть краткое описание задачи',- 'conversations.taskKanban.field.acceptanceCriteria': 'Критерии приемки',- 'conversations.taskKanban.field.allowedTools': 'Разрешенные инструменты',- 'conversations.taskKanban.field.approval': 'Одобрение',- 'conversations.taskKanban.field.assignedAgent': 'Назначенный агент',- 'conversations.taskKanban.field.blocker': 'Блокатор',- 'conversations.taskKanban.field.evidence': 'Доказательство',- 'conversations.taskKanban.field.notes': 'Примечания',- 'conversations.taskKanban.field.objective': 'Цель',- 'conversations.taskKanban.field.plan': 'План',- 'conversations.taskKanban.field.status': 'Статус',- 'conversations.taskKanban.field.title': 'Заголовок',- 'conversations.taskKanban.saveChanges': 'Сохранить изменения',- 'conversations.taskKanban.deleteCard': 'Удалить',- 'conversations.taskKanban.workTask': 'Работать над задачей',- 'conversations.taskKanban.viewWork': 'Показать работу',- 'conversations.taskKanban.startingTask': 'Запуск…',- 'conversations.taskKanban.updateFailed': 'Не удалось обновить задачу; изменения не сохранились.',- 'conversations.taskKanban.sourcesButton': 'Источники',- 'conversations.taskKanban.source.openExternal': 'Открыть внешнюю задачу',- 'conversations.taskKanban.source.openExternalShort': 'Открыть',- 'conversations.taskKanban.source.unknownProvider': 'Неизвестный источник',- 'conversations.taskKanban.source.urgencyValue': 'Срочность {percent}%',- 'conversations.taskKanban.sources.desktopOnly':- 'Управление источниками задач доступно в настольном приложении.',- 'conversations.taskKanban.sources.title': 'Источники задач',- 'conversations.taskKanban.sources.statusEnabled': 'Автоматический опрос включен',- 'conversations.taskKanban.sources.manage': 'Управлять источниками',- 'conversations.taskKanban.source.title': 'Источник',- 'conversations.taskKanban.source.sourceId': 'ID источника',- 'conversations.taskKanban.source.externalId': 'Внешний ID',- 'conversations.taskKanban.source.repo': 'Репозиторий',- 'conversations.taskKanban.source.urgency': 'Срочность','conversations.toolTimeline.turn': 'ход','conversations.toolTimeline.step': 'Шаг','conversations.toolTimeline.workerThread': 'чат воркера',@@ -3476,47 +3413,6 @@ const messages: TranslationMap = {'intelligence.diagram.imageAlt': 'Последняя сгенерированная архитектурная диаграмма OpenHuman','intelligence.diagram.refreshesEvery': 'Обновляется каждые {seconds} с','intelligence.memoryText.entityTypePrefix': 'Тип сущности',- 'intelligence.tasks.activeBoardOne': '1 активная доска в разговорах',- 'intelligence.tasks.activeBoardOther': '{count} активных досок в разговорах',- 'intelligence.tasks.empty': 'Досок задач агента пока нет',- 'intelligence.tasks.emptyHint': 'Пусто',- 'intelligence.tasks.failedToLoad': 'Не удалось загрузить',- 'intelligence.tasks.live': 'в реальном времени',- 'intelligence.tasks.loadingBoards': 'Загрузка досок задач…',- 'intelligence.tasks.threadPrefix': 'Тред {thread}',- 'intelligence.tasks.subtitle': 'Ваши задачи и доски задач агентов в рабочей области.',- 'intelligence.tasks.newTask': 'Новая задача',- 'intelligence.tasks.personalBoardTitle': 'Задачи агента',- 'intelligence.tasks.personalEmpty': 'Личных задач пока нет',- 'intelligence.tasks.composer.title': 'Новая задача',- 'intelligence.tasks.composer.titleLabel': 'Заголовок',- 'intelligence.tasks.composer.titlePlaceholder': 'Что нужно сделать?',- 'intelligence.tasks.composer.statusLabel': 'Статус',- 'intelligence.tasks.composer.attachLabel': 'Прикрепить к беседе',- 'intelligence.tasks.composer.attachNone': 'Личное (без разговора)',- 'intelligence.tasks.composer.objectiveLabel': 'Цель',- 'intelligence.tasks.composer.objectivePlaceholder': 'Необязательно: желаемый результат',- 'intelligence.tasks.composer.notesLabel': 'Примечания',- 'intelligence.tasks.composer.notesPlaceholder': 'Дополнительные примечания',- 'intelligence.tasks.composer.create': 'Создать задачу',- 'intelligence.tasks.composer.creating': 'Создание…',- 'intelligence.tasks.composer.createFailed': 'Не удалось создать задачу',- 'intelligence.tasks.composer.assignAgentLabel': 'Поручить агенту выполнить это автоматически',- 'intelligence.tasks.composer.assignAgentHint':- 'Доска задач возьмёт её и выполнит за вас. Оставьте выключенным для обычной личной задачи.',- 'intelligence.tasks.sourceList.subtitle':- 'Задачи из источников, ожидающие превращения в работу агента.',- 'intelligence.tasks.sourceList.empty': 'Нет ожидающих задач из источников.',- 'intelligence.tasks.sourceList.queued': 'В очереди',- 'intelligence.tasks.sourceList.workOnTask': 'Работать над задачей',- 'intelligence.tasks.sourcePlan.title': 'Уточнить задачу из источника',- 'intelligence.tasks.sourcePlan.subtitle':- 'Проверьте черновик исследования перед созданием задачи агента.',- 'intelligence.tasks.sourcePlan.researchAgent': 'Черновик исследовательского агента',- 'intelligence.tasks.sourcePlan.approve': 'Утвердить план',- 'intelligence.tasks.sourcePlan.creating': 'Создание задачи…',- 'intelligence.tasks.sourcePlan.createFailed': 'Не удалось создать задачу агента',- 'intelligence.tasks.workTaskFailed': 'Не удалось начать работу над задачей','intelligence.workTask.sourceTaskHeading': 'Исходная задача:','intelligence.workTask.repositoryLine': '- Репозиторий: {repo}','intelligence.workTask.externalIdLine': '- Внешний ID: {externalId}',@@ -5881,7 +5777,6 @@ const messages: TranslationMap = {'composio.integrationSlugsPlaceholder': 'gmail, slack, ...','composio.notYetRouted': 'пока не маршрутизируется','composio.triggers.loading': 'Загрузка…',- 'conversations.taskKanban.todo': 'К выполнению','chat.addReaction': 'Добавить реакцию','chat.agentProfile.create': 'Создать профиль агента','chat.agentProfile.createFailed': 'Не удалось создать профиль агента.',@@ -5900,23 +5795,6 @@ const messages: TranslationMap = {'settings.composio.loading': 'Загрузка…','settings.mascot.noCharactersAvailable': 'Персонажи OpenHuman пока недоступны','skills.uninstall.confirmTitle': 'Удалить {name}?',- 'conversations.taskKanban.blocked': 'Заблокировано',- 'conversations.taskKanban.done': 'Готово',- 'conversations.taskKanban.pending': 'В ожидании',- 'conversations.taskKanban.working': 'Работающий',- 'conversations.taskKanban.awaitingApproval': 'Ожидает одобрения',- 'conversations.taskKanban.ready': 'Готовый',- 'conversations.taskKanban.rejected': 'Отклоненный',- 'conversations.taskKanban.inProgress': 'В работе',- 'conversations.taskKanban.awaitingApprovalColumn': 'Ожидает одобрения',- 'conversations.taskKanban.blockedColumn': 'Заблокировано',- 'conversations.taskKanban.evidenceBadge': 'Доказательства ({count})',- 'conversations.taskKanban.needsInput': 'Эти задачи требуют вашего участия',- 'conversations.taskKanban.emptyColumn': 'Нет задач',- 'conversations.taskKanban.dragHint': 'Перетащите для перемещения между колонками',- 'conversations.taskKanban.movingCard': 'Перемещение…',- 'conversations.taskKanban.statusBadge.ready': 'Готово к запуску',- 'conversations.taskKanban.statusBadge.rejected': 'Отклонено','intelligence.memoryChunk.detail.copiedHint': 'скопировано','settings.composio.notYetRouted': 'пока не маршрутизируется','devOptions.menuAi': 'Конфигурация AI',diff --git a/app/src/lib/i18n/zh-CN.ts b/app/src/lib/i18n/zh-CN.tsindex 23c8667243..ffbb88a570 100644--- a/app/src/lib/i18n/zh-CN.ts+++ b/app/src/lib/i18n/zh-CN.ts@@ -747,9 +747,6 @@ const messages: TranslationMap = {'memory.empty': '暂无记忆。记忆将在你交互时自动创建。','memory.tab.memory': '记忆','memory.tab.memoryTree': '记忆树',- 'memory.tab.tasks': '任务',- 'memory.tab.tasksDescription':- '创建并跟踪任务:包括您自己的待办事项以及智能体在对话中创建的看板。','memory.tab.subconscious': '潜意识','memory.tab.agentWork': '智能体工作','memory.tab.agentWorkDescription':@@ -3099,9 +3096,6 @@ const messages: TranslationMap = {'composio.triggers.sessionExpired': '你的 OpenHuman 会话已过期。请重新登录以加载触发器。','composio.triggers.needsConfiguration': '需要配置','composio.triggers.noneAvailable': '当前没有可用的触发器:',- 'conversations.taskKanban.moveLeft': '向左移动',- 'conversations.taskKanban.moveRight': '向右移动',- 'conversations.taskKanban.title': '任务','conversations.threadTodo.title': '计划','conversations.composer.context.title': '上下文窗口','conversations.composer.context.input': '输入',@@ -3109,7 +3103,6 @@ const messages: TranslationMap = {'conversations.composer.context.output': '输出','conversations.composer.context.cost': '费用','conversations.composer.command.clear': '清空对话',- 'conversations.composer.command.goal': '设置或修改会话目标','conversations.planReview.title': '审阅计划','conversations.planReview.subtitle': '批准以执行,拒绝以放弃,或发送反馈以修改。','conversations.planReview.approve': '批准并执行',@@ -3117,61 +3110,6 @@ const messages: TranslationMap = {'conversations.planReview.feedbackLabel': '请求修改','conversations.planReview.feedbackPlaceholder': '描述需要修改的内容…','conversations.planReview.sendFeedback': '发送反馈',- 'conversations.threadGoal.label': '目标',- 'conversations.threadGoal.setCta': '设定目标',- 'conversations.threadGoal.placeholder': '这个对话需要完成什么?',- 'conversations.threadGoal.save': '保存',- 'conversations.threadGoal.cancel': '取消',- 'conversations.threadGoal.edit': '编辑目标',- 'conversations.threadGoal.clear': '清除目标',- 'conversations.threadGoal.complete': '标记为完成',- 'conversations.threadGoal.pause': '暂停',- 'conversations.threadGoal.resume': '继续',- 'conversations.threadGoal.tokensSuffix': '令牌',- 'conversations.threadGoal.status.active': '进行中',- 'conversations.threadGoal.status.paused': '已暂停',- 'conversations.threadGoal.status.budget_limited': '预算已用尽',- 'conversations.threadGoal.status.complete': '已完成',- 'conversations.taskKanban.approval.default': '默认',- 'conversations.taskKanban.approval.notRequired': '无需审批',- 'conversations.taskKanban.approval.notRequiredBadge': '无需审批',- 'conversations.taskKanban.approval.required': '需要审批',- 'conversations.taskKanban.approval.requiredBadge': '需审批',- 'conversations.taskKanban.approval.requiredBeforeExecution': '执行前需要审批',- 'conversations.taskKanban.briefButton': '任务简报',- 'conversations.taskKanban.briefTitle': '任务简报',- 'conversations.taskKanban.closeBrief': '关闭任务简报',- 'conversations.taskKanban.field.acceptanceCriteria': '验收标准',- 'conversations.taskKanban.field.allowedTools': '允许的工具',- 'conversations.taskKanban.field.approval': '审批',- 'conversations.taskKanban.field.assignedAgent': '已分配智能体',- 'conversations.taskKanban.field.blocker': '阻碍项',- 'conversations.taskKanban.field.evidence': '证据',- 'conversations.taskKanban.field.notes': '备注',- 'conversations.taskKanban.field.objective': '目标',- 'conversations.taskKanban.field.plan': '计划',- 'conversations.taskKanban.field.status': '状态',- 'conversations.taskKanban.field.title': '标题',- 'conversations.taskKanban.saveChanges': '保存更改',- 'conversations.taskKanban.deleteCard': '删除',- 'conversations.taskKanban.workTask': '处理任务',- 'conversations.taskKanban.viewWork': '查看工作',- 'conversations.taskKanban.startingTask': '正在启动…',- 'conversations.taskKanban.updateFailed': '无法更新任务;更改未保存。',- 'conversations.taskKanban.sourcesButton': '来源',- 'conversations.taskKanban.source.openExternal': '打开外部任务',- 'conversations.taskKanban.source.openExternalShort': '打开',- 'conversations.taskKanban.source.unknownProvider': '未知来源',- 'conversations.taskKanban.source.urgencyValue': '紧急度 {percent}%',- 'conversations.taskKanban.sources.desktopOnly': '任务来源控件可在桌面应用中使用。',- 'conversations.taskKanban.sources.title': '任务来源',- 'conversations.taskKanban.sources.statusEnabled': '自动轮询已启用',- 'conversations.taskKanban.sources.manage': '管理来源',- 'conversations.taskKanban.source.title': '来源',- 'conversations.taskKanban.source.sourceId': '来源 ID',- 'conversations.taskKanban.source.externalId': '外部 ID',- 'conversations.taskKanban.source.repo': '仓库',- 'conversations.taskKanban.source.urgency': '紧急度','conversations.toolTimeline.turn': '轮次','conversations.toolTimeline.step': '步骤','conversations.toolTimeline.workerThread': '工作线程',@@ -3256,45 +3194,6 @@ const messages: TranslationMap = {'intelligence.diagram.imageAlt': '最新生成的 OpenHuman 架构图','intelligence.diagram.refreshesEvery': '每 {seconds} 秒刷新','intelligence.memoryText.entityTypePrefix': '实体类型',- 'intelligence.tasks.activeBoardOne': '1 个跨对话的活跃看板',- 'intelligence.tasks.activeBoardOther': '{count} 个跨对话的活跃看板',- 'intelligence.tasks.empty': '暂无智能体任务看板',- 'intelligence.tasks.emptyHint': '完成一项对话后,任务看板将出现在这里。',- 'intelligence.tasks.failedToLoad': '加载失败',- 'intelligence.tasks.live': '实时',- 'intelligence.tasks.loadingBoards': '正在加载任务看板…',- 'intelligence.tasks.threadPrefix': '对话 {thread}',- 'intelligence.tasks.subtitle': '整个工作区中的你的任务和智能体任务看板。',- 'intelligence.tasks.newTask': '新建任务',- 'intelligence.tasks.personalBoardTitle': '智能体任务',- 'intelligence.tasks.personalEmpty': '暂无个人任务',- 'intelligence.tasks.composer.title': '新建任务',- 'intelligence.tasks.composer.titleLabel': '标题',- 'intelligence.tasks.composer.titlePlaceholder': '需要完成什么?',- 'intelligence.tasks.composer.statusLabel': '状态',- 'intelligence.tasks.composer.attachLabel': '附加到对话',- 'intelligence.tasks.composer.attachNone': '个人(无对话)',- 'intelligence.tasks.composer.objectiveLabel': '目标',- 'intelligence.tasks.composer.objectivePlaceholder': '可选:期望的结果',- 'intelligence.tasks.composer.notesLabel': '备注',- 'intelligence.tasks.composer.notesPlaceholder': '可选备注',- 'intelligence.tasks.composer.create': '创建任务',- 'intelligence.tasks.composer.creating': '正在创建…',- 'intelligence.tasks.composer.createFailed': '无法创建任务',- 'intelligence.tasks.composer.assignAgentLabel': '让智能体自动处理此任务',- 'intelligence.tasks.composer.assignAgentHint':- '任务看板会接手并替你执行。普通的个人待办请保持关闭。',- 'intelligence.tasks.sourceList.subtitle': '等待转为智能体工作的来源任务。',- 'intelligence.tasks.sourceList.empty': '没有等待处理的来源任务。',- 'intelligence.tasks.sourceList.queued': '已入队',- 'intelligence.tasks.sourceList.workOnTask': '处理任务',- 'intelligence.tasks.sourcePlan.title': '细化来源任务',- 'intelligence.tasks.sourcePlan.subtitle': '创建智能体任务前,请检查研究草稿。',- 'intelligence.tasks.sourcePlan.researchAgent': '研究智能体草稿',- 'intelligence.tasks.sourcePlan.approve': '批准计划',- 'intelligence.tasks.sourcePlan.creating': '正在创建任务…',- 'intelligence.tasks.sourcePlan.createFailed': '无法创建智能体任务',- 'intelligence.tasks.workTaskFailed': '无法开始处理任务','intelligence.workTask.sourceTaskHeading': '来源任务:','intelligence.workTask.repositoryLine': '- 仓库:{repo}','intelligence.workTask.externalIdLine': '- 外部 ID:{externalId}',@@ -5501,7 +5400,6 @@ const messages: TranslationMap = {'composio.integrationSlugsPlaceholder': 'Gmail、松弛、...','composio.notYetRouted': '尚未路由','composio.triggers.loading': '加载中…',- 'conversations.taskKanban.todo': '待办','chat.addReaction': '添加反应','chat.agentProfile.create': '创建代理资料','chat.agentProfile.createFailed': '无法创建代理配置文件。',@@ -5520,23 +5418,6 @@ const messages: TranslationMap = {'settings.composio.loading': '加载中…','settings.mascot.noCharactersAvailable': '暂无可用的 OpenHuman 角色','skills.uninstall.confirmTitle': '卸载 {name}?',- 'conversations.taskKanban.blocked': '已阻塞',- 'conversations.taskKanban.done': '已完成',- 'conversations.taskKanban.pending': '待处理',- 'conversations.taskKanban.working': '处理中',- 'conversations.taskKanban.awaitingApproval': '等待批准',- 'conversations.taskKanban.ready': '就绪',- 'conversations.taskKanban.rejected': '已拒绝',- 'conversations.taskKanban.inProgress': '进行中',- 'conversations.taskKanban.awaitingApprovalColumn': '等待审批',- 'conversations.taskKanban.blockedColumn': '已阻塞',- 'conversations.taskKanban.evidenceBadge': '证据({count})',- 'conversations.taskKanban.needsInput': '这些任务需要您的参与',- 'conversations.taskKanban.emptyColumn': '暂无任务',- 'conversations.taskKanban.dragHint': '拖动以在列之间移动',- 'conversations.taskKanban.movingCard': '移动中…',- 'conversations.taskKanban.statusBadge.ready': '准备开始',- 'conversations.taskKanban.statusBadge.rejected': '已拒绝','intelligence.memoryChunk.detail.copiedHint': '已复制','settings.composio.notYetRouted': '尚未路由','devOptions.menuAi': 'AI 配置',diff --git a/app/src/pages/__tests__/Conversations.attachments.test.tsx b/app/src/pages/__tests__/Conversations.attachments.test.tsxindex a22c4d6267..66c2aafec0 100644--- a/app/src/pages/__tests__/Conversations.attachments.test.tsx+++ b/app/src/pages/__tests__/Conversations.attachments.test.tsx@@ -87,12 +87,6 @@ vi.mock('../../services/api/threadApi', () => ({getThreads: mockGetThreads,getThreadMessages: mockGetThreadMessages,getTurnState: vi.fn().mockResolvedValue(null),- getTaskBoard: vi- .fn()- .mockResolvedValue({ threadId: 't-1', cards: [], updatedAt: '2026-05-04T10:00:00Z' }),- putTaskBoard: vi- .fn()- .mockResolvedValue({ threadId: 't-1', cards: [], updatedAt: '2026-05-04T10:00:00Z' }),appendMessage: vi.fn().mockResolvedValue({}),deleteThread: vi.fn().mockResolvedValue({ deleted: true }),generateTitleIfNeeded: vi.fn().mockResolvedValue({}),diff --git a/app/src/pages/__tests__/Conversations.auiComposerSurfaces.test.tsx b/app/src/pages/__tests__/Conversations.auiComposerSurfaces.test.tsxindex 129a45000f..ea53028c78 100644--- a/app/src/pages/__tests__/Conversations.auiComposerSurfaces.test.tsx+++ b/app/src/pages/__tests__/Conversations.auiComposerSurfaces.test.tsx@@ -96,15 +96,6 @@ vi.mock('../../services/api/threadApi', () => ({hasMore: false,hasTranscript: false,}),- getTaskBoard: vi- .fn()- .mockResolvedValue({ threadId: 't-1', cards: [], updatedAt: '2026-05-04T10:00:00Z' }),- putTaskBoard: vi- .fn()- .mockResolvedValue({ threadId: 't-1', cards: [], updatedAt: '2026-05-04T10:00:00Z' }),- decidePlan: vi- .fn()- .mockResolvedValue({ threadId: 't-1', cards: [], updatedAt: '2026-05-04T10:00:00Z' }),appendMessage: vi.fn(async (_threadId: string, message: ThreadMessage) => message),deleteThread: vi.fn().mockResolvedValue({ deleted: true }),generateTitleIfNeeded: vi.fn().mockResolvedValue({}),diff --git a/app/src/pages/__tests__/Conversations.render.test.tsx b/app/src/pages/__tests__/Conversations.render.test.tsxindex be004e0787..ec31a4d452 100644--- a/app/src/pages/__tests__/Conversations.render.test.tsx+++ b/app/src/pages/__tests__/Conversations.render.test.tsx@@ -86,15 +86,6 @@ vi.mock('../../services/api/threadApi', () => ({hasMore: false,hasTranscript: false,}),- getTaskBoard: vi- .fn()- .mockResolvedValue({ threadId: 't-1', cards: [], updatedAt: '2026-05-04T10:00:00Z' }),- putTaskBoard: vi- .fn()- .mockResolvedValue({ threadId: 't-1', cards: [], updatedAt: '2026-05-04T10:00:00Z' }),- decidePlan: vi- .fn()- .mockResolvedValue({ threadId: 't-1', cards: [], updatedAt: '2026-05-04T10:00:00Z' }),appendMessage: vi.fn(async (_threadId: string, message: ThreadMessage) => message),deleteThread: vi.fn().mockResolvedValue({ deleted: true }),generateTitleIfNeeded: vi.fn().mockResolvedValue({}),@@ -1521,8 +1512,8 @@ describe('Conversations — smoke render (#1123 welcome-lock removal)', () => {// Regression: when a delegated sub-agent (`Research`, `Tools Agent`,// …) is running, the parent thread's `inferenceStatusByThread` and// `streamingAssistantByThread` references can stay put while- // `toolTimelineByThread` and `taskBoardByThread` tick. The rearm- // effect must watch all four — otherwise a long sub-agent loop+ // `toolTimelineByThread` ticks. The rearm effect must watch that timeline —+ // otherwise a long sub-agent loop// trips the 120s safety timer even though the user can see tools// firing in the timeline.vi.useFakeTimers({ shouldAdvanceTime: true });diff --git a/app/src/pages/__tests__/Conversations.sidebarOverflow.test.tsx b/app/src/pages/__tests__/Conversations.sidebarOverflow.test.tsxindex 6726828980..ffd4716fdb 100644--- a/app/src/pages/__tests__/Conversations.sidebarOverflow.test.tsx+++ b/app/src/pages/__tests__/Conversations.sidebarOverflow.test.tsx@@ -71,8 +71,6 @@ vi.mock('../../services/api/threadApi', () => ({getThreads: mockGetThreads,getThreadMessages: mockGetThreadMessages,getTurnState: vi.fn().mockResolvedValue(null),- getTaskBoard: vi.fn().mockResolvedValue({ threadId: 't-1', cards: [], updatedAt: '' }),- putTaskBoard: vi.fn().mockResolvedValue({ threadId: 't-1', cards: [], updatedAt: '' }),appendMessage: vi.fn().mockResolvedValue({}),deleteThread: vi.fn().mockResolvedValue({ deleted: true }),generateTitleIfNeeded: vi.fn().mockResolvedValue({}),diff --git a/app/src/providers/ChatRuntimeProvider.tsx b/app/src/providers/ChatRuntimeProvider.tsxindex a18984f37b..baa6aec5c1 100644--- a/app/src/providers/ChatRuntimeProvider.tsx+++ b/app/src/providers/ChatRuntimeProvider.tsx@@ -22,7 +22,6 @@ import {type ChatSubagentDoneEvent,type ChatSubagentTextDeltaEvent,type ChatSubagentThinkingDeltaEvent,- type ChatTaskBoardUpdatedEvent,type ChatToolCallEvent,type ChatToolResultEvent,type ProactiveMessageEvent,@@ -52,7 +51,6 @@ import {setPendingApprovalForThread,setPendingPlanReviewForThread,setStreamingAssistantForThread,- setTaskBoardForThread,setToolTimelineForThread,setWorkflowProposalForThread,streamDeltaReceived,@@ -1082,10 +1080,6 @@ const ChatRuntimeProvider = ({ children }: { children: React.ReactNode }) => {}));},- onTaskBoardUpdated: (event: ChatTaskBoardUpdatedEvent) => {- if (!event.task_board) return;- dispatch(setTaskBoardForThread({ threadId: event.thread_id, board: event.task_board }));- },onProactiveMessage: (event: ProactiveMessageEvent) => {const messageDigest = proactiveMessageDigest(event.full_response ?? '');const eventKey = `proactive:${event.thread_id}:${event.request_id ?? 'none'}:${messageDigest}`;diff --git a/app/src/providers/__tests__/ChatRuntimeProvider.artifact.test.tsx b/app/src/providers/__tests__/ChatRuntimeProvider.artifact.test.tsxindex bc265b42c8..a9d01c9627 100644--- a/app/src/providers/__tests__/ChatRuntimeProvider.artifact.test.tsx+++ b/app/src/providers/__tests__/ChatRuntimeProvider.artifact.test.tsx@@ -32,8 +32,6 @@ vi.mock('../../services/api/threadApi', () => ({updateMessage: vi.fn(),deleteThread: vi.fn(),purge: vi.fn(),- getTaskBoard: vi.fn(),- putTaskBoard: vi.fn(),},}));diff --git a/app/src/providers/__tests__/ChatRuntimeProvider.artifacts.test.tsx b/app/src/providers/__tests__/ChatRuntimeProvider.artifacts.test.tsxindex 1633832a9e..082f2aea3c 100644--- a/app/src/providers/__tests__/ChatRuntimeProvider.artifacts.test.tsx+++ b/app/src/providers/__tests__/ChatRuntimeProvider.artifacts.test.tsx@@ -26,8 +26,6 @@ vi.mock('../../services/api/threadApi', () => ({updateMessage: vi.fn(),deleteThread: vi.fn(),purge: vi.fn(),- getTaskBoard: vi.fn(),- putTaskBoard: vi.fn(),},}));diff --git a/app/src/providers/__tests__/ChatRuntimeProvider.subagentReplay.test.tsx b/app/src/providers/__tests__/ChatRuntimeProvider.subagentReplay.test.tsxindex 14ef17a102..314d1ba440 100644--- a/app/src/providers/__tests__/ChatRuntimeProvider.subagentReplay.test.tsx+++ b/app/src/providers/__tests__/ChatRuntimeProvider.subagentReplay.test.tsx@@ -41,8 +41,6 @@ vi.mock('../../services/api/threadApi', () => ({updateMessage: vi.fn(),deleteThread: vi.fn(),purge: vi.fn(),- getTaskBoard: vi.fn(),- putTaskBoard: vi.fn(),},}));diff --git a/app/src/providers/__tests__/ChatRuntimeProvider.test.tsx b/app/src/providers/__tests__/ChatRuntimeProvider.test.tsxindex da5efa52e6..1802d1cda9 100644--- a/app/src/providers/__tests__/ChatRuntimeProvider.test.tsx+++ b/app/src/providers/__tests__/ChatRuntimeProvider.test.tsx@@ -40,8 +40,6 @@ vi.mock('../../services/api/threadApi', () => ({updateMessage: vi.fn(),deleteThread: vi.fn(),purge: vi.fn(),- getTaskBoard: vi.fn(),- putTaskBoard: vi.fn(),getTurnState: vi.fn(),listRuns: vi.fn(),},@@ -137,27 +135,6 @@ describe('ChatRuntimeProvider — dedupe, proactive resolution, mid-turn invaria).toMatchObject({ sourceToolName: 'spawn_subagent', spawnEntryId: 'sync' });});- it('stores task board updates from socket events', () => {- const listeners = renderProvider();- const board = {- threadId: 'thread-board',- updatedAt: '2026-05-04T10:00:05Z',- cards: [- { id: 'task-1', title: 'Plan', status: 'todo' as const, order: 0, updatedAt: 'now' },- ],- };-- act(() => {- listeners.onTaskBoardUpdated?.({- thread_id: 'thread-board',- request_id: 'req-board',- task_board: board,- });- });-- expect(store.getState().chatRuntime.taskBoardByThread['thread-board']).toEqual(board);- });-it('drops duplicate tool_call events with the same thread/request/round/tool', () => {const listeners = renderProvider();diff --git a/app/src/services/__tests__/chatService.test.ts b/app/src/services/__tests__/chatService.test.tsindex 4ab2041217..8616df8156 100644--- a/app/src/services/__tests__/chatService.test.ts+++ b/app/src/services/__tests__/chatService.test.ts@@ -209,27 +209,6 @@ describe('chatService.subscribeChatEvents', () => {expect(unsubscribedEvents).toEqual(['tool_call', 'chat_done']);});- it('subscribes and forwards task board updates', () => {- const socket = createMockSocket();- bindMockSocket(socket);- const onTaskBoardUpdated = vi.fn();-- subscribeChatEvents({ onTaskBoardUpdated });-- expect(socket.on.mock.calls.map(call => call[0])).toEqual(['task_board_updated']);- const payload = {- thread_id: 'thread-1',- request_id: 'req-1',- task_board: {- threadId: 'thread-1',- updatedAt: '2026-05-04T10:00:05Z',- cards: [{ id: 'task-1', title: 'Plan', status: 'todo', order: 0, updatedAt: 'now' }],- },- };- socket.emit('task_board_updated', payload);- expect(onTaskBoardUpdated).toHaveBeenCalledWith(payload);- });-it('drops malformed artifact_ready payloads without crashing', () => {const socket = createMockSocket();bindMockSocket(socket);diff --git a/app/src/services/api/__tests__/threadGoalApi.test.ts b/app/src/services/api/__tests__/threadGoalApi.test.tsdeleted file mode 100644index 4540300970..0000000000--- a/app/src/services/api/__tests__/threadGoalApi.test.ts+++ /dev/null@@ -1,80 +0,0 @@-import { beforeEach, describe, expect, it, vi } from 'vitest';--const mockCallCoreRpc = vi.fn();--vi.mock('../../coreRpcClient', () => ({- callCoreRpc: (...args: unknown[]) => mockCallCoreRpc(...args),-}));--const { threadGoalApi } = await import('../threadGoalApi');--const goal = {- threadId: 't1',- goalId: 'g-uuid',- objective: 'ship it',- status: 'active' as const,- tokenBudget: 1000,- tokensUsed: 100,- timeUsedSeconds: 5,- createdAtMs: 1,- updatedAtMs: 2,- continuationSuppressed: false,-};--describe('threadGoalApi', () => {- beforeEach(() => mockCallCoreRpc.mockReset());-- it('get returns the bare goal envelope', async () => {- mockCallCoreRpc.mockResolvedValueOnce({ goal });- const out = await threadGoalApi.get('t1');- expect(mockCallCoreRpc).toHaveBeenCalledWith({- method: 'openhuman.thread_goals_get',- params: { thread_id: 't1' },- });- expect(out?.objective).toBe('ship it');- });-- it('get returns null when the thread has no goal', async () => {- mockCallCoreRpc.mockResolvedValueOnce({ goal: null });- expect(await threadGoalApi.get('t1')).toBeNull();- });-- it('set unwraps the { result, logs } envelope and forwards the budget', async () => {- mockCallCoreRpc.mockResolvedValueOnce({ result: { goal }, logs: ['set'] });- const out = await threadGoalApi.set('t1', 'ship it', 1000);- expect(mockCallCoreRpc).toHaveBeenCalledWith({- method: 'openhuman.thread_goals_set',- params: { thread_id: 't1', objective: 'ship it', token_budget: 1000 },- });- expect(out?.goalId).toBe('g-uuid');- });-- it('set omits token_budget when not provided', async () => {- mockCallCoreRpc.mockResolvedValueOnce({ result: { goal }, logs: [] });- await threadGoalApi.set('t1', 'ship it');- expect(mockCallCoreRpc).toHaveBeenCalledWith({- method: 'openhuman.thread_goals_set',- params: { thread_id: 't1', objective: 'ship it' },- });- });-- it('complete / pause / resume hit the right methods', async () => {- mockCallCoreRpc.mockResolvedValue({ result: { goal }, logs: [] });- await threadGoalApi.complete('t1');- await threadGoalApi.pause('t1');- await threadGoalApi.resume('t1');- const methods = mockCallCoreRpc.mock.calls.map(c => (c[0] as { method: string }).method);- expect(methods).toEqual([- 'openhuman.thread_goals_complete',- 'openhuman.thread_goals_pause',- 'openhuman.thread_goals_resume',- ]);- });-- it('clear returns the removed flag', async () => {- mockCallCoreRpc.mockResolvedValueOnce({ result: { removed: true }, logs: ['cleared'] });- expect(await threadGoalApi.clear('t1')).toBe(true);- mockCallCoreRpc.mockResolvedValueOnce({ removed: false });- expect(await threadGoalApi.clear('t1')).toBe(false);- });-});diff --git a/app/src/services/api/__tests__/todosApi.test.ts b/app/src/services/api/__tests__/todosApi.test.tsdeleted file mode 100644index 293713dd08..0000000000--- a/app/src/services/api/__tests__/todosApi.test.ts+++ /dev/null@@ -1,44 +0,0 @@-import { beforeEach, describe, expect, it, vi } from 'vitest';--const mockCallCoreRpc = vi.fn();--vi.mock('../../coreRpcClient', () => ({- callCoreRpc: (...args: unknown[]) => mockCallCoreRpc(...args),-}));--const { todosApi } = await import('../todosApi');--describe('todosApi.setSessionThread', () => {- beforeEach(() => {- mockCallCoreRpc.mockReset();- });-- it('links a card to its session thread via the RPC and returns the board', async () => {- mockCallCoreRpc.mockResolvedValueOnce({- threadId: 'user-tasks',- cards: [- { id: 'c1', title: 'T', status: 'todo', order: 0, updatedAt: '2026-01-01T00:00:00Z' },- ],- });-- const board = await todosApi.setSessionThread('user-tasks', 'c1', 'task-abc');-- expect(mockCallCoreRpc).toHaveBeenCalledWith({- method: 'openhuman.todos_set_session_thread',- params: { thread_id: 'user-tasks', id: 'c1', sessionThreadId: 'task-abc' },- });- expect(board.threadId).toBe('user-tasks');- expect(board.cards).toHaveLength(1);- });-- it('passes null through to clear the link', async () => {- mockCallCoreRpc.mockResolvedValueOnce({ threadId: 'user-tasks', cards: [] });-- await todosApi.setSessionThread('user-tasks', 'c1', null);-- expect(mockCallCoreRpc).toHaveBeenCalledWith({- method: 'openhuman.todos_set_session_thread',- params: { thread_id: 'user-tasks', id: 'c1', sessionThreadId: null },- });- });-});diff --git a/app/src/services/api/threadApi.test.ts b/app/src/services/api/threadApi.test.tsindex 261fc40c0c..559953ec94 100644--- a/app/src/services/api/threadApi.test.ts+++ b/app/src/services/api/threadApi.test.ts@@ -145,39 +145,6 @@ describe('threadApi', () => {expect(result).toEqual(thread);});- it('loads and updates a task board via threads RPC', async () => {- const taskBoard = {- threadId: 'thread-1',- updatedAt: '2026-05-04T10:00:05Z',- cards: [{ id: 'task-1', title: 'Plan', status: 'todo' as const, order: 0, updatedAt: 'now' }],- };- mockCallCoreRpc.mockResolvedValueOnce({ data: { taskBoard } });-- const { threadApi } = await import('./threadApi');- await expect(threadApi.getTaskBoard('thread-1')).resolves.toEqual(taskBoard);- expect(mockCallCoreRpc).toHaveBeenCalledWith({- method: 'openhuman.threads_task_board_get',- params: { thread_id: 'thread-1' },- });-- mockCallCoreRpc.mockResolvedValueOnce({ data: { taskBoard } });- await expect(threadApi.putTaskBoard('thread-1', taskBoard.cards)).resolves.toEqual(taskBoard);- expect(mockCallCoreRpc).toHaveBeenLastCalledWith({- method: 'openhuman.threads_task_board_put',- params: { thread_id: 'thread-1', cards: taskBoard.cards },- });- });-- it('returns null when task board RPC envelopes omit the board', async () => {- mockCallCoreRpc.mockResolvedValueOnce({ data: {} });-- const { threadApi } = await import('./threadApi');- await expect(threadApi.getTaskBoard('thread-1')).resolves.toBeNull();-- mockCallCoreRpc.mockResolvedValueOnce({ data: {} });- await expect(threadApi.putTaskBoard('thread-1', [])).resolves.toBeNull();- });-it('updates a thread title via threads RPC', async () => {const thread = {id: 'thread-1',@@ -200,35 +167,6 @@ describe('threadApi', () => {expect(result).toEqual(thread);});- it('approves a plan via the todos_decide_plan RPC and rebuilds the board', async () => {- mockCallCoreRpc.mockResolvedValueOnce({- data: { threadId: 'thread-1', cards: [{ id: 'card-1', title: 'T', status: 'ready' }] },- });-- const { threadApi } = await import('./threadApi');- const board = await threadApi.decidePlan('thread-1', 'card-1', true);-- expect(mockCallCoreRpc).toHaveBeenCalledWith({- method: 'openhuman.todos_decide_plan',- params: { thread_id: 'thread-1', id: 'card-1', approve: true },- });- expect(board?.threadId).toBe('thread-1');- expect(board?.cards[0].status).toBe('ready');- });-- it('returns null from decidePlan when the snapshot has no cards', async () => {- mockCallCoreRpc.mockResolvedValueOnce({ data: {} });-- const { threadApi } = await import('./threadApi');- const board = await threadApi.decidePlan('thread-1', 'card-1', false);-- expect(mockCallCoreRpc).toHaveBeenCalledWith({- method: 'openhuman.todos_decide_plan',- params: { thread_id: 'thread-1', id: 'card-1', approve: false },- });- expect(board).toBeNull();- });-it('loads durable run ledger rows and events through run_ledger RPCs', async () => {const run = {id: 'sub-1',diff --git a/app/src/services/api/threadApi.ts b/app/src/services/api/threadApi.tsindex a837bc3e03..a8865be9b5 100644--- a/app/src/services/api/threadApi.ts+++ b/app/src/services/api/threadApi.ts@@ -17,15 +17,11 @@ import type {AgentRunGetResponse,AgentRunListResponse,ClearTurnStateResponse,- GetTaskBoardResponse,GetTurnStateResponse,ListTurnStatesResponse,PersistedTurnState,- PutTaskBoardResponse,RunEvent,RunEventListResponse,- TaskBoard,- TaskBoardCard,} from '../../types/turnState';import { callCoreRpc } from '../coreRpcClient';@@ -229,50 +225,6 @@ export const threadApi = {return data?.events ?? [];},- getTaskBoard: async (threadId: string): Promise<TaskBoard | null> => {- const response = await callCoreRpc<{ data?: GetTaskBoardResponse }>({- method: 'openhuman.threads_task_board_get',- params: { thread_id: threadId },- });- const data = unwrapEnvelope(response);- return data?.taskBoard ?? null;- },-- putTaskBoard: async (threadId: string, cards: TaskBoardCard[]): Promise<TaskBoard | null> => {- const response = await callCoreRpc<{ data?: PutTaskBoardResponse }>({- method: 'openhuman.threads_task_board_put',- params: { thread_id: threadId, cards },- });- const data = unwrapEnvelope(response);- return data?.taskBoard ?? null;- },-- /**- * Approve or reject a task-board card that is awaiting plan approval- * (`openhuman.todos_decide_plan`). Approve → the card becomes runnable- * (`ready`); reject → `rejected`. Returns the updated board (rebuilt from- * the returned todos snapshot) or null.- */- decidePlan: async (- threadId: string,- cardId: string,- approve: boolean- ): Promise<TaskBoard | null> => {- const response = await callCoreRpc<{- data?: { threadId?: string | null; cards?: TaskBoardCard[] };- }>({- method: 'openhuman.todos_decide_plan',- params: { thread_id: threadId, id: cardId, approve },- });- const data = unwrapEnvelope(response);- if (!data?.cards) return null;- return {- threadId: data.threadId ?? threadId,- cards: data.cards,- updatedAt: new Date().toISOString(),- };- },-updateLabels: async (threadId: string, labels: string[]): Promise<Thread> => {const response = await callCoreRpc<Envelope<Thread>>({method: 'openhuman.threads_update_labels',diff --git a/app/src/services/api/threadGoalApi.ts b/app/src/services/api/threadGoalApi.tsdeleted file mode 100644index 153610dd08..0000000000--- a/app/src/services/api/threadGoalApi.ts+++ /dev/null@@ -1,114 +0,0 @@-/**- * Frontend client for the thread-level goal surface (`openhuman.thread_goals_*`).- *- * A thread goal is a single, thread-scoped "completion contract" (Codex-style)- * the agent pursues across turns — distinct from the global long-term goals list- * ({@link ./goalsApi}) and the per-thread task board. The Rust handlers persist- * one goal per thread under `<workspace>/thread_goals/<hex(thread_id)>.json`.- *- * Wire shapes: `get` returns the bare `{ goal }` envelope; the mutation methods- * wrap their value in `{ result, logs }` when logs are present. {@link unwrap}- * normalises both so callers always get the typed payload.- */-import debug from 'debug';--import { callCoreRpc } from '../coreRpcClient';--const log = debug('openhuman:threadGoalApi');--/** Lifecycle state of a thread goal (mirrors the Rust `ThreadGoalStatus`). */-export type ThreadGoalStatus = 'active' | 'paused' | 'budget_limited' | 'complete';--/** A single thread-scoped goal (mirrors the Rust `ThreadGoal`, camelCase wire). */-export interface ThreadGoal {- threadId: string;- goalId: string;- objective: string;- status: ThreadGoalStatus;- tokenBudget?: number | null;- tokensUsed: number;- timeUsedSeconds: number;- createdAtMs: number;- updatedAtMs: number;- continuationSuppressed: boolean;-}--/** Unwrap the optional `{ result, logs }` RpcOutcome envelope. */-function unwrap<T>(res: unknown): T {- if (res && typeof res === 'object' && 'result' in (res as Record<string, unknown>)) {- return (res as { result: T }).result;- }- return res as T;-}--/** Pull a `ThreadGoal | null` out of a `{ goal }` envelope. */-function extractGoal(res: unknown): ThreadGoal | null {- const value = unwrap<{ goal?: ThreadGoal | null }>(res);- return value && typeof value === 'object' && value.goal ? value.goal : null;-}--export const threadGoalApi = {- /** Get the thread's goal, or `null` when it has none. */- get: async (threadId: string): Promise<ThreadGoal | null> => {- log('get thread=%s', threadId);- const res = await callCoreRpc<unknown>({- method: 'openhuman.thread_goals_get',- params: { thread_id: threadId },- });- return extractGoal(res);- },-- /** Create or replace the thread's goal. */- set: async (- threadId: string,- objective: string,- tokenBudget?: number- ): Promise<ThreadGoal | null> => {- log('set thread=%s budget=%o', threadId, tokenBudget);- const params: Record<string, unknown> = { thread_id: threadId, objective };- if (typeof tokenBudget === 'number') params.token_budget = tokenBudget;- const res = await callCoreRpc<unknown>({ method: 'openhuman.thread_goals_set', params });- return extractGoal(res);- },-- /** Mark the thread's goal complete. */- complete: async (threadId: string): Promise<ThreadGoal | null> => {- log('complete thread=%s', threadId);- const res = await callCoreRpc<unknown>({- method: 'openhuman.thread_goals_complete',- params: { thread_id: threadId },- });- return extractGoal(res);- },-- /** Pause an active goal. */- pause: async (threadId: string): Promise<ThreadGoal | null> => {- log('pause thread=%s', threadId);- const res = await callCoreRpc<unknown>({- method: 'openhuman.thread_goals_pause',- params: { thread_id: threadId },- });- return extractGoal(res);- },-- /** Resume a paused goal. */- resume: async (threadId: string): Promise<ThreadGoal | null> => {- log('resume thread=%s', threadId);- const res = await callCoreRpc<unknown>({- method: 'openhuman.thread_goals_resume',- params: { thread_id: threadId },- });- return extractGoal(res);- },-- /** Clear (delete) the thread's goal. Returns whether one existed. */- clear: async (threadId: string): Promise<boolean> => {- log('clear thread=%s', threadId);- const res = await callCoreRpc<unknown>({- method: 'openhuman.thread_goals_clear',- params: { thread_id: threadId },- });- const value = unwrap<{ removed?: boolean }>(res);- return !!(value && typeof value === 'object' && value.removed);- },-};diff --git a/app/src/services/api/todosApi.test.ts b/app/src/services/api/todosApi.test.tsdeleted file mode 100644index 861ebb99e7..0000000000--- a/app/src/services/api/todosApi.test.ts+++ /dev/null@@ -1,104 +0,0 @@-import { beforeEach, describe, expect, it, vi } from 'vitest';--import { callCoreRpc } from '../coreRpcClient';-import { todosApi, USER_TASKS_THREAD_ID } from './todosApi';--vi.mock('../coreRpcClient', () => ({ callCoreRpc: vi.fn() }));--const mockCall = vi.mocked(callCoreRpc);--function snapshot(cards: unknown[], threadId: string | null = USER_TASKS_THREAD_ID) {- return { threadId, cards, markdown: '' };-}--describe('todosApi', () => {- beforeEach(() => {- vi.clearAllMocks();- });-- it('exposes a stable reserved personal board id', () => {- expect(USER_TASKS_THREAD_ID).toBe('user-tasks');- });-- it('list maps a snapshot into a TaskBoard and derives updatedAt from the latest card', async () => {- mockCall.mockResolvedValueOnce(- snapshot([- { id: 'a', title: 'A', status: 'todo', order: 0, updatedAt: '2026-01-01T00:00:00Z' },- { id: 'b', title: 'B', status: 'done', order: 1, updatedAt: '2026-02-01T00:00:00Z' },- ])- );- const board = await todosApi.list(USER_TASKS_THREAD_ID);- expect(mockCall).toHaveBeenCalledWith({- method: 'openhuman.todos_list',- params: { thread_id: USER_TASKS_THREAD_ID },- });- expect(board.threadId).toBe(USER_TASKS_THREAD_ID);- expect(board.cards).toHaveLength(2);- expect(board.updatedAt).toBe('2026-02-01T00:00:00Z');- });-- it('add omits undefined fields but preserves explicit nulls', async () => {- mockCall.mockResolvedValueOnce(snapshot([]));- await todosApi.add({- threadId: USER_TASKS_THREAD_ID,- content: 'Buy milk',- status: 'todo',- objective: null,- });- expect(mockCall).toHaveBeenCalledWith({- method: 'openhuman.todos_add',- params: {- thread_id: USER_TASKS_THREAD_ID,- content: 'Buy milk',- status: 'todo',- objective: null,- },- });- // `notes` was undefined → pruned from the wire params.- const params = mockCall.mock.calls[0][0].params as Record<string, unknown>;- expect('notes' in params).toBe(false);- });-- it('edit forwards camelCase patch fields and a clearing null approvalMode', async () => {- mockCall.mockResolvedValueOnce(snapshot([]));- await todosApi.edit({- threadId: 't-1',- id: 'card-1',- content: 'New title',- approvalMode: null,- allowedTools: ['todo'],- });- expect(mockCall).toHaveBeenCalledWith({- method: 'openhuman.todos_edit',- params: {- thread_id: 't-1',- id: 'card-1',- content: 'New title',- approvalMode: null,- allowedTools: ['todo'],- },- });- });-- it('updateStatus and remove call the matching RPC methods', async () => {- mockCall.mockResolvedValueOnce(snapshot([]));- await todosApi.updateStatus('t-1', 'card-1', 'done');- expect(mockCall).toHaveBeenLastCalledWith({- method: 'openhuman.todos_update_status',- params: { thread_id: 't-1', id: 'card-1', status: 'done' },- });-- mockCall.mockResolvedValueOnce(snapshot([]));- await todosApi.remove('t-1', 'card-1');- expect(mockCall).toHaveBeenLastCalledWith({- method: 'openhuman.todos_remove',- params: { thread_id: 't-1', id: 'card-1' },- });- });-- it('falls back to the request thread id when the snapshot omits one', async () => {- mockCall.mockResolvedValueOnce(snapshot([], null));- const board = await todosApi.list('t-xyz');- expect(board.threadId).toBe('t-xyz');- });-});diff --git a/app/src/services/api/todosApi.ts b/app/src/services/api/todosApi.tsdeleted file mode 100644index 501cab3063..0000000000--- a/app/src/services/api/todosApi.ts+++ /dev/null@@ -1,200 +0,0 @@-/**- * Frontend client for the per-board todo CRUD surface- * (`openhuman.todos_*`). The Rust handlers persist to the same- * `<workspace>/agent_task_boards/<hex(thread_id)>.json` store used by the- * agent task board, so user-driven edits made here and agent-driven edits- * made by the `todo` tool stay in lock-step.- *- * Boards are keyed by an arbitrary `thread_id` string — the handlers never- * check that the thread exists — so a reserved id (see- * {@link USER_TASKS_THREAD_ID}) backs a personal task board that is not- * attached to any conversation.- */-import debug from 'debug';--import type {- TaskApprovalMode,- TaskBoard,- TaskBoardCard,- TaskBoardCardStatus,-} from '../../types/turnState';-import { callCoreRpc } from '../coreRpcClient';--const log = debug('todosApi');--/**- * Reserved board id for the user's personal task list — tasks created- * without attaching to a conversation live here. Thread ids issued by the- * core are UUID/hex, so this human-readable sentinel never collides.- */-export const USER_TASKS_THREAD_ID = 'user-tasks';--/**- * The orchestrator's single **global** Kanban board. Unlike per-thread agent- * boards (thread-scoped to-dos live under Tiny Agents instead), this is one- * app-wide board the orchestrator owns. A human-readable sentinel like the- * others — persisted as its own `agent_task_boards/<hex(id)>.json`.- */-export const ORCHESTRATOR_TASKS_THREAD_ID = 'orchestrator-tasks';--/** Wire shape returned by every `todos_*` handler (`TodosSnapshot`). */-interface TodosSnapshotWire {- threadId?: string | null;- cards?: TaskBoardCard[];- markdown?: string;-}--/** Fields accepted when creating a card. */-interface AddTodoInput {- threadId: string;- content: string;- status?: TaskBoardCardStatus;- objective?: string | null;- notes?: string | null;- assignedAgent?: string | null;- approvalMode?: TaskApprovalMode | null;- /** Originating task-source identifiers, stamped onto the promoted card so the- * inbox can detect it was already picked up. */- sourceMetadata?: Record<string, unknown> | null;-}--/** Fields accepted when editing a card. Omitted fields are left unchanged. */-interface EditTodoInput {- threadId: string;- id: string;- content?: string;- status?: TaskBoardCardStatus;- objective?: string | null;- notes?: string | null;- blocker?: string | null;- assignedAgent?: string | null;- approvalMode?: TaskApprovalMode | null;- plan?: string[];- allowedTools?: string[];- acceptanceCriteria?: string[];- evidence?: string[];-}--/**- * Build a `TaskBoard` from a snapshot. The snapshot omits a board-level- * timestamp, so we derive `updatedAt` from the most-recently-touched card- * (falling back to "now") purely for ordering in the UI.- */-function snapshotToBoard(snap: TodosSnapshotWire, fallbackThreadId: string): TaskBoard {- const cards = snap.cards ?? [];- const latest = cards.reduce<string>(- (acc, card) => (card.updatedAt && card.updatedAt > acc ? card.updatedAt : acc),- ''- );- return {- threadId: snap.threadId ?? fallbackThreadId,- cards,- updatedAt: latest || new Date().toISOString(),- };-}--/**- * Strip `undefined` params so we only send fields the caller set —- * `null` is preserved because the edit handler treats it as "clear".- */-function pruneParams(params: Record<string, unknown>): Record<string, unknown> {- const out: Record<string, unknown> = {};- for (const [key, value] of Object.entries(params)) {- if (value !== undefined) out[key] = value;- }- return out;-}--export const todosApi = {- /** List the cards for a board. */- list: async (threadId: string): Promise<TaskBoard> => {- log('list threadId=%s', threadId);- const snap = await callCoreRpc<TodosSnapshotWire>({- method: 'openhuman.todos_list',- params: { thread_id: threadId },- });- return snapshotToBoard(snap, threadId);- },-- /** Append a new card to a board. */- add: async (input: AddTodoInput): Promise<TaskBoard> => {- log('add threadId=%s', input.threadId);- const snap = await callCoreRpc<TodosSnapshotWire>({- method: 'openhuman.todos_add',- params: pruneParams({- thread_id: input.threadId,- content: input.content,- status: input.status,- objective: input.objective,- notes: input.notes,- assignedAgent: input.assignedAgent,- approvalMode: input.approvalMode,- sourceMetadata: input.sourceMetadata,- }),- });- return snapshotToBoard(snap, input.threadId);- },-- /** Edit an existing card by id. */- edit: async (input: EditTodoInput): Promise<TaskBoard> => {- log('edit threadId=%s id=%s', input.threadId, input.id);- const snap = await callCoreRpc<TodosSnapshotWire>({- method: 'openhuman.todos_edit',- params: pruneParams({- thread_id: input.threadId,- id: input.id,- content: input.content,- status: input.status,- objective: input.objective,- notes: input.notes,- blocker: input.blocker,- assignedAgent: input.assignedAgent,- approvalMode: input.approvalMode,- plan: input.plan,- allowedTools: input.allowedTools,- acceptanceCriteria: input.acceptanceCriteria,- evidence: input.evidence,- }),- });- return snapshotToBoard(snap, input.threadId);- },-- /** Update only the status of a card. */- updateStatus: async (- threadId: string,- id: string,- status: TaskBoardCardStatus- ): Promise<TaskBoard> => {- log('updateStatus threadId=%s id=%s status=%s', threadId, id, status);- const snap = await callCoreRpc<TodosSnapshotWire>({- method: 'openhuman.todos_update_status',- params: { thread_id: threadId, id, status },- });- return snapshotToBoard(snap, threadId);- },-- /** Link a card to its agent session's conversation thread (drives the board- * "View session" jump). Pass `null` to clear the link. */- setSessionThread: async (- threadId: string,- id: string,- sessionThreadId: string | null- ): Promise<TaskBoard> => {- log('setSessionThread threadId=%s id=%s sessionThreadId=%s', threadId, id, sessionThreadId);- const snap = await callCoreRpc<TodosSnapshotWire>({- method: 'openhuman.todos_set_session_thread',- params: { thread_id: threadId, id, sessionThreadId },- });- return snapshotToBoard(snap, threadId);- },-- /** Remove a card by id. */- remove: async (threadId: string, id: string): Promise<TaskBoard> => {- log('remove threadId=%s id=%s', threadId, id);- const snap = await callCoreRpc<TodosSnapshotWire>({- method: 'openhuman.todos_remove',- params: { thread_id: threadId, id },- });- return snapshotToBoard(snap, threadId);- },-};diff --git a/app/src/services/chatService.ts b/app/src/services/chatService.tsindex d234d296fe..b54e72a038 100644--- a/app/src/services/chatService.ts+++ b/app/src/services/chatService.ts@@ -8,7 +8,6 @@*/import debug from 'debug';-import type { TaskBoard } from '../types/turnState';import { callCoreRpc } from './coreRpcClient';import { socketService } from './socketService';@@ -572,12 +571,6 @@ export interface ChatToolArgsDeltaEvent {delta: string;}-export interface ChatTaskBoardUpdatedEvent {- thread_id: string;- request_id?: string;- task_board: TaskBoard;-}-export interface ChatEventListeners {onInferenceStart?: (event: ChatInferenceStartEvent) => void;onInferenceHeartbeat?: (event: ChatInferenceHeartbeatEvent) => void;@@ -597,7 +590,6 @@ export interface ChatEventListeners {onTextDelta?: (event: ChatTextDeltaEvent) => void;onThinkingDelta?: (event: ChatThinkingDeltaEvent) => void;onToolArgsDelta?: (event: ChatToolArgsDeltaEvent) => void;- onTaskBoardUpdated?: (event: ChatTaskBoardUpdatedEvent) => void;onProactiveMessage?: (event: ProactiveMessageEvent) => void;onApprovalRequest?: (event: ChatApprovalRequestEvent) => void;onPlanReviewRequest?: (event: ChatPlanReviewRequestEvent) => void;@@ -644,7 +636,6 @@ export function subscribeChatEvents(listeners: ChatEventListeners): () => void {textDelta: 'text_delta',thinkingDelta: 'thinking_delta',toolArgsDelta: 'tool_args_delta',- taskBoardUpdated: 'task_board_updated',proactiveMessage: 'proactive_message',approvalRequest: 'approval_request',planReviewRequest: 'plan_review_request',@@ -1188,22 +1179,6 @@ export function subscribeChatEvents(listeners: ChatEventListeners): () => void {handlers.push([EVENTS.artifactFailed, cb]);}- if (listeners.onTaskBoardUpdated) {- const cb = (payload: unknown) => {- const e = payload as ChatTaskBoardUpdatedEvent;- chatLog(- '%s thread_id=%s request_id=%s cards=%d',- EVENTS.taskBoardUpdated,- e.thread_id,- e.request_id,- e.task_board?.cards?.length ?? 0- );- listeners.onTaskBoardUpdated?.(e);- };- socket.on(EVENTS.taskBoardUpdated, cb);- handlers.push([EVENTS.taskBoardUpdated, cb]);- }-if (listeners.onDone) {const cb = (payload: unknown) => {const e = payload as ChatDoneEvent;diff --git a/app/src/store/__tests__/chatRuntimeSlice.test.ts b/app/src/store/__tests__/chatRuntimeSlice.test.tsindex e0e2459368..313b385169 100644--- a/app/src/store/__tests__/chatRuntimeSlice.test.ts+++ b/app/src/store/__tests__/chatRuntimeSlice.test.ts@@ -11,7 +11,6 @@ import reducer, {clearPendingApprovalForThread,clearRuntimeForThread,clearStreamingAssistantForThread,- clearTaskBoardForThread,clearToolTimelineForThread,endInferenceTurn,hydrateRuntimeFromRunLedger,@@ -23,7 +22,6 @@ import reducer, {setParallelStream,setPendingApprovalForThread,setStreamingAssistantForThread,- setTaskBoardForThread,setToolTimelineForThread,streamDeltaReceived,subagentAwaitingUser,@@ -141,47 +139,6 @@ describe('chatRuntimeSlice', () => {expect(cleared.toolTimelineByThread['thread-1']).toBeUndefined();});- it('stores task boards by thread and hydrates them from snapshots', () => {- const taskBoard = {- threadId: 'thread-board',- updatedAt: '2026-05-04T10:00:05Z',- cards: [- {- id: 'task-1',- title: 'Draft plan',- status: 'todo' as const,- order: 0,- updatedAt: '2026-05-04T10:00:05Z',- },- ],- };-- const withBoard = reducer(- undefined,- setTaskBoardForThread({ threadId: 'thread-board', board: taskBoard })- );- expect(withBoard.taskBoardByThread['thread-board']).toEqual(taskBoard);-- const afterClear = reducer(withBoard, clearTaskBoardForThread({ threadId: 'thread-board' }));- expect(afterClear.taskBoardByThread['thread-board']).toBeUndefined();-- const snapshot: PersistedTurnState = {- threadId: 'thread-h',- requestId: 'req-h',- lifecycle: 'streaming',- iteration: 1,- maxIterations: 25,- streamingText: '',- thinking: '',- toolTimeline: [],- taskBoard,- startedAt: '2026-05-04T10:00:00Z',- updatedAt: '2026-05-04T10:00:05Z',- };- const hydrated = reducer(undefined, hydrateRuntimeFromSnapshot({ snapshot }));- expect(hydrated.taskBoardByThread['thread-h']).toEqual(taskBoard);- });-it('tracks per-thread inference turn lifecycle', () => {const started = reducer(undefined, beginInferenceTurn({ threadId: 'thread-1' }));expect(started.inferenceTurnLifecycleByThread['thread-1']).toBe('started');@@ -496,7 +453,6 @@ describe('chatRuntimeSlice', () => {expect(cleared.inferenceStatusByThread['thread-1']).toBeUndefined();expect(cleared.streamingAssistantByThread['thread-1']).toBeUndefined();expect(cleared.toolTimelineByThread['thread-1']).toBeUndefined();- expect(cleared.taskBoardByThread['thread-1']).toBeUndefined();expect(cleared.inferenceTurnLifecycleByThread['thread-1']).toBeUndefined();});diff --git a/app/src/store/chatRuntimeSlice.test.ts b/app/src/store/chatRuntimeSlice.test.tsindex 4bedcb0735..7d10786a1b 100644--- a/app/src/store/chatRuntimeSlice.test.ts+++ b/app/src/store/chatRuntimeSlice.test.ts@@ -625,19 +625,6 @@ describe('hydrateRuntimeFromSnapshot — live-driver guard', () => {thinking: '',// Flush-boundary snapshot: one lonely row, behind the live state.toolTimeline: [{ id: 'c-old', name: 'web_search', round: 1, status: 'running' }],- taskBoard: {- threadId,- cards: [- {- id: 'card-1',- title: 'Do the thing',- status: 'in_progress',- order: 0,- updatedAt: '2026-06-23T00:00:00Z',- },- ],- updatedAt: '2026-06-23T00:00:00Z',- },startedAt: '2026-06-23T00:00:00Z',updatedAt: '2026-06-23T00:00:00Z',};@@ -682,8 +669,6 @@ describe('hydrateRuntimeFromSnapshot — live-driver guard', () => {expect(state.pendingApprovalByThread['t-live']?.requestId).toBe('req-live');// …and the lifecycle stays live.expect(state.inferenceTurnLifecycleByThread['t-live']).toBe('streaming');- // The task board (monotonic, cheap) is still applied.- expect(state.taskBoardByThread['t-live']?.cards[0]?.id).toBe('card-1');});it('applies the snapshot when there is no live driver (cold boot / new window)', () => {diff --git a/app/src/store/chatRuntimeSlice.ts b/app/src/store/chatRuntimeSlice.tsindex d4b7852c47..78d7ef9e46 100644--- a/app/src/store/chatRuntimeSlice.ts+++ b/app/src/store/chatRuntimeSlice.ts@@ -13,7 +13,6 @@ import type {PersistedToolTimelineEntry,PersistedTranscriptItem,PersistedTurnState,- TaskBoard,} from '../types/turnState';import { DERIVED_TRANSCRIPT_ENABLED } from '../utils/config';import {@@ -730,7 +729,6 @@ interface ChatRuntimeState {* to the tool-only view.*/processingByThread: Record<string, ProcessingTranscriptItem[]>;- taskBoardByThread: Record<string, TaskBoard>;inferenceTurnLifecycleByThread: Record<string, InferenceTurnLifecycle>;pendingApprovalByThread: Record<string, PendingApproval>;pendingPlanReviewByThread: Record<string, PendingPlanReview>;@@ -810,7 +808,6 @@ const initialState: ChatRuntimeState = {turnTranscriptsByThread: {},interruptedAssistantByThread: {},processingByThread: {},- taskBoardByThread: {},inferenceTurnLifecycleByThread: {},pendingApprovalByThread: {},pendingPlanReviewByThread: {},@@ -1834,15 +1831,6 @@ const chatRuntimeSlice = createSlice({// successful result clears any stale failure (#4459).item.failure = success ? undefined : failure;},- setTaskBoardForThread: (- state,- action: PayloadAction<{ threadId: string; board: TaskBoard }>- ) => {- state.taskBoardByThread[action.payload.threadId] = action.payload.board;- },- clearTaskBoardForThread: (state, action: PayloadAction<{ threadId: string }>) => {- delete state.taskBoardByThread[action.payload.threadId];- },setPendingApprovalForThread: (state,action: PayloadAction<{ threadId: string; approval: PendingApproval }>@@ -2080,7 +2068,6 @@ const chatRuntimeSlice = createSlice({delete state.toolTimelineByThread[action.payload.threadId];delete state.toolTimelineSeqByThread[action.payload.threadId];delete state.processingByThread[action.payload.threadId];- delete state.taskBoardByThread[action.payload.threadId];delete state.inferenceTurnLifecycleByThread[action.payload.threadId];delete state.pendingApprovalByThread[action.payload.threadId];delete state.pendingPlanReviewByThread[action.payload.threadId];@@ -2106,7 +2093,6 @@ const chatRuntimeSlice = createSlice({state.turnTranscriptsByThread = {};state.interruptedAssistantByThread = {};state.processingByThread = {};- state.taskBoardByThread = {};state.inferenceTurnLifecycleByThread = {};state.pendingApprovalByThread = {};state.pendingPlanReviewByThread = {};@@ -2205,15 +2191,12 @@ const chatRuntimeSlice = createSlice({// another tab/route). The snapshot was written at the last flush boundary// and is at best equal to — usually behind — the in-memory state, so// applying it would wipe streamed prose, tool results, and any pending- // approval card mid-turn. Take only the task board (monotonic, cheap) and- // leave the volatile state to the live event stream. Rehydration is a+ // approval card mid-turn. Leave the volatile state to the live event+ // stream. Rehydration is a// fallback for when there is no live driver (cold boot, new window,// interrupted turn), not an overwrite of one.const liveLifecycle = state.inferenceTurnLifecycleByThread[threadId];if (liveLifecycle === 'started' || liveLifecycle === 'streaming') {- if (snapshot.taskBoard) {- state.taskBoardByThread[threadId] = snapshot.taskBoard;- }// A live turn is driving the thread — any interrupted partial from a// prior crashed turn is superseded and must not linger under it.delete state.interruptedAssistantByThread[threadId];@@ -2245,9 +2228,6 @@ const chatRuntimeSlice = createSlice({if (snapshot.lifecycle === 'interrupted') {delete state.pendingWorkflowProposalsByThread[threadId];}- if (snapshot.taskBoard) {- state.taskBoardByThread[threadId] = snapshot.taskBoard;- }// Terminal turns (interrupted = crashed mid-flight; completed = finished// normally, snapshot kept for replay) have no live driver — surface only@@ -2416,8 +2396,6 @@ export const {appendSubagentStreamDelta,recordSubagentTranscriptTool,resolveSubagentTranscriptTool,- setTaskBoardForThread,- clearTaskBoardForThread,setPendingApprovalForThread,clearPendingApprovalForThread,setPendingPlanReviewForThread,diff --git a/app/src/types/turnState.ts b/app/src/types/turnState.tsindex b505aa19f1..748620aa8a 100644--- a/app/src/types/turnState.ts+++ b/app/src/types/turnState.ts@@ -11,47 +11,6 @@ export type PersistedTurnPhase = 'thinking' | 'tool_use' | 'subagent';export type PersistedToolStatus = 'running' | 'success' | 'error';-export type TaskBoardCardStatus =- | 'todo'- | 'awaiting_approval'- | 'ready'- | 'in_progress'- | 'blocked'- | 'done'- | 'rejected';-export type TaskApprovalMode = 'required' | 'not_required';--export interface TaskBoardCard {- id: string;- title: string;- status: TaskBoardCardStatus;- objective?: string | null;- plan?: string[];- assignedAgent?: string | null;- allowedTools?: string[];- approvalMode?: TaskApprovalMode | null;- acceptanceCriteria?: string[];- evidence?: string[];- notes?: string | null;- blocker?: string | null;- /** Conversation thread id of the card's live/last agent session, if any —- * drives the "View session" jump into Conversations. Set by the autonomous- * dispatcher and the manual "Work" path. */- sessionThreadId?: string | null;- /** Provider/source identifiers for a card ingested from a task source- * (`{provider, source_id, external_id, url, repo?, urgency}`); absent on- * agent/UI-authored cards. */- sourceMetadata?: Record<string, unknown> | null;- order: number;- updatedAt: string;-}--export interface TaskBoard {- threadId: string;- cards: TaskBoardCard[];- updatedAt: string;-}-export interface PersistedSubagentToolCall {callId: string;toolName: string;@@ -187,7 +146,6 @@ export interface PersistedTurnState {/** Ordered narration/thinking/tool transcript for the processing panel.* Absent on snapshots written before this field. */transcript?: PersistedTranscriptItem[];- taskBoard?: TaskBoard | null;startedAt: string;updatedAt: string;}@@ -279,11 +237,3 @@ export interface RunEventListResponse {events: RunEvent[];count: number;}--export interface GetTaskBoardResponse {- taskBoard: TaskBoard;-}--export interface PutTaskBoardResponse {- taskBoard: TaskBoard;-}diff --git a/app/test/e2e/specs/chat-thread-todo-strip.spec.ts b/app/test/e2e/specs/chat-thread-todo-strip.spec.tsdeleted file mode 100644index 269add7d4d..0000000000--- a/app/test/e2e/specs/chat-thread-todo-strip.spec.ts+++ /dev/null@@ -1,128 +0,0 @@-// @ts-nocheck-/**- * Chat thread todo strip — end-to-end.- *- * Exercises the per-conversation-thread todo list, top to bottom:- * - The mock LLM emits a `todo` tool call (op:add) on turn 1, then a final- * answer on turn 2.- * - The Rust core executes the thread-bound `todo` tool against the selected- * thread's task board and emits a `task_board_updated` progress event.- * - The frontend records the board into `chatRuntime.taskBoardByThread[tid]`.- * - The read-only `ThreadTodoStrip` (`[data-testid="thread-todo-strip"]`)- * renders above the composer with the agent-authored card.- *- * This is the feature E2E for the "todo list per thread" surface: it proves the- * agent can author its plan AND that the plan renders in the chat view — the- * full path the unit tests can only stub.- */-import { waitForApp } from '../helpers/app-helpers';-import {- chatMounted,- clickByTitle,- clickSend,- getSelectedThreadId,- typeIntoComposer,- waitForSocketConnected,-} from '../helpers/chat-harness';-import { textExists } from '../helpers/element-helpers';-import { resetApp } from '../helpers/reset-app';-import { navigateViaHash } from '../helpers/shared-flows';-import { clearRequestLog, setMockBehavior, startMockServer, stopMockServer } from '../mock-server';--const LOG_PREFIX = '[chat-thread-todo-strip]';-const USER_ID = 'e2e-chat-thread-todo-strip';-const PROMPT = 'Plan the multi-step refactor before you start.';-const CARD_TITLE = 'canary-todo-card-7e2a9d';-const FINAL_REPLY = 'Plan recorded — starting now. canary-final-3f1c';--// Turn 1: the LLM writes a card to the thread board via the `todo` tool.-// Turn 2: it answers now that the plan exists.-const FORCED_RESPONSES = [- {- content: '',- toolCalls: [- {- id: 'call_todo_add_1',- name: 'todo',- arguments: JSON.stringify({ op: 'add', content: CARD_TITLE, status: 'in_progress' }),- },- ],- },- { content: FINAL_REPLY },-];--/** Read the selected thread's board cards straight out of the redux store. */-async function boardCardTitles(threadId: string): Promise<string[]> {- return (await browser.execute((tid: string) => {- const winAny = window as unknown as { __OPENHUMAN_STORE__?: { getState: () => unknown } };- const state = winAny.__OPENHUMAN_STORE__?.getState() as- | {- chatRuntime?: {- taskBoardByThread?: Record<string, { cards?: Array<{ title?: string }> }>;- };- }- | undefined;- const board = state?.chatRuntime?.taskBoardByThread?.[tid];- return (board?.cards ?? []).map(c => c?.title ?? '');- }, threadId)) as string[];-}--describe('Chat thread todo strip', () => {- before(async function beforeSuite() {- this.timeout(90_000);- await startMockServer();- await waitForApp();- await resetApp(USER_ID);-- setMockBehavior('llmForcedResponses', JSON.stringify(FORCED_RESPONSES));- setMockBehavior('llmStreamChunkDelayMs', '10');- clearRequestLog();- console.log(`${LOG_PREFIX} setup complete — forced todo tool-call configured`);- });-- after(async () => {- setMockBehavior('llmForcedResponses', '');- setMockBehavior('llmStreamChunkDelayMs', '');- await stopMockServer();- });-- it('renders the agent-authored card in the thread todo strip above the composer', async () => {- await navigateViaHash('/chat');- await browser.waitUntil(async () => await chatMounted(), {- timeout: 15_000,- timeoutMsg: 'Conversations panel did not mount',- });- expect(await clickByTitle('New thread', 8_000)).toBe(true);-- const threadId = (await browser.waitUntil(async () => await getSelectedThreadId(), {- timeout: 8_000,- timeoutMsg: 'thread.selectedThreadId never populated',- })) as string;- expect(typeof threadId).toBe('string');-- await typeIntoComposer(PROMPT);- if (!(await waitForSocketConnected(30_000))) {- console.warn(`${LOG_PREFIX} socket did not connect within 30 s — send may fail`);- }- expect(- await browser.waitUntil(async () => await clickSend(), {- timeout: 5_000,- timeoutMsg: 'Send button never enabled',- })- ).toBe(true);-- // The board lands in redux once the core processes the `todo` tool call and- // emits task_board_updated.- await browser.waitUntil(async () => (await boardCardTitles(threadId)).includes(CARD_TITLE), {- timeout: 45_000,- timeoutMsg: 'thread board never received the agent-authored card',- });-- // The read-only strip mounts above the composer and lists the active card.- const strip = await $('[data-testid="thread-todo-strip"]');- await strip.waitForExist({ timeout: 15_000 });- expect(await strip.isDisplayed()).toBe(true);- expect(await textExists(CARD_TITLE)).toBe(true);- console.log(`${LOG_PREFIX} passed — strip rendered the agent-authored card`);- });-});diff --git a/crates/openhuman-core/src/agent/goals/README.md b/crates/openhuman-core/src/agent/goals/README.mdnew file mode 100644index 0000000000..e0355b17e7--- /dev/null+++ b/crates/openhuman-core/src/agent/goals/README.md@@ -0,0 +1,8 @@+# Agent goals++TinyAgents owns goal types, lifecycle, persistence, budgets, and prompt+rendering. This directory contains OpenHuman runtime adapters for ambient+thread selection, tool registration, turn accounting, and idle continuation.++Goals are controlled by the agent tools and runtime. There is no thread-goal+frontend or `openhuman.thread_goals_*` JSON-RPC API.diff --git a/crates/openhuman-core/src/threads/goals/continuation.rs b/crates/openhuman-core/src/agent/goals/continuation.rssimilarity index 100%rename from crates/openhuman-core/src/threads/goals/continuation.rsrename to crates/openhuman-core/src/agent/goals/continuation.rsdiff --git a/crates/openhuman-core/src/threads/goals/continuation_tests.rs b/crates/openhuman-core/src/agent/goals/continuation_tests.rssimilarity index 100%rename from crates/openhuman-core/src/threads/goals/continuation_tests.rsrename to crates/openhuman-core/src/agent/goals/continuation_tests.rsdiff --git a/crates/openhuman-core/src/agent/goals/mod.rs b/crates/openhuman-core/src/agent/goals/mod.rsnew file mode 100644index 0000000000..5ffe8bee68--- /dev/null+++ b/crates/openhuman-core/src/agent/goals/mod.rs@@ -0,0 +1,15 @@+//! Thin OpenHuman host adapters for [`tinyagents_graph::goals`].+//!+//! Tinyagents owns the goal types, lifecycle, persistence, prompt rendering,+//! graph continuation, and native harness tools. This module contains the+//! remaining OpenHuman-specific adapters: workspace-store resolution, domain+//! events, heartbeat dispatch, and bridges for+//! OpenHuman's `Tool` and `StopHook` traits.++pub mod continuation;+pub mod runtime;+pub mod store;+pub mod tools;++pub use tinyagents_graph::goals::{ThreadGoal, ThreadGoalStatus};+pub use tools::{GoalCompleteTool, GoalGetTool, GoalSetTool};diff --git a/crates/openhuman-core/src/threads/goals/runtime.rs b/crates/openhuman-core/src/agent/goals/runtime.rssimilarity index 99%rename from crates/openhuman-core/src/threads/goals/runtime.rsrename to crates/openhuman-core/src/agent/goals/runtime.rsindex 22657152b2..ffd9990e87 100644--- a/crates/openhuman-core/src/threads/goals/runtime.rs+++ b/crates/openhuman-core/src/agent/goals/runtime.rs@@ -24,8 +24,7 @@ use async_trait::async_trait;use tinyagents_graph::goals::budget as crate_budget;use tinyagents_graph::goals::{BudgetVerdict, GoalBudgetGuard};-use super::migration::goals_store;-use super::store;+use super::store::{self, goals_store};use super::{ThreadGoal, ThreadGoalStatus};use crate::agent::stop_hooks::{StopDecision, StopHook, TurnState};use crate::agent::tinyagents::thread_context::current_thread_id;diff --git a/crates/openhuman-core/src/threads/goals/runtime_tests.rs b/crates/openhuman-core/src/agent/goals/runtime_tests.rssimilarity index 100%rename from crates/openhuman-core/src/threads/goals/runtime_tests.rsrename to crates/openhuman-core/src/agent/goals/runtime_tests.rsdiff --git a/crates/openhuman-core/src/threads/goals/store.rs b/crates/openhuman-core/src/agent/goals/store.rssimilarity index 92%rename from crates/openhuman-core/src/threads/goals/store.rsrename to crates/openhuman-core/src/agent/goals/store.rsindex 62410f1db6..4a5095fa23 100644--- a/crates/openhuman-core/src/threads/goals/store.rs+++ b/crates/openhuman-core/src/agent/goals/store.rs@@ -4,10 +4,9 @@//! crate's `graph::goals` KV store//! (`<workspace>/tinyagents_store/kv/graph.goals/<hex(thread_id)>.json`), not//! the legacy `<workspace>/thread_goals/` file-JSON tree. This module is a thin-//! adapter: it preserves the historical `store::*(workspace_dir, …)` call-//! surface every consumer (RPC ops, the harness turn loop, the heartbeat-//! continuation runtime, the agent tools, and post-turn accounting) already-//! uses, and forwards each operation to the crate store — converting the crate+//! adapter for the harness turn loop, heartbeat continuation runtime, agent+//! tools, and post-turn accounting. It forwards each operation to the crate+//! store, converting the crate//! [`CrateThreadGoal`](tinyagents_graph::goals::types::ThreadGoal) back to the//! local [`ThreadGoal`] and its `TinyAgentsError` to a `String`.//!@@ -16,10 +15,16 @@//! suppression compare-and-set, and stale-goal-id accounting guards).use std::path::Path;+use std::sync::Arc;-use super::migration::{delete_legacy_goal_file, goals_store};use super::ThreadGoal;+use crate::agent::session_import::ops::open_session_stores;use tinyagents_graph::goals::store as crate_store;+use tinyagents_harness::store::Store;++pub(crate) fn goals_store(workspace_dir: &Path) -> Arc<dyn Store> {+ Arc::new(open_session_stores(workspace_dir).kv)+}/// Set (create or replace) the thread's goal. A changed objective mints a fresh/// goal and resets counters; an unchanged objective preserves counters and@@ -79,7 +84,6 @@ pub async fn list_all(workspace_dir: &Path) -> Result<Vec<ThreadGoal>, String> {/// Delete the thread's goal. Returns whether a goal was present.pub async fn clear(workspace_dir: &Path, thread_id: &str) -> Result<bool, String> {- delete_legacy_goal_file(workspace_dir, thread_id).await?;let store = goals_store(workspace_dir);let existed = crate_store::clear(&store, thread_id).awaitdiff --git a/crates/openhuman-core/src/threads/goals/tools.rs b/crates/openhuman-core/src/agent/goals/tools.rssimilarity index 100%rename from crates/openhuman-core/src/threads/goals/tools.rsrename to crates/openhuman-core/src/agent/goals/tools.rsdiff --git a/crates/openhuman-core/src/threads/goals/tools_tests.rs b/crates/openhuman-core/src/agent/goals/tools_tests.rssimilarity index 100%rename from crates/openhuman-core/src/threads/goals/tools_tests.rsrename to crates/openhuman-core/src/agent/goals/tools_tests.rsdiff --git a/crates/openhuman-core/src/agent/harness/session/turn/core/harness_turn.rs b/crates/openhuman-core/src/agent/harness/session/turn/core/harness_turn.rsindex efe4a56610..9de3c312f5 100644--- a/crates/openhuman-core/src/agent/harness/session/turn/core/harness_turn.rs+++ b/crates/openhuman-core/src/agent/harness/session/turn/core/harness_turn.rs@@ -494,7 +494,7 @@ impl Agent {// the legacy engine) so budgeted goals progress to `budget_limited` and// continuation scheduling reads a live budget. Self-guarding + best-effort// — a no-op when there is no active goal for the ambient thread.- crate::threads::goals::runtime::account_turn_against_goal(+ crate::agent::goals::runtime::account_turn_against_goal(&self.workspace_dir,input_tokens,output_tokens,diff --git a/crates/openhuman-core/src/agent/harness/session/turn/core_turn.rs b/crates/openhuman-core/src/agent/harness/session/turn/core_turn.rsindex 334bcbfd9b..1850d51d15 100644--- a/crates/openhuman-core/src/agent/harness/session/turn/core_turn.rs+++ b/crates/openhuman-core/src/agent/harness/session/turn/core_turn.rs@@ -395,7 +395,7 @@ impl Agent {);None} else {- let loaded = crate::threads::goals::runtime::load_for_current_thread(+ let loaded = crate::agent::goals::runtime::load_for_current_thread(&self.workspace_dir,).await;@@ -406,10 +406,10 @@ impl Agent {Some(goal)if matches!(goal.status,- crate::threads::goals::ThreadGoalStatus::Paused+ crate::agent::goals::ThreadGoalStatus::Paused) =>{- crate::threads::goals::runtime::resume_for_current_thread(+ crate::agent::goals::runtime::resume_for_current_thread(&self.workspace_dir,).await@@ -651,7 +651,7 @@ impl Agent {let mut turn_stop_hooks = crate::agent::stop_hooks::current_stop_hooks();if let Some(ref goal) = active_goal {if let Some(hook) =- crate::threads::goals::runtime::GoalBudgetStopHook::for_goal(+ crate::agent::goals::runtime::GoalBudgetStopHook::for_goal(&goal_workspace_dir,goal,)diff --git a/crates/openhuman-core/src/agent/mod.rs b/crates/openhuman-core/src/agent/mod.rsindex 1374b34b68..9523c40666 100644--- a/crates/openhuman-core/src/agent/mod.rs+++ b/crates/openhuman-core/src/agent/mod.rs@@ -27,6 +27,7 @@ pub mod error;pub mod experience;pub mod file_state;pub(crate) mod git_attribution;+pub mod goals;pub mod harness;pub mod harness_init;pub mod hooks;@@ -67,10 +68,10 @@ mod schemas;pub mod session_db;pub mod session_import;pub mod stop_hooks;-pub mod task_board;pub mod task_dispatcher;pub(crate) mod task_session;pub mod tinyagents;+pub mod todos;pub mod tool_policy;pub mod tools;pub mod triage;diff --git a/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context/scout_run.rs b/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context/scout_run.rsindex de2dbaca5b..3baf82b9d5 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context/scout_run.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context/scout_run.rs@@ -395,7 +395,7 @@ pub(super) async fn run_context_scout_with_catalog_and_workspace(// Best-effort — never fails the call.if let (Some(parent), Some(thread_id)) = (current_parent(), current_thread_id()) {if let Some(objective) = AgentPrepareContextTool::parse_proposed_goal(&bundle) {- match crate::threads::goals::store::set_if_absent(+ match crate::agent::goals::store::set_if_absent(&parent.workspace_dir,&thread_id,&objective,diff --git a/crates/openhuman-core/src/agent/progress.rs b/crates/openhuman-core/src/agent/progress.rsindex a22b30909b..a50e4984f5 100644--- a/crates/openhuman-core/src/agent/progress.rs+++ b/crates/openhuman-core/src/agent/progress.rs@@ -259,12 +259,6 @@ pub enum AgentProgress {iteration: u32,},- /// The agent rewrote the per-thread task board. Emitted by the- /// `todo` tool (or `openhuman.todos_*` RPC) after the board has been persisted.- TaskBoardUpdated {- board: crate::agent::task_board::TaskBoard,- },-/// A chunk of visible assistant text arrived from the provider/// while the current iteration is still in flight.TextDelta {diff --git a/crates/openhuman-core/src/agent/progress_tracing/collector/events.rs b/crates/openhuman-core/src/agent/progress_tracing/collector/events.rsindex e869dc3b55..b262611486 100644--- a/crates/openhuman-core/src/agent/progress_tracing/collector/events.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/collector/events.rs@@ -458,8 +458,7 @@ impl SpanCollector {| AgentProgress::ToolCallArgsDelta { .. }| AgentProgress::SubagentTextDelta { .. }| AgentProgress::SubagentThinkingDelta { .. }- | AgentProgress::SubagentAwaitingUser { .. }- | AgentProgress::TaskBoardUpdated { .. } => {}+ | AgentProgress::SubagentAwaitingUser { .. } => {}}}diff --git a/crates/openhuman-core/src/agent/task_board.rs b/crates/openhuman-core/src/agent/task_board.rsdeleted file mode 100644index a78e414dce..0000000000--- a/crates/openhuman-core/src/agent/task_board.rs+++ /dev/null@@ -1,149 +0,0 @@-//! Persistent per-thread task board used by the agent kanban UI.-//!-//! **Crate-backed.** Boards now live in the vendored `tinyagents_graph::todos`-//! crate KV store (`<workspace>/tinyagents_store/kv/graph.todos/<hex(thread_id)>`),-//! not the retired `<workspace>/agent_task_boards/<hex(thread_id)>.json`-//! file-JSON tree. [`TaskBoardStore`] is a thin adapter that preserves the-//! historical `get`/`put`/`delete` surface every consumer uses and forwards each-//! operation directly to `tinyagents_graph::todos`.-//!-//! The agent updates boards through the `todo` tool; the UI can fetch or replace-//! them through the `threads.task_board_*` and granular `openhuman.todos_*` RPC-//! surfaces. The core process remains the single writer.--use std::path::{Path, PathBuf};--use chrono::{TimeZone, Utc};-use tinyagents_graph::todos::store as crate_todos;-pub use tinyagents_graph::todos::{- normalise_board, TaskApprovalMode, TaskBoard, TaskBoardCard, TaskCardStatus,-};--use crate::agent::tinyagents::todos::todos_store;--#[derive(Debug, Clone)]-pub struct TaskBoardStore {- workspace_dir: PathBuf,-}--impl TaskBoardStore {- pub fn new(workspace_dir: PathBuf) -> Self {- Self { workspace_dir }- }-- /// The thread's board, or `None` when the thread has never had one. Reads- /// the crate `graph.todos` value **raw** (no normalise) so the absent-vs-- /// empty distinction survives, exactly as the legacy file read did.- pub async fn get(&self, thread_id: &str) -> Result<Option<TaskBoard>, String> {- let thread_id = validate_thread_id(thread_id)?;- tracing::debug!(thread_id = %thread_id, "[agent:task_board] get entry");- let store = todos_store(&self.workspace_dir);- match crate_todos::get(&store, &thread_id)- .await- .map_err(|error| format!("decode crate task board for thread {thread_id}: {error}"))?- {- Some(board) => {- let board = normalize_board_for_wire(board);- tracing::debug!(- thread_id = %thread_id,- card_count = board.cards.len(),- "[agent:task_board] get ok"- );- Ok(Some(board))- }- None => {- tracing::debug!(thread_id = %thread_id, "[agent:task_board] get not_found");- Ok(None)- }- }- }-- /// Persist `board`. Hands the cards directly to the crate `replace` op,- /// which owns normalisation and **enforces the single-`InProgress`- /// invariant** (an invalid board now errors here rather than being silently- /// saved). Returns the saved board with crate-normalised cards.- pub async fn put(&self, board: TaskBoard) -> Result<TaskBoard, String> {- tracing::debug!(- thread_id = %board.thread_id,- card_count = board.cards.len(),- "[agent:task_board] put entry"- );- let thread_id = validate_thread_id(&board.thread_id)?;- let store = todos_store(&self.workspace_dir);- let snap = crate_todos::replace(&store, &thread_id, board.cards)- .await- .map_err(|e| e.to_string())?;- let mut cards = snap.cards;- normalize_cards_for_wire(&mut cards);- tracing::debug!(- thread_id = %thread_id,- card_count = cards.len(),- "[agent:task_board] put ok"- );- Ok(TaskBoard {- thread_id,- cards,- updated_at: Utc::now().to_rfc3339(),- })- }-- /// Delete the thread's board. Returns whether a board was present. Removes- /// the crate key outright (not the crate `clear`, which writes an empty- /// board) so a subsequent [`get`](Self::get) reports `None`.- pub async fn delete(&self, thread_id: &str) -> Result<bool, String> {- let thread_id = validate_thread_id(thread_id)?;- tracing::debug!(thread_id = %thread_id, "[agent:task_board] delete entry");- let store = todos_store(&self.workspace_dir);- let existed = crate_todos::delete(&store, &thread_id)- .await- .map_err(|e| e.to_string())?;- tracing::debug!(thread_id = %thread_id, existed, "[agent:task_board] delete ok");- Ok(existed)- }-}--pub async fn board_for_thread(workspace_dir: &Path, thread_id: &str) -> Result<TaskBoard, String> {- let thread_id = validate_thread_id(thread_id)?;- let store = TaskBoardStore::new(workspace_dir.to_path_buf());- Ok(store- .get(&thread_id)- .await?- .unwrap_or_else(|| normalize_board_for_wire(TaskBoard::empty(thread_id))))-}--pub(crate) fn normalize_timestamp_for_wire(value: &str) -> String {- if chrono::DateTime::parse_from_rfc3339(value).is_ok() {- return value.to_owned();- }- if let Ok(updated_at_ms) = value.parse::<i64>() {- if let Some(updated_at) = Utc.timestamp_millis_opt(updated_at_ms).single() {- return updated_at.to_rfc3339();- }- }- tracing::warn!(updated_at = %value, "invalid task-board timestamp; using current time");- Utc::now().to_rfc3339()-}--pub(crate) fn normalize_cards_for_wire(cards: &mut [TaskBoardCard]) {- for card in cards {- card.updated_at = normalize_timestamp_for_wire(&card.updated_at);- }-}--fn normalize_board_for_wire(mut board: TaskBoard) -> TaskBoard {- board.updated_at = normalize_timestamp_for_wire(&board.updated_at);- normalize_cards_for_wire(&mut board.cards);- board-}--fn validate_thread_id(thread_id: &str) -> Result<String, String> {- let trimmed = thread_id.trim();- if trimmed.is_empty() {- return Err("invalid task board thread_id: empty or whitespace".to_string());- }- Ok(trimmed.to_string())-}--#[cfg(test)]-#[path = "task_board_tests.rs"]-mod tests;diff --git a/crates/openhuman-core/src/agent/task_board_tests.rs b/crates/openhuman-core/src/agent/task_board_tests.rsdeleted file mode 100644index edd634ccbd..0000000000--- a/crates/openhuman-core/src/agent/task_board_tests.rs+++ /dev/null@@ -1,232 +0,0 @@-use super::*;-use tempfile::tempdir;--#[test]-fn status_strings_match_serialized_statuses() {- assert_eq!(TaskCardStatus::Todo.as_str(), "todo");- assert_eq!(TaskCardStatus::InProgress.as_str(), "in_progress");- assert_eq!(TaskCardStatus::Blocked.as_str(), "blocked");- assert_eq!(TaskCardStatus::Done.as_str(), "done");-}--#[test]-fn empty_board_uses_thread_id_and_no_cards() {- let board = TaskBoard::empty("thread-empty");- assert_eq!(board.thread_id, "thread-empty");- assert!(board.cards.is_empty());- assert!(!board.updated_at.is_empty());-}--#[tokio::test]-async fn board_store_roundtrips_and_normalises_cards() {- let dir = tempdir().expect("tempdir");- let store = TaskBoardStore::new(dir.path().to_path_buf());- let board = TaskBoard {- thread_id: "thread-1".into(),- cards: vec![- TaskBoardCard {- id: String::new(),- title: " Draft plan ".into(),- status: TaskCardStatus::Todo,- objective: Some(" Ship task briefs ".into()),- plan: vec![" extend schema ".into(), " ".into()],- assigned_agent: Some(" planner ".into()),- allowed_tools: vec![" todo ".into(), "".into()],- approval_mode: Some(TaskApprovalMode::Required),- acceptance_criteria: vec![" tests pass ".into()],- evidence: vec![" cargo test ".into()],- notes: Some(" note ".into()),- blocker: None,- session_thread_id: Some(" ".into()),- source_metadata: None,- order: 99,- updated_at: String::new(),- },- TaskBoardCard {- id: "blocked".into(),- title: "Need approval".into(),- status: TaskCardStatus::Blocked,- objective: None,- plan: Vec::new(),- assigned_agent: None,- allowed_tools: Vec::new(),- approval_mode: None,- acceptance_criteria: Vec::new(),- evidence: Vec::new(),- notes: Some("waiting on user".into()),- blocker: None,- session_thread_id: None,- source_metadata: None,- order: 99,- updated_at: String::new(),- },- ],- updated_at: String::new(),- };-- let saved = store.put(board).await.expect("put");- assert_eq!(saved.cards[0].title, "Draft plan");- assert_eq!(- saved.cards[0].objective.as_deref(),- Some("Ship task briefs")- );- assert_eq!(saved.cards[0].plan, vec!["extend schema"]);- assert_eq!(saved.cards[0].assigned_agent.as_deref(), Some("planner"));- assert_eq!(saved.cards[0].allowed_tools, vec!["todo"]);- assert_eq!(- saved.cards[0].approval_mode,- Some(TaskApprovalMode::Required)- );- assert_eq!(saved.cards[0].acceptance_criteria, vec!["tests pass"]);- assert_eq!(saved.cards[0].evidence, vec!["cargo test"]);- // Whitespace-only session_thread_id normalises to None so the board- // never offers a blank "View session" jump target.- assert_eq!(saved.cards[0].session_thread_id, None);- assert_eq!(saved.cards[0].order, 0);- assert!(saved.cards[0].id.starts_with("task-"));- assert_eq!(saved.cards[1].blocker.as_deref(), Some("waiting on user"));- assert!(- chrono::DateTime::parse_from_rfc3339(&saved.updated_at).is_ok(),- "board updated_at must preserve its RFC 3339 wire format"- );-- let loaded = store.get("thread-1").await.expect("get").expect("present");- assert_eq!(loaded.cards.len(), 2);- assert_eq!(loaded.cards[1].status, TaskCardStatus::Blocked);- assert!(- chrono::DateTime::parse_from_rfc3339(&loaded.updated_at).is_ok(),- "persisted board reads must preserve the RFC 3339 wire format"- );- assert!(- loaded- .cards- .iter()- .all(|card| { chrono::DateTime::parse_from_rfc3339(&card.updated_at).is_ok() }),- "persisted card reads must preserve the RFC 3339 wire format"- );-- assert!(store.delete("thread-1").await.expect("delete existing"));- assert!(store.get("thread-1").await.expect("get deleted").is_none());- assert!(!store.delete("thread-1").await.expect("delete missing"));-}--#[tokio::test]-async fn missing_board_returns_none() {- let dir = tempdir().expect("tempdir");- let store = TaskBoardStore::new(dir.path().to_path_buf());- assert!(store.get("missing").await.expect("get").is_none());-}--#[tokio::test]-async fn missing_board_fallback_uses_rfc3339_timestamp() {- let dir = tempdir().expect("tempdir");- let board = board_for_thread(dir.path(), "missing")- .await- .expect("board");- assert!(chrono::DateTime::parse_from_rfc3339(&board.updated_at).is_ok());-}--#[tokio::test]-async fn blank_thread_id_is_rejected() {- let dir = tempdir().expect("tempdir");- let store = TaskBoardStore::new(dir.path().to_path_buf());- assert!(store- .get(" ")- .await- .expect_err("blank id")- .contains("thread_id"));-}--#[test]-fn normalise_recomputes_order_after_filtering_empty_titles() {- let mut board = TaskBoard {- thread_id: "thread-1".into(),- cards: vec![- TaskBoardCard {- id: "empty".into(),- title: " ".into(),- status: TaskCardStatus::Todo,- objective: None,- plan: Vec::new(),- assigned_agent: None,- allowed_tools: Vec::new(),- approval_mode: None,- acceptance_criteria: Vec::new(),- evidence: Vec::new(),- notes: None,- blocker: None,- session_thread_id: None,- source_metadata: None,- order: 99,- updated_at: String::new(),- },- TaskBoardCard {- id: "real".into(),- title: "Real".into(),- status: TaskCardStatus::Todo,- objective: None,- plan: Vec::new(),- assigned_agent: None,- allowed_tools: Vec::new(),- approval_mode: None,- acceptance_criteria: Vec::new(),- evidence: Vec::new(),- notes: None,- blocker: None,- session_thread_id: None,- source_metadata: None,- order: 99,- updated_at: String::new(),- },- ],- updated_at: String::new(),- };-- normalise_board(&mut board);-- assert_eq!(board.cards.len(), 1);- assert_eq!(board.cards[0].id, "real");- assert_eq!(board.cards[0].order, 0);-}--#[tokio::test]-async fn board_for_thread_returns_empty_board_when_file_is_missing() {- let dir = tempdir().expect("tempdir");- let board = board_for_thread(dir.path(), " thread-2 ")- .await- .expect("board");- assert_eq!(board.thread_id, "thread-2");- assert!(board.cards.is_empty());-}--/// An undecodable crate value must fail closed so a later read/modify/write-/// operation cannot replace the authoritative row with an empty board.-#[tokio::test]-async fn undecodable_board_value_returns_error_without_overwriting_row() {- use tinyagents_graph::todos::store::TODOS_NAMESPACE;-- let dir = tempdir().expect("tempdir");- let store = todos_store(dir.path());- let key = "thread-corrupt"- .as_bytes()- .iter()- .map(|byte| format!("{byte:02x}"))- .collect::<String>();- let undecodable = serde_json::json!({ "not": "a board" });- store- .put(TODOS_NAMESPACE, &key, undecodable.clone())- .await- .expect("seed garbage value");-- let board_store = TaskBoardStore::new(dir.path().to_path_buf());- let error = board_store- .get("thread-corrupt")- .await- .expect_err("undecodable row must not be treated as absent");- assert!(error.contains("decode crate task board"));- assert_eq!(- store.get(TODOS_NAMESPACE, &key).await.expect("raw get"),- Some(undecodable),- "failed live reads must leave the authoritative row untouched"- );-}diff --git a/crates/openhuman-core/src/agent/task_dispatcher/README.md b/crates/openhuman-core/src/agent/task_dispatcher/README.mdindex 540433572b..82f59201ad 100644--- a/crates/openhuman-core/src/agent/task_dispatcher/README.md+++ b/crates/openhuman-core/src/agent/task_dispatcher/README.md@@ -53,13 +53,11 @@ instead (see `agent::plan_review`).## Related-- `agent::task_board` re-exports the board types+- `agent::todos::types` re-exports the todo types(`tinyagents_graph::todos::{TaskBoard, TaskBoardCard, TaskCardStatus, ...}`)used throughout this module.-- `threads::todos/` is the compatibility surface that maps `BoardLocation`- onto the TinyAgents stores, exposes the `openhuman.todos_*` RPC and- `todo_*` tools, and owns the run ledger (`runs.rs`) this dispatcher reads- and writes through.+- `agent::todos/` maps `BoardLocation` onto the TinyAgents stores, exposes the+ `todo_*` tools, and owns the run adapter (`runs.rs`) this dispatcher uses.- Selection and backoff policy (`pick_next_card`, `requires_plan_approval`,`PollCadence`) live in `tinyagents_graph::todos::dispatch::select`; thiscrate only tunes and wires them.diff --git a/crates/openhuman-core/src/agent/task_dispatcher/dispatch.rs b/crates/openhuman-core/src/agent/task_dispatcher/dispatch.rsindex 0ae3654f10..5a4a147cd6 100644--- a/crates/openhuman-core/src/agent/task_dispatcher/dispatch.rs+++ b/crates/openhuman-core/src/agent/task_dispatcher/dispatch.rs@@ -1,10 +1,10 @@//! Card dispatch: claim a card and spawn an autonomous run.-use crate::agent::task_board::{TaskBoardCard, TaskCardStatus};use crate::agent::task_session;+use crate::agent::todos::ops::{self, BoardLocation, CardPatch};+use crate::agent::todos::runs;+use crate::agent::todos::types::{TaskBoardCard, TaskCardStatus};use crate::config::Config;-use crate::threads::todos::ops::{self, BoardLocation, CardPatch};-use crate::threads::todos::runs;use super::executor::{resolve_executor, run_autonomous};use super::poller::requires_plan_approval;diff --git a/crates/openhuman-core/src/agent/task_dispatcher/executor.rs b/crates/openhuman-core/src/agent/task_dispatcher/executor.rsindex e86b94c379..53db960827 100644--- a/crates/openhuman-core/src/agent/task_dispatcher/executor.rs+++ b/crates/openhuman-core/src/agent/task_dispatcher/executor.rs@@ -13,11 +13,11 @@ use crate::agent::harness::definition::PromptSource;use crate::agent::harness::session::Agent;use crate::agent::harness::subagent_runner::with_autonomous_iter_cap;use crate::agent::profiles::PersonalityContext;-use crate::agent::task_board::TaskCardStatus;use crate::agent::task_session;+use crate::agent::todos::ops::{self, BoardLocation, CardPatch};+use crate::agent::todos::runs::{self, RunOutcome};+use crate::agent::todos::types::TaskCardStatus;use crate::config::Config;-use crate::threads::todos::ops::{self, BoardLocation, CardPatch};-use crate::threads::todos::runs::{self, RunOutcome};use super::types::ResolvedExecutor;diff --git a/crates/openhuman-core/src/agent/task_dispatcher/poller.rs b/crates/openhuman-core/src/agent/task_dispatcher/poller.rsindex 3ecb4ecd4c..b0330c0c82 100644--- a/crates/openhuman-core/src/agent/task_dispatcher/poller.rs+++ b/crates/openhuman-core/src/agent/task_dispatcher/poller.rs@@ -9,10 +9,10 @@ use std::time::Duration;use tinyagents_graph::todos::dispatch::select;-use crate::agent::task_board::{TaskApprovalMode, TaskBoardCard};+use crate::agent::todos::ops::{self, BoardLocation, USER_TASKS_THREAD_ID};+use crate::agent::todos::runs::{self, RunLimits};+use crate::agent::todos::types::{TaskApprovalMode, TaskBoardCard};use crate::config::Config;-use crate::threads::todos::ops::{self, BoardLocation, USER_TASKS_THREAD_ID};-use crate::threads::todos::runs::{self, RunLimits};use super::dispatch::dispatch_card;diff --git a/crates/openhuman-core/src/agent/task_dispatcher/prompt.rs b/crates/openhuman-core/src/agent/task_dispatcher/prompt.rsindex 83568064de..c7c526e3b5 100644--- a/crates/openhuman-core/src/agent/task_dispatcher/prompt.rs+++ b/crates/openhuman-core/src/agent/task_dispatcher/prompt.rs@@ -12,7 +12,7 @@ use std::sync::LazyLock;use tinyagents_graph::todos::dispatch::prompt as crate_prompt;use tinyagents_graph::todos::dispatch::TaskPromptTools;-use crate::agent::task_board::TaskBoardCard;+use crate::agent::todos::types::TaskBoardCard;/// OpenHuman's tool names for the two tools a task prompt references.static TOOLS: LazyLock<TaskPromptTools> = LazyLock::new(|| TaskPromptTools {diff --git a/crates/openhuman-core/src/agent/task_dispatcher/registry.rs b/crates/openhuman-core/src/agent/task_dispatcher/registry.rsindex 20e873600f..9f2728bd4b 100644--- a/crates/openhuman-core/src/agent/task_dispatcher/registry.rs+++ b/crates/openhuman-core/src/agent/task_dispatcher/registry.rs@@ -14,7 +14,7 @@ use std::sync::OnceLock;use tinyagents_graph::todos::dispatch::ActiveRunRegistry;-use crate::threads::todos::ops::BoardLocation;+use crate::agent::todos::ops::BoardLocation;use super::types::ActiveRun;diff --git a/crates/openhuman-core/src/agent/task_dispatcher/task_dispatcher_tests.rs b/crates/openhuman-core/src/agent/task_dispatcher/task_dispatcher_tests.rsindex e05848ed5e..383e53c0fa 100644--- a/crates/openhuman-core/src/agent/task_dispatcher/task_dispatcher_tests.rs+++ b/crates/openhuman-core/src/agent/task_dispatcher/task_dispatcher_tests.rs@@ -2,8 +2,8 @@use serde_json::json;-use crate::agent::task_board::{TaskApprovalMode, TaskBoardCard, TaskCardStatus};-use crate::threads::todos::ops::{self, BoardLocation, CardPatch};+use crate::agent::todos::ops::{self, BoardLocation, CardPatch};+use crate::agent::todos::types::{TaskApprovalMode, TaskBoardCard, TaskCardStatus};use super::executor::{truncate_chars, write_back, EVIDENCE_MAX_CHARS};use super::poller::{pick_next_todo, requires_plan_approval};diff --git a/crates/openhuman-core/src/agent/task_dispatcher/types.rs b/crates/openhuman-core/src/agent/task_dispatcher/types.rsindex c740a7d646..6b78f22d52 100644--- a/crates/openhuman-core/src/agent/task_dispatcher/types.rs+++ b/crates/openhuman-core/src/agent/task_dispatcher/types.rs@@ -1,6 +1,6 @@//! Shared types for the task dispatcher.-use crate::threads::todos::ops::BoardLocation;+use crate::agent::todos::ops::BoardLocation;/// Handle to an in-flight autonomous run, keyed by its session `thread_id`.///diff --git a/crates/openhuman-core/src/agent/task_session.rs b/crates/openhuman-core/src/agent/task_session.rsindex 67e4c32237..fd378901b8 100644--- a/crates/openhuman-core/src/agent/task_session.rs+++ b/crates/openhuman-core/src/agent/task_session.rs@@ -28,7 +28,7 @@ use std::path::PathBuf;use serde_json::json;-use crate::agent::task_board::TaskBoardCard;+use crate::agent::todos::types::TaskBoardCard;use crate::memory::conversations::{self as conversations, run_reply_message_id, ConversationMessage, CreateConversationThread,};diff --git a/crates/openhuman-core/src/agent/task_session_tests.rs b/crates/openhuman-core/src/agent/task_session_tests.rsindex 855f8020b9..071651e79d 100644--- a/crates/openhuman-core/src/agent/task_session_tests.rs+++ b/crates/openhuman-core/src/agent/task_session_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::agent::task_board::{TaskBoardCard, TaskCardStatus};+use crate::agent::todos::types::{TaskBoardCard, TaskCardStatus};fn card(title: &str) -> TaskBoardCard {TaskBoardCard {diff --git a/crates/openhuman-core/src/agent/tinyagents/README.md b/crates/openhuman-core/src/agent/tinyagents/README.mdindex 78a36bdb8e..ba3806d91b 100644--- a/crates/openhuman-core/src/agent/tinyagents/README.md+++ b/crates/openhuman-core/src/agent/tinyagents/README.md@@ -49,7 +49,7 @@ The **adapter seam** between OpenHuman and the vendored [`tinyagents`](../../../| `embeddings.rs` | `ProviderEmbeddingModel`: adapts `crate::inference::embeddings::EmbeddingProvider` onto the crate's `EmbeddingModel` trait. || `retriever.rs` | `recall_through_facade` / `build_retriever`: wraps `Memory::recall`, projects onto the crate's `ScoredDoc`, applies the `path_scope` dedupe rule, emits `MemoryLoaded`. || `thread_context.rs` | Task-local ambient `thread_id` (`with_thread_id`, `current_thread_id`) read by the OpenAI-compatible provider when serialising request bodies. |-| `todos.rs` | `todos_store` / `scratch_todos_store` (the crate `Store` behind per-thread task boards, `tinyagents_graph::todos`) and `migrate_legacy_task_boards`, the one-shot import run at startup. |+| `todos.rs` | `todos_store` / `scratch_todos_store` (the crate `Store` behind per-thread agent todos, `tinyagents_graph::todos`). || `config.rs` | Maps OpenHuman's `Config` (including model pins) onto `tinyagents_harness::config` structs. || `*_tests.rs` | Sibling test suites for each file/part group above. |@@ -92,7 +92,7 @@ Responses project the crate's own `AgentObservation` and `HarnessRunStatus` serd- `agent/harness/subagent_runner/ops/graph.rs`: the sub-agent spawn route. It and the session route both build their context-window summarizer through `TurnModelSource::build_summarizer`.- `agent/harness/session/builder/setters.rs`, `agent/harness/subagent_runner/ops/{provider,runner}.rs`, `channels/`: construct `TurnModelSource`.- `agent/bus.rs`: reads `resolved_route` after a turn.-- `core/all.rs` (replay controllers), `core/runtime/builder.rs` (`reaper::reap_orphaned_runs`), `core/runtime/services.rs` (`todos::migrate_legacy_task_boards`).+- `core/all.rs` (replay controllers) and `core/runtime/builder.rs` (`reaper::reap_orphaned_runs`).- `threads/todos/` and `agent/task_board.rs`: `todos::*` stores.- `memory/tools/{recall,store}.rs` and `memory/auto_recall/`: `host::agent_memory::DEFAULT_AGENT_MEMORY_NAMESPACE`.- `flows/tinyflows/caps/{llm,prompt}.rs`: the message-conversion re-exports and `model::usage_info_from_response`.diff --git a/crates/openhuman-core/src/agent/tinyagents/todos.rs b/crates/openhuman-core/src/agent/tinyagents/todos.rsindex 5c0ffd3ee4..08684fb269 100644--- a/crates/openhuman-core/src/agent/tinyagents/todos.rs+++ b/crates/openhuman-core/src/agent/tinyagents/todos.rs@@ -3,7 +3,6 @@use std::path::Path;use std::sync::{Arc, OnceLock};-use tinyagents_graph::todos::{store as todos, TaskBoard};use tinyagents_harness::store::{InMemoryStore, Store};use crate::agent::session_import::ops::open_session_stores;@@ -21,79 +20,3 @@ pub fn scratch_todos_store() -> Arc<dyn Store> {/// Synthetic thread key for the process-global scratch board.pub const SCRATCH_THREAD_ID: &str = "_scratch_";--#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)]-pub struct TaskBoardMigrationReport {- pub total: usize,- pub copied: usize,- pub skipped: usize,-}--async fn read_legacy_boards(workspace_dir: &Path) -> Result<Vec<TaskBoard>, String> {- let dir = workspace_dir.join("agent_task_boards");- let mut entries = match tokio::fs::read_dir(&dir).await {- Ok(entries) => entries,- Err(error) if error.kind() == std::io::ErrorKind::NotFound => return Ok(Vec::new()),- Err(error) => {- return Err(format!(- "read legacy task boards dir {}: {error}",- dir.display()- ))- }- };- let mut boards = Vec::new();- while let Some(entry) = entries- .next_entry()- .await- .map_err(|error| format!("iterate legacy task boards dir: {error}"))?- {- let path = entry.path();- let is_board = path.extension().and_then(|value| value.to_str()) == Some("json")- && !path- .file_name()- .and_then(|value| value.to_str())- .is_some_and(|name| name.ends_with(".runs.json"));- if !is_board {- continue;- }- match tokio::fs::read_to_string(&path).await {- Ok(body) => match serde_json::from_str(&body) {- Ok(board) => boards.push(board),- Err(error) => {- tracing::debug!(path = %path.display(), %error, "skip invalid legacy task board")- }- },- Err(error) => {- tracing::debug!(path = %path.display(), %error, "skip unreadable legacy task board")- }- }- }- Ok(boards)-}--/// Copy boards from the retired file store without replacing TinyAgents data.-pub async fn migrate_legacy_task_boards(- workspace_dir: &Path,-) -> Result<TaskBoardMigrationReport, String> {- let legacy = read_legacy_boards(workspace_dir).await?;- let store = todos_store(workspace_dir);- let mut report = TaskBoardMigrationReport {- total: legacy.len(),- ..Default::default()- };- for board in legacy {- if todos::import_if_absent(&store, board)- .await- .map_err(|error| error.to_string())?- {- report.copied += 1;- } else {- report.skipped += 1;- }- }- Ok(report)-}--#[cfg(test)]-#[path = "todos_tests.rs"]-mod tests;diff --git a/crates/openhuman-core/src/agent/tinyagents/todos_tests.rs b/crates/openhuman-core/src/agent/tinyagents/todos_tests.rsdeleted file mode 100644index 1cab23f62d..0000000000--- a/crates/openhuman-core/src/agent/tinyagents/todos_tests.rs+++ /dev/null@@ -1,49 +0,0 @@-use super::*;--#[tokio::test]-async fn legacy_migration_copies_once_without_replacing_tinyagents_data() {- let workspace = tempfile::tempdir().expect("workspace");- let legacy_dir = workspace.path().join("agent_task_boards");- tokio::fs::create_dir_all(&legacy_dir)- .await- .expect("legacy dir");- let mut legacy = TaskBoard::empty("thread-1");- legacy- .cards- .push(tinyagents_graph::todos::TaskBoardCard::new("legacy"));- tokio::fs::write(- legacy_dir.join("thread-1.json"),- serde_json::to_vec(&legacy).expect("encode legacy"),- )- .await- .expect("write legacy");-- let first = migrate_legacy_task_boards(workspace.path())- .await- .expect("first migration");- assert_eq!(- first,- TaskBoardMigrationReport {- total: 1,- copied: 1,- skipped: 0,- }- );-- let store = todos_store(workspace.path());- todos::clear(&store, "thread-1").await.expect("edit board");- let second = migrate_legacy_task_boards(workspace.path())- .await- .expect("second migration");- assert_eq!(second.copied, 0);- assert_eq!(second.skipped, 1);- assert!(- todos::get(&store, "thread-1")- .await- .expect("get board")- .expect("present")- .cards- .is_empty(),- "existing TinyAgents board must remain authoritative"- );-}diff --git a/crates/openhuman-core/src/agent/todos/README.md b/crates/openhuman-core/src/agent/todos/README.mdnew file mode 100644index 0000000000..41d13f30a0--- /dev/null+++ b/crates/openhuman-core/src/agent/todos/README.md@@ -0,0 +1,13 @@+# Agent todos++TinyAgents owns todo types, persistence, normalization, status transitions,+claims, runs, dispatch, and markdown rendering. This directory contains only+OpenHuman agent-runtime adapters:++- `ops.rs`: maps OpenHuman execution locations onto TinyAgents stores.+- `tools.rs`: exposes the model-facing todo tools.+- `runs.rs`: connects autonomous task execution to TinyAgents run records.+- `types.rs`: re-exports TinyAgents types and normalizes timestamps at the+ OpenHuman transcript boundary.++There is no frontend task board and no `openhuman.todos_*` JSON-RPC API.diff --git a/crates/openhuman-core/src/agent/todos/mod.rs b/crates/openhuman-core/src/agent/todos/mod.rsnew file mode 100644index 0000000000..ee757421fc--- /dev/null+++ b/crates/openhuman-core/src/agent/todos/mod.rs@@ -0,0 +1,15 @@+//! OpenHuman adapters around the TinyAgents todo store.+//!+//! Design notes:+//! - **Per-thread scoped.** The current agent thread id (or an explicit+//! thread id selects which board to mutate.+//! - **In-memory scratch.** When no thread context is available the+//! process-global scratch store is used (legacy fallback for tool+//! invocations outside a chat thread).+//! - **Markdown output.** Tool results include a rendered representation for+//! the agent transcript.++pub mod ops;+pub mod runs;+pub mod tools;+pub mod types;diff --git a/crates/openhuman-core/src/threads/todos/ops.rs b/crates/openhuman-core/src/agent/todos/ops.rssimilarity index 79%rename from crates/openhuman-core/src/threads/todos/ops.rsrename to crates/openhuman-core/src/agent/todos/ops.rsindex e2697f404a..717edeeb75 100644--- a/crates/openhuman-core/src/threads/todos/ops.rs+++ b/crates/openhuman-core/src/agent/todos/ops.rs@@ -1,21 +1,19 @@-//! Compatibility facade over [`tinyagents_graph::todos`].+//! OpenHuman host adapter over [`tinyagents_graph::todos`].//!-//! OpenHuman keeps its historical board-location and optional-thread snapshot-//! shapes for RPC and tool callers. All task-board data, normalization, CRUD,+//! OpenHuman keeps its board-location and optional-thread snapshot shapes for+//! agent runtime callers. All todo data, normalization, CRUD,//! and compare-and-set behavior is owned by TinyAgents.use std::path::PathBuf;use std::sync::Arc;-use chrono::Utc;use serde::{Deserialize, Serialize};use tinyagents_graph::todos::store as todos;use tinyagents_harness::store::Store;-use crate::agent::progress::AgentProgress;-use crate::agent::task_board::normalize_cards_for_wire;-pub use crate::agent::task_board::{TaskApprovalMode, TaskBoardCard, TaskCardStatus};use crate::agent::tinyagents::todos::{scratch_todos_store, todos_store, SCRATCH_THREAD_ID};+use crate::agent::todos::types::normalize_cards_for_wire;+pub use crate::agent::todos::types::{TaskApprovalMode, TaskBoardCard, TaskCardStatus};pub const USER_TASKS_THREAD_ID: &str = "user-tasks";pub const ORCHESTRATOR_TASKS_THREAD_ID: &str = "orchestrator-tasks";@@ -69,37 +67,12 @@ fn snapshot(}}-fn progress_updated_at() -> String {- Utc::now().to_rfc3339()-}--fn emit_progress(location: &BoardLocation, cards: &[TaskBoardCard]) {- let BoardLocation::Thread { thread_id, .. } = location else {- return;- };- let Some(parent) = crate::agent::harness::fork_context::current_parent() else {- return;- };- let Some(tx) = parent.on_progress else {- return;- };- let board = tinyagents_graph::todos::TaskBoard {- thread_id: thread_id.clone(),- cards: cards.to_vec(),- updated_at: progress_updated_at(),- };- if let Err(error) = tx.try_send(AgentProgress::TaskBoardUpdated { board }) {- tracing::debug!(thread_id, %error, "task board progress dropped");- }-}-fn finish(location: &BoardLocation,result: tinyagents_harness::error::Result<tinyagents_graph::todos::TodosSnapshot>,) -> Result<TodosSnapshot, String> {let mut value = result.map_err(|error| error.to_string())?;normalize_cards_for_wire(&mut value.cards);- emit_progress(location, &value.cards);Ok(snapshot(location, value))}@@ -209,9 +182,6 @@ pub async fn claim_card(let card = todos::claim_card(&store, thread_id, card_id, expected, target_status).await.map_err(|error| error.to_string())?;- if let Ok(value) = todos::list(&store, thread_id).await {- emit_progress(location, &value.cards);- }Ok(card)}@@ -223,7 +193,3 @@ pub(crate) fn scratch_test_lock() -> std::sync::MutexGuard<'static, ()> {.lock().unwrap_or_else(|poisoned| poisoned.into_inner())}--#[cfg(test)]-#[path = "ops_tests.rs"]-mod tests;diff --git a/crates/openhuman-core/src/agent/todos/runs.rs b/crates/openhuman-core/src/agent/todos/runs.rsnew file mode 100644index 0000000000..c7d4ef25de--- /dev/null+++ b/crates/openhuman-core/src/agent/todos/runs.rs@@ -0,0 +1,141 @@+//! OpenHuman host adapter over [`tinyagents_graph::todos::runs`].+//!+//! TinyAgents owns the durable task-run record, the heartbeat, the staleness+//! policy, and the reclaim sweep (card back to `todo`, or parked at `blocked`+//! once a card has burned through its reclaim budget). What stays here is+//! OpenHuman's own shape around it: [`BoardLocation`] addressing (including the+//! process-global scratch board), RFC 3339 timestamps on the wire, and the+//! `TaskRunReclaimed` domain event.+//!+//! Run records live in the crate KV store beside the board itself+//! (`graph.todos.runs`), so a board and its run log can no longer drift apart+//! across a restart.++use tinyagents_graph::todos::runs as crate_runs;++pub use tinyagents_graph::todos::runs::{+ ReclaimDetail, ReclaimResult, RunLimits, RunOutcome, TaskRun, DEFAULT_CLAIM_TTL_SECS,+ DEFAULT_HEARTBEAT_STALE_SECS, DEFAULT_MAX_RECLAIM_COUNT,+};++use crate::agent::todos::types::normalize_timestamp_for_wire;++use super::ops::{target, BoardLocation};++/// Cadence of the background heartbeat spawned alongside an autonomous run.+const HEARTBEAT_TICK: std::time::Duration = crate_runs::DEFAULT_HEARTBEAT_TICK;++fn map_err<T>(result: tinyagents_harness::error::Result<T>) -> Result<T, String> {+ result.map_err(|error| error.to_string())+}++/// Crate stamps are unix-epoch milliseconds; OpenHuman logs and transcripts use+/// RFC 3339, so translate on the way out.+fn for_wire(mut run: TaskRun) -> TaskRun {+ run.started_at = normalize_timestamp_for_wire(&run.started_at);+ run.last_heartbeat_at = normalize_timestamp_for_wire(&run.last_heartbeat_at);+ run.completed_at = run+ .completed_at+ .as_deref()+ .map(normalize_timestamp_for_wire);+ run+}++pub async fn create_run(+ location: &BoardLocation,+ run_id: &str,+ card_id: &str,+ claimed_by: &str,+) -> Result<TaskRun, String> {+ let (store, thread_id) = target(location);+ let run = map_err(+ crate_runs::create_run(&store, thread_id, Some(run_id), card_id, claimed_by).await,+ )?;+ Ok(for_wire(run))+}++pub async fn update_heartbeat(location: &BoardLocation, run_id: &str) -> Result<(), String> {+ let (store, thread_id) = target(location);+ map_err(crate_runs::update_heartbeat(&store, thread_id, run_id).await)+}++pub async fn complete_run(+ location: &BoardLocation,+ run_id: &str,+ outcome: RunOutcome,+ error: Option<String>,+ evidence: Vec<String>,+) -> Result<TaskRun, String> {+ let (store, thread_id) = target(location);+ let run = map_err(+ crate_runs::complete_run(&store, thread_id, run_id, outcome, error, evidence).await,+ )?;+ Ok(for_wire(run))+}++pub async fn list_runs(+ location: &BoardLocation,+ card_id: Option<&str>,+) -> Result<Vec<TaskRun>, String> {+ let (store, thread_id) = target(location);+ let runs = map_err(crate_runs::list_runs(&store, thread_id, card_id).await)?;+ Ok(runs.into_iter().map(for_wire).collect())+}++pub async fn get_run(location: &BoardLocation, run_id: &str) -> Result<Option<TaskRun>, String> {+ let (store, thread_id) = target(location);+ let run = map_err(crate_runs::get_run(&store, thread_id, run_id).await)?;+ Ok(run.map(for_wire))+}++pub async fn find_stale_runs(+ location: &BoardLocation,+ limits: &RunLimits,+) -> Result<Vec<(TaskRun, String)>, String> {+ let (store, thread_id) = target(location);+ let stale = map_err(crate_runs::find_stale_runs(&store, thread_id, limits).await)?;+ Ok(stale+ .into_iter()+ .map(|(run, reason)| (for_wire(run), reason))+ .collect())+}++/// Reclaim stale runs and publish a `TaskRunReclaimed` event per reclaimed+/// card for other runtime consumers.+pub async fn reclaim_stale(+ location: &BoardLocation,+ limits: &RunLimits,+) -> Result<ReclaimResult, String> {+ let (store, thread_id) = target(location);+ let result = map_err(crate_runs::reclaim_stale(&store, thread_id, limits).await)?;++ if let Some(thread_id) = location.thread_id() {+ for detail in &result.details {+ crate::core::bus::BUS.publish(crate::core::events::DomainEvent::TaskRunReclaimed {+ run_id: detail.run_id.clone(),+ card_id: detail.card_id.clone(),+ thread_id: thread_id.to_string(),+ reason: detail.reason.clone(),+ });+ }+ }+ Ok(result)+}++/// Tick the run's heartbeat in the background until it completes or `cancel`+/// fires. Board-location addressing is resolved once, here, so the crate task+/// carries only a store and a thread id.+pub fn spawn_heartbeat_task(+ location: BoardLocation,+ run_id: String,+ cancel: tokio::sync::watch::Receiver<bool>,+) {+ let (store, thread_id) = target(&location);+ crate_runs::spawn_heartbeat_task(store, thread_id.to_string(), run_id, cancel, HEARTBEAT_TICK);+}++// ── Tests ──────────────────────────────────────────────────────────────++#[cfg(test)]+#[path = "runs_tests.rs"]+mod tests;diff --git a/crates/openhuman-core/src/threads/todos/runs_tests.rs b/crates/openhuman-core/src/agent/todos/runs_tests.rssimilarity index 69%rename from crates/openhuman-core/src/threads/todos/runs_tests.rsrename to crates/openhuman-core/src/agent/todos/runs_tests.rsindex 094502413b..92c0a3b9cc 100644--- a/crates/openhuman-core/src/threads/todos/runs_tests.rs+++ b/crates/openhuman-core/src/agent/todos/runs_tests.rs@@ -1,6 +1,7 @@use super::*;-use crate::agent::task_board::TaskCardStatus;-use crate::threads::todos::ops::{self, CardPatch};+use crate::agent::todos::ops::{self, CardPatch};+use crate::agent::todos::types::TaskCardStatus;+use std::path::Path;use tempfile::tempdir;fn thread_loc(dir: &Path, id: &str) -> BoardLocation {@@ -10,8 +11,7 @@ fn thread_loc(dir: &Path, id: &str) -> BoardLocation {}}-/// Lowercase-hex encode a thread id, matching [`super::legacy_thread_id`]'s-/// decoder so test-built keys round-trip through the migration.+/// Lowercase-hex encode a thread id for direct access to the TinyAgents run key.fn hex_key(id: &str) -> String {id.as_bytes().iter().map(|b| format!("{b:02x}")).collect()}@@ -265,88 +265,3 @@ async fn scratch_location_returns_empty_runs() {let runs = list_runs(&BoardLocation::Scratch, None).await.unwrap();assert!(runs.is_empty());}--#[tokio::test]-async fn legacy_ledger_is_imported_once_and_never_replaces_crate_runs() {- let workspace = tempdir().unwrap();- let legacy_dir = workspace.path().join(TASK_BOARD_DIR);- tokio::fs::create_dir_all(&legacy_dir).await.unwrap();-- let thread_id = "legacy-thread";- let hex = hex_key(thread_id);- let legacy = vec![TaskRun {- run_id: "legacy-run".to_string(),- card_id: "card-1".to_string(),- claimed_by: "default".to_string(),- claim_token: "token".to_string(),- started_at: "0".to_string(),- last_heartbeat_at: "0".to_string(),- completed_at: None,- outcome: None,- error: None,- evidence: Vec::new(),- }];- tokio::fs::write(- legacy_dir.join(format!("{hex}.runs.json")),- serde_json::to_vec(&legacy).unwrap(),- )- .await- .unwrap();- // A board file alongside it must not be mistaken for a run ledger.- tokio::fs::write(legacy_dir.join(format!("{hex}.json")), b"{}")- .await- .unwrap();-- let first = migrate_legacy_task_runs(workspace.path()).await.unwrap();- assert_eq!(- first,- TaskRunMigrationReport {- total: 1,- copied: 1,- skipped: 0,- }- );-- let loc = thread_loc(workspace.path(), thread_id);- assert_eq!(list_runs(&loc, None).await.unwrap().len(), 1);-- // Second pass: the crate log is authoritative and is left alone.- let second = migrate_legacy_task_runs(workspace.path()).await.unwrap();- assert_eq!(second.copied, 0);- assert_eq!(second.skipped, 1);- assert_eq!(list_runs(&loc, None).await.unwrap().len(), 1);-}--#[test]-fn legacy_file_names_decode_only_run_ledgers() {- let hex: String = "thread-1"- .as_bytes()- .iter()- .map(|b| format!("{b:02x}"))- .collect();- assert_eq!(- legacy_thread_id(Path::new(&format!("/w/{hex}.runs.json"))).as_deref(),- Some("thread-1")- );- assert!(legacy_thread_id(Path::new(&format!("/w/{hex}.json"))).is_none());- assert!(legacy_thread_id(Path::new("/w/notes.txt")).is_none());- assert!(legacy_thread_id(Path::new("/w/zz.runs.json")).is_none());-}--#[test]-fn legacy_file_names_reject_malformed_stems_without_panicking() {- // Multi-byte UTF-8 in the stem slices an odd index if decoded by byte- // pairs; it must be rejected, not panic.- assert!(legacy_thread_id(Path::new("/w/aéb.runs.json")).is_none());- // from_str_radix would accept "+f" as 15; strict hex decoding rejects the sign.- assert!(legacy_thread_id(Path::new("/w/+f+f.runs.json")).is_none());- assert!(legacy_thread_id(Path::new("/w/gg.runs.json")).is_none());- assert!(legacy_thread_id(Path::new("/w/GG.runs.json")).is_none());- // Uppercase hex is rejected even though to_digit(16) would accept it.- assert!(legacy_thread_id(Path::new("/w/4A.runs.json")).is_none());- assert!(legacy_thread_id(Path::new("/w/4a.runs.json")).is_some());- // A mixed pair with a valid second nibble but invalid first is rejected.- assert!(legacy_thread_id(Path::new("/w/0g.runs.json")).is_none());- // Non-hex ASCII letters are rejected.- assert!(legacy_thread_id(Path::new("/w/zz.runs.json")).is_none());-}diff --git a/crates/openhuman-core/src/threads/todos/tools.rs b/crates/openhuman-core/src/agent/todos/tools.rssimilarity index 99%rename from crates/openhuman-core/src/threads/todos/tools.rsrename to crates/openhuman-core/src/agent/todos/tools.rsindex 7a94072229..45c3292e51 100644--- a/crates/openhuman-core/src/threads/todos/tools.rs+++ b/crates/openhuman-core/src/agent/todos/tools.rs@@ -2,7 +2,7 @@//!//! These tools let the agent read and mutate the kanban-style task board//! that scopes per conversation thread. Each tool is a thin shim over the-//! free functions in [`crate::threads::todos::ops`], constructing a+//! free functions in [`crate::agent::todos::ops`], constructing a//! [`BoardLocation`] from the optional `thread_id` argument plus the//! configured workspace dir (falling back to the in-memory scratch board//! when no thread is supplied).diff --git a/crates/openhuman-core/src/threads/todos/tools_tests.rs b/crates/openhuman-core/src/agent/todos/tools_tests.rssimilarity index 100%rename from crates/openhuman-core/src/threads/todos/tools_tests.rsrename to crates/openhuman-core/src/agent/todos/tools_tests.rsdiff --git a/crates/openhuman-core/src/agent/todos/types.rs b/crates/openhuman-core/src/agent/todos/types.rsnew file mode 100644index 0000000000..42284a5250--- /dev/null+++ b/crates/openhuman-core/src/agent/todos/types.rs@@ -0,0 +1,24 @@+//! TinyAgents todo types and OpenHuman wire-format normalization.++use chrono::{TimeZone, Utc};++pub use tinyagents_graph::todos::{TaskApprovalMode, TaskBoard, TaskBoardCard, TaskCardStatus};++pub(crate) fn normalize_timestamp_for_wire(value: &str) -> String {+ if chrono::DateTime::parse_from_rfc3339(value).is_ok() {+ return value.to_owned();+ }+ if let Ok(updated_at_ms) = value.parse::<i64>() {+ if let Some(updated_at) = Utc.timestamp_millis_opt(updated_at_ms).single() {+ return updated_at.to_rfc3339();+ }+ }+ tracing::warn!(updated_at = %value, "invalid todo timestamp; using current time");+ Utc::now().to_rfc3339()+}++pub(crate) fn normalize_cards_for_wire(cards: &mut [TaskBoardCard]) {+ for card in cards {+ card.updated_at = normalize_timestamp_for_wire(&card.updated_at);+ }+}diff --git a/crates/openhuman-core/src/agent/tools/todo.rs b/crates/openhuman-core/src/agent/tools/todo.rsindex af4e3a3129..0862e31af0 100644--- a/crates/openhuman-core/src/agent/tools/todo.rs+++ b/crates/openhuman-core/src/agent/tools/todo.rs@@ -3,13 +3,13 @@//! Dispatches on the `op` field so a single tool exposes//! `add` / `edit` / `update_status` / `remove` / `replace` / `clear` ///! `list`. The board is persisted to the active thread (when there is-//! one) via [`crate::threads::todos::ops`]; without a thread context the+//! one) via [`crate::agent::todos::ops`]; without a thread context the//! tool falls back to a process-global scratch list. Returns a markdown//! rendering so transcripts read cleanly.-use crate::agent::task_board::{TaskApprovalMode, TaskBoardCard, TaskCardStatus};use crate::agent::tinyagents::thread_context;-use crate::threads::todos::ops::{self, BoardLocation, CardPatch};+use crate::agent::todos::ops::{self, BoardLocation, CardPatch};+use crate::agent::todos::types::{TaskApprovalMode, TaskBoardCard, TaskCardStatus};use crate::tools::traits::{PermissionLevel, Tool, ToolResult};use async_trait::async_trait;use serde_json::json;@@ -203,7 +203,7 @@ fn current_location() -> BoardLocation {};// The orchestrator owns ONE global task board rather than a per-thread one:// its `todo` tool always targets the app-wide `orchestrator-tasks` board so a- // single Kanban spans every delegation (matches the UI's OrchestratorTaskBoard).+ // single todo graph spans every delegation.if parent.agent_definition_id == "orchestrator" {return BoardLocation::Thread {workspace_dir: parent.workspace_dir.clone(),diff --git a/crates/openhuman-core/src/agent/tools/todo_tests.rs b/crates/openhuman-core/src/agent/tools/todo_tests.rsindex 5b7452048e..0d7e97b3c2 100644--- a/crates/openhuman-core/src/agent/tools/todo_tests.rs+++ b/crates/openhuman-core/src/agent/tools/todo_tests.rs@@ -5,11 +5,11 @@ use serde_json::Value;/// `todos::ops` tests. Same lock — otherwise the two test modules race/// under `cargo test`'s thread pool.fn scratch_lock() -> std::sync::MutexGuard<'static, ()> {- crate::threads::todos::ops::scratch_test_lock()+ crate::agent::todos::ops::scratch_test_lock()}async fn reset_scratch() {- crate::threads::todos::ops::clear(&BoardLocation::Scratch)+ crate::agent::todos::ops::clear(&BoardLocation::Scratch).await.expect("clear scratch");}diff --git a/crates/openhuman-core/src/agent/tools/update_task.rs b/crates/openhuman-core/src/agent/tools/update_task.rsindex 8ac7c888c0..6c5f16b9c9 100644--- a/crates/openhuman-core/src/agent/tools/update_task.rs+++ b/crates/openhuman-core/src/agent/tools/update_task.rs@@ -6,13 +6,13 @@//! own thread) can advance the task it's working: move it to//! `in_progress`/`blocked`/`done`, or update its objective/notes/evidence/blocker.//!-//! It is a thin wrapper over [`crate::threads::todos::ops::edit`], which+//! It is a thin wrapper over [`crate::agent::todos::ops::edit`], which//! applies the status move + field updates atomically, enforces the//! single-`in_progress` invariant, and emits the board-progress event that the//! Tasks board UI listens on.+use crate::agent::todos::ops::{self, BoardLocation, CardPatch};use crate::integrations::task_sources::TASK_SOURCES_THREAD_ID;-use crate::threads::todos::ops::{self, BoardLocation, CardPatch};use crate::tools::traits::{PermissionLevel, Tool, ToolResult};use async_trait::async_trait;use serde_json::json;diff --git a/crates/openhuman-core/src/agent/tools/update_task_tests.rs b/crates/openhuman-core/src/agent/tools/update_task_tests.rsindex b430f5d146..8d950586eb 100644--- a/crates/openhuman-core/src/agent/tools/update_task_tests.rs+++ b/crates/openhuman-core/src/agent/tools/update_task_tests.rs@@ -1,7 +1,7 @@//! Tests for the `update_task` tool.use super::*;-use crate::agent::task_board::TaskCardStatus;+use crate::agent::todos::types::TaskCardStatus;use crate::tools::traits::Tool;use serde_json::json;diff --git a/crates/openhuman-core/src/agent/triage/envelope.rs b/crates/openhuman-core/src/agent/triage/envelope.rsindex e089cbb329..9a6234440a 100644--- a/crates/openhuman-core/src/agent/triage/envelope.rs+++ b/crates/openhuman-core/src/agent/triage/envelope.rs@@ -10,7 +10,7 @@use chrono::{DateTime, Utc};use serde_json::Value;-use crate::threads::todos::ops::BoardLocation;+use crate::agent::todos::ops::BoardLocation;/// Links a trigger to the task-board card it concerns, so the triage/// `apply_decision` arm can hand the card to the deterministic dispatcherdiff --git a/crates/openhuman-core/src/agent/triage/escalation.rs b/crates/openhuman-core/src/agent/triage/escalation.rsindex 2853a10f3d..683601c2d5 100644--- a/crates/openhuman-core/src/agent/triage/escalation.rs+++ b/crates/openhuman-core/src/agent/triage/escalation.rs@@ -335,7 +335,7 @@ async fn dispatch_target_agent(agent_id: &str, prompt: &str) -> anyhow::Result<Sasync fn dispatch_linked_card(link: &TaskCardLink,) -> Result<crate::agent::task_dispatcher::DispatchOutcome, String> {- let snapshot = crate::threads::todos::ops::list(&link.location).await?;+ let snapshot = crate::agent::todos::ops::list(&link.location).await?;let card = snapshot.cards.into_iter()@@ -366,8 +366,8 @@ fn retained_input_note(source: &TriggerSource) -> &'static str {/// it is left untouched. Best-effort: a missing card or write failure is/// logged, never propagated — the trigger was already evaluated.async fn gate_linked_card_terminal(envelope: &TriggerEnvelope, decision: &str) {- use crate::agent::task_board::TaskCardStatus;- use crate::threads::todos::ops;+ use crate::agent::todos::ops;+ use crate::agent::todos::types::TaskCardStatus;let Some(link) = &envelope.card_link else {return;diff --git a/crates/openhuman-core/src/agent/triage/escalation_tests.rs b/crates/openhuman-core/src/agent/triage/escalation_tests.rsindex d9bbbec779..9911891f04 100644--- a/crates/openhuman-core/src/agent/triage/escalation_tests.rs+++ b/crates/openhuman-core/src/agent/triage/escalation_tests.rs@@ -186,10 +186,10 @@ async fn apply_decision_acknowledge_only_publishes_evaluated() {async fn seed_task_card() -> (tempfile::TempDir,- crate::threads::todos::ops::BoardLocation,+ crate::agent::todos::ops::BoardLocation,String,) {- use crate::threads::todos::ops::{self, BoardLocation, CardPatch};+ use crate::agent::todos::ops::{self, BoardLocation, CardPatch};let dir = tempfile::tempdir().unwrap();let location = BoardLocation::Thread {workspace_dir: dir.path().to_path_buf(),@@ -206,8 +206,8 @@ async fn seed_task_card() -> (#[tokio::test]async fn apply_decision_drop_gates_linked_card_to_rejected() {- use crate::agent::task_board::TaskCardStatus;- use crate::threads::todos::ops;+ use crate::agent::todos::ops;+ use crate::agent::todos::types::TaskCardStatus;let _events_guard = test_events_guard().await;crate::core::bus::init().await.expect("bus init");@@ -234,8 +234,8 @@ async fn apply_decision_drop_gates_linked_card_to_rejected() {#[tokio::test]async fn apply_decision_acknowledge_gates_linked_card_to_rejected() {- use crate::agent::task_board::TaskCardStatus;- use crate::threads::todos::ops;+ use crate::agent::todos::ops;+ use crate::agent::todos::types::TaskCardStatus;let _events_guard = test_events_guard().await;crate::core::bus::init().await.expect("bus init");diff --git a/crates/openhuman-core/src/channels/proactive.rs b/crates/openhuman-core/src/channels/proactive.rsindex 70078385ba..6dc7de171d 100644--- a/crates/openhuman-core/src/channels/proactive.rs+++ b/crates/openhuman-core/src/channels/proactive.rs@@ -217,7 +217,6 @@ impl EventHandler<DomainEvent> for ProactiveMessageSubscriber {failure: None,citations: None,subagent: None,- task_board: None,tool_display_label: None,tool_display_detail: None,usage: None,diff --git a/crates/openhuman-core/src/core/all.rs b/crates/openhuman-core/src/core/all.rsindex 72a296518e..eb49e9ab41 100644--- a/crates/openhuman-core/src/core/all.rs+++ b/crates/openhuman-core/src/core/all.rs@@ -792,12 +792,6 @@ fn build_registered_controllers() -> Vec<GroupedController> {Some(Capability::Goals),crate::memory::goals::all_memory_goals_registered_controllers(),);- // Thread-level goal (Codex-style per-thread completion contract)- push(- &mut controllers,- DomainGroup::Threads,- crate::threads::goals::all_thread_goals_registered_controllers(),- );// Memory tree ingestion layer (#707 — canonicalised chunks with provenance)push_cap(&mut controllers,@@ -943,12 +937,6 @@ fn build_registered_controllers() -> Vec<GroupedController> {DomainGroup::Inference,crate::inference::tokenjuice::all_tokenjuice_registered_controllers(),);- // Per-thread todo list (agent task board CRUD over RPC)- push(- &mut controllers,- DomainGroup::Threads,- crate::threads::todos::all_todos_registered_controllers(),- );// Integration notification ingest, triage, and per-provider settingspush(&mut controllers,@@ -1121,9 +1109,6 @@ pub fn namespace_description(namespace: &str) -> Option<&'static str> {"memory_goals" => Some("The agent's long-term goals list for working with the user — editable items plus turn-based enrichment.",),- "thread_goals" => Some(- "The thread-level goal — a Codex-style per-thread completion contract with lifecycle, token budget, and idle continuation.",- ),"memory_tree" => Some("Canonical chunk ingestion, provenance capture, and chunk retrieval for source-grounded memory.",),diff --git a/crates/openhuman-core/src/core/runtime/services.rs b/crates/openhuman-core/src/core/runtime/services.rsindex 082bbcdb62..0f2fb8371b 100644--- a/crates/openhuman-core/src/core/runtime/services.rs+++ b/crates/openhuman-core/src/core/runtime/services.rs@@ -372,14 +372,10 @@ fn spawn_module_preload(_config: &Config) {log::debug!("[runtime.bootstrap] native module preload skipped: modules are compiled out");}-/// Runs startup migrations, then starts one-shot boot background work selected-/// by [`ServiceSet`].-///-/// The legacy goal and task-board copies must complete before any service that-/// can read or write their crate-backed stores starts, and before the runtime-/// publishes readiness.+/// Runs startup housekeeping, then starts one-shot boot background work+/// selected by [`ServiceSet`].pub async fn start_boot_once_jobs(services: ServiceSet, config: &Config) {- run_legacy_migrations(config).await;+ run_startup_housekeeping(config);// The orphaned-run sweep does NOT live here. It runs in// `CoreBuilder::build`, which every runtime goes through — these jobs only@@ -414,7 +410,7 @@ pub async fn start_boot_once_jobs(services: ServiceSet, config: &Config) {}}-async fn run_legacy_migrations(config: &Config) {+fn run_startup_housekeeping(config: &Config) {match crate::cron::seed::prune_retired_jobs(config) {Ok(count) if count > 0 => {log::info!("[cron] removed {count} retired autopilot job(s)");@@ -422,62 +418,6 @@ async fn run_legacy_migrations(config: &Config) {Ok(_) => {}Err(e) => log::warn!("[cron] failed to prune retired jobs: {e}"),}-- // These used to run as detached tasks, allowing a user/API write to land- // between a migration's `get(None)` check and its later `put`. Await each- // copy in startup order so the crate stores are authoritative before- // writers and readiness are exposed.- //- // Both copies are idempotent and must run for each workspace so an- // in-process restart with a different workspace migrates that workspace.- match crate::threads::goals::migration::migrate_legacy_goals(&config.workspace_dir).await {- Ok(report) if report.total > 0 => {- log::info!(- "[thread_goals] legacy→crate migration: total={} copied={} skipped={}",- report.total,- report.copied,- report.skipped- );- }- Ok(_) => {}- Err(e) => log::warn!("[thread_goals] legacy→crate migration failed: {e}"),- }-- // Idempotent copy of any task boards left in the retired- // `{workspace}/agent_task_boards/*.json` file-JSON tree into the crate- // `graph.todos` store, which is now authoritative. Idempotent and returns- // fast on an empty/absent legacy dir. As above, each core boot must inspect- // its own workspace.- match crate::agent::tinyagents::todos::migrate_legacy_task_boards(&config.workspace_dir).await {- Ok(report) if report.total > 0 => {- log::info!(- "[todos] legacy→crate migration: total={} copied={} skipped={}",- report.total,- report.copied,- report.skipped- );- }- Ok(_) => {}- Err(e) => log::warn!("[todos] legacy→crate task-board migration failed: {e}"),- }-- // The `*.runs.json` claim/heartbeat ledgers that sat beside those boards- // move with them: run records now live in the crate `graph.todos.runs`- // store, so a board and its run log cannot drift apart across a restart.- // Left behind, an in-flight claim would be invisible to the reclaim sweep- // and its card would stay wedged at `in_progress` forever.- match crate::threads::todos::runs::migrate_legacy_task_runs(&config.workspace_dir).await {- Ok(report) if report.total > 0 => {- log::info!(- "[todos] legacy→crate run-ledger migration: total={} copied={} skipped={}",- report.total,- report.copied,- report.skipped- );- }- Ok(_) => {}- Err(e) => log::warn!("[todos] legacy→crate run-ledger migration failed: {e}"),- }}/// Auto-connect Socket.IO to the backend when enabled by the service selection.diff --git a/crates/openhuman-core/src/core/runtime/services_tests.rs b/crates/openhuman-core/src/core/runtime/services_tests.rsindex 08aba93a26..87397a6738 100644--- a/crates/openhuman-core/src/core/runtime/services_tests.rs+++ b/crates/openhuman-core/src/core/runtime/services_tests.rs@@ -1,18 +1,5 @@use super::*;-#[tokio::test]-async fn legacy_migrations_run_for_each_workspace() {- let tmp = tempfile::tempdir().unwrap();- let mut first = Config::default();- first.workspace_dir = tmp.path().join("first");- let mut second = Config::default();- second.workspace_dir = tmp.path().join("second");-- for config in [first, second] {- run_legacy_migrations(&config).await;- }-}-/// desktop() must enable every bootstrap job — proves the un-bundling kept/// the desktop job set byte-identical.#[test]diff --git a/crates/openhuman-core/src/core/socketio.rs b/crates/openhuman-core/src/core/socketio.rsindex 2e1543831b..a19b8303f5 100644--- a/crates/openhuman-core/src/core/socketio.rs+++ b/crates/openhuman-core/src/core/socketio.rs@@ -312,9 +312,6 @@ pub struct WebChannelEvent {/// non-subagent event.#[serde(skip_serializing_if = "Option::is_none")]pub subagent: Option<SubagentProgressDetail>,- /// Per-thread task board snapshot carried by `task_board_updated`.- #[serde(skip_serializing_if = "Option::is_none")]- pub task_board: Option<serde_json::Value>,/// Server-computed human label for a tool call (on `tool_call` //// `subagent_tool_call`), e.g. "Reading messages". The frontend renders/// this verbatim for dynamic Composio/MCP/integration tools it can'tdiff --git a/crates/openhuman-core/src/integrations/task_sources/README.md b/crates/openhuman-core/src/integrations/task_sources/README.mdindex 287c78f2ee..ff130d4e8f 100644--- a/crates/openhuman-core/src/integrations/task_sources/README.md+++ b/crates/openhuman-core/src/integrations/task_sources/README.md@@ -132,7 +132,7 @@ Additive idempotent column migrations (`add_column_if_missing`) backfill `ingest- `crate::config` (+ `config::rpc`) — `Config`, `load_config_with_timeout`; reads the `[task_sources]` block for defaults and the master switch.- `crate::integrations::composio::providers` — `NormalizedTask`, `TaskContainer`, `TaskFetchFilter`, `TaskKind` (contract types re-exported from `tinymemory_api::composio::tasks`). The old `get_provider` / `ProviderContext` / `ComposioProvider::fetch_tasks` registry no longer exists; `mod.rs`'s intra-doc link to `fetch_tasks` is stale.- `crate::agent::triage` — `run_triage`, `apply_decision`, `TriageOutcome`, `TriggerEnvelope`; dispatches the proactive agent turn for `AgentTodoProactive` sources.-- `crate::threads::todos` (`todos::ops`) — `add`/`remove`, `BoardLocation`, `CardPatch`; the thread-scoped board cards are stored here. Also references `agent::task_board::TaskBoardCard` for `board_cards`.+- `crate::agent::todos` (`todos::ops`) — `add`/`remove`, `BoardLocation`, `CardPatch`; the thread-scoped cards are stored here. Card types come from `agent::todos::types`.- `crate::cron::scheduler_gate` — `wait_for_capacity` capacity semaphore; gates proactive triage turns behind background-AI throttling.## Used bydiff --git a/crates/openhuman-core/src/integrations/task_sources/route.rs b/crates/openhuman-core/src/integrations/task_sources/route.rsindex 862234c0e4..8f942e5a55 100644--- a/crates/openhuman-core/src/integrations/task_sources/route.rs+++ b/crates/openhuman-core/src/integrations/task_sources/route.rs@@ -12,15 +12,13 @@use serde_json::json;+use crate::agent::todos::ops::{add as todo_add, remove as todo_remove, BoardLocation, CardPatch};use crate::agent::triage::{apply_decision, remote_trigger_origin, run_triage, TriageOutcome, TriggerEnvelope,};use crate::agent::turn_origin::with_origin;use crate::config::Config;-use crate::threads::todos::ops::{- add as todo_add, remove as todo_remove, BoardLocation, CardPatch,-};-use crate::{cron::scheduler_gate, threads::todos};+use crate::{agent::todos, cron::scheduler_gate};use super::types::{EnrichedTask, FilterSpec, SourceTarget, TaskSource};use super::TaskKind;@@ -296,7 +294,7 @@ fn provider_label(provider: &str) -> String {/// callers that want to inspect routed work without an RPC round-trip.pub async fn board_cards(config: &Config,-) -> Result<Vec<crate::agent::task_board::TaskBoardCard>, String> {+) -> Result<Vec<crate::agent::todos::types::TaskBoardCard>, String> {let location = task_sources_location(config);todos::ops::list(&location).await.map(|snap| snap.cards)}diff --git a/crates/openhuman-core/src/integrations/task_sources/store_tests.rs b/crates/openhuman-core/src/integrations/task_sources/store_tests.rsindex d0e38de53b..e0c4b672cd 100644--- a/crates/openhuman-core/src/integrations/task_sources/store_tests.rs+++ b/crates/openhuman-core/src/integrations/task_sources/store_tests.rs@@ -266,8 +266,8 @@ async fn add_with_assigned_executor_persists_and_filters_blank() {#[tokio::test]async fn ops_remove_prunes_routed_cards_for_source() {+ use crate::agent::todos::ops::{add as todo_add, BoardLocation, CardPatch};use crate::integrations::task_sources::{ops, route};- use crate::threads::todos::ops::{add as todo_add, BoardLocation, CardPatch};let tmp = TempDir::new().unwrap();let config = test_config(&tmp);diff --git a/crates/openhuman-core/src/platform/about_app/catalog_conversation_intelligence.rs b/crates/openhuman-core/src/platform/about_app/catalog_conversation_intelligence.rsindex bdc7fb843e..b04dd465a0 100644--- a/crates/openhuman-core/src/platform/about_app/catalog_conversation_intelligence.rs+++ b/crates/openhuman-core/src/platform/about_app/catalog_conversation_intelligence.rs@@ -325,27 +325,6 @@ Capability {// the device during a reflect pass (CRUD/storage stays local).privacy: DERIVED_TO_BACKEND,},-Capability {- id: "conversation.thread_goal",- name: "Thread Goal",- domain: "conversation",- category: CapabilityCategory::Conversation,- description: "A single, thread-scoped goal (Codex-style \"completion contract\") the \- assistant keeps pursuing across turns, interrupts, resumes, and budget boundaries — \- distinct from the long-term goals list and the per-thread task board. Stored locally \- (one goal per thread), with a lifecycle (active/paused/budget_limited/complete) and an \- optional token budget. The active goal is injected into context each turn; the context \- scout proposes a goal on a fresh thread (only if none is set) and the orchestrator can \- set/refine it. When enabled, idle threads can autonomously continue toward the goal.",- how_to: "Set/edit via the goal chip above the composer in Conversations, or the \- thread_goals.* RPC (get/set/complete/pause/resume/clear); the assistant manages it via \- the goal_set / goal_get / goal_complete tools. Autonomous continuation is opt-in via \- heartbeat.goal_continuation_enabled.",- status: CapabilityStatus::Beta,- // Goal CRUD/storage is local; autonomous continuation (opt-in) runs a- // cloud agentic model, so objective/context can leave the device then.- privacy: DERIVED_TO_BACKEND,- },Capability {id: "intelligence.memory_tree_retrieval",name: "Memory Tree Retrieval (chat)",diff --git a/crates/openhuman-core/src/skills/e2e_run_tests.rs b/crates/openhuman-core/src/skills/e2e_run_tests.rsindex a7f7e43500..0aa307ba57 100644--- a/crates/openhuman-core/src/skills/e2e_run_tests.rs+++ b/crates/openhuman-core/src/skills/e2e_run_tests.rs@@ -31,15 +31,15 @@ use async_trait::async_trait;use crate::agent::harness::run_channel_turn_via_graph;use crate::agent::messages::ChatMessage;-use crate::agent::task_board::{TaskBoardCard, TaskCardStatus};use crate::agent::task_dispatcher::{dispatch_card, DispatchOutcome};+use crate::agent::todos::ops as board_ops;+use crate::agent::todos::ops::{BoardLocation, CardPatch};+use crate::agent::todos::types::{TaskBoardCard, TaskCardStatus};use crate::agent::tools::RunWorkflowTool;use crate::config::{MultimodalConfig, MultimodalFileConfig};use crate::inference::provider::factory::test_provider_override;use crate::skills::runtime::{await_run_outcome, spawn_workflow_run_background};use crate::skills::schemas::resolve_workspace_dir;-use crate::threads::todos::ops as board_ops;-use crate::threads::todos::ops::{BoardLocation, CardPatch};use crate::tools::traits::Tool;use tinyinference::message::AssistantMessage;use tinyinference::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};diff --git a/crates/openhuman-core/src/skills/run_log.rs b/crates/openhuman-core/src/skills/run_log.rsindex 69f2011c4f..9012e3032e 100644--- a/crates/openhuman-core/src/skills/run_log.rs+++ b/crates/openhuman-core/src/skills/run_log.rs@@ -247,7 +247,6 @@ pub fn format_event(ev: &AgentProgress) -> Option<String> {| AgentProgress::ToolCallArgsDelta { .. }| AgentProgress::TurnCostUpdated { .. }| AgentProgress::ModelCallCompleted { .. }- | AgentProgress::TaskBoardUpdated { .. }| AgentProgress::SubagentTextDelta { .. }| AgentProgress::SubagentThinkingDelta { .. }| AgentProgress::SubagentIterationStarted { .. }diff --git a/crates/openhuman-core/src/threads/README.md b/crates/openhuman-core/src/threads/README.mdindex e1294b3f5a..6a727be394 100644--- a/crates/openhuman-core/src/threads/README.md+++ b/crates/openhuman-core/src/threads/README.md@@ -1,122 +1,42 @@# threads-Conversation thread and message management. Owns the RPC surface and controller registry for thread lifecycle (create / list / upsert / delete / purge), per-thread message CRUD, AI-assisted thread titling, persisted per-turn snapshots (cold-boot recovery of interrupted agent turns plus a bounded per-thread processing history), the per-thread kanban task board passthrough, per-thread token/cost totals, a transcript projection for the chat renderer, and a one-shot welcome-agent → orchestrator workspace migration. Persistence is delegated to `memory::conversations` (JSONL thread/message store) and to a dedicated `turn_state` snapshot store; this module is the RPC/controller layer over both.+Conversation and message management. This domain owns the `threads` RPC+namespace used by chat history, titles, labels, transcript projection, token+usage, and persisted per-turn processing snapshots. It does not own agent goals+or todos; those are TinyAgents capabilities integrated under `agent/`.## Responsibilities-- List, create (`upsert` with caller-supplied id or `create_new` with auto-generated id + placeholder title), delete, and purge conversation threads.-- List, append, and metadata-patch messages within a thread.-- Update thread labels and user-specified titles.-- Generate a durable thread title from the first user message + assistant reply via the inference provider, with deterministic fallbacks (derive title from the user message; skip non-placeholder titles).-- Maintain restart-survivable snapshots of agent turns (`turn_state`): get (latest) / list / per-thread history / get by request id / clear over RPC; written by the web-channel progress bridge via `TurnStateMirror`.-- Expose a per-thread kanban task board get/put that proxies to `agent::task_board`.-- Total a thread's persisted token/cost usage from its session transcripts (`token_usage`), re-auditing cost at current pricing via `agent::cost::estimate_call_cost_usd`.-- Project `session_raw/*.jsonl` into paginated display items (`transcript_get`, see `transcript_view/`).-- On thread delete/purge, invalidate the in-process web-channel session, cancel detached sub-agents and discard their queued completions (`agent::orchestration`), and clean up orphaned turn snapshots — all inside one `run_to_completion` unit so a disconnecting caller cannot leave the cleanup half done.-- One-shot idempotent migration of legacy welcome-agent artifacts (strip `onboarding` label, rename `welcome*` session transcripts/markdown to `orchestrator*`).+- List, create, update, delete, and purge conversation threads.+- List, append, and metadata-patch messages.+- Generate durable conversation titles with deterministic fallbacks.+- Persist restart-survivable turn snapshots for transcript/process replay.+- Project `session_raw/*.jsonl` into paginated chat display items.+- Total persisted token and cost usage for a conversation.+- Migrate legacy welcome-agent conversations to orchestrator naming.-## Key files+## RPC surface-| File | Role |-| --- | --- |-| `crates/openhuman-core/src/threads/mod.rs` | Export-focused: module docstring, `mod` decls (incl. `goals`, `todos`, `transcript_view` submodules), re-exports (`ThreadsError`, `THREAD_NOT_FOUND_KIND`, controller schema/registry pair, welcome-migration entry point). |-| `crates/openhuman-core/src/threads/ops.rs` | Thin shell over the `ops/` submodule: `crud.rs` (thread + message ops, delete), `title_generation.rs`, `purge.rs`, `turn_state_ops.rs` (`turn_state_*`), `usage.rs` (`token_usage`), and `transcript.rs` (`transcript_get`). Split for file-size, not module boundaries. RPC entry points return `RpcOutcome<ApiEnvelope<T>>` with request-id/count meta. |-| `crates/openhuman-core/src/threads/schemas.rs` | Thin shell over the `schemas/` submodule: `schema_defs.rs`, `registry.rs`, `handlers.rs`. `ControllerSchema` definitions, `all_controller_schemas`, `all_registered_controllers`, and `handle_*` functions delegating to `ops` live there, along with the `task_board_get`/`task_board_put` handlers (proxy to `agent::task_board`). |-| `crates/openhuman-core/src/threads/error.rs` | `ThreadsError` taxonomy (`NotFound` / `Message`); encodes `NotFound` as a `StructuredRpcError` (`kind: "ThreadNotFound"`, `expected_user_state: true`) at the controller boundary so the frontend handles stale thread refs without string-matching or Sentry noise. |-| `crates/openhuman-core/src/threads/title.rs` | Pure, provider-free helpers: placeholder-title detection, raw-title sanitization, whitespace collapse, fallback title from user message, prompt builder, log fingerprint. Heavily unit-tested. |-| `crates/openhuman-core/src/threads/welcome_migration.rs` | One-shot, marker-guarded migration of legacy welcome-agent threads/transcripts to orchestrator naming. |-| `crates/openhuman-core/src/threads/turn_state/mod.rs` | Submodule export hub for in-flight turn snapshots. |-| `crates/openhuman-core/src/threads/turn_state/types.rs` | Wire/storage types: `TurnState`, `TurnLifecycle`, `TurnPhase`, `ToolTimelineEntry`/`Status`, `SubagentActivity`/`ToolCall`, and the get/list/clear request/response payloads. camelCase to mirror `chatRuntimeSlice.ts`. |-| `crates/openhuman-core/src/threads/turn_state/store.rs` | `TurnStateStore` — atomic per-turn JSON snapshot store (tempfile + persist + dir fsync), process-wide mutex; `put`/`get` (latest turn)/`get_turn`/`delete`/`list`/`list_thread`/`clear_all`/`mark_all_interrupted` plus free-fn wrappers. Migrates legacy flat `<hex(thread_id)>.json` files into the per-turn directory on first access. |-| `crates/openhuman-core/src/threads/turn_state/mirror.rs` (thin shell over the `mirror/` submodule: `state.rs`, `lifecycle.rs`, `observe.rs`, `caps.rs`) | `TurnStateMirror` — translates `agent::progress::AgentProgress` events into `TurnState` mutations (incl. the ordered narration/thinking/tool `transcript`), flushing at iteration/tool boundaries; on completion marks the snapshot `Completed` and **keeps** it (so the "View processing" panel can replay the finished turn), flags `Interrupted` if the bridge exits without `TurnCompleted`. |-| `*_tests.rs` | Sibling test suites: `error_tests.rs`, `ops_tests*.rs`, `schemas_tests.rs`, `title_tests.rs`, `welcome_migration_tests.rs`, `turn_state/store_tests.rs`, `turn_state/mirror_tests*.rs`. |--## Submodules--- [`goals/`](goals/README.md) — thin OpenHuman host adapters over `tinyagents_graph::goals`. Tinyagents owns the goal type, lifecycle, persistence, and prompt rendering; this module owns workspace-store resolution, the `thread_goals.*` JSON-RPC schemas (`get`/`set`/`complete`/`pause`/`resume`/`clear`, 6 functions), domain events, the legacy-file migration, heartbeat continuation, the `goal_get`/`goal_set`/`goal_complete` agent tools, and adapters for OpenHuman's pre-tinyagents `Tool`/`StopHook` traits (`continuation.rs`, `migration.rs`, `ops.rs`, `runtime.rs`, `schemas.rs`, `store.rs`, `tools.rs`). The external `thread_goals` RPC namespace is stable regardless of the tinyagents-side implementation.-- [`todos/`](todos/README.md) — compatibility surface over `tinyagents_graph::todos` (task-board types, normalization, markdown rendering, CRUD, plan decisions, the single-`in_progress` invariant, atomic claims, durable storage). OpenHuman keeps the `todos.*` JSON-RPC API (13 functions, split across the `schemas/` submodule's `schema_defs.rs`/`registry.rs`/`handlers.rs`), the granular `todo_*` agent tools (`tools.rs`, re-exported through `crate::tools`), and `runs.rs`, which binds the TinyAgents autonomous-run ledger to `BoardLocation` addressing and imports retired `agent_task_boards/<hex>.runs.json` ledgers. See the submodule README for details.-- [`transcript_view/`](transcript_view/mod.rs) — projects the append-only `session_raw/*.jsonl` transcript source of truth into typed `DisplayItem`s for the chat renderer, with newest-first pagination over a bounded in-memory cache (`cache.rs`, `project.rs`, `types.rs`). Entry point `get_page` backs the `threads.transcript_get` RPC.--## Public surface--From `mod.rs`:-- `ThreadsError`, `THREAD_NOT_FOUND_KIND` (re-exported from `error`).-- `all_threads_controller_schemas` / `all_threads_registered_controllers` (re-exported from `schemas`).-- `migrate_welcome_agent_artifacts`, `WelcomeMigrationResult` (re-exported from `welcome_migration`).--From `turn_state`: `TurnStateMirror`, `TurnStateStore`, `TurnState` + lifecycle/phase/timeline/subagent types and the turn-state RPC request/response types.--## RPC / controllers--Namespace `threads` (JSON-RPC `openhuman.threads_<function>`). Schemas + handlers registered via `all_registered_controllers`:--| Function | Op |-| --- | --- |-| `list` | List thread summaries. |-| `upsert` | Create/refresh a thread (caller id, title, created_at, optional labels). |-| `create_new` | New thread with auto id + `Chat <date> <time>` placeholder title. |-| `messages_list` | List messages for a thread. |-| `message_append` | Append a message (returns typed `ThreadsError`, i.e. structured `NotFound`). |-| `message_update` | Patch `extra_metadata` on a message. |-| `generate_title` | LLM-generate title from first user + assistant message, with fallbacks. |-| `update_labels` | Replace labels (empty vec clears all labels). |-| `update_title` | Set a user-specified title (rejects empty). |-| `delete` | Delete thread + message log; invalidates web session, cancels the thread's sub-agents, clears its turn snapshots. |-| `purge` | Remove all threads/messages; cancels every sub-agent, `clear_all` turn snapshots. |-| `turn_state_get` / `turn_state_list` / `turn_state_clear` | Read the latest snapshot for a thread / list the latest snapshot per thread / delete all of a thread's snapshots. |-| `turn_state_history` / `turn_state_get_turn` | Per-thread turn history (newest first) / one turn by its producing `request_id`. |-| `task_board_get` / `task_board_put` | Proxy the per-thread kanban board to `agent::task_board`. |-| `token_usage` | Total a thread's persisted token/cost usage (plus per-sub-agent breakdown) from its session transcripts. |-| `transcript_get` | Newest-first page of `transcript_view::DisplayItem`s (`cursor`, `limit` default 50, max 500). |--Wired into the registry from `crates/openhuman-core/src/core/all.rs` (controllers + schemas extended with the `all_threads_*` pair).--The `goals/` and `todos/` submodules register their own controller namespaces from the same call site:--| Namespace | Functions |-| --- | --- |-| `thread_goals` (`openhuman.thread_goals_<function>`) | `get`, `set`, `complete`, `pause`, `resume`, `clear` — thread-level goal CRUD over `tinyagents_graph::goals`, via `goals::all_thread_goals_registered_controllers`. |-| `todos` (`openhuman.todos_<function>`) | 13 functions (`list`, `add`, `edit`, `update_status`, `set_session_thread`, `decide_plan`, `revise_plan`, `remove`, `replace`, `clear`, `run_list`, `run_get`, `reclaim_stale`) over `tinyagents_graph::todos`, via `todos::all_todos_registered_controllers` (split across the `schemas/` submodule). |+The `openhuman.threads_*` methods cover conversation lifecycle, messages,+titles, labels, turn-state reads, token usage, and transcript projection. There+is intentionally no task-board, todo, or goal RPC surface here.## Persistence-- **Threads + messages**: delegated to `memory::conversations` (JSONL store under the workspace), not owned here. Every call goes through `crate::memory::conversations::blocking::*` (`tokio::task::spawn_blocking`) — **never** the sync entry points directly, see the note below.-- **Turn snapshots** (`turn_state/store.rs`): one JSON file per *turn* at `<workspace>/memory/conversations/turn_states/<hex(thread_id)>/<hex(request_id)>.json`. Whole-file atomic write (tempfile → fsync → persist → best-effort dir fsync), serialized through a process-wide `parking_lot::Mutex`. `get`/`list` resolve the latest turn per thread; `get_turn`/`list_thread` expose the history. A non-terminal file surviving cold boot is marked `Interrupted`; `Completed` snapshots are retained (for processing replay), skipped by startup interrupted-marking, and pruned to the newest `COMPLETED_RETENTION` (20) per thread on each completed write. Legacy flat `turn_states/<hex(thread_id)>.json` files from older cores are migrated into the per-turn layout on first access.-- **Task board**: persisted by `agent::task_board::TaskBoardStore` under the workspace (this module only proxies).-- **Migration marker**: `state/migrations/welcome_to_orchestrator_v1.done` guards the welcome migration.--## Dependencies--- `crate::memory::conversations` — thread + message store types and CRUD (`ensure_thread`, `list_threads`, `get_messages`, `append_message`, `update_thread_*`, `ConversationStore`, etc.); also the `ApiEnvelope`/`ApiMeta`/request/response DTOs.-- `tinyagents_graph::{goals, todos}` — the vendored goal and task-board domains that `goals/` and `todos/` adapt.-- `crate::config::Config` — resolves `workspace_dir` and inference/runtime/secrets settings (`load_or_init`).-- `crate::inference::provider` — `create_chat_model_with_model_id("summarization", …)` for AI title generation; `UsageInfo` for cost re-auditing.-- `crate::agent::orchestration::{running_subagents, background_completions}` — cancel a deleted/purged thread's detached sub-agents and discard their queued results.-- `crate::agent::harness::session::transcript::read_thread_usage_summary` + `crate::agent::cost::estimate_call_cost_usd` — `token_usage` totals.-- `crate::web_chat` — `invalidate_thread_sessions` on thread delete (so a deleted thread's live web session can't keep appending).-- `crate::agent::task_board` — `TaskBoard`, `TaskBoardCard`, `TaskBoardStore`, `board_for_thread` for the task-board RPCs; also the optional `task_board` field on `TurnState`.-- `crate::agent::progress::AgentProgress` — progress events consumed by `TurnStateMirror`.-- `crate::core::all` — `ControllerFuture`, `RegisteredController` for the registry.-- `crate::core::{ControllerSchema, FieldSchema, TypeSchema}` — schema definitions.-- `crate::rpc::{RpcOutcome, StructuredRpcError}` — RPC outcome wrapper and structured-error encoding.--## Used by+Conversation and message storage is delegated to+`memory::conversations::blocking`; do not call the synchronous conversation+store from async handlers. Turn snapshots live under+`memory/conversations/turn_states/` and are retained for settled processing+replay. The welcome migration is guarded by+`state/migrations/welcome_to_orchestrator_v1.done`.-- `crates/openhuman-core/src/core/all.rs` — registers the controllers/schemas into the JSON-RPC + CLI registry.-- `crates/openhuman-core/src/core/jsonrpc.rs` — calls `turn_state::store::mark_all_interrupted` at boot to stamp stale snapshots.-- `crates/openhuman-core/src/web_chat/` — `progress_bridge.rs` / `run_task.rs` drive `TurnStateMirror` during chat turns; `web_chat` owns `invalidate_thread_sessions`, which `delete` calls.-- `crates/openhuman-core/src/platform/startup/ops.rs` — invokes `migrate_welcome_agent_artifacts`.-- `crates/openhuman-core/src/tools/mod.rs` — re-exports `threads::todos::tools::*`.+## Key modules-## Notes / gotchas+- `ops/`: conversation, message, title, usage, transcript, and turn-state ops.+- `schemas/`: controller schemas and thin handlers.+- `turn_state/`: persisted turn snapshots and the progress-event mirror.+- `transcript_view/`: session transcript projection for the renderer.+- `welcome_migration.rs`: one-shot legacy conversation migration.-- **Never call the sync `memory::conversations` API from these handlers — use `memory::conversations::blocking::*`.** Each store entry point takes a process-global `parking_lot::Mutex` and then does fsync'd JSONL IO while holding it, and the per-call cost grows with the user's history (`threads.jsonl` is folded on nearly every operation and gains ~2 lines per message, uncompacted). Called inline, a handler parks a tokio *worker* thread on that mutex; once more conversation ops are queued than there are workers, the runtime stops polling anything — including the HTTP task that owes the client a response — and a one-append create blows the frontend's 30 s RPC budget (`UnhandledRejection: Core RPC openhuman.threads_create_new timed out after 30000ms`, Sentry TAURI-REACT-10 / #5156). The wrappers keep the lock wait on the blocking pool; the store is just as serialized, but the executor stays live. `welcome_migration.rs` is the deliberate exception: it is a sync, one-shot, marker-guarded boot migration, not a request path.-- `generate_title` only replaces titles matching the `Chat <Mon> <d> <h>:<mm> <AM|PM>` placeholder shape (`is_auto_generated_thread_title`); user-renamed threads are never overwritten. Provider/init/sanitization failures degrade to a deterministic fallback title derived from the first user message — never an error.-- `delete` invalidates the web-channel session **before** turn-snapshot cleanup (ordering is load-bearing per the inline comment), and aborts in-flight sub-agents before discarding their queued completions; snapshot-cleanup failure surfaces as an RPC error so callers see a partial failure rather than silent on-disk drift.-- `ops::transcript_search` (cross-thread message search over the conversations inverted index) has no `threads.*` schema; it is a library entry point, not an RPC.-- `purge` uses `clear_all` (not list+delete) so corrupted/half-written snapshot files — which `list()` warn-skips — are also removed.-- `ThreadsError::NotFound` is the **only** place `ThreadNotFound` becomes a wire-shaped structured error; the transport layer does not sniff method names or error strings. `from_thread_scoped_store_error` only promotes to `NotFound` when the parsed id matches the requested thread id, to avoid clearing the wrong stale thread on the frontend.-- Turn-state types intentionally serialize camelCase to mirror `app/src/store/chatRuntimeSlice.ts` so a snapshot applies to the slice without translation.-- `TurnStateMirror` flushes only at iteration/tool boundaries; high-frequency deltas (streaming text, thinking, tool args) mutate memory only, to avoid filesystem thrash under streaming load.-- Directory fsync after snapshot rename is best-effort and a no-op on Windows (relies on NTFS journaling).-- The welcome migration is idempotent (marker-guarded) and fails closed: a destination-collision or any per-item failure returns a `partial migration` error and does **not** write the marker, so a later retry can resume.+Agent goal and todo integration lives in `crate::agent::{goals,todos}` and is+backed directly by `tinyagents_graph`.diff --git a/crates/openhuman-core/src/threads/goals/README.md b/crates/openhuman-core/src/threads/goals/README.mddeleted file mode 100644index ceef9c3096..0000000000--- a/crates/openhuman-core/src/threads/goals/README.md+++ /dev/null@@ -1,46 +0,0 @@-# goals--Compatibility surface for OpenHuman thread-goal callers.--The goal model and behavior are owned by `tinyagents_graph::goals`: types,-lifecycle (active / paused / budget-limited / complete), the durable KV store,-budget accounting, and prompt rendering. Types and business logic are not-redeclared here — `ThreadGoal` and `ThreadGoalStatus` are re-exported from the-crate.--OpenHuman keeps this module to preserve app-specific integration:--- `store.rs` adapts the historical `store::*(workspace_dir, …)` call surface- onto the crate's `graph.goals` KV store, resolving the store from- `workspace_dir` and flattening the crate's `TinyAgentsError` to `String`.- `clear` also deletes any leftover legacy file for the thread.-- `ops.rs` wraps the store in `RpcOutcome` handlers shared by RPC and CLI, and- publishes `DomainEvent::ThreadGoalUpdated` / `ThreadGoalCleared` on mutation.-- `schemas.rs` exposes `openhuman.thread_goals_<function>` JSON-RPC: `get`,- `set`, `complete`, `pause`, `resume`, `clear`. Handlers load the active- config for `workspace_dir` and delegate to `ops`.-- `tools.rs` adapts tinyagents' model-facing goal controls to OpenHuman's- `Tool` trait: `goal_get`, `goal_set`, `goal_complete` (asymmetric ownership —- pause/resume/budget-limit are system-driven, with no model tool). Each tool- resolves its target thread from the ambient `current_thread_id`, never from- an argument.-- `continuation.rs` is the heartbeat adapter that injects one autonomous- continuation turn when an active goal's thread goes idle, gated by- `heartbeat.goal_continuation_enabled`, one-shot suppression, and a- process-wide `Semaphore(1)`. `run_continuation_tick` currently has no- production caller; only its unit tests invoke it.-- `runtime.rs` offers `load/resume/pause/complete/clear_for_current_thread`- over the ambient thread, folds completed-turn usage into the active goal- (`account_turn_against_goal`), and implements `GoalBudgetStopHook`, a- `StopHook` that pauses an in-flight turn once running usage would exceed the- goal's budget.-- `migration.rs` imports the retired file-backed `thread_goals/<hex>.json`- store into the crate's `graph.goals` namespace at startup; existing- tinyagents values are never replaced.--Callers: `agent::harness::session::turn` (load/resume on turn start,-`GoalBudgetStopHook`, post-turn accounting), `agent::orchestration::tools`-(`store::set_if_absent` during context preparation), `tools::ops` (registers-the three `goal_*` tools), `core::all` (controller registry), and-`core::runtime::services` (awaits `migrate_legacy_goals` at startup). The-external `thread_goals.*` RPC namespace and `goal_*` tool names remain stable.diff --git a/crates/openhuman-core/src/threads/goals/migration.rs b/crates/openhuman-core/src/threads/goals/migration.rsdeleted file mode 100644index 57b8636657..0000000000--- a/crates/openhuman-core/src/threads/goals/migration.rs+++ /dev/null@@ -1,134 +0,0 @@-//! One-time migration from OpenHuman's retired file-backed thread-goal store-//! into tinyagents' authoritative `graph.goals` namespace.--use std::path::Path;-use std::sync::Arc;--use tinyagents_graph::goals::store::GOALS_NAMESPACE;-use tinyagents_harness::store::Store;--use super::ThreadGoal;-use crate::agent::session_import::ops::open_session_stores;--const LEGACY_GOALS_DIR: &str = "thread_goals";-const LEGACY_GOALS_EXTENSION: &str = "json";--pub(crate) fn goals_store(workspace_dir: &Path) -> Arc<dyn Store> {- Arc::new(open_session_stores(workspace_dir).kv)-}--fn goal_key(thread_id: &str) -> String {- thread_id- .trim()- .as_bytes()- .iter()- .map(|byte| format!("{byte:02x}"))- .collect()-}--fn legacy_goal_path(workspace_dir: &Path, thread_id: &str) -> Result<std::path::PathBuf, String> {- let thread_id = thread_id.trim();- if thread_id.is_empty() {- return Err("invalid thread goal thread_id: empty or whitespace".to_string());- }- Ok(workspace_dir.join(LEGACY_GOALS_DIR).join(format!(- "{}.{LEGACY_GOALS_EXTENSION}",- hex::encode(thread_id.as_bytes())- )))-}--pub(crate) async fn delete_legacy_goal_file(- workspace_dir: &Path,- thread_id: &str,-) -> Result<bool, String> {- let path = legacy_goal_path(workspace_dir, thread_id)?;- match tokio::fs::remove_file(&path).await {- Ok(()) => Ok(true),- Err(error) if error.kind() == std::io::ErrorKind::NotFound => Ok(false),- Err(error) => Err(format!(- "delete legacy thread goal {}: {error}",- path.display()- )),- }-}--#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)]-pub struct GoalMigrationReport {- pub total: usize,- pub copied: usize,- pub skipped: usize,-}--struct LegacyGoalRow {- path: std::path::PathBuf,- goal: ThreadGoal,-}--async fn read_legacy_goals(workspace_dir: &Path) -> Result<Vec<LegacyGoalRow>, String> {- let dir = workspace_dir.join(LEGACY_GOALS_DIR);- let mut entries = match tokio::fs::read_dir(&dir).await {- Ok(entries) => entries,- Err(error) if error.kind() == std::io::ErrorKind::NotFound => return Ok(Vec::new()),- Err(error) => {- return Err(format!(- "read legacy thread goals dir {}: {error}",- dir.display()- ))- }- };- let mut goals = Vec::new();- while let Some(entry) = entries- .next_entry()- .await- .map_err(|error| format!("iterate legacy thread goals dir: {error}"))?- {- let path = entry.path();- if path.extension().and_then(|extension| extension.to_str()) != Some(LEGACY_GOALS_EXTENSION)- {- continue;- }- if let Ok(body) = tokio::fs::read_to_string(&path).await {- if let Ok(goal) = serde_json::from_str::<ThreadGoal>(&body) {- goals.push(LegacyGoalRow { path, goal });- }- }- }- Ok(goals)-}--pub async fn migrate_legacy_goals(workspace_dir: &Path) -> Result<GoalMigrationReport, String> {- let legacy = read_legacy_goals(workspace_dir).await?;- let store = goals_store(workspace_dir);- let mut report = GoalMigrationReport {- total: legacy.len(),- ..Default::default()- };-- for row in legacy {- let key = goal_key(&row.goal.thread_id);- if store- .get(GOALS_NAMESPACE, &key)- .await- .map_err(|error| format!("read tinyagents goal during migration: {error}"))?- .is_some()- {- report.skipped += 1;- } else {- let value = serde_json::to_value(&row.goal)- .map_err(|error| format!("serialize legacy thread goal: {error}"))?;- store- .put(GOALS_NAMESPACE, &key, value)- .await- .map_err(|error| format!("write tinyagents goal during migration: {error}"))?;- report.copied += 1;- }- tokio::fs::remove_file(&row.path)- .await- .map_err(|error| format!("remove migrated goal {}: {error}", row.path.display()))?;- }- Ok(report)-}--#[cfg(test)]-#[path = "migration_tests.rs"]-mod tests;diff --git a/crates/openhuman-core/src/threads/goals/migration_tests.rs b/crates/openhuman-core/src/threads/goals/migration_tests.rsdeleted file mode 100644index 821f3a2431..0000000000--- a/crates/openhuman-core/src/threads/goals/migration_tests.rs+++ /dev/null@@ -1,43 +0,0 @@-use super::*;-use tinyagents_graph::goals::{store, ThreadGoalStatus};--#[tokio::test]-async fn migrates_legacy_goal_into_tinyagents_store() {- let temp = tempfile::tempdir().unwrap();- let legacy_dir = temp.path().join(LEGACY_GOALS_DIR);- tokio::fs::create_dir_all(&legacy_dir).await.unwrap();- let goal = ThreadGoal {- thread_id: "thread-1".into(),- goal_id: "legacy-id".into(),- objective: "legacy objective".into(),- status: ThreadGoalStatus::Active,- token_budget: Some(100),- tokens_used: 10,- time_used_seconds: 2,- created_at_ms: 1,- updated_at_ms: 2,- continuation_suppressed: false,- };- let path = legacy_goal_path(temp.path(), &goal.thread_id).unwrap();- tokio::fs::write(&path, serde_json::to_vec(&goal).unwrap())- .await- .unwrap();-- let report = migrate_legacy_goals(temp.path()).await.unwrap();- assert_eq!(- report,- GoalMigrationReport {- total: 1,- copied: 1,- skipped: 0- }- );- assert_eq!(- store::get(&goals_store(temp.path()), "thread-1")- .await- .unwrap()- .unwrap(),- goal- );- assert!(!path.exists());-}diff --git a/crates/openhuman-core/src/threads/goals/mod.rs b/crates/openhuman-core/src/threads/goals/mod.rsdeleted file mode 100644index 998d6bfdd6..0000000000--- a/crates/openhuman-core/src/threads/goals/mod.rs+++ /dev/null@@ -1,20 +0,0 @@-//! Thin OpenHuman host adapters for [`tinyagents_graph::goals`].-//!-//! Tinyagents owns the goal types, lifecycle, persistence, prompt rendering,-//! graph continuation, and native harness tools. This compatibility module-//! contains only OpenHuman-specific concerns: workspace-store resolution,-//! JSON-RPC schemas, domain events, the legacy file migration, heartbeat-//! dispatch, and adapters for OpenHuman's pre-tinyagents `Tool`/`StopHook`-//! traits. The external `thread_goals.*` RPC namespace remains stable.--pub mod continuation;-pub mod migration;-pub mod ops;-pub mod runtime;-mod schemas;-pub mod store;-pub mod tools;--pub use schemas::{all_thread_goals_controller_schemas, all_thread_goals_registered_controllers};-pub use tinyagents_graph::goals::{ThreadGoal, ThreadGoalStatus};-pub use tools::{GoalCompleteTool, GoalGetTool, GoalSetTool};diff --git a/crates/openhuman-core/src/threads/goals/ops.rs b/crates/openhuman-core/src/threads/goals/ops.rsdeleted file mode 100644index d033001009..0000000000--- a/crates/openhuman-core/src/threads/goals/ops.rs+++ /dev/null@@ -1,141 +0,0 @@-//! Business logic for the thread-goal domain — thin handlers over-//! [`super::store`], each returning an [`RpcOutcome`] so the RPC layer and CLI-//! share a uniform shape with logs. Mutating ops emit `thread/goal/updated` (or-//! `thread/goal/cleared`) domain events so the desktop UI can live-update.--use std::path::Path;--use serde::Serialize;--use super::store;-use super::ThreadGoal;-use crate::core::bus::BUS;-use crate::core::events::DomainEvent;-use crate::rpc::RpcOutcome;--/// Envelope returned by reads/clears where the goal may be absent.-#[derive(Debug, Serialize)]-#[serde(rename_all = "camelCase")]-pub struct GoalEnvelope {- /// The current goal, or `null` when the thread has none.- pub goal: Option<ThreadGoal>,-}--/// Result of a clear operation.-#[derive(Debug, Serialize)]-#[serde(rename_all = "camelCase")]-pub struct ClearResult {- /// Whether a goal existed and was removed.- pub removed: bool,-}--/// Publish a `thread/goal/updated` event for live UI sync (best-effort).-fn emit_updated(goal: &ThreadGoal) {- BUS.publish(DomainEvent::ThreadGoalUpdated {- thread_id: goal.thread_id.clone(),- goal_id: goal.goal_id.clone(),- status: goal.status.as_str().to_string(),- });-}--/// Get the goal for a thread (or `null`).-pub async fn get(- workspace_dir: &Path,- thread_id: &str,-) -> Result<RpcOutcome<GoalEnvelope>, String> {- log::debug!("[thread_goals] rpc=get thread_id={thread_id}");- let goal = store::get(workspace_dir, thread_id).await?;- Ok(RpcOutcome::new(GoalEnvelope { goal }, vec![]))-}--/// Create or replace the goal for a thread.-pub async fn set(- workspace_dir: &Path,- thread_id: &str,- objective: &str,- token_budget: Option<u64>,-) -> Result<RpcOutcome<GoalEnvelope>, String> {- log::debug!("[thread_goals] rpc=set thread_id={thread_id}");- let goal = store::set(workspace_dir, thread_id, objective, token_budget).await?;- emit_updated(&goal);- Ok(RpcOutcome::single_log(- GoalEnvelope {- goal: Some(goal.clone()),- },- format!(- "set thread goal {} ({})",- goal.goal_id,- goal.status.as_str()- ),- ))-}--/// Mark the goal complete.-pub async fn complete(- workspace_dir: &Path,- thread_id: &str,-) -> Result<RpcOutcome<GoalEnvelope>, String> {- log::debug!("[thread_goals] rpc=complete thread_id={thread_id}");- let goal = store::complete(workspace_dir, thread_id).await?;- emit_updated(&goal);- Ok(RpcOutcome::single_log(- GoalEnvelope {- goal: Some(goal.clone()),- },- format!("completed thread goal {}", goal.goal_id),- ))-}--/// Pause an active goal.-pub async fn pause(- workspace_dir: &Path,- thread_id: &str,-) -> Result<RpcOutcome<GoalEnvelope>, String> {- log::debug!("[thread_goals] rpc=pause thread_id={thread_id}");- let goal = store::pause(workspace_dir, thread_id).await?;- emit_updated(&goal);- Ok(RpcOutcome::single_log(- GoalEnvelope {- goal: Some(goal.clone()),- },- format!("paused thread goal {}", goal.goal_id),- ))-}--/// Resume a paused goal.-pub async fn resume(- workspace_dir: &Path,- thread_id: &str,-) -> Result<RpcOutcome<GoalEnvelope>, String> {- log::debug!("[thread_goals] rpc=resume thread_id={thread_id}");- let goal = store::resume(workspace_dir, thread_id).await?;- emit_updated(&goal);- Ok(RpcOutcome::single_log(- GoalEnvelope {- goal: Some(goal.clone()),- },- format!("resumed thread goal {}", goal.goal_id),- ))-}--/// Clear (delete) the goal for a thread.-pub async fn clear(- workspace_dir: &Path,- thread_id: &str,-) -> Result<RpcOutcome<ClearResult>, String> {- log::debug!("[thread_goals] rpc=clear thread_id={thread_id}");- let removed = store::clear(workspace_dir, thread_id).await?;- if removed {- BUS.publish(DomainEvent::ThreadGoalCleared {- thread_id: thread_id.to_string(),- });- }- Ok(RpcOutcome::single_log(- ClearResult { removed },- format!("cleared thread goal (removed={removed})"),- ))-}--#[cfg(test)]-#[path = "ops_tests.rs"]-mod tests;diff --git a/crates/openhuman-core/src/threads/goals/ops_tests.rs b/crates/openhuman-core/src/threads/goals/ops_tests.rsdeleted file mode 100644index 1e1386c578..0000000000--- a/crates/openhuman-core/src/threads/goals/ops_tests.rs+++ /dev/null@@ -1,25 +0,0 @@-use super::*;--#[tokio::test]-async fn set_get_complete_clear_flow() {- let tmp = tempfile::tempdir().unwrap();- let dir = tmp.path();-- // Empty to start.- let got = get(dir, "t").await.unwrap();- assert!(got.value.goal.is_none());-- // Set.- let set_out = set(dir, "t", "ship it", Some(1000)).await.unwrap();- let goal = set_out.value.goal.unwrap();- assert_eq!(goal.objective, "ship it");-- // Complete.- let done = complete(dir, "t").await.unwrap();- assert_eq!(done.value.goal.unwrap().status.as_str(), "complete");-- // Clear.- let cleared = clear(dir, "t").await.unwrap();- assert!(cleared.value.removed);- assert!(get(dir, "t").await.unwrap().value.goal.is_none());-}diff --git a/crates/openhuman-core/src/threads/goals/schemas.rs b/crates/openhuman-core/src/threads/goals/schemas.rsdeleted file mode 100644index a45aa15c2c..0000000000--- a/crates/openhuman-core/src/threads/goals/schemas.rs+++ /dev/null@@ -1,225 +0,0 @@-//! OpenHuman JSON-RPC adapters for tinyagents' `graph::goals` domain.-//!-//! Methods are exposed as `openhuman.thread_goals_<function>`:-//! `get`, `set`, `complete`, `pause`, `resume`, `clear`. Handlers load the-//! active config (for `workspace_dir`), delegate to [`super::ops`], and-//! serialise the [`RpcOutcome`] into the CLI-compatible JSON shape.--use serde::de::DeserializeOwned;-use serde_json::{Map, Value};--use super::ops;-use crate::config::rpc as config_rpc;-use crate::core::all::{ControllerFuture, RegisteredController};-use crate::core::{ControllerSchema, FieldSchema, TypeSchema};-use crate::rpc::RpcOutcome;--/// All `thread_goals` controller schemas (advertised to CLI + RPC consumers).-pub fn all_thread_goals_controller_schemas() -> Vec<ControllerSchema> {- FUNCTIONS.iter().map(|f| schemas(f)).collect()-}--/// Registered `thread_goals` controllers (schema + handler pairs).-pub fn all_thread_goals_registered_controllers() -> Vec<RegisteredController> {- vec![- RegisteredController {- schema: schemas("get"),- handler: handle_get,- },- RegisteredController {- schema: schemas("set"),- handler: handle_set,- },- RegisteredController {- schema: schemas("complete"),- handler: handle_complete,- },- RegisteredController {- schema: schemas("pause"),- handler: handle_pause,- },- RegisteredController {- schema: schemas("resume"),- handler: handle_resume,- },- RegisteredController {- schema: schemas("clear"),- handler: handle_clear,- },- ]-}--const FUNCTIONS: &[&str] = &["get", "set", "complete", "pause", "resume", "clear"];--fn thread_id_input() -> FieldSchema {- FieldSchema {- name: "thread_id",- ty: TypeSchema::String,- comment: "The conversation thread the goal belongs to.",- required: true,- }-}--fn goal_output() -> FieldSchema {- FieldSchema {- name: "result",- ty: TypeSchema::Json,- comment: "{ goal } — the current thread goal (or null when absent).",- required: true,- }-}--/// Schema definitions for every `thread_goals` function.-fn schemas(function: &str) -> ControllerSchema {- match function {- "get" => ControllerSchema {- namespace: "thread_goals",- function: "get",- description: "Get the thread-level goal for a thread (or null).",- inputs: vec![thread_id_input()],- outputs: vec![goal_output()],- },- "set" => ControllerSchema {- namespace: "thread_goals",- function: "set",- description: "Create or replace the thread-level goal. Changing the objective \- mints a new goal id and resets usage counters.",- inputs: vec![- thread_id_input(),- FieldSchema {- name: "objective",- ty: TypeSchema::String,- comment: "The durable objective the agent should keep pursuing.",- required: true,- },- FieldSchema {- name: "token_budget",- ty: TypeSchema::Option(Box::new(TypeSchema::U64)),- comment:- "Optional token ceiling; exceeding it flips the goal to budget_limited.",- required: false,- },- ],- outputs: vec![goal_output()],- },- "complete" => ControllerSchema {- namespace: "thread_goals",- function: "complete",- description: "Mark the thread goal complete.",- inputs: vec![thread_id_input()],- outputs: vec![goal_output()],- },- "pause" => ControllerSchema {- namespace: "thread_goals",- function: "pause",- description: "Pause an active thread goal.",- inputs: vec![thread_id_input()],- outputs: vec![goal_output()],- },- "resume" => ControllerSchema {- namespace: "thread_goals",- function: "resume",- description: "Resume a paused thread goal.",- inputs: vec![thread_id_input()],- outputs: vec![goal_output()],- },- "clear" => ControllerSchema {- namespace: "thread_goals",- function: "clear",- description: "Clear (delete) the thread goal.",- inputs: vec![thread_id_input()],- outputs: vec![FieldSchema {- name: "result",- ty: TypeSchema::Json,- comment: "{ removed } — whether a goal existed and was removed.",- required: true,- }],- },- other => panic!("unknown thread_goals function: {other}"),- }-}--// ── Handlers ─────────────────────────────────────────────────────────────--fn handle_get(params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move {- let config = config_rpc::load_config_with_timeout().await?;- let req = parse_value::<ThreadIdParams>(Value::Object(params))?;- to_json(ops::get(&config.workspace_dir, &req.thread_id).await?)- })-}--fn handle_set(params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move {- let config = config_rpc::load_config_with_timeout().await?;- let req = parse_value::<SetParams>(Value::Object(params))?;- to_json(- ops::set(- &config.workspace_dir,- &req.thread_id,- &req.objective,- req.token_budget,- )- .await?,- )- })-}--fn handle_complete(params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move {- let config = config_rpc::load_config_with_timeout().await?;- let req = parse_value::<ThreadIdParams>(Value::Object(params))?;- to_json(ops::complete(&config.workspace_dir, &req.thread_id).await?)- })-}--fn handle_pause(params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move {- let config = config_rpc::load_config_with_timeout().await?;- let req = parse_value::<ThreadIdParams>(Value::Object(params))?;- to_json(ops::pause(&config.workspace_dir, &req.thread_id).await?)- })-}--fn handle_resume(params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move {- let config = config_rpc::load_config_with_timeout().await?;- let req = parse_value::<ThreadIdParams>(Value::Object(params))?;- to_json(ops::resume(&config.workspace_dir, &req.thread_id).await?)- })-}--fn handle_clear(params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move {- let config = config_rpc::load_config_with_timeout().await?;- let req = parse_value::<ThreadIdParams>(Value::Object(params))?;- to_json(ops::clear(&config.workspace_dir, &req.thread_id).await?)- })-}--// ── Param structs + helpers ──────────────────────────────────────────────--#[derive(serde::Deserialize)]-struct ThreadIdParams {- thread_id: String,-}--#[derive(serde::Deserialize)]-struct SetParams {- thread_id: String,- objective: String,- #[serde(default)]- token_budget: Option<u64>,-}--fn parse_value<T: DeserializeOwned>(v: Value) -> Result<T, String> {- serde_json::from_value(v).map_err(|e| format!("invalid params: {e}"))-}--fn to_json<T: serde::Serialize>(outcome: RpcOutcome<T>) -> Result<Value, String> {- outcome.into_cli_compatible_json()-}--#[cfg(test)]-#[path = "schemas_tests.rs"]-mod tests;diff --git a/crates/openhuman-core/src/threads/goals/schemas_tests.rs b/crates/openhuman-core/src/threads/goals/schemas_tests.rsdeleted file mode 100644index 3958365c5d..0000000000--- a/crates/openhuman-core/src/threads/goals/schemas_tests.rs+++ /dev/null@@ -1,23 +0,0 @@-use super::*;--#[test]-fn registers_all_controllers() {- let controllers = all_thread_goals_registered_controllers();- assert_eq!(controllers.len(), FUNCTIONS.len());- let methods: Vec<String> = controllers- .iter()- .map(|c| format!("{}.{}", c.schema.namespace, c.schema.function))- .collect();- for f in FUNCTIONS {- let expected = format!("thread_goals.{f}");- assert!(methods.contains(&expected), "missing {expected}");- }-}--#[test]-fn schemas_and_controllers_stay_in_sync() {- assert_eq!(- all_thread_goals_controller_schemas().len(),- all_thread_goals_registered_controllers().len()- );-}diff --git a/crates/openhuman-core/src/threads/mod.rs b/crates/openhuman-core/src/threads/mod.rsindex f9f81b01fd..83135d808f 100644--- a/crates/openhuman-core/src/threads/mod.rs+++ b/crates/openhuman-core/src/threads/mod.rs@@ -5,11 +5,9 @@//! module owns the RPC surface and controller registry.pub mod error;-pub mod goals;pub mod ops;pub mod schemas;pub mod title;-pub mod todos;pub mod transcript_view;pub mod turn_state;pub mod welcome_migration;diff --git a/crates/openhuman-core/src/threads/schemas.rs b/crates/openhuman-core/src/threads/schemas.rsindex a48578da82..d515512b11 100644--- a/crates/openhuman-core/src/threads/schemas.rs+++ b/crates/openhuman-core/src/threads/schemas.rs@@ -17,7 +17,7 @@ use crate::memory::{UpsertConversationThreadRequest,};#[cfg(test)]-use handlers::{handle_task_board_get, handle_task_board_put, parse};+use handlers::parse;#[cfg(test)]pub(crate) use schema_defs::schemas;#[cfg(test)]diff --git a/crates/openhuman-core/src/threads/schemas/handlers.rs b/crates/openhuman-core/src/threads/schemas/handlers.rsindex 3b49cacfd4..c8dd9b00b5 100644--- a/crates/openhuman-core/src/threads/schemas/handlers.rs+++ b/crates/openhuman-core/src/threads/schemas/handlers.rs@@ -3,7 +3,6 @@use serde::de::DeserializeOwned;use serde_json::{Map, Value};-use crate::agent::task_board::{TaskBoard, TaskBoardCard, TaskBoardStore};use crate::core::all::ControllerFuture;use crate::memory::{AppendConversationMessageRequest, ConversationMessagesRequest, CreateConversationThreadRequest,@@ -120,92 +119,6 @@ pub(super) fn handle_turn_state_clear(params: Map<String, Value>) -> ControllerF})}-#[derive(serde::Deserialize)]-struct TaskBoardGetParams {- thread_id: String,-}--#[derive(serde::Deserialize)]-struct TaskBoardPutParams {- thread_id: String,- cards: Vec<TaskBoardCard>,-}--pub(super) fn handle_task_board_get(params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move {- let p = parse::<TaskBoardGetParams>(params)?;- let thread_id = p.thread_id.trim().to_string();- tracing::debug!(thread_id = %thread_id, "[rpc][task_board] get entry");- let config = crate::config::Config::load_or_init().await.map_err(|e| {- tracing::debug!(- thread_id = %thread_id,- error = %e,- "[rpc][task_board] get load_config_error"- );- format!("load config: {e}")- })?;- tracing::trace!(thread_id = %thread_id, "[rpc][task_board] get loading_board");- let board = crate::agent::task_board::board_for_thread(&config.workspace_dir, &thread_id)- .await- .map_err(|e| {- tracing::debug!(- thread_id = %thread_id,- error = %e,- "[rpc][task_board] get board_error"- );- e- })?;- tracing::debug!(- thread_id = %thread_id,- card_count = board.cards.len(),- "[rpc][task_board] get exit"- );- Ok(serde_json::json!({ "taskBoard": board }))- })-}--pub(super) fn handle_task_board_put(params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move {- let p = parse::<TaskBoardPutParams>(params)?;- let thread_id = p.thread_id.trim().to_string();- tracing::debug!(- thread_id = %thread_id,- card_count = p.cards.len(),- "[rpc][task_board] put entry"- );- let config = crate::config::Config::load_or_init().await.map_err(|e| {- tracing::debug!(- thread_id = %thread_id,- error = %e,- "[rpc][task_board] put load_config_error"- );- format!("load config: {e}")- })?;- let board = TaskBoard {- thread_id: thread_id.clone(),- cards: p.cards,- updated_at: chrono::Utc::now().to_rfc3339(),- };- let saved = TaskBoardStore::new(config.workspace_dir)- .put(board)- .await- .map_err(|e| {- tracing::debug!(- thread_id = %thread_id,- error = %e,- "[rpc][task_board] put store_error"- );- e- })?;- tracing::debug!(- thread_id = %thread_id,- card_count = saved.cards.len(),- "[rpc][task_board] put exit"- );- Ok(serde_json::json!({ "taskBoard": saved }))- })-}-pub(super) fn handle_token_usage(params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let p = parse::<ops::ThreadTokenUsageRequest>(params)?;diff --git a/crates/openhuman-core/src/threads/schemas/registry.rs b/crates/openhuman-core/src/threads/schemas/registry.rsindex 461d720a13..60320572a5 100644--- a/crates/openhuman-core/src/threads/schemas/registry.rs+++ b/crates/openhuman-core/src/threads/schemas/registry.rs@@ -6,10 +6,10 @@ use crate::core::ControllerSchema;use super::handlers::{handle_create_new, handle_delete, handle_generate_title, handle_list, handle_message_append,- handle_message_update, handle_messages_list, handle_purge, handle_task_board_get,- handle_task_board_put, handle_token_usage, handle_transcript_get, handle_turn_state_clear,- handle_turn_state_get, handle_turn_state_get_turn, handle_turn_state_history,- handle_turn_state_list, handle_update_labels, handle_update_title, handle_upsert,+ handle_message_update, handle_messages_list, handle_purge, handle_token_usage,+ handle_transcript_get, handle_turn_state_clear, handle_turn_state_get,+ handle_turn_state_get_turn, handle_turn_state_history, handle_turn_state_list,+ handle_update_labels, handle_update_title, handle_upsert,};use super::schema_defs::schemas;@@ -31,8 +31,6 @@ pub fn all_controller_schemas() -> Vec<ControllerSchema> {schemas("turn_state_history"),schemas("turn_state_get_turn"),schemas("turn_state_clear"),- schemas("task_board_get"),- schemas("task_board_put"),schemas("token_usage"),schemas("transcript_get"),]@@ -104,14 +102,6 @@ pub fn all_registered_controllers() -> Vec<RegisteredController> {schema: schemas("turn_state_clear"),handler: handle_turn_state_clear,},- RegisteredController {- schema: schemas("task_board_get"),- handler: handle_task_board_get,- },- RegisteredController {- schema: schemas("task_board_put"),- handler: handle_task_board_put,- },RegisteredController {schema: schemas("token_usage"),handler: handle_token_usage,diff --git a/crates/openhuman-core/src/threads/schemas/schema_defs.rs b/crates/openhuman-core/src/threads/schemas/schema_defs.rsindex fd7c95e29d..a3d7b7fce5 100644--- a/crates/openhuman-core/src/threads/schemas/schema_defs.rs+++ b/crates/openhuman-core/src/threads/schemas/schema_defs.rs@@ -347,48 +347,6 @@ pub(crate) fn schemas(function: &str) -> ControllerSchema {required: true,}],},- "task_board_get" => ControllerSchema {- namespace: "threads",- function: "task_board_get",- description: "Fetch the persisted kanban task board for a conversation thread.",- inputs: vec![FieldSchema {- name: "thread_id",- ty: TypeSchema::String,- comment: "Thread identifier.",- required: true,- }],- outputs: vec![FieldSchema {- name: "taskBoard",- ty: TypeSchema::Json,- comment: "Task board payload.",- required: true,- }],- },- "task_board_put" => ControllerSchema {- namespace: "threads",- function: "task_board_put",- description: "Replace the persisted kanban task board for a conversation thread.",- inputs: vec![- FieldSchema {- name: "thread_id",- ty: TypeSchema::String,- comment: "Thread identifier.",- required: true,- },- FieldSchema {- name: "cards",- ty: TypeSchema::Json,- comment: "Array of task board cards.",- required: true,- },- ],- outputs: vec![FieldSchema {- name: "taskBoard",- ty: TypeSchema::Json,- comment: "Task board payload.",- required: true,- }],- },"token_usage" => ControllerSchema {namespace: "threads",function: "token_usage",diff --git a/crates/openhuman-core/src/threads/schemas_tests.rs b/crates/openhuman-core/src/threads/schemas_tests.rsindex 3f32b8f4b2..0052e51553 100644--- a/crates/openhuman-core/src/threads/schemas_tests.rs+++ b/crates/openhuman-core/src/threads/schemas_tests.rs@@ -1,5 +1,4 @@use super::*;-use crate::config::TEST_ENV_LOCK as ENV_LOCK;use serde_json::json;const ALL_FUNCTIONS: &[&str] = &[@@ -19,8 +18,6 @@ const ALL_FUNCTIONS: &[&str] = &["turn_state_history","turn_state_get_turn","turn_state_clear",- "task_board_get",- "task_board_put","token_usage","transcript_get",];@@ -262,78 +259,3 @@ impl Drop for WorkspaceEnvGuard {}}}--#[tokio::test]-async fn task_board_handlers_roundtrip_task_board_payload() {- let _guard = ENV_LOCK.lock().unwrap_or_else(|e| e.into_inner());- let temp = tempfile::tempdir().expect("tempdir");- let _env = WorkspaceEnvGuard::set(temp.path());-- let put = handle_task_board_put(obj(json!({- "thread_id": " thread-rpc ",- "cards": [- {- "id": " task-a ",- "title": " First task ",- "status": "todo",- "notes": " note ",- "order": 99,- "updatedAt": ""- },- {- "id": "task-b",- "title": "Second task",- "status": "blocked",- "notes": "waiting",- "order": 99,- "updatedAt": ""- }- ]- })))- .await- .expect("task board put");-- assert_eq!(put["taskBoard"]["threadId"], "thread-rpc");- assert_eq!(put["taskBoard"]["cards"][0]["id"], "task-a");- assert_eq!(put["taskBoard"]["cards"][0]["order"], 0);- assert_eq!(put["taskBoard"]["cards"][1]["blocker"], "waiting");-- let get = handle_task_board_get(obj(json!({"thread_id": "thread-rpc"})))- .await- .expect("task board get");- assert_eq!(get["taskBoard"]["cards"].as_array().unwrap().len(), 2);- // Assert that normalization is preserved in the persisted get payload.- assert_eq!(get["taskBoard"]["threadId"], "thread-rpc");- assert_eq!(get["taskBoard"]["cards"][0]["id"], "task-a");- assert_eq!(get["taskBoard"]["cards"][0]["title"], "First task");- assert_eq!(get["taskBoard"]["cards"][0]["order"], 0);- assert_eq!(get["taskBoard"]["cards"][1]["id"], "task-b");- assert_eq!(get["taskBoard"]["cards"][1]["blocker"], "waiting");-}--#[tokio::test]-async fn task_board_get_rejects_blank_thread_id() {- let _guard = ENV_LOCK.lock().unwrap_or_else(|e| e.into_inner());- let temp = tempfile::tempdir().expect("tempdir");- let _env = WorkspaceEnvGuard::set(temp.path());-- let err = handle_task_board_get(obj(json!({"thread_id": " "})))- .await- .expect_err("blank id rejected");- assert!(err.contains("thread_id"), "err: {err}");-}--#[tokio::test]-async fn task_board_put_rejects_blank_thread_id() {- let _guard = ENV_LOCK.lock().unwrap_or_else(|e| e.into_inner());- let temp = tempfile::tempdir().expect("tempdir");- let _env = WorkspaceEnvGuard::set(temp.path());-- let err = handle_task_board_put(obj(json!({- "thread_id": " ",- "cards": []- })))- .await- .expect_err("blank id rejected");- assert!(err.contains("thread_id"), "err: {err}");-}diff --git a/crates/openhuman-core/src/threads/todos/README.md b/crates/openhuman-core/src/threads/todos/README.mddeleted file mode 100644index d72b1e4d3d..0000000000--- a/crates/openhuman-core/src/threads/todos/README.md+++ /dev/null@@ -1,28 +0,0 @@-# todos--Compatibility surface for OpenHuman task-board callers.--The task-board model and behavior are owned by-`tinyagents_graph::todos`: types, normalization, markdown rendering, CRUD,-plan decisions, session links, the single-`in_progress` invariant, atomic-claims, durable storage, and the in-memory scratch board.--OpenHuman keeps this module to preserve app-specific integration:--- `ops.rs` maps `BoardLocation` onto TinyAgents stores, preserves the optional- `threadId` snapshot shape used by scratch callers, and emits- `AgentProgress::TaskBoardUpdated`.-- `schemas.rs` preserves the `openhuman.todos_*` JSON-RPC API.-- `tools.rs` preserves the granular `todo_*` agent tools.-- `runs.rs` binds the TinyAgents autonomous-run ledger- (`tinyagents_graph::todos::runs`) to `BoardLocation` addressing, renders its- timestamps as RFC 3339 for the wire, publishes `TaskRunReclaimed`, and imports- the retired `agent_task_boards/<hex>.runs.json` ledgers. The run record,- heartbeat, staleness policy, and reclaim sweep are the crate's.--`agent::task_board` re-exports the TinyAgents board types and keeps the legacy-`TaskBoardStore` facade for existing callers. Legacy-`agent_task_boards/*.json` boards are imported at startup through-`openhuman::agent::tinyagents::todos`, and the `*.runs.json` ledgers beside them-through `threads::todos::runs::migrate_legacy_task_runs`; existing TinyAgents-values are never replaced.diff --git a/crates/openhuman-core/src/threads/todos/mod.rs b/crates/openhuman-core/src/threads/todos/mod.rsdeleted file mode 100644index 59e09f9b26..0000000000--- a/crates/openhuman-core/src/threads/todos/mod.rs+++ /dev/null@@ -1,24 +0,0 @@-//! Per-thread todo list (a.k.a. agent task board) — CRUD operations plus-//! a markdown renderer. Backed by [`crate::agent::task_board`]-//! for persistence, so agent-side edits via the `todo` tool and user-side-//! edits via `openhuman.todos_*` RPCs share the same source of truth.-//!-//! Design notes:-//! - **Per-thread scoped.** The current agent thread id (or an explicit-//! `thread_id` from the RPC caller) selects which board to mutate.-//! - **In-memory scratch.** When no thread context is available the-//! process-global scratch store is used (legacy fallback for tool-//! invocations outside a chat thread).-//! - **Markdown output.** Both tool results and RPC responses include a-//! `markdown` string so the chat UI / agent transcript can render the-//! list directly without re-formatting.--pub mod ops;-pub mod runs;-pub mod schemas;-pub mod tools;--pub use schemas::{- all_controller_schemas as all_todos_controller_schemas,- all_registered_controllers as all_todos_registered_controllers,-};diff --git a/crates/openhuman-core/src/threads/todos/ops_tests.rs b/crates/openhuman-core/src/threads/todos/ops_tests.rsdeleted file mode 100644index c7b3f98c47..0000000000--- a/crates/openhuman-core/src/threads/todos/ops_tests.rs+++ /dev/null@@ -1,8 +0,0 @@-#[test]-fn progress_timestamp_preserves_rfc3339_wire_format() {- let timestamp = super::progress_updated_at();- assert!(- chrono::DateTime::parse_from_rfc3339(×tamp).is_ok(),- "progress-event updated_at must remain RFC 3339"- );-}diff --git a/crates/openhuman-core/src/threads/todos/runs.rs b/crates/openhuman-core/src/threads/todos/runs.rsdeleted file mode 100644index 158e73f692..0000000000--- a/crates/openhuman-core/src/threads/todos/runs.rs+++ /dev/null@@ -1,257 +0,0 @@-//! Compatibility facade over [`tinyagents_graph::todos::runs`].-//!-//! TinyAgents owns the durable task-run record, the heartbeat, the staleness-//! policy, and the reclaim sweep (card back to `todo`, or parked at `blocked`-//! once a card has burned through its reclaim budget). What stays here is-//! OpenHuman's own shape around it: [`BoardLocation`] addressing (including the-//! process-global scratch board), RFC 3339 timestamps on the wire, the-//! `TaskRunReclaimed` domain event, and the one-time import of the retired-//! `{workspace}/agent_task_boards/<hex>.runs.json` ledger.-//!-//! Run records live in the crate KV store beside the board itself-//! (`graph.todos.runs`), so a board and its run log can no longer drift apart-//! across a restart.--use std::path::Path;--use serde::{Deserialize, Serialize};-use tinyagents_graph::todos::runs as crate_runs;--pub use tinyagents_graph::todos::runs::{- ReclaimDetail, ReclaimResult, RunLimits, RunOutcome, TaskRun, DEFAULT_CLAIM_TTL_SECS,- DEFAULT_HEARTBEAT_STALE_SECS, DEFAULT_MAX_RECLAIM_COUNT,-};--use crate::agent::task_board::normalize_timestamp_for_wire;--use super::ops::{target, BoardLocation};--/// Cadence of the background heartbeat spawned alongside an autonomous run.-const HEARTBEAT_TICK: std::time::Duration = crate_runs::DEFAULT_HEARTBEAT_TICK;--/// Legacy on-disk ledger the crate store replaced.-const TASK_BOARD_DIR: &str = "agent_task_boards";--fn map_err<T>(result: tinyagents_harness::error::Result<T>) -> Result<T, String> {- result.map_err(|error| error.to_string())-}--/// Crate stamps are unix-epoch milliseconds; the `openhuman.todos_run_*` RPC-/// surface has always spoken RFC 3339, so translate on the way out.-fn for_wire(mut run: TaskRun) -> TaskRun {- run.started_at = normalize_timestamp_for_wire(&run.started_at);- run.last_heartbeat_at = normalize_timestamp_for_wire(&run.last_heartbeat_at);- run.completed_at = run- .completed_at- .as_deref()- .map(normalize_timestamp_for_wire);- run-}--pub async fn create_run(- location: &BoardLocation,- run_id: &str,- card_id: &str,- claimed_by: &str,-) -> Result<TaskRun, String> {- let (store, thread_id) = target(location);- let run = map_err(- crate_runs::create_run(&store, thread_id, Some(run_id), card_id, claimed_by).await,- )?;- Ok(for_wire(run))-}--pub async fn update_heartbeat(location: &BoardLocation, run_id: &str) -> Result<(), String> {- let (store, thread_id) = target(location);- map_err(crate_runs::update_heartbeat(&store, thread_id, run_id).await)-}--pub async fn complete_run(- location: &BoardLocation,- run_id: &str,- outcome: RunOutcome,- error: Option<String>,- evidence: Vec<String>,-) -> Result<TaskRun, String> {- let (store, thread_id) = target(location);- let run = map_err(- crate_runs::complete_run(&store, thread_id, run_id, outcome, error, evidence).await,- )?;- Ok(for_wire(run))-}--pub async fn list_runs(- location: &BoardLocation,- card_id: Option<&str>,-) -> Result<Vec<TaskRun>, String> {- let (store, thread_id) = target(location);- let runs = map_err(crate_runs::list_runs(&store, thread_id, card_id).await)?;- Ok(runs.into_iter().map(for_wire).collect())-}--pub async fn get_run(location: &BoardLocation, run_id: &str) -> Result<Option<TaskRun>, String> {- let (store, thread_id) = target(location);- let run = map_err(crate_runs::get_run(&store, thread_id, run_id).await)?;- Ok(run.map(for_wire))-}--pub async fn find_stale_runs(- location: &BoardLocation,- limits: &RunLimits,-) -> Result<Vec<(TaskRun, String)>, String> {- let (store, thread_id) = target(location);- let stale = map_err(crate_runs::find_stale_runs(&store, thread_id, limits).await)?;- Ok(stale- .into_iter()- .map(|(run, reason)| (for_wire(run), reason))- .collect())-}--/// Reclaim stale runs and publish a `TaskRunReclaimed` event per reclaimed-/// card, so the Tasks board UI sees a wedged card come back without a refresh.-pub async fn reclaim_stale(- location: &BoardLocation,- limits: &RunLimits,-) -> Result<ReclaimResult, String> {- let (store, thread_id) = target(location);- let result = map_err(crate_runs::reclaim_stale(&store, thread_id, limits).await)?;-- if let Some(thread_id) = location.thread_id() {- for detail in &result.details {- crate::core::bus::BUS.publish(crate::core::events::DomainEvent::TaskRunReclaimed {- run_id: detail.run_id.clone(),- card_id: detail.card_id.clone(),- thread_id: thread_id.to_string(),- reason: detail.reason.clone(),- });- }- }- Ok(result)-}--/// Tick the run's heartbeat in the background until it completes or `cancel`-/// fires. Board-location addressing is resolved once, here, so the crate task-/// carries only a store and a thread id.-pub fn spawn_heartbeat_task(- location: BoardLocation,- run_id: String,- cancel: tokio::sync::watch::Receiver<bool>,-) {- let (store, thread_id) = target(&location);- crate_runs::spawn_heartbeat_task(store, thread_id.to_string(), run_id, cancel, HEARTBEAT_TICK);-}--// ── Legacy ledger migration ────────────────────────────────────────────--/// Outcome of the one-time `<hex>.runs.json` import.-#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Serialize, Deserialize)]-pub struct TaskRunMigrationReport {- pub total: usize,- pub copied: usize,- pub skipped: usize,-}--/// Copy any run ledgers left in the retired file tree into the crate store,-/// without replacing runs the crate already holds.-///-/// A thread whose crate log is non-empty is skipped wholesale: the crate log is-/// authoritative, and merging two histories would double-count the reclaims the-/// sweep's `max_reclaim_count` budget is derived from.-pub async fn migrate_legacy_task_runs(- workspace_dir: &Path,-) -> Result<TaskRunMigrationReport, String> {- let dir = workspace_dir.join(TASK_BOARD_DIR);- let mut entries = match tokio::fs::read_dir(&dir).await {- Ok(entries) => entries,- Err(error) if error.kind() == std::io::ErrorKind::NotFound => {- return Ok(TaskRunMigrationReport::default());- }- Err(error) => return Err(format!("read legacy runs dir {}: {error}", dir.display())),- };-- let mut report = TaskRunMigrationReport::default();- while let Some(entry) = entries- .next_entry()- .await- .map_err(|error| format!("iterate legacy runs dir: {error}"))?- {- let path = entry.path();- let Some(thread_id) = legacy_thread_id(&path) else {- continue;- };- report.total += 1;-- let runs: Vec<TaskRun> = match tokio::fs::read_to_string(&path).await {- Ok(body) => match serde_json::from_str(&body) {- Ok(runs) => runs,- Err(error) => {- tracing::warn!(path = %path.display(), %error, "skip invalid legacy run ledger");- report.skipped += 1;- continue;- }- },- Err(error) => {- tracing::warn!(path = %path.display(), %error, "skip unreadable legacy run ledger");- report.skipped += 1;- continue;- }- };-- let location = BoardLocation::Thread {- workspace_dir: workspace_dir.to_path_buf(),- thread_id: thread_id.clone(),- };- let (store, thread_id) = target(&location);- match map_err(crate_runs::import_if_absent(&store, thread_id, runs).await) {- Ok(true) => report.copied += 1,- Ok(false) => report.skipped += 1,- Err(error) => {- tracing::warn!(path = %path.display(), %error, "skip legacy run ledger: store write failed");- report.skipped += 1;- }- }- }- Ok(report)-}--/// Decode the thread id encoded in a `<hex>.runs.json` file name.-///-/// Only strict, ASCII, even-length lowercase hex is accepted. The inner two-/// bytes of every pair must both be hexadecimal digits (`0-9a-f`), so a signed-/// or malformed stem such as `+f` is rejected rather than accepted by-/// `u8::from_str_radix`. Decoding walks `hex.as_bytes()` in whole pairs, never-/// slicing a multi-byte UTF-8 character, so a non-ASCII stem like `aéb` returns-/// `None` instead of panicking mid-startup.-fn legacy_thread_id(path: &Path) -> Option<String> {- let name = path.file_name()?.to_str()?;- let hex = name.strip_suffix(".runs.json")?;- if hex.is_empty() || hex.len() % 2 != 0 || !hex.is_ascii() {- return None;- }- let bytes: Vec<u8> = hex- .as_bytes()- .chunks_exact(2)- .map(|pair| {- let hi = lowercase_hex_nibble(pair[0])?;- let lo = lowercase_hex_nibble(pair[1])?;- Some(hi * 16 + lo)- })- .collect::<Option<Vec<u8>>>()?;- String::from_utf8(bytes).ok()-}--/// Decode one ASCII byte as a lowercase hexadecimal nibble (`0-9a-f`), or-/// `None` for any other byte (including uppercase `A-F`).-fn lowercase_hex_nibble(byte: u8) -> Option<u8> {- match byte {- b'0'..=b'9' => Some(byte - b'0'),- b'a'..=b'f' => Some(byte - b'a' + 10),- _ => None,- }-}--// ── Tests ──────────────────────────────────────────────────────────────--#[cfg(test)]-#[path = "runs_tests.rs"]-mod tests;diff --git a/crates/openhuman-core/src/threads/todos/schemas.rs b/crates/openhuman-core/src/threads/todos/schemas.rsdeleted file mode 100644index b4d81d625d..0000000000--- a/crates/openhuman-core/src/threads/todos/schemas.rs+++ /dev/null@@ -1,14 +0,0 @@-//! JSON-RPC surface for the per-thread todo list. Pairs with the agent-//! `todo` tool — both call into [`super::ops`] so user-driven and-//! agent-driven edits share the exact same persistence and rendering-//! logic.--#[cfg(test)]-#[path = "schemas_tests.rs"]-mod tests;--mod handlers;-mod registry;-mod schema_defs;--pub use registry::{all_controller_schemas, all_registered_controllers};diff --git a/crates/openhuman-core/src/threads/todos/schemas/handlers.rs b/crates/openhuman-core/src/threads/todos/schemas/handlers.rsdeleted file mode 100644index 35edaf7641..0000000000--- a/crates/openhuman-core/src/threads/todos/schemas/handlers.rs+++ /dev/null@@ -1,395 +0,0 @@-//! Thin JSON-RPC handlers that parse params and delegate to-//! [`super::super::ops`] and [`super::super::runs`].--use serde::de::DeserializeOwned;-use serde::Deserialize;-use serde_json::{Map, Value};--use crate::agent::task_board::{TaskApprovalMode, TaskBoardCard};-use crate::core::all::ControllerFuture;--use super::super::ops::{self, BoardLocation, CardPatch, TodosSnapshot};-use super::super::runs;--#[derive(Debug, Deserialize)]-struct ThreadIdParams {- thread_id: String,-}--#[derive(Debug, Deserialize)]-struct AddParams {- thread_id: String,- content: String,- #[serde(default, alias = "sourceMetadata")]- source_metadata: Option<Value>,- #[serde(default)]- status: Option<String>,- #[serde(default)]- objective: Option<String>,- #[serde(default)]- plan: Option<Vec<String>>,- #[serde(default, alias = "assignedAgent")]- assigned_agent: Option<String>,- #[serde(default)]- #[serde(alias = "allowedTools")]- allowed_tools: Option<Vec<String>>,- #[serde(default)]- #[serde(alias = "approvalMode")]- approval_mode: Option<String>,- #[serde(default)]- #[serde(alias = "acceptanceCriteria")]- acceptance_criteria: Option<Vec<String>>,- #[serde(default)]- evidence: Option<Vec<String>>,- #[serde(default)]- notes: Option<String>,- #[serde(default)]- blocker: Option<String>,-}--#[derive(Debug, Deserialize)]-struct EditParams {- thread_id: String,- id: String,- #[serde(default)]- content: Option<String>,- #[serde(default)]- status: Option<String>,- #[serde(default)]- objective: Option<String>,- #[serde(default)]- plan: Option<Vec<String>>,- #[serde(default, alias = "assignedAgent")]- assigned_agent: Option<String>,- #[serde(default)]- #[serde(alias = "allowedTools")]- allowed_tools: Option<Vec<String>>,- #[serde(default)]- #[serde(alias = "acceptanceCriteria")]- acceptance_criteria: Option<Vec<String>>,- #[serde(default)]- evidence: Option<Vec<String>>,- #[serde(default)]- notes: Option<String>,- #[serde(default)]- blocker: Option<String>,-}--#[derive(Debug, Deserialize)]-struct UpdateStatusParams {- thread_id: String,- id: String,- status: String,-}--#[derive(Debug, Deserialize)]-struct RemoveParams {- thread_id: String,- id: String,-}--#[derive(Debug, Deserialize)]-struct SetSessionThreadParams {- thread_id: String,- id: String,- #[serde(default, alias = "sessionThreadId")]- session_thread_id: Option<String>,-}--#[derive(Debug, Deserialize)]-struct DecidePlanParams {- thread_id: String,- id: String,- approve: bool,-}--#[derive(Debug, Deserialize)]-struct RevisePlanParams {- thread_id: String,- #[serde(default)]- feedback: String,-}--#[derive(Debug, Deserialize)]-struct ReplaceParams {- thread_id: String,- cards: Vec<TaskBoardCard>,-}--pub(super) fn handle_list(params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move {- let p = parse::<ThreadIdParams>(params)?;- let loc = thread_location(&p.thread_id).await?;- tracing::debug!(thread_id = %p.thread_id, "[rpc][todos] list entry");- snapshot_to_json(ops::list(&loc).await?)- })-}--pub(super) fn handle_add(params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move {- let p = parse::<AddParams>(params)?;- let loc = thread_location(&p.thread_id).await?;- let patch = CardPatch {- content: None,- status: p.status.as_deref().map(ops::parse_status).transpose()?,- objective: p.objective,- plan: p.plan,- assigned_agent: p.assigned_agent,- allowed_tools: p.allowed_tools,- approval_mode: Some(parse_approval_mode(p.approval_mode)?),- acceptance_criteria: p.acceptance_criteria,- evidence: p.evidence,- notes: p.notes,- blocker: p.blocker,- // Carry the originating source identifiers onto the promoted card so- // the inbox can tell an item was already picked up (dedup/hide).- source_metadata: p.source_metadata,- };- tracing::debug!(thread_id = %p.thread_id, "[rpc][todos] add entry");- snapshot_to_json(ops::add(&loc, &p.content, patch).await?)- })-}--pub(super) fn handle_edit(params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move {- let approval_mode = approval_mode_patch_from_params(¶ms)?;- let p = parse::<EditParams>(params)?;- let loc = thread_location(&p.thread_id).await?;- let patch = CardPatch {- content: p.content,- status: p.status.as_deref().map(ops::parse_status).transpose()?,- objective: p.objective,- plan: p.plan,- assigned_agent: p.assigned_agent,- allowed_tools: p.allowed_tools,- approval_mode,- acceptance_criteria: p.acceptance_criteria,- evidence: p.evidence,- notes: p.notes,- blocker: p.blocker,- source_metadata: None,- };- tracing::debug!(thread_id = %p.thread_id, id = %p.id, "[rpc][todos] edit entry");- snapshot_to_json(ops::edit(&loc, &p.id, patch).await?)- })-}--pub(super) fn handle_update_status(params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move {- let p = parse::<UpdateStatusParams>(params)?;- let loc = thread_location(&p.thread_id).await?;- let status = ops::parse_status(&p.status)?;- tracing::debug!(- thread_id = %p.thread_id,- id = %p.id,- status = %p.status,- "[rpc][todos] update_status entry"- );- snapshot_to_json(ops::update_status(&loc, &p.id, status).await?)- })-}--pub(super) fn handle_set_session_thread(params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move {- let p = parse::<SetSessionThreadParams>(params)?;- let loc = thread_location(&p.thread_id).await?;- tracing::debug!(- thread_id = %p.thread_id,- id = %p.id,- session_thread_id = ?p.session_thread_id,- "[rpc][todos] set_session_thread entry"- );- snapshot_to_json(ops::set_session_thread(&loc, &p.id, p.session_thread_id).await?)- })-}--pub(super) fn handle_decide_plan(params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move {- let p = parse::<DecidePlanParams>(params)?;- let loc = thread_location(&p.thread_id).await?;- tracing::debug!(- thread_id = %p.thread_id,- id = %p.id,- approve = p.approve,- "[rpc][todos] decide_plan entry"- );- snapshot_to_json(ops::decide_plan(&loc, &p.id, p.approve).await?)- })-}--pub(super) fn handle_revise_plan(params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move {- let p = parse::<RevisePlanParams>(params)?;- let loc = thread_location(&p.thread_id).await?;- tracing::debug!(- thread_id = %p.thread_id,- feedback_len = p.feedback.len(),- "[rpc][todos] revise_plan entry"- );- snapshot_to_json(ops::revise_plan(&loc, &p.feedback).await?)- })-}--fn parse_approval_mode(raw: Option<String>) -> Result<Option<TaskApprovalMode>, String> {- let Some(raw) = raw else {- return Ok(None);- };- match raw.trim() {- "required" => Ok(Some(TaskApprovalMode::Required)),- "not_required" => Ok(Some(TaskApprovalMode::NotRequired)),- other => Err(format!(- "invalid approval_mode '{other}' (expected required|not_required)"- )),- }-}--fn approval_mode_patch_from_params(- params: &Map<String, Value>,-) -> Result<Option<Option<TaskApprovalMode>>, String> {- let Some(value) = params- .get("approvalMode")- .or_else(|| params.get("approval_mode"))- else {- return Ok(None);- };- if value.is_null() {- return Ok(Some(None));- }- let Some(raw) = value.as_str() else {- return Err("invalid approval_mode type (expected required|not_required|null)".to_string());- };- parse_approval_mode(Some(raw.to_string())).map(Some)-}--pub(super) fn handle_remove(params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move {- let p = parse::<RemoveParams>(params)?;- let loc = thread_location(&p.thread_id).await?;- tracing::debug!(thread_id = %p.thread_id, id = %p.id, "[rpc][todos] remove entry");- snapshot_to_json(ops::remove(&loc, &p.id).await?)- })-}--pub(super) fn handle_replace(params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move {- let p = parse::<ReplaceParams>(params)?;- let loc = thread_location(&p.thread_id).await?;- tracing::debug!(- thread_id = %p.thread_id,- card_count = p.cards.len(),- "[rpc][todos] replace entry"- );- snapshot_to_json(ops::replace(&loc, p.cards).await?)- })-}--pub(super) fn handle_clear(params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move {- let p = parse::<ThreadIdParams>(params)?;- let loc = thread_location(&p.thread_id).await?;- tracing::debug!(thread_id = %p.thread_id, "[rpc][todos] clear entry");- snapshot_to_json(ops::clear(&loc).await?)- })-}--// ── run handlers ────────────────────────────────────────────────────--#[derive(Debug, Deserialize)]-struct RunListParams {- thread_id: String,- #[serde(default, alias = "cardId")]- card_id: Option<String>,-}--#[derive(Debug, Deserialize)]-struct RunGetParams {- thread_id: String,- #[serde(alias = "runId")]- run_id: String,-}--#[derive(Debug, Deserialize)]-struct ReclaimStaleParams {- thread_id: String,- #[serde(default, alias = "heartbeatStaleSecs")]- heartbeat_stale_secs: Option<u64>,- #[serde(default, alias = "claimTtlSecs")]- claim_ttl_secs: Option<u64>,- #[serde(default, alias = "maxReclaimCount")]- max_reclaim_count: Option<u32>,-}--pub(super) fn handle_run_list(params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move {- let p = parse::<RunListParams>(params)?;- let loc = thread_location(&p.thread_id).await?;- tracing::debug!(- thread_id = %p.thread_id,- card_id = ?p.card_id,- "[rpc][todos] run_list entry"- );- let run_list = runs::list_runs(&loc, p.card_id.as_deref()).await?;- serde_json::to_value(&run_list).map_err(|e| format!("serialize runs: {e}"))- })-}--pub(super) fn handle_run_get(params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move {- let p = parse::<RunGetParams>(params)?;- let loc = thread_location(&p.thread_id).await?;- tracing::debug!(- thread_id = %p.thread_id,- run_id = %p.run_id,- "[rpc][todos] run_get entry"- );- let run = runs::get_run(&loc, &p.run_id).await?;- serde_json::to_value(&run).map_err(|e| format!("serialize run: {e}"))- })-}--pub(super) fn handle_reclaim_stale(params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move {- let p = parse::<ReclaimStaleParams>(params)?;- let loc = thread_location(&p.thread_id).await?;- let limits = runs::RunLimits {- heartbeat_stale_secs: p- .heartbeat_stale_secs- .unwrap_or(runs::DEFAULT_HEARTBEAT_STALE_SECS),- claim_ttl_secs: p.claim_ttl_secs.unwrap_or(runs::DEFAULT_CLAIM_TTL_SECS),- max_reclaim_count: p- .max_reclaim_count- .unwrap_or(runs::DEFAULT_MAX_RECLAIM_COUNT),- };- tracing::debug!(- thread_id = %p.thread_id,- ?limits,- "[rpc][todos] reclaim_stale entry"- );- let result = runs::reclaim_stale(&loc, &limits).await?;- serde_json::to_value(&result).map_err(|e| format!("serialize reclaim result: {e}"))- })-}--// ── helpers ──────────────────────────────────────────────────────────--async fn thread_location(thread_id: &str) -> Result<BoardLocation, String> {- let trimmed = thread_id.trim();- if trimmed.is_empty() {- return Err("thread_id must not be empty".to_string());- }- let config = crate::config::Config::load_or_init()- .await- .map_err(|e| format!("load config: {e}"))?;- Ok(BoardLocation::Thread {- workspace_dir: config.workspace_dir,- thread_id: trimmed.to_string(),- })-}--fn parse<T: DeserializeOwned>(params: Map<String, Value>) -> Result<T, String> {- serde_json::from_value(Value::Object(params)).map_err(|e| format!("invalid params: {e}"))-}--fn snapshot_to_json(snap: TodosSnapshot) -> Result<Value, String> {- serde_json::to_value(&snap).map_err(|e| format!("serialize snapshot: {e}"))-}diff --git a/crates/openhuman-core/src/threads/todos/schemas/registry.rs b/crates/openhuman-core/src/threads/todos/schemas/registry.rsdeleted file mode 100644index dc88d77b59..0000000000--- a/crates/openhuman-core/src/threads/todos/schemas/registry.rs+++ /dev/null@@ -1,87 +0,0 @@-//! Controller schema and registered-controller lists for the `todos`-//! namespace.--use crate::core::all::RegisteredController;-use crate::core::ControllerSchema;--use super::handlers::{- handle_add, handle_clear, handle_decide_plan, handle_edit, handle_list, handle_reclaim_stale,- handle_remove, handle_replace, handle_revise_plan, handle_run_get, handle_run_list,- handle_set_session_thread, handle_update_status,-};-use super::schema_defs::schemas;--pub fn all_controller_schemas() -> Vec<ControllerSchema> {- vec![- schemas("list"),- schemas("add"),- schemas("edit"),- schemas("update_status"),- schemas("set_session_thread"),- schemas("decide_plan"),- schemas("revise_plan"),- schemas("remove"),- schemas("replace"),- schemas("clear"),- schemas("run_list"),- schemas("run_get"),- schemas("reclaim_stale"),- ]-}--pub fn all_registered_controllers() -> Vec<RegisteredController> {- vec![- RegisteredController {- schema: schemas("list"),- handler: handle_list,- },- RegisteredController {- schema: schemas("add"),- handler: handle_add,- },- RegisteredController {- schema: schemas("edit"),- handler: handle_edit,- },- RegisteredController {- schema: schemas("update_status"),- handler: handle_update_status,- },- RegisteredController {- schema: schemas("set_session_thread"),- handler: handle_set_session_thread,- },- RegisteredController {- schema: schemas("decide_plan"),- handler: handle_decide_plan,- },- RegisteredController {- schema: schemas("revise_plan"),- handler: handle_revise_plan,- },- RegisteredController {- schema: schemas("remove"),- handler: handle_remove,- },- RegisteredController {- schema: schemas("replace"),- handler: handle_replace,- },- RegisteredController {- schema: schemas("clear"),- handler: handle_clear,- },- RegisteredController {- schema: schemas("run_list"),- handler: handle_run_list,- },- RegisteredController {- schema: schemas("run_get"),- handler: handle_run_get,- },- RegisteredController {- schema: schemas("reclaim_stale"),- handler: handle_reclaim_stale,- },- ]-}diff --git a/crates/openhuman-core/src/threads/todos/schemas/schema_defs.rs b/crates/openhuman-core/src/threads/todos/schemas/schema_defs.rsdeleted file mode 100644index 2452b13da6..0000000000--- a/crates/openhuman-core/src/threads/todos/schemas/schema_defs.rs+++ /dev/null@@ -1,447 +0,0 @@-//! Per-function [`ControllerSchema`] definitions for the `todos` namespace,-//! plus the small `FieldSchema` builder helpers they share.--use crate::core::{ControllerSchema, FieldSchema, TypeSchema};--pub(super) fn schemas(function: &str) -> ControllerSchema {- match function {- "list" => ControllerSchema {- namespace: "todos",- function: "list",- description:- "Return the current todo list for a conversation thread as cards + markdown.",- inputs: vec![thread_id_input()],- outputs: vec![snapshot_output()],- },- "add" => ControllerSchema {- namespace: "todos",- function: "add",- description: "Append a new todo card to a conversation thread's list.",- inputs: vec![- thread_id_input(),- required_string("content", "Card title / description."),- optional_string("status", "Initial status (todo|in_progress|blocked|done)."),- optional_string("objective", "Task objective / desired outcome."),- string_array_input("plan", "Ordered lightweight execution steps."),- optional_string("assignedAgent", "Agent id expected to pick up this task."),- string_array_input(- "allowedTools",- "Task-local allowed tool names or toolkit slugs.",- ),- optional_string(- "approvalMode",- "Task approval mode: required | not_required.",- ),- string_array_input(- "acceptanceCriteria",- "Checklist required before the task is done.",- ),- string_array_input("evidence", "Verification output, links, files, or notes."),- optional_string("notes", "Free-text notes."),- optional_string("blocker", "Reason the card is blocked, if any."),- FieldSchema {- name: "sourceMetadata",- ty: TypeSchema::Json,- comment: "Originating task-source identifiers ({provider, external_id, …}) \- stamped onto a card promoted from the task-sources inbox.",- required: false,- },- ],- outputs: vec![snapshot_output()],- },- "edit" => ControllerSchema {- namespace: "todos",- function: "edit",- description: "Edit an existing todo card by id. Any omitted field is left unchanged.",- inputs: vec![- thread_id_input(),- required_string("id", "Card identifier returned by `add` / `list`."),- optional_string("content", "New title / description."),- optional_string("status", "New status."),- optional_string("objective", "Task objective / desired outcome."),- string_array_input("plan", "Ordered lightweight execution steps."),- optional_string("assignedAgent", "Agent id expected to pick up this task."),- string_array_input(- "allowedTools",- "Task-local allowed tool names or toolkit slugs.",- ),- optional_string(- "approvalMode",- "Task approval mode: required | not_required (pass null to clear).",- ),- string_array_input(- "acceptanceCriteria",- "Checklist required before the task is done.",- ),- string_array_input("evidence", "Verification output, links, files, or notes."),- optional_string("notes", "New notes (pass empty string to clear)."),- optional_string(- "blocker",- "New blocker reason (pass empty string to clear).",- ),- ],- outputs: vec![snapshot_output()],- },- "update_status" => ControllerSchema {- namespace: "todos",- function: "update_status",- description: "Update only the status of a todo card.",- inputs: vec![- thread_id_input(),- required_string("id", "Card identifier."),- required_string(- "status",- "New status (todo|awaiting_approval|ready|in_progress|blocked|done|rejected).",- ),- ],- outputs: vec![snapshot_output()],- },- "set_session_thread" => ControllerSchema {- namespace: "todos",- function: "set_session_thread",- description: "Link a card to its agent session's conversation thread so the UI can \- offer a \"View session\" jump. Empty/absent sessionThreadId clears the link.",- inputs: vec![- thread_id_input(),- required_string("id", "Card identifier."),- optional_string(- "sessionThreadId",- "Conversation thread id of the card's agent session; omit or empty to clear.",- ),- ],- outputs: vec![snapshot_output()],- },- "decide_plan" => ControllerSchema {- namespace: "todos",- function: "decide_plan",- description: "Approve or reject a card awaiting plan approval \- (approve → ready/runnable; reject → rejected).",- inputs: vec![- thread_id_input(),- required_string("id", "Card identifier."),- FieldSchema {- name: "approve",- ty: TypeSchema::Bool,- comment: "true to approve (card becomes runnable), false to reject.",- required: true,- },- ],- outputs: vec![snapshot_output()],- },- "revise_plan" => ControllerSchema {- namespace: "todos",- function: "revise_plan",- description: "Reject every card awaiting plan approval so the orchestrator can \- re-plan from the user's feedback (the feedback is sent back into the \- thread as a message by the caller). Idempotent no-op when nothing is \- awaiting.",- inputs: vec![- thread_id_input(),- optional_string(- "feedback",- "User's free-text revision request (recorded for logging/audit).",- ),- ],- outputs: vec![snapshot_output()],- },- "remove" => ControllerSchema {- namespace: "todos",- function: "remove",- description: "Remove a todo card from a thread's list.",- inputs: vec![thread_id_input(), required_string("id", "Card identifier.")],- outputs: vec![snapshot_output()],- },- "replace" => ControllerSchema {- namespace: "todos",- function: "replace",- description: "Wholesale-replace the todo list for a thread.",- inputs: vec![thread_id_input(), replace_cards_input()],- outputs: vec![snapshot_output()],- },- "clear" => ControllerSchema {- namespace: "todos",- function: "clear",- description: "Empty the todo list for a thread.",- inputs: vec![thread_id_input()],- outputs: vec![snapshot_output()],- },- "run_list" => ControllerSchema {- namespace: "todos",- function: "run_list",- description: "List durable run records for a thread, optionally filtered by card id.",- inputs: vec![- thread_id_input(),- optional_string("cardId", "Filter runs by card identifier."),- ],- outputs: vec![FieldSchema {- name: "runs",- ty: TypeSchema::Json,- comment: "Array of TaskRun objects.",- required: true,- }],- },- "run_get" => ControllerSchema {- namespace: "todos",- function: "run_get",- description: "Get a single run record by its run id.",- inputs: vec![- thread_id_input(),- required_string("runId", "Run identifier."),- ],- outputs: vec![FieldSchema {- name: "run",- ty: TypeSchema::Json,- comment: "TaskRun object or null if not found.",- required: true,- }],- },- "reclaim_stale" => ControllerSchema {- namespace: "todos",- function: "reclaim_stale",- description: "Scan for stale/wedged runs and reclaim their cards. \- Cards are moved back to todo (re-dispatchable) or blocked \- (max reclaim count exceeded).",- inputs: vec![- thread_id_input(),- FieldSchema {- name: "heartbeatStaleSecs",- ty: TypeSchema::Option(Box::new(TypeSchema::U64)),- comment: "Heartbeat staleness threshold in seconds (default 300).",- required: false,- },- FieldSchema {- name: "claimTtlSecs",- ty: TypeSchema::Option(Box::new(TypeSchema::U64)),- comment: "Claim TTL in seconds (default 3600).",- required: false,- },- FieldSchema {- name: "maxReclaimCount",- ty: TypeSchema::Option(Box::new(TypeSchema::U64)),- comment: "Max reclaims before parking as blocked (default 3).",- required: false,- },- ],- outputs: vec![FieldSchema {- name: "result",- ty: TypeSchema::Json,- comment: "Object with reclaimedCount, blockedCount, and details array.",- required: true,- }],- },- _ => ControllerSchema {- namespace: "todos",- function: "unknown",- description: "Unknown todos controller function.",- inputs: vec![],- outputs: vec![FieldSchema {- name: "error",- ty: TypeSchema::String,- comment: "Lookup error details.",- required: true,- }],- },- }-}--fn thread_id_input() -> FieldSchema {- FieldSchema {- name: "thread_id",- ty: TypeSchema::String,- comment: "Conversation thread identifier (same id used by `threads.task_board_*`).",- required: true,- }-}--fn required_string(name: &'static str, comment: &'static str) -> FieldSchema {- FieldSchema {- name,- ty: TypeSchema::String,- comment,- required: true,- }-}--fn optional_string(name: &'static str, comment: &'static str) -> FieldSchema {- FieldSchema {- name,- ty: TypeSchema::Option(Box::new(TypeSchema::String)),- comment,- required: false,- }-}--fn string_array_input(name: &'static str, comment: &'static str) -> FieldSchema {- FieldSchema {- name,- ty: TypeSchema::Option(Box::new(TypeSchema::Array(Box::new(TypeSchema::String)))),- comment,- required: false,- }-}--/// The `cards` input of `todos.replace`, spelled out field by field.-///-/// This was a bare `TypeSchema::Json` commented "Array of card objects (id may-/// be empty — server generates)", which is not enough to construct one and was-/// actively misleading in two ways (#6087):-///-/// * `handle_replace` deserializes each entry into `TaskBoardCard`, whose-/// `id`, `title` and `status` carry **no** `#[serde(default)]` — so all-/// three keys are mandatory. "id may be empty" is true of the *string* and-/// false of the *key*: omitting it fails with ``missing field `id` ``.-/// * the text field is `title`, while the sibling `todos.add` / `todos.edit`-/// inputs in this same namespace call it `content`. A caller who reached for-/// the namespace's own vocabulary got ``missing field `title` ``.-///-/// Names below are the wire names: `TaskBoardCard` is-/// `#[serde(rename_all = "camelCase")]` and `TaskCardStatus` is-/// `#[serde(rename_all = "snake_case")]`, so the declaration must use-/// `assignedAgent` (not `assigned_agent`) and `in_progress` (not `inProgress`).-/// Every optional field carries `#[serde(default)]` upstream, so the optional-/// markings here are load-bearing rather than decorative.-fn replace_cards_input() -> FieldSchema {- FieldSchema {- name: "cards",- ty: TypeSchema::Array(Box::new(TypeSchema::Object {- fields: vec![- FieldSchema {- name: "id",- ty: TypeSchema::String,- comment: "Stable card id (`task-<n>`). The KEY is required; \- pass an empty string to have the server generate one.",- required: true,- },- FieldSchema {- name: "title",- ty: TypeSchema::String,- comment: "One-line title. NOTE: `todos.add` / `todos.edit` \- call this same field `content`; here it is `title`.",- required: true,- },- FieldSchema {- name: "status",- ty: TypeSchema::Enum {- variants: vec![- "todo",- "awaiting_approval",- "ready",- "in_progress",- "blocked",- "done",- "rejected",- ],- },- comment: "Lifecycle state. At most one card may be `in_progress`.",- required: true,- },- optional_string("objective", "Richer objective for the card."),- defaulted_field(- "plan",- TypeSchema::Array(Box::new(TypeSchema::String)),- "Ordered plan steps. Omit the key to default to []; `null` is rejected.",- ),- optional_string("assignedAgent", "Agent assigned to run this card."),- defaulted_field(- "allowedTools",- TypeSchema::Array(Box::new(TypeSchema::String)),- "Tools the assigned agent may use. Omit to default to []; `null` is rejected.",- ),- FieldSchema {- name: "approvalMode",- // `TaskApprovalMode` is a two-variant enum, not a free- // string: declaring `Option(String)` advertised every- // string as valid, so a catalog-conforming `"sometimes"`- // would come back `invalid params`. Wrapped in `Option`- // because the field really is `Option<TaskApprovalMode>`- // upstream, so `null` genuinely is accepted here — unlike- // the `defaulted_field` group above.- ty: TypeSchema::Option(Box::new(TypeSchema::Enum {- variants: vec!["required", "not_required"],- })),- comment: "Plan-approval mode, when the card is gated. \- `null` clears it.",- required: false,- },- defaulted_field(- "acceptanceCriteria",- TypeSchema::Array(Box::new(TypeSchema::String)),- "Acceptance criteria that define \"done\". Omit to default to []; `null` is rejected.",- ),- defaulted_field(- "evidence",- TypeSchema::Array(Box::new(TypeSchema::String)),- "Evidence gathered toward completion. Omit to default to []; `null` is rejected.",- ),- optional_string("notes", "Free-form notes."),- optional_string("blocker", "Reason, when `status == blocked`."),- optional_string(- "sessionThreadId",- "Thread the card's own agent session runs in.",- ),- FieldSchema {- name: "sourceMetadata",- ty: TypeSchema::Option(Box::new(TypeSchema::Json)),- comment: "Provenance blob carried through untouched.",- required: false,- },- defaulted_field(- "order",- // `TaskBoardCard::order` is a `u32`, but `TypeSchema` has- // no narrower unsigned type and no bounds, so `U64` is the- // closest available declaration and the ceiling has to be- // stated in prose. A value above `u32::MAX` passes schema- // validation and is then refused by the handler's- // deserialization. That imprecision is shared by every- // `TypeSchema::U64` declaration in the catalog (200-odd of- // them), so closing it means adding a bounded integer to- // `core::TypeSchema` rather than editing this one field —- // tracked as #6137. Drop this caveat when that lands.- TypeSchema::U64,- "Sort position, 0..=4294967295 (u32). Omit to default to 0; \- `null` is rejected, and a value above the u32 ceiling is \- refused by the handler rather than by schema validation.",- ),- defaulted_field(- "updatedAt",- TypeSchema::String,- "Last-update stamp, server-maintained. Omit it; `null` is rejected.",- ),- ],- })),- comment: "Full replacement list. Each entry MUST carry `id`, `title` and \- `status`; every other field is optional. Note `title`, not \- `content` — see the field comments.",- required: true,- }-}--/// A `todos.replace` card field that upstream `#[serde(default)]`s.-///-/// Declared with its **non-`Option`** type and `required: false`, which is the-/// accurate statement of the contract: the key may be *omitted* (serde supplies-/// the default) but may not be sent as `null`. `TaskBoardCard`'s `plan`,-/// `allowedTools`, `acceptanceCriteria` and `evidence` are `Vec<String>`,-/// `order` is `u32` and `updatedAt` is `String` — none is an `Option`, so-/// `null` fails deserialization with `invalid type: null`.-///-/// Declaring these as `Option(...)` would advertise `null` as valid and put the-/// catalog right back to describing a call the handler rejects, which is the-/// defect #6087 exists to remove.-fn defaulted_field(name: &'static str, ty: TypeSchema, comment: &'static str) -> FieldSchema {- FieldSchema {- name,- ty,- comment,- required: false,- }-}--fn snapshot_output() -> FieldSchema {- FieldSchema {- name: "snapshot",- ty: TypeSchema::Json,- comment: "Object with `threadId`, `cards`, and a `markdown` rendering of the list.",- required: true,- }-}diff --git a/crates/openhuman-core/src/threads/todos/schemas_tests.rs b/crates/openhuman-core/src/threads/todos/schemas_tests.rsdeleted file mode 100644index 2cb5a789f1..0000000000--- a/crates/openhuman-core/src/threads/todos/schemas_tests.rs+++ /dev/null@@ -1,16 +0,0 @@-use super::*;--#[test]-fn controller_lists_match_lengths() {- assert_eq!(- all_controller_schemas().len(),- all_registered_controllers().len()- );-}--#[test]-fn schemas_have_todos_namespace() {- for schema in all_controller_schemas() {- assert_eq!(schema.namespace, "todos", "function={}", schema.function);- }-}diff --git a/crates/openhuman-core/src/threads/turn_state/mirror/observe.rs b/crates/openhuman-core/src/threads/turn_state/mirror/observe.rsindex d8b34bfafb..60f5be2fae 100644--- a/crates/openhuman-core/src/threads/turn_state/mirror/observe.rs+++ b/crates/openhuman-core/src/threads/turn_state/mirror/observe.rs@@ -355,11 +355,6 @@ impl TurnStateMirror {self.push_subagent_prose(task_id, *iteration, delta, true);false}- AgentProgress::TaskBoardUpdated { board } => {- self.state.task_board = Some(board.clone());- self.flush();- true- }AgentProgress::TextDelta { delta, iteration } => {self.state.streaming_text.push_str(delta);self.push_transcript_narration(*iteration, delta);diff --git a/crates/openhuman-core/src/threads/turn_state/mirror_observe_tests.rs b/crates/openhuman-core/src/threads/turn_state/mirror_observe_tests.rsindex e5f096e485..41883bef49 100644--- a/crates/openhuman-core/src/threads/turn_state/mirror_observe_tests.rs+++ b/crates/openhuman-core/src/threads/turn_state/mirror_observe_tests.rs@@ -428,43 +428,6 @@ fn text_delta_appends_streaming_text_without_flushing() {assert_eq!(m.snapshot().streaming_text, "hello world");}-#[test]-fn task_board_update_is_stored_and_flushed() {- let (dir, mut m) = fresh("t");- let board = TaskBoard {- thread_id: "t".into(),- cards: vec![TaskBoardCard {- id: "task-1".into(),- title: "Draft".into(),- status: TaskCardStatus::Todo,- objective: None,- plan: Vec::new(),- assigned_agent: None,- allowed_tools: Vec::new(),- approval_mode: None,- acceptance_criteria: Vec::new(),- evidence: Vec::new(),- notes: None,- blocker: None,- session_thread_id: None,- source_metadata: None,- order: 0,- updated_at: "2026-05-15T00:00:00Z".into(),- }],- updated_at: "2026-05-15T00:00:00Z".into(),- };- assert!(m.observe(&AgentProgress::TaskBoardUpdated {- board: board.clone()- }));- assert_eq!(m.snapshot().task_board.as_ref(), Some(&board));-- let loaded = TurnStateStore::new(dir.path().to_path_buf())- .get("t")- .expect("load flushed snapshot")- .expect("snapshot exists");- assert_eq!(loaded.task_board, Some(board));-}-#[test]fn turn_completed_keeps_snapshot_as_completed_and_finish_is_noop() {let dir = tempdir().expect("tempdir");diff --git a/crates/openhuman-core/src/threads/turn_state/mirror_tests.rs b/crates/openhuman-core/src/threads/turn_state/mirror_tests.rsindex b4f34c16de..bcf30dbc55 100644--- a/crates/openhuman-core/src/threads/turn_state/mirror_tests.rs+++ b/crates/openhuman-core/src/threads/turn_state/mirror_tests.rs@@ -2,7 +2,6 @@use super::*;use crate::agent::progress::AgentProgress;-use crate::agent::task_board::{TaskBoard, TaskBoardCard, TaskCardStatus};use tempfile::tempdir;fn fresh(thread_id: &str) -> (tempfile::TempDir, TurnStateMirror) {diff --git a/crates/openhuman-core/src/threads/turn_state/types.rs b/crates/openhuman-core/src/threads/turn_state/types.rsindex 6c10a74053..0e8058a385 100644--- a/crates/openhuman-core/src/threads/turn_state/types.rs+++ b/crates/openhuman-core/src/threads/turn_state/types.rs@@ -8,8 +8,6 @@use serde::{Deserialize, Serialize};-use crate::agent::task_board::TaskBoard;-/// Lifecycle of an in-flight (or formerly in-flight) turn.////// `Started` is set when the user sends and the agent loop is about@@ -337,8 +335,6 @@ pub struct TurnState {/// snapshots written before this field still load (as empty).#[serde(default, skip_serializing_if = "Vec::is_empty")]pub transcript: Vec<TranscriptItem>,- #[serde(default, skip_serializing_if = "Option::is_none")]- pub task_board: Option<TaskBoard>,pub started_at: String,pub updated_at: String,}@@ -413,7 +409,6 @@ impl TurnState {thinking: String::new(),tool_timeline: Vec::new(),transcript: Vec::new(),- task_board: None,started_at: now.clone(),updated_at: now,}diff --git a/crates/openhuman-core/src/tools/mod.rs b/crates/openhuman-core/src/tools/mod.rsindex 72814384c6..ae036620a3 100644--- a/crates/openhuman-core/src/tools/mod.rs+++ b/crates/openhuman-core/src/tools/mod.rs@@ -18,6 +18,7 @@ pub(crate) mod implementations;pub use crate::agent::artifacts::tools::*;pub use crate::agent::learning::tools::*;pub use crate::agent::orchestration::tools::*;+pub use crate::agent::todos::tools::*;pub use crate::agent::tools::*;pub use crate::config::tools::*;pub use crate::config::workspace::tools::*;@@ -55,7 +56,6 @@ pub use crate::skills::runtime::tools::*;pub use crate::skills::search::SkillSearchTool;#[cfg(feature = "skills")]pub use crate::skills::tools::*;-pub use crate::threads::todos::tools::*;#[cfg(feature = "voice")]pub use crate::voice::audio_toolkit::tools::*;#[cfg(feature = "web3")]diff --git a/crates/openhuman-core/src/tools/ops.rs b/crates/openhuman-core/src/tools/ops.rsindex 5e6e3f1e65..49eaccbd91 100644--- a/crates/openhuman-core/src/tools/ops.rs+++ b/crates/openhuman-core/src/tools/ops.rs@@ -717,13 +717,13 @@ pub fn all_tools_with_runtime(// system-driven and have no model tool.{let goal_dir = root_config.workspace_dir.clone();- tools.push(Box::new(crate::threads::goals::GoalGetTool::new(+ tools.push(Box::new(crate::agent::goals::GoalGetTool::new(goal_dir.clone(),)));- tools.push(Box::new(crate::threads::goals::GoalSetTool::new(+ tools.push(Box::new(crate::agent::goals::GoalSetTool::new(goal_dir.clone(),)));- tools.push(Box::new(crate::threads::goals::GoalCompleteTool::new(+ tools.push(Box::new(crate::agent::goals::GoalCompleteTool::new(goal_dir,)));}diff --git a/crates/openhuman-core/src/tools/toolpacks/registry.rs b/crates/openhuman-core/src/tools/toolpacks/registry.rsindex c7b744214d..fc1c3ee904 100644--- a/crates/openhuman-core/src/tools/toolpacks/registry.rs+++ b/crates/openhuman-core/src/tools/toolpacks/registry.rs@@ -330,9 +330,9 @@ pub const PACKS: &[ToolPack] = &[// the model find either: `goals` is the user's durable long-term// objectives held in memory, `goal_get` / `goal_set` are the// completion contract for one conversation thread. Both are things a- // user edits far more often than an agent does, and both stayed- // user-reachable — the `memory_goals.*` and `thread_goals.*` RPC the- // UI drives is untouched by the withholding.+ // user edits far more often than an agent does. Long-term goals remain+ // user-reachable through `memory_goals.*`; the per-turn completion+ // contract is agent-owned.//// `goal_complete` is deliberately NOT a member. Closing a goal is the// one goal operation an agent reaches for reactively, at the end ofdiff --git a/crates/openhuman-core/src/web_chat/presentation.rs b/crates/openhuman-core/src/web_chat/presentation.rsindex a7a7b6a8f9..96bcffccb5 100644--- a/crates/openhuman-core/src/web_chat/presentation.rs+++ b/crates/openhuman-core/src/web_chat/presentation.rs@@ -181,7 +181,6 @@ pub(crate) async fn deliver_response(tool_call_id: None,failure: None,subagent: None,- task_board: None,tool_display_label: None,tool_display_detail: None,citations: if i == 0 && !citations.is_empty() {@@ -223,7 +222,6 @@ pub(crate) async fn deliver_response(tool_call_id: None,failure: None,subagent: None,- task_board: None,tool_display_label: None,tool_display_detail: None,citations: if citations.is_empty() {@@ -302,7 +300,6 @@ fn publish_chat_done(tool_call_id: None,failure: None,subagent: None,- task_board: None,tool_display_label: None,tool_display_detail: None,citations: if citations.is_empty() {diff --git a/crates/openhuman-core/src/web_chat/progress_bridge.rs b/crates/openhuman-core/src/web_chat/progress_bridge.rsindex e432dda077..ecfd0e5f07 100644--- a/crates/openhuman-core/src/web_chat/progress_bridge.rs+++ b/crates/openhuman-core/src/web_chat/progress_bridge.rs@@ -1284,28 +1284,6 @@ pub(crate) fn spawn_progress_bridge(},);}- AgentProgress::TaskBoardUpdated { board } => {- log::debug!(- "[web_channel][bridge] task_board_updated client_id={} thread_id={} request_id={} cards={}",- client_id,- thread_id,- request_id,- board.cards.len()- );- publish_seq_stamped(- &mut emit_seq,- WebChannelEvent {- event: "task_board_updated".to_string(),- client_id: client_id.clone(),- thread_id: thread_id.clone(),- request_id: request_id.clone(),- task_board: Some(serde_json::to_value(board).unwrap_or_else(- |_| serde_json::json!({ "threadId": thread_id, "cards": [] }),- )),- ..Default::default()- },- );- }AgentProgress::TextDelta { delta, iteration } => {// Buffer the round's narration so it can be flushed as an// interim bubble if a tool call closes this round.diff --git a/crates/openhuman-tui/src/app.rs b/crates/openhuman-tui/src/app.rsindex 0fb0b20030..30bdc3a195 100644--- a/crates/openhuman-tui/src/app.rs+++ b/crates/openhuman-tui/src/app.rs@@ -574,50 +574,6 @@ async fn execute_command().await}- "goal" if !argument.trim().is_empty() => {- match runtime- .invoke(- "openhuman.thread_goals_set",- json!({"thread_id": ui.thread_id, "objective": argument.trim()}),- )- .await- {- Ok(_) => state.push_system("Thread goal updated."),- Err(error) => state.push_system(format!("Could not update goal: {error}")),- }- }- "goal" => {- open_rpc_overlay(- runtime,- ui,- OverlayKind::Goal,- "Thread goal",- "openhuman.thread_goals_get",- json!({"thread_id": ui.thread_id}),- &[],- &[],- &[],- )- .await;- if let Some(overlay) = &mut ui.overlay {- overlay.status =- "Use /goal <objective> to create or replace the goal · Esc closes".into();- }- }- "tasks" => {- open_rpc_overlay(- runtime,- ui,- OverlayKind::Tasks,- "Task board",- "openhuman.threads_task_board_get",- json!({"thread_id": ui.thread_id}),- &["cards", "items"],- &["id"],- &["title", "objective", "id"],- )- .await- }"agents" => {open_rpc_overlay(runtime,@@ -1262,7 +1218,6 @@ fn handle_web_event(ev: &WebChannelEvent, state: &mut TranscriptState, ui: &mutpresent_pending_plan_review(ui);}}- "task_board_updated" => ui.queue_status = "task board updated".into(),_ => state.apply_event(ev),}}diff --git a/crates/openhuman-tui/src/cockpit.rs b/crates/openhuman-tui/src/cockpit.rsindex 87fd4d94e5..e85521aa79 100644--- a/crates/openhuman-tui/src/cockpit.rs+++ b/crates/openhuman-tui/src/cockpit.rs@@ -14,8 +14,6 @@ pub enum OverlayKind {Permissions,Status,Usage,- Goal,- Tasks,Agents,Skills,Mcp,diff --git a/crates/openhuman-tui/src/composer.rs b/crates/openhuman-tui/src/composer.rsindex 33099a7dc9..9d5a7f367c 100644--- a/crates/openhuman-tui/src/composer.rs+++ b/crates/openhuman-tui/src/composer.rs@@ -14,8 +14,6 @@ pub const COMMANDS: &[(&str, &str)] = &[("permissions", "inspect or change agent access"),("status", "show session, core, and Git status"),("usage", "show token and cost usage"),- ("goal", "view or manage the thread goal"),- ("tasks", "show the thread task board"),("agents", "browse and switch agent profiles"),("skills", "browse installed skills and recent runs"),("mcp", "show installed MCP servers"),diff --git a/crates/openhuman-tui/src/lib.rs b/crates/openhuman-tui/src/lib.rsindex 916dbf1db5..ee7692e371 100644--- a/crates/openhuman-tui/src/lib.rs+++ b/crates/openhuman-tui/src/lib.rs@@ -2,7 +2,7 @@//!//! A [ratatui]-based agent cockpit with Chat, Logs, Config, and Settings,//! persistent thread resume, command/file pickers, approvals, plan review,-//! task/goal/agent/skill/MCP/artifact views, Git review, and a multiline composer.+//! agent/skill/MCP/artifact views, Git review, and a multiline composer.//! Chat uses the **same `web_chat` surface** the desktop app drives (`openhuman.channel_web_chat` ///! `openhuman.channel_web_cancel` +//! [`web_chat::subscribe_web_channel_events`](openhuman_core::web_chat::subscribe_web_channel_events)).diff --git a/crates/openhuman-tui/src/runner_tests.rs b/crates/openhuman-tui/src/runner_tests.rsindex 970aa84136..362de63149 100644--- a/crates/openhuman-tui/src/runner_tests.rs+++ b/crates/openhuman-tui/src/runner_tests.rs@@ -51,10 +51,7 @@ fn tui_invokes_use_canonical_registered_rpc_method_names() {"openhuman.threads_transcript_get","openhuman.threads_update_title","openhuman.threads_delete",- "openhuman.threads_task_board_get","openhuman.threads_token_usage",- "openhuman.thread_goals_get",- "openhuman.thread_goals_set","openhuman.profiles_list","openhuman.profiles_select","openhuman.ai_list_artifacts",diff --git a/docs/TEST-COVERAGE-MATRIX.md b/docs/TEST-COVERAGE-MATRIX.mdindex 12b4c837df..810a37450f 100644--- a/docs/TEST-COVERAGE-MATRIX.md+++ b/docs/TEST-COVERAGE-MATRIX.md@@ -184,7 +184,6 @@ Canonical mapping of every product feature to its test source(s). Drives gap-fil| 4.2.2 | AI Response Generation | WD | `agent-review.spec.ts` | ✅ | Mock LLM || 4.2.3 | Streaming Responses | RI | `tests/json_rpc_e2e.rs`, `tests/agent_harness_e2e.rs` | ✅ | `tests/agent_harness_e2e.rs` adds provider-level SSE tool-arg accumulation (chunked args reassembled + parsed) and engine-level delta forwarding (#3471) || 4.2.4 | Parallel inference (cross-thread + within-thread forked turns) | RU+VU | `crates/openhuman-core/src/web_chat/web_tests.rs`, `app/src/store/__tests__/chatRuntimeSlice.test.ts`, `app/src/providers/__tests__/ChatRuntimeProvider.test.tsx` | 🟡 | Concurrent same-/cross-thread dispatch, cooperative `CancellationToken` teardown, and parallel-lane stream routing covered; dedicated WD E2E is a follow-up |-| 4.2.5 | Per-thread todo list (plan strip above composer) | RU+VU+WD | `crates/openhuman-core/src/agent/tools/todo.rs`, `app/src/features/conversations/components/ThreadTodoStrip.test.tsx`, `app/test/e2e/specs/chat-thread-todo-strip.spec.ts` | ✅ | Read-only thread-scoped todo strip fed by `task_board_updated`; agent `todo` tool guidance + thread binding; E2E drives a `todo` tool call and asserts the card renders || 4.2.6 | Background-activity panel (chat-header Background tasks button) | VU+WD | `app/src/features/conversations/hooks/useBackgroundActivity.test.ts`, `app/src/features/conversations/components/__tests__/BackgroundActivityRows.test.tsx`, `app/test/e2e/specs/chat-background-activity-panel.spec.ts` | ✅ | View-only panel surfacing this chat's async sub-agents + global cron jobs and memory syncing; freshness-only "Syncing now" labeling; E2E opens the panel and asserts its sections render and close || 4.2.7 | Plan-mode review (Approve / Reject / Send-feedback before execute) | RU+RI+VU | `crates/openhuman-core/src/agent/plan_review/gate.rs`, `crates/openhuman-core/src/agent/plan_review/tool.rs`, `crates/openhuman-core/src/agent/plan_review/schemas.rs`, `tests/json_rpc_e2e.rs`, `app/src/features/conversations/components/PlanReviewCard.test.tsx`, `app/src/pages/__tests__/Conversations.render.test.tsx` | ✅ | Interactive turns call `request_plan_review`, which parks the LIVE turn on the in-memory `PlanReviewGate` (oneshot) until the user decides; `plan_review_request` socket event drives `PlanReviewCard`, which resolves via `openhuman.plan_review_decide` (approve resumes-and-executes / reject resumes-and-stops / revise resumes-with-feedback). RU covers gate park/resolve/timeout + tool auto-approve + parking; RI covers the decide RPC; VU covers the card + provider wiring. WD E2E (agent-driven park flow) tracked as follow-up |diff --git a/gitbooks/developing/architecture/frontend.md b/gitbooks/developing/architecture/frontend.mdindex b34778d82d..820105720a 100644--- a/gitbooks/developing/architecture/frontend.md+++ b/gitbooks/developing/architecture/frontend.md@@ -241,9 +241,9 @@ const result = await apiClient.post<LoginResponse>("/auth/login", {\~50 domain-scoped modules, one per feature surface, each wrapping either backend REST endpoints or core RPC methods. Representative examples:- `authApi` / `userApi` — auth + user profile-- `threadApi`, `threadGoalApi`, `threadUsageApi` — chat threads+- `threadApi`, `threadUsageApi` — chat threads- `agentProfilesApi`, `agentTeamApi`, `agentWorkApi`, `subagentApi` — agents-- `skillsApi`, `skillRegistryApi`, `flowsApi`, `workflowRunsApi`, `todosApi` — skills & automation+- `skillsApi`, `skillRegistryApi`, `flowsApi`, `workflowRunsApi` — skills & automation- `channelConnectionsApi`, `mcpClientsApi`, `mcpSetupApi`, `tunnelsApi` — connections- `memoryTimelineApi`, `memoryFreshnessApi`, `graphCentralityApi`, `namespaceOverviewApi` — memory/graph- `billingApi`, `creditsApi`, `referralApi`, `rewardsApi`, `inviteApi` — commercediff --git a/gitbooks/features/goals-and-todos.md b/gitbooks/features/goals-and-todos.mdindex b13924fc37..43d35ec490 100644--- a/gitbooks/features/goals-and-todos.md+++ b/gitbooks/features/goals-and-todos.md@@ -1,76 +1,32 @@----description: >-- Long-term goals, per-thread objectives with budgets, and a kanban task board -- how OpenHuman stays pointed at what matters.+description: Durable user goals and the agent's native TinyAgents work state.icon: target---# Goals & Todos-OpenHuman keeps the agent aligned with what you actually care about through three complementary layers: durable **long-term goals**, a single **thread goal** per conversation, and a collaborative **task board** of todos. Each one is editable by both you and the agent, and all of them survive restarts.------## Long-term goals-A short, human-readable list of your durable objectives, things like _"Ship the desktop app"_ or _"Grow the community to 10k."_ It lives as a plain Markdown file (`MEMORY_GOALS.md`) in your workspace, so you can open and edit it directly.--The list is deliberately tiny, capped at roughly **8 items / 500 tokens**, so it's cheap for the agent to read on every relevant turn and easy for you to keep honest. Each goal gets a stable short id (`g1`, `g2`, …) so it can be edited or deleted without depending on order.--- **Goals Panel** (Intelligence → Goals) shows the list with add / edit / delete actions.-- **Reflect** runs a background `goals_agent` that reviews your goals against recent memory and conversation, then makes minimal, justified changes: adding what you've clearly started pursuing, retiring what you've dropped. On first run it bootstraps an initial set from your context.-- The agent reads and updates the same list mid-conversation via its `goals_list` / `goals_add` / edit tools, so your edits and the agent's stay in lock-step.--RPC surface: `openhuman.memory_goals_list` / `_add` / `_edit` / `_delete` / `_reflect`.-------## Thread goals--Each conversation can carry **one** thread goal: a durable "completion contract" the agent works across turns, interrupts, resumes, and budget boundaries. A thread goal has an objective, a status, and an optional **token budget** so you can cap how much work a thread is allowed to consume.--| Status | Meaning |-| ---------------- | ---------------------------------------------------------------------- |-| `active` | The agent may keep working the objective. |-| `paused` | Suspended (e.g. you interrupted); reactivates when the thread resumes. |-| `budget_limited` | Tokens spent ≥ budget; substantive work halts until you raise it. |-| `complete` | Objective satisfied. |--The orchestrator sets a goal with `goal_set`, reads it with `goal_get`, and finishes it with `goal_complete`. Updates emit `thread/goal/updated` events so the UI stays live.+OpenHuman keeps a short, human-readable list of durable user objectives in+`MEMORY_GOALS.md`. The Intelligence → Goals panel supports adding, editing, and+deleting entries, while the goals reflection agent can make small changes based+on recent memory and conversations.-**Autonomous idle continuation.** If a thread has an active goal and goes idle (no in-flight turn, no activity for a configured interval, e.g. 10 minutes), the heartbeat can inject a single continuation turn that resumes the transcript and keeps working the objective. It's opt-in (`heartbeat.goal_continuation_enabled`) and guarded by a one-shot suppression flag per idle period, so the agent never self-drives into a loop.+The list is deliberately bounded to keep it useful in prompts. Each entry has a+stable short id so edits do not depend on ordering. The corresponding RPC+surface is `openhuman.memory_goals_*`.------## Task board (todos)--Every conversation also hosts a **kanban-style task board**: a list of discrete work cards that you and the agent build together. Unlike a thread goal (one durable objective), the board is a collection of concrete items, each with rich structure:--- Title / description, and a **status**: `todo`, `in_progress`, `awaiting_approval`, `ready`, `blocked`, `done`, `rejected`.-- Optional objective and desired outcome.-- An ordered **execution plan**, **acceptance criteria** checklist, assigned agent, and an **approval mode** (required / not required).-- Notes, blocker reason, and evidence / links.--The agent reads the board with `todo_list`, appends with `todo_add`, edits with `todo_edit`, and advances status with `todo_update_status`. Destructive operations (clear / remove / replace) are disabled by default. You and the agent share the same persistence, so edits stay consistent.--Two reserved boards back special views:+## Agent work state-- **`user-tasks`**: your personal task list, not attached to any conversation. Create and manage these from the **User Task Composer** (Intelligence → Tasks). You can optionally attach a task to a conversation and assign it to the orchestrator with `approvalMode: not_required`, so the background dispatcher auto-picks and runs it.-- **`task-sources`**: an inbox for tasks ingested from external sources before they're promoted to an agent workstream.+Turn-scoped goals and todos are internal TinyAgents capabilities. TinyAgents+owns their types, lifecycle, persistence, budgets, claims, and run records;+OpenHuman supplies runtime and tool adapters so the orchestrator can use them+while it works.-RPC surface: `openhuman.todos_list` / `_add` / `_edit` / `_update_status` / `_set_session_thread`. Responses include a rendered `markdown` field so the board renders identically in the UI and in agent transcripts.-------## How the three relate--| Layer | Scope | Count | Who drives it |-| ------------------ | ------------------ | ------------ | ------------------------------------ |-| Long-term goals | Your whole account | ~8 max | You + periodic `goals_agent` reflect |-| Thread goal | One conversation | 1 per thread | Orchestrator, with optional budget |-| Task board (todos) | One conversation | Many cards | You + agent, collaboratively |-----+These internals are not presented as a separate kanban board and do not expose+`thread_goals`, `todos`, or `threads_task_board` RPC endpoints. Conversation+threads remain the chat/session container and are independent of this agent+work state.## See alsodiff --git a/tests/agent_turn_overrides_e2e.rs b/tests/agent_turn_overrides_e2e.rsindex 3ca9b75050..9e63552a92 100644--- a/tests/agent_turn_overrides_e2e.rs+++ b/tests/agent_turn_overrides_e2e.rs@@ -35,11 +35,11 @@ use std::sync::{Arc, Mutex, OnceLock};use tempfile::TempDir;use openhuman_core::agent::dispatcher::{NativeToolDispatcher, XmlToolDispatcher};+use openhuman_core::agent::goals::{runtime as goal_runtime, store as goal_store};use openhuman_core::agent::harness::session::TurnOverrides;use openhuman_core::agent::tinyagents::thread_context::with_thread_id;use openhuman_core::agent::Agent;use openhuman_core::config::{AgentConfig, ContextConfig};-use openhuman_core::threads::goals::{runtime as goal_runtime, store as goal_store};use openhuman_core::tools::{PermissionLevel, Tool, ToolContent, ToolResult, ToolScope as RuntimeToolScope,};diff --git a/tests/json_rpc_e2e.rs b/tests/json_rpc_e2e.rsindex a16183ee1a..e3ea786b2e 100644--- a/tests/json_rpc_e2e.rs+++ b/tests/json_rpc_e2e.rs@@ -2472,192 +2472,6 @@ async fn json_rpc_thread_labels_create_and_update() {rpc_join.abort();}-#[tokio::test]-async fn json_rpc_todos_crud_on_personal_board() {- let _env_lock = json_rpc_e2e_env_lock();- let tmp = tempdir().expect("tempdir");- let home = tmp.path();- let openhuman_home = home.join(".openhuman");-- let _home_guard = EnvVarGuard::set_to_path("HOME", home);- let _workspace_guard = EnvVarGuard::unset("OPENHUMAN_WORKSPACE");- let _backend_url_guard = EnvVarGuard::unset("BACKEND_URL");- let _vite_backend_url_guard = EnvVarGuard::unset("VITE_BACKEND_URL");- let _api_url_guard = EnvVarGuard::unset("OPENHUMAN_API_URL");-- let (api_addr, api_join) = serve_on_ephemeral(mock_upstream_router()).await;- let api_origin = format!("http://{api_addr}");- write_min_config(openhuman_home.as_path(), &api_origin);-- let (rpc_addr, rpc_join) = serve_on_ephemeral(build_core_http_router(false)).await;- let rpc_base = format!("http://{rpc_addr}");-- // The Tasks-tab create flow targets a reserved, conversation-less board- // id. The `todos_*` handlers never require the thread to exist, so a- // user can manage a personal task list backed by this sentinel id.- let board = "user-tasks";-- // 1. Add a user-created card.- let add = post_json_rpc(- &rpc_base,- 9101,- "openhuman.todos_add",- json!({ "thread_id": board, "content": "Buy milk", "status": "todo" }),- )- .await;- let add_result = assert_no_jsonrpc_error(&add, "todos_add");- let cards = add_result- .get("cards")- .and_then(Value::as_array)- .expect("cards array in add response");- assert_eq!(cards.len(), 1, "exactly one card after add");- assert_eq!(- cards[0].get("title").and_then(Value::as_str),- Some("Buy milk"),- "added card title"- );- assert_eq!(- add_result.get("threadId").and_then(Value::as_str),- Some(board),- "snapshot echoes the board id"- );- let card_id = cards[0]- .get("id")- .and_then(Value::as_str)- .expect("card id")- .to_string();-- // 2. List reflects the new card.- let list = post_json_rpc(- &rpc_base,- 9102,- "openhuman.todos_list",- json!({ "thread_id": board }),- )- .await;- let list_result = assert_no_jsonrpc_error(&list, "todos_list");- assert_eq!(- list_result- .get("cards")- .and_then(Value::as_array)- .map(|c| c.len()),- Some(1),- "list returns the persisted card"- );-- // 3. Move it to done.- let upd = post_json_rpc(- &rpc_base,- 9103,- "openhuman.todos_update_status",- json!({ "thread_id": board, "id": card_id, "status": "done" }),- )- .await;- let upd_result = assert_no_jsonrpc_error(&upd, "todos_update_status");- let upd_cards = upd_result- .get("cards")- .and_then(Value::as_array)- .expect("cards in update response");- assert_eq!(- upd_cards[0].get("status").and_then(Value::as_str),- Some("done"),- "status updated to done"- );-- // 4. Remove it — the board is empty again.- let rem = post_json_rpc(- &rpc_base,- 9104,- "openhuman.todos_remove",- json!({ "thread_id": board, "id": card_id }),- )- .await;- let rem_result = assert_no_jsonrpc_error(&rem, "todos_remove");- assert!(- rem_result- .get("cards")- .and_then(Value::as_array)- .expect("cards in remove response")- .is_empty(),- "board empty after remove"- );-- api_join.abort();- rpc_join.abort();-}--#[tokio::test]-async fn json_rpc_todos_revise_plan_rejects_awaiting() {- // Plan-mode "Send feedback" path: a parked plan (card awaiting approval) is- // cleared by `todos_revise_plan` so the orchestrator can re-plan from the- // user's feedback. Awaiting cards become `rejected`; non-awaiting cards are- // left untouched.- let _env_lock = json_rpc_e2e_env_lock();- let tmp = tempdir().expect("tempdir");- let home = tmp.path();- let openhuman_home = home.join(".openhuman");-- let _home_guard = EnvVarGuard::set_to_path("HOME", home);- let _workspace_guard = EnvVarGuard::unset("OPENHUMAN_WORKSPACE");- let _backend_url_guard = EnvVarGuard::unset("BACKEND_URL");- let _vite_backend_url_guard = EnvVarGuard::unset("VITE_BACKEND_URL");- let _api_url_guard = EnvVarGuard::unset("OPENHUMAN_API_URL");-- let (api_addr, api_join) = serve_on_ephemeral(mock_upstream_router()).await;- let api_origin = format!("http://{api_addr}");- write_min_config(openhuman_home.as_path(), &api_origin);-- let (rpc_addr, rpc_join) = serve_on_ephemeral(build_core_http_router(false)).await;- let rpc_base = format!("http://{rpc_addr}");- let board = "plan-review-thread";-- // 1. Add a card and park it for review (awaiting_approval).- let add = post_json_rpc(- &rpc_base,- 9201,- "openhuman.todos_add",- json!({ "thread_id": board, "content": "Refactor schema", "status": "awaiting_approval" }),- )- .await;- let add_result = assert_no_jsonrpc_error(&add, "todos_add awaiting");- let card_id = add_result- .get("cards")- .and_then(Value::as_array)- .and_then(|c| c.first())- .and_then(|c| c.get("id"))- .and_then(Value::as_str)- .expect("parked card id")- .to_string();-- // 2. Send feedback → revise_plan rejects the parked card.- let revise = post_json_rpc(- &rpc_base,- 9202,- "openhuman.todos_revise_plan",- json!({ "thread_id": board, "feedback": "split into smaller steps" }),- )- .await;- let revise_result = assert_no_jsonrpc_error(&revise, "todos_revise_plan");- let revised_cards = revise_result- .get("cards")- .and_then(Value::as_array)- .expect("cards in revise response");- assert_eq!(revised_cards.len(), 1, "card retained, status changed");- assert_eq!(- revised_cards[0].get("id").and_then(Value::as_str),- Some(card_id.as_str()),- "same card id"- );- assert_eq!(- revised_cards[0].get("status").and_then(Value::as_str),- Some("rejected"),- "parked card is rejected after revise_plan"- );-- api_join.abort();- rpc_join.abort();-}-#[tokio::test]async fn json_rpc_plan_review_decide_unknown_and_invalid() {// The plan-review gate is in-memory and parks a live turn; over RPC we can@@ -2720,163 +2534,6 @@ async fn json_rpc_plan_review_decide_unknown_and_invalid() {rpc_join.abort();}-#[tokio::test]-async fn json_rpc_thread_goal_lifecycle() {- let _env_lock = json_rpc_e2e_env_lock();- let tmp = tempdir().expect("tempdir");- let home = tmp.path();- let openhuman_home = home.join(".openhuman");-- let _home_guard = EnvVarGuard::set_to_path("HOME", home);- let _workspace_guard = EnvVarGuard::unset("OPENHUMAN_WORKSPACE");- let _backend_url_guard = EnvVarGuard::unset("BACKEND_URL");- let _vite_backend_url_guard = EnvVarGuard::unset("VITE_BACKEND_URL");- let _api_url_guard = EnvVarGuard::unset("OPENHUMAN_API_URL");-- let (api_addr, api_join) = serve_on_ephemeral(mock_upstream_router()).await;- let api_origin = format!("http://{api_addr}");- write_min_config(openhuman_home.as_path(), &api_origin);-- let (rpc_addr, rpc_join) = serve_on_ephemeral(build_core_http_router(false)).await;- let rpc_base = format!("http://{rpc_addr}");-- // `thread_goals_*` handlers never require the thread to exist (mirrors- // `todos_*`), so a synthetic thread id is fine.- let thread = "thread-goal-e2e";-- // Pull the `{ goal }` payload out of either response shape: a bare- // `{ goal }` (get) or the `{ result: { goal }, logs }` CLI envelope- // (mutations).- fn goal_of(result: &Value) -> Option<&Value> {- let envelope = result.get("result").unwrap_or(result);- envelope.get("goal").filter(|g| !g.is_null())- }-- // 1. No goal yet.- let got = post_json_rpc(- &rpc_base,- 9201,- "openhuman.thread_goals_get",- json!({ "thread_id": thread }),- )- .await;- assert!(- goal_of(assert_no_jsonrpc_error(&got, "thread_goals_get")).is_none(),- "no goal initially"- );-- // 2. Set with a token budget.- let set = post_json_rpc(- &rpc_base,- 9202,- "openhuman.thread_goals_set",- json!({ "thread_id": thread, "objective": "Ship the release", "token_budget": 5000 }),- )- .await;- let goal = goal_of(assert_no_jsonrpc_error(&set, "thread_goals_set")).expect("goal after set");- let goal_id = goal- .get("goalId")- .and_then(Value::as_str)- .expect("goalId")- .to_string();- assert_eq!(- goal.get("objective").and_then(Value::as_str),- Some("Ship the release")- );- assert_eq!(goal.get("status").and_then(Value::as_str), Some("active"));- assert_eq!(goal.get("tokenBudget").and_then(Value::as_u64), Some(5000));-- // 3. Get reflects the persisted goal (same goal id).- let got2 = post_json_rpc(- &rpc_base,- 9203,- "openhuman.thread_goals_get",- json!({ "thread_id": thread }),- )- .await;- assert_eq!(- goal_of(assert_no_jsonrpc_error(&got2, "thread_goals_get#2"))- .and_then(|g| g.get("goalId"))- .and_then(Value::as_str),- Some(goal_id.as_str())- );-- // 4. Pause then resume (system-driven lifecycle).- let paused = post_json_rpc(- &rpc_base,- 9204,- "openhuman.thread_goals_pause",- json!({ "thread_id": thread }),- )- .await;- assert_eq!(- goal_of(assert_no_jsonrpc_error(&paused, "pause"))- .and_then(|g| g.get("status"))- .and_then(Value::as_str),- Some("paused")- );- let resumed = post_json_rpc(- &rpc_base,- 9205,- "openhuman.thread_goals_resume",- json!({ "thread_id": thread }),- )- .await;- assert_eq!(- goal_of(assert_no_jsonrpc_error(&resumed, "resume"))- .and_then(|g| g.get("status"))- .and_then(Value::as_str),- Some("active")- );-- // 5. Complete.- let done = post_json_rpc(- &rpc_base,- 9206,- "openhuman.thread_goals_complete",- json!({ "thread_id": thread }),- )- .await;- assert_eq!(- goal_of(assert_no_jsonrpc_error(&done, "complete"))- .and_then(|g| g.get("status"))- .and_then(Value::as_str),- Some("complete")- );-- // 6. Clear → removed; subsequent get is null.- let cleared = post_json_rpc(- &rpc_base,- 9207,- "openhuman.thread_goals_clear",- json!({ "thread_id": thread }),- )- .await;- let cleared_result = assert_no_jsonrpc_error(&cleared, "clear");- assert_eq!(- cleared_result- .get("result")- .and_then(|r| r.get("removed"))- .and_then(Value::as_bool),- Some(true),- "clear reports removal"- );- let got3 = post_json_rpc(- &rpc_base,- 9208,- "openhuman.thread_goals_get",- json!({ "thread_id": thread }),- )- .await;- assert!(- goal_of(assert_no_jsonrpc_error(&got3, "thread_goals_get#3")).is_none(),- "goal gone after clear"- );-- api_join.abort();- rpc_join.abort();-}-#[tokio::test]async fn json_rpc_thread_title_create_and_update() {let _env_lock = json_rpc_e2e_env_lock();@@ -4008,215 +3665,6 @@ async fn json_rpc_agent_team_coordination_roundtrip() {rpc_join.abort();}-#[tokio::test]-async fn json_rpc_task_board_brief_roundtrips_across_todos_and_threads_rpc() {- let _env_lock = json_rpc_e2e_env_lock();- let tmp = tempdir().expect("tempdir");- let home = tmp.path();- let openhuman_home = home.join(".openhuman");-- let _home_guard = EnvVarGuard::set_to_path("HOME", home);- let _workspace_guard = EnvVarGuard::unset("OPENHUMAN_WORKSPACE");- let _backend_url_guard = EnvVarGuard::unset("BACKEND_URL");- let _vite_backend_url_guard = EnvVarGuard::unset("VITE_BACKEND_URL");- let _api_url_guard = EnvVarGuard::unset("OPENHUMAN_API_URL");-- let (api_addr, api_join) = serve_on_ephemeral(mock_upstream_router()).await;- let api_origin = format!("http://{api_addr}");- write_min_config(openhuman_home.as_path(), &api_origin);-- let (rpc_addr, rpc_join) = serve_on_ephemeral(build_core_http_router(false)).await;- let rpc_base = format!("http://{rpc_addr}");- let thread_id = "thread-task-brief-e2e";-- let added = post_json_rpc(- &rpc_base,- 9201,- "openhuman.todos_add",- json!({- "thread_id": thread_id,- "content": " Draft implementation plan ",- "status": "todo",- "objective": " Ship richer task briefs ",- "plan": [" Inspect board store ", " Patch RPC shape ", ""],- "assignedAgent": " planner ",- "allowedTools": [" todo ", "spawn_subagent", ""],- "approvalMode": "required",- "acceptanceCriteria": [" Brief survives JSON-RPC ", " UI can save edits "],- "evidence": [" cargo test --test json_rpc_e2e task_board "],- "notes": "initial note"- }),- )- .await;- let added_result = assert_no_jsonrpc_error(&added, "todos_add task brief");- let added_cards = added_result- .get("cards")- .and_then(Value::as_array)- .expect("todos_add cards");- assert_eq!(added_cards.len(), 1);- let task_id = added_cards[0]- .get("id")- .and_then(Value::as_str)- .expect("generated task id")- .to_string();- assert_eq!(added_cards[0]["title"], "Draft implementation plan");- assert_eq!(added_cards[0]["objective"], "Ship richer task briefs");- assert_eq!(added_cards[0]["assignedAgent"], "planner");- assert_eq!(- added_cards[0]["allowedTools"],- json!(["todo", "spawn_subagent"])- );- assert_eq!(added_cards[0]["approvalMode"], "required");- assert!(- added_result- .get("markdown")- .and_then(Value::as_str)- .unwrap_or_default()- .contains("approval: required"),- "markdown should include task approval metadata: {added_result}"- );-- let edited = post_json_rpc(- &rpc_base,- 9202,- "openhuman.todos_edit",- json!({- "thread_id": thread_id,- "id": task_id,- "content": "Implement editable task briefs",- "status": "in_progress",- "objective": "Let users refine agent handoff data",- "plan": ["Open the brief", "Edit fields", "Persist through core"],- "assignedAgent": "code_executor",- "allowedTools": ["todo", "file_read", "edit_file"],- "approvalMode": "not_required",- "acceptanceCriteria": ["Saved board contains edited fields"],- "evidence": ["focused vitest passed"],- "notes": "",- "blocker": ""- }),- )- .await;- let edited_result = assert_no_jsonrpc_error(&edited, "todos_edit task brief");- let edited_card = &edited_result["cards"][0];- assert_eq!(edited_card["title"], "Implement editable task briefs");- assert_eq!(edited_card["status"], "in_progress");- assert_eq!(edited_card["assignedAgent"], "code_executor");- assert_eq!(edited_card["approvalMode"], "not_required");- assert_eq!(- edited_card["plan"],- json!(["Open the brief", "Edit fields", "Persist through core"])- );- assert!(- edited_card.get("notes").is_none(),- "empty notes should clear"- );-- let cleared_approval = post_json_rpc(- &rpc_base,- 9207,- "openhuman.todos_edit",- json!({- "thread_id": thread_id,- "id": task_id,- "approvalMode": null- }),- )- .await;- let cleared_result =- assert_no_jsonrpc_error(&cleared_approval, "todos_edit clears approvalMode");- assert!(- cleared_result["cards"][0].get("approvalMode").is_none(),- "null approvalMode should clear the optional field: {cleared_result}"- );-- let thread_get = post_json_rpc(- &rpc_base,- 9203,- "openhuman.threads_task_board_get",- json!({ "thread_id": thread_id }),- )- .await;- let thread_get_result = assert_no_jsonrpc_error(&thread_get, "threads_task_board_get");- let board = thread_get_result- .get("taskBoard")- .expect("taskBoard in threads get");- assert_eq!(board["threadId"], thread_id);- assert_eq!(board["cards"][0]["title"], "Implement editable task briefs");- assert!(- board["cards"][0].get("approvalMode").is_none(),- "cleared approvalMode should persist through threads get: {board}"- );-- let mut cards = board- .get("cards")- .and_then(Value::as_array)- .expect("cards in board")- .clone();- cards[0]["evidence"] = json!(["focused vitest passed", "json_rpc_e2e persisted UI edit"]);- cards[0]["acceptanceCriteria"] = json!(["Core and UI save paths agree"]);- let replaced = post_json_rpc(- &rpc_base,- 9204,- "openhuman.threads_task_board_put",- json!({- "thread_id": thread_id,- "cards": cards- }),- )- .await;- let replaced_result = assert_no_jsonrpc_error(&replaced, "threads_task_board_put rich board");- assert_eq!(- replaced_result["taskBoard"]["cards"][0]["evidence"],- json!(["focused vitest passed", "json_rpc_e2e persisted UI edit"])- );-- let listed = post_json_rpc(- &rpc_base,- 9205,- "openhuman.todos_list",- json!({ "thread_id": thread_id }),- )- .await;- let listed_result = assert_no_jsonrpc_error(&listed, "todos_list after threads put");- assert_eq!(- listed_result["cards"][0]["acceptanceCriteria"],- json!(["Core and UI save paths agree"])- );- assert!(- listed_result- .get("markdown")- .and_then(Value::as_str)- .unwrap_or_default()- .contains("json_rpc_e2e persisted UI edit"),- "todos markdown should render evidence after threads put: {listed_result}"- );-- let invalid_approval = post_json_rpc(- &rpc_base,- 9206,- "openhuman.todos_add",- json!({- "thread_id": thread_id,- "content": "Invalid approval",- "approvalMode": "sometimes"- }),- )- .await;- let invalid_err = assert_jsonrpc_error(&invalid_approval, "todos_add invalid approvalMode");- let invalid_msg = invalid_err- .get("message")- .and_then(Value::as_str)- .unwrap_or_default();- assert!(- invalid_msg.contains("approval_mode") && invalid_msg.contains("required|not_required"),- "expected approvalMode validation error, got: {invalid_err}"- );-- api_join.abort();- rpc_join.abort();-}-#[tokio::test]async fn json_rpc_memory_sync_and_learn() {let _env_lock = json_rpc_e2e_env_lock();diff --git a/tests/raw_coverage/agent_triage_dispatch_round23_raw_coverage_e2e.rs b/tests/raw_coverage/agent_triage_dispatch_round23_raw_coverage_e2e.rsindex a3340c620d..2d1dc71695 100644--- a/tests/raw_coverage/agent_triage_dispatch_round23_raw_coverage_e2e.rs+++ b/tests/raw_coverage/agent_triage_dispatch_round23_raw_coverage_e2e.rs@@ -1,11 +1,11 @@use openhuman_core::core::bus::init as init_global;use openhuman_core::agent::debug::DumpPromptOptions;-use openhuman_core::agent::task_board::{TaskBoardCard, TaskCardStatus};+use openhuman_core::agent::todos::types::{TaskBoardCard, TaskCardStatus};use openhuman_core::agent::task_dispatcher::{dispatch_card, DispatchOutcome};use openhuman_core::agent::triage::{apply_decision, TriageAction, TriageDecision, TriageResolutionPath, TriageRun, TriggerEnvelope,};-use openhuman_core::threads::todos::ops::{self, BoardLocation, CardPatch};+use openhuman_core::agent::todos::ops::{self, BoardLocation, CardPatch};use serde_json::json;use std::path::Path;use std::sync::Mutex;diff --git a/tests/raw_coverage/inference_agent_raw_coverage_e2e.rs b/tests/raw_coverage/inference_agent_raw_coverage_e2e.rsindex 8ee44e0d38..76edf915c5 100644--- a/tests/raw_coverage/inference_agent_raw_coverage_e2e.rs+++ b/tests/raw_coverage/inference_agent_raw_coverage_e2e.rs@@ -73,10 +73,6 @@ use openhuman_core::agent::stop_hooks::{current_stop_hooks, with_stop_hooks, BudgetStopHook, MaxIterationsStopHook, StopDecision,StopHook, TurnState,};-use openhuman_core::agent::task_board::{- TaskApprovalMode, TaskBoard, TaskBoardCard, TaskBoardStore, TaskCardStatus,-};-use openhuman_core::agent::task_dispatcher::build_task_prompt;use openhuman_core::agent::tool_policy::{AllowAllToolPolicy, GeneratedToolRuntimeContext, GeneratedToolRuntimePolicy,GeneratedToolRuntimePolicyConfig, GeneratedToolRuntimeRisk, RuntimeToolPolicyAction,@@ -167,7 +163,7 @@ use openhuman_core::agent::profiles::{};use openhuman_core::security::SecurityPolicy;use openhuman_core::agent::tinyagents::thread_context::{current_thread_id, with_thread_id};-use openhuman_core::threads::todos::ops::BoardLocation;+use openhuman_core::agent::todos::ops::BoardLocation;use openhuman_core::inference::tokenjuice::AgentTokenjuiceCompression;use openhuman_core::tools::{Tool, ToolResult, ToolSpec};use tinyinference::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};@@ -1558,87 +1554,6 @@ named = ["todo", "plan_exit"]assert_eq!(registry.list().len(), 1);}-#[tokio::test]-async fn agent_task_board_and_dispatcher_public_paths_cover_storage_and_prompt_shapes() {- let workspace = tempdir().expect("workspace");- let store = TaskBoardStore::new(workspace.path().to_path_buf());- assert!(store.get("thread-1").await.expect("missing board").is_none());- assert!(store- .get(" ")- .await- .unwrap_err()- .contains("invalid task board thread_id"));-- let mut board = TaskBoard::empty("thread-1");- assert_eq!(board.thread_id, "thread-1");- board.cards.push(TaskBoardCard {- id: "card-1".into(),- title: "Fallback title".into(),- status: TaskCardStatus::Todo,- objective: Some(" Ship the coverage branch ".into()),- plan: vec!["Inspect gaps".into(), "Add tests".into()],- assigned_agent: Some("planner".into()),- allowed_tools: vec!["memory_recall".into()],- approval_mode: Some(TaskApprovalMode::Required),- acceptance_criteria: vec!["Focused tests pass".into()],- evidence: vec![],- notes: Some("Keep scope narrow".into()),- session_thread_id: None,- blocker: None,- source_metadata: Some(json!({- "provider": "github",- "repo": "tinyhumansai/openhuman",- "external_id": "123",- "url": "https://github.com/tinyhumansai/openhuman/issues/123"- })),- order: 2,- updated_at: "2026-05-29T12:00:00Z".into(),- });-- let saved = store.put(board).await.expect("put board");- assert_eq!(saved.cards[0].status.as_str(), "todo");- assert_eq!(- saved.cards[0]- .approval_mode- .as_ref()- .expect("approval mode")- .as_str(),- "required"- );- let loaded = store- .get("thread-1")- .await- .expect("load board")- .expect("board exists");- assert_eq!(loaded.cards[0].id, "card-1");-- let prompt = build_task_prompt(&loaded.cards[0]);- assert!(prompt.contains("Ship the coverage branch"));- assert!(prompt.contains("1. Inspect gaps"));- assert!(prompt.contains("Acceptance criteria"));- assert!(prompt.contains("github tinyhumansai/openhuman#123"));- assert!(prompt.contains("Source link: https://github.com"));- assert!(prompt.contains("record the outcome on the upstream source"));-- let title_prompt = build_task_prompt(&TaskBoardCard {- objective: Some(" ".into()),- source_metadata: Some(json!({ "external_id": "123" })),- session_thread_id: None,- ..loaded.cards[0].clone()- });- assert!(title_prompt.contains("Fallback title"));- assert!(!title_prompt.contains("This task originates from #123"));-- let replaced = store- .put(TaskBoard {- thread_id: "thread-1".into(),- cards: vec![],- updated_at: String::new(),- })- .await- .expect("replace board");- assert!(replaced.cards.is_empty());-}#[test]fn agent_personality_paths_cover_safe_fallbacks_and_integration_filters() {diff --git a/tests/raw_coverage/owned_domain_raw_coverage_e2e.rs b/tests/raw_coverage/owned_domain_raw_coverage_e2e.rsindex 5559b7ae34..a8e5aee922 100644--- a/tests/raw_coverage/owned_domain_raw_coverage_e2e.rs+++ b/tests/raw_coverage/owned_domain_raw_coverage_e2e.rs@@ -13,9 +13,6 @@ use axum::{Json, Router};use serde_json::{json, Map, Value};use tempfile::tempdir;-use openhuman_core::agent::task_board::{- board_for_thread, TaskApprovalMode, TaskBoard, TaskBoardCard, TaskBoardStore, TaskCardStatus,-};use openhuman_core::integrations::composio::ComposioClient;use openhuman_core::config::{CapabilityProviderConfig, CapabilityProviderTrustState, Config, McpServerConfig,@@ -411,102 +408,6 @@ async fn composio_client_round_trips_backend_paths_and_payload_normalization() {);}-#[tokio::test]-async fn agent_task_board_store_normalizes_persists_and_surfaces_errors() {- let dir = tempdir().expect("tempdir");- let store = TaskBoardStore::new(dir.path().to_path_buf());-- assert_eq!(TaskCardStatus::InProgress.as_str(), "in_progress");- assert_eq!(TaskApprovalMode::NotRequired.as_str(), "not_required");- assert!(store.get(" missing ").await.expect("get missing").is_none());- assert!(store- .get(" ")- .await- .expect_err("blank id")- .contains("thread_id"));-- let saved = store- .put(TaskBoard {- thread_id: " thread-owned ".to_string(),- cards: vec![- TaskBoardCard {- id: " ".to_string(),- title: " Draft owned coverage ".to_string(),- status: TaskCardStatus::Blocked,- objective: Some(" Raise raw coverage ".to_string()),- plan: vec![- " inspect ".to_string(),- " ".to_string(),- " test ".to_string(),- ],- assigned_agent: Some(" agent ".to_string()),- allowed_tools: vec![" cargo ".to_string(), "".to_string()],- approval_mode: Some(TaskApprovalMode::Required),- acceptance_criteria: vec![" tests pass ".to_string()],- evidence: vec![" coverage measured ".to_string()],- notes: Some(" waiting ".to_string()),- session_thread_id: Some(" task-sess-owned ".to_string()),- blocker: None,- source_metadata: None,- order: 99,- updated_at: String::new(),- },- TaskBoardCard {- id: "drop-me".to_string(),- title: " ".to_string(),- status: TaskCardStatus::Todo,- objective: None,- plan: Vec::new(),- assigned_agent: None,- allowed_tools: Vec::new(),- approval_mode: None,- acceptance_criteria: Vec::new(),- evidence: Vec::new(),- notes: None,- session_thread_id: None,- blocker: None,- source_metadata: None,- order: 99,- updated_at: String::new(),- },- ],- updated_at: String::new(),- })- .await- .expect("put task board");-- assert_eq!(saved.thread_id, "thread-owned");- assert_eq!(saved.cards.len(), 1);- assert!(saved.cards[0].id.starts_with("task-"));- assert_eq!(saved.cards[0].title, "Draft owned coverage");- assert_eq!(saved.cards[0].plan, vec!["inspect", "test"]);- assert_eq!(saved.cards[0].blocker.as_deref(), Some("waiting"));- // A padded session_thread_id is trimmed (not dropped) on persist.- assert_eq!(- saved.cards[0].session_thread_id.as_deref(),- Some("task-sess-owned")- );- assert_eq!(saved.cards[0].order, 0);-- let loaded = board_for_thread(dir.path(), " thread-owned ")- .await- .expect("board_for_thread")- .cards;- assert_eq!(loaded[0].approval_mode, Some(TaskApprovalMode::Required));- // …and the normalized value survives a reload from disk.- assert_eq!(- loaded[0].session_thread_id.as_deref(),- Some("task-sess-owned")- );-- assert!(store.delete("thread-owned").await.expect("delete present"));- assert!(!store.delete("thread-owned").await.expect("delete missing"));-- let missing = board_for_thread(dir.path(), "thread-owned")- .await- .expect("missing board");- assert!(missing.cards.is_empty());-}#[test]fn tool_registry_public_apis_cover_entries_diagnostics_and_provider_policy() {diff --git a/tests/raw_coverage/todos_lifecycle_e2e.rs b/tests/raw_coverage/todos_lifecycle_e2e.rsdeleted file mode 100644index 345b3bb664..0000000000--- a/tests/raw_coverage/todos_lifecycle_e2e.rs+++ /dev/null@@ -1,1052 +0,0 @@-//! JSON-RPC E2E coverage for the `openhuman.todos_*` board lifecycle.-//!-//! Run:-//! `cargo test --test raw_coverage_all --features "$(bash scripts/ci/product-features.sh)" todos_`-//!-//! Everything here is hermetic: the todo board is a workspace-local store, so a-//! temp `HOME` + `OPENHUMAN_WORKSPACE` is the whole fixture. No network.-//!-//! ## Why the `test` namespace is NOT covered here-//!-//! The wave brief flagged the single-method `test` namespace as possibly-//! deliberately untestable. It is, and more decisively than "nobody got round-//! to it": the whole `test_support` module — its one `test`-namespaced reset-//! method plus the five read-only `test_support_*` introspection methods — is-//! registered behind `#[cfg(feature = "e2e-test-support")]` at-//! `crates/openhuman-core/src/core/all.rs:875`. That gate is in neither `[features] default` nor-//! `scripts/ci/product-features.txt`; only `app/scripts/e2e-build.sh` turns it-//! on. Dispatching the reset under the product feature string this wave-//! mandates returns `unknown method`, which is the core's uniform "suppressed"-//! answer (see `docs/openhuman-core.md` — absence, not failure).-//!-//! So no `tests/**/*_e2e.rs` target can reach it without a bespoke feature-//! string, which would thrash the shared target dir for every worker. The-//! honest reading is 0%, and it is left at 0% deliberately. Note also that the-//! coverage gate's own denominator counts it: the namespace is discovered from-//! a `ControllerSchema` literal, and schema literals are not `#[cfg]`-gated-//! even though their registration is — so the gate asks for coverage of a-//! method that does not exist in the build it measures.--use std::net::SocketAddr;-use std::path::Path;-use std::sync::{Mutex, OnceLock};-use std::time::Duration;--use axum::http::header::AUTHORIZATION;-use serde_json::{json, Value};-use tempfile::{tempdir, TempDir};--use openhuman_core::core::auth::{init_rpc_token, CORE_TOKEN_ENV_VAR};-use openhuman_core::core::jsonrpc::build_core_http_router;--/// The bearer this suite *proposes*. It is only used if this suite happens to-/// be the first in the aggregated binary to initialise the token subsystem —-/// see `rpc_token()` below, which is what actually gets sent.-const PROPOSED_RPC_TOKEN: &str = "todos-lifecycle-e2e-token";--static AUTH_INIT: OnceLock<()> = OnceLock::new();--/// The crate-wide env lock, not a private one.-///-/// Every suite under `tests/raw_coverage/` compiles into the single-/// `raw_coverage_all` binary, so libtest runs them concurrently in one process-/// and a lock local to this file would isolate nothing — it would pass alone-/// and race another suite under load.-static ENV_LOCK: &OnceLock<Mutex<()>> = &crate::SHARED_ENV_LOCK;--// ── Env plumbing ────────────────────────────────────────────────────────────--struct EnvVarGuard {- key: &'static str,- old: Option<String>,-}--impl EnvVarGuard {- fn set_to_path(key: &'static str, path: &Path) -> Self {- let old = std::env::var(key).ok();- std::env::set_var(key, path.as_os_str());- Self { key, old }- }-- fn set(key: &'static str, value: &str) -> Self {- let old = std::env::var(key).ok();- std::env::set_var(key, value);- Self { key, old }- }-- fn unset(key: &'static str) -> Self {- let old = std::env::var(key).ok();- std::env::remove_var(key);- Self { key, old }- }-}--impl Drop for EnvVarGuard {- fn drop(&mut self) {- match &self.old {- Some(value) => std::env::set_var(self.key, value),- None => std::env::remove_var(self.key),- }- }-}--/// Serializes every env mutation across the whole aggregated binary: `HOME` /-/// `OPENHUMAN_WORKSPACE` are process-global, so two cases running at once would-/// read one another's workspace. Poison is recovered so a panicking case cannot-/// wedge the other seventy-odd suites.-fn env_lock() -> std::sync::MutexGuard<'static, ()> {- ENV_LOCK- .get_or_init(|| Mutex::new(()))- .lock()- .unwrap_or_else(|poisoned| poisoned.into_inner())-}--/// The bearer the running process will actually validate.-///-/// `core::auth::RPC_TOKEN` is a process-global `OnceLock` and `init_rpc_token`-/// returns early once it is set. Every `tests/raw_coverage/` suite now shares-/// one process, so the FIRST suite to initialise pins the token for all of-/// them; a suite that sent its own hard-coded literal would get 401 whenever it-/// lost that race, in an order that depends on libtest scheduling and load.-///-/// So: propose a token, initialise, then ask what the process settled on and-/// send that. Correct whether this suite wins the race or loses it.-fn rpc_token() -> &'static str {- AUTH_INIT.get_or_init(|| {- if std::env::var(CORE_TOKEN_ENV_VAR)- .map(|v| v.trim().is_empty())- .unwrap_or(true)- {- std::env::set_var(CORE_TOKEN_ENV_VAR, PROPOSED_RPC_TOKEN);- }- let token_dir = std::env::temp_dir().join("openhuman-todos-lifecycle-e2e-auth");- std::fs::create_dir_all(&token_dir).expect("token dir");- init_rpc_token(&token_dir).expect("init rpc auth token");- });- openhuman_core::core::auth::get_rpc_token()- .expect("the token subsystem is initialised by the line above")-}--// ── Harness ─────────────────────────────────────────────────────────────────--const MIN_CONFIG: &str = r#"api_url = "http://127.0.0.1:9"-default_model = "todos-e2e-model"--[secrets]-encrypt = false--[local_ai]-enabled = false--[memory]-provider = "none"-embedding_provider = "none"-embedding_model = "none"-embedding_dimensions = 0--[memory_tree]-embedding_strict = false-"#;--struct Harness {- _tmp: TempDir,- _guards: Vec<EnvVarGuard>,- rpc_base: String,- join: tokio::task::JoinHandle<Result<(), std::io::Error>>,-}--async fn setup(extra: Vec<EnvVarGuard>) -> Harness {- let _ = rpc_token();-- let tmp = tempdir().expect("tempdir");- let home = tmp.path();- let openhuman_home = home.join(".openhuman");- std::fs::create_dir_all(&openhuman_home).expect("create .openhuman");- std::fs::write(openhuman_home.join("config.toml"), MIN_CONFIG).expect("write config.toml");- // Parsed here so a schema drift fails as a config error rather than as a- // baffling handler error three calls later.- let _: openhuman_core::config::Config =- toml::from_str(MIN_CONFIG).expect("test config must match the config schema");-- let workspace = home.join("workspace");- std::fs::create_dir_all(&workspace).expect("create workspace");-- let mut guards = vec![- EnvVarGuard::set_to_path("HOME", home),- EnvVarGuard::set_to_path("OPENHUMAN_WORKSPACE", &workspace),- EnvVarGuard::unset("BACKEND_URL"),- EnvVarGuard::unset("VITE_BACKEND_URL"),- EnvVarGuard::unset("OPENHUMAN_API_URL"),- EnvVarGuard::set("OPENHUMAN_KEYRING_BACKEND", "file"),- ];- guards.extend(extra);-- let listener = tokio::net::TcpListener::bind("127.0.0.1:0")- .await- .expect("bind rpc listener");- let addr: SocketAddr = listener.local_addr().expect("rpc listener addr");- let router = build_core_http_router(false);- let join = tokio::spawn(async move { axum::serve(listener, router).await });-- Harness {- _tmp: tmp,- _guards: guards,- rpc_base: format!("http://{addr}"),- join,- }-}--async fn rpc(base: &str, id: i64, method: &str, params: Value) -> Value {- let client = reqwest::Client::builder()- .timeout(Duration::from_secs(60))- .build()- .expect("build client");- let url = format!("{}/rpc", base.trim_end_matches('/'));- let response = client- .post(&url)- .header(AUTHORIZATION, format!("Bearer {}", rpc_token()))- .json(&json!({ "jsonrpc": "2.0", "id": id, "method": method, "params": params }))- .send()- .await- .unwrap_or_else(|err| panic!("POST {url} {method}: {err}"));- assert!(- response.status().is_success(),- "HTTP {} for {method}",- response.status()- );- response- .json::<Value>()- .await- .unwrap_or_else(|err| panic!("json for {method}: {err}"))-}--/// The `/schema` controller catalog, as the frontend and the CLI/RPC-/// smoke-test generator consume it.-async fn schema_catalog(base: &str) -> Value {- let url = format!("{}/schema", base.trim_end_matches('/'));- reqwest::get(&url)- .await- .unwrap_or_else(|err| panic!("GET {url}: {err}"))- .json::<Value>()- .await- .unwrap_or_else(|err| panic!("schema json: {err}"))-}--/// One method's declared entry from the catalog.-fn catalog_entry<'a>(catalog: &'a Value, method: &str) -> &'a Value {- catalog- .get("methods")- .and_then(Value::as_array)- .unwrap_or_else(|| panic!("catalog has no methods array: {catalog}"))- .iter()- .find(|m| m.get("method").and_then(Value::as_str) == Some(method))- .unwrap_or_else(|| panic!("catalog does not advertise {method}"))-}--fn ok<'a>(value: &'a Value, context: &str) -> &'a Value {- if let Some(error) = value.get("error") {- panic!("{context}: unexpected JSON-RPC error: {error}");- }- value- .get("result")- .unwrap_or_else(|| panic!("{context}: missing result: {value}"))-}--fn error_message<'a>(value: &'a Value, context: &str) -> &'a str {- value- .get("error")- .unwrap_or_else(|| panic!("{context}: expected a JSON-RPC error, got: {value}"))- .get("message")- .and_then(Value::as_str)- .unwrap_or_else(|| panic!("{context}: error carries no message: {value}"))-}--/// The todos handlers return the snapshot unwrapped (see `snapshot_output` —-/// the catalog names the payload, the handler returns it flat), so cards live-/// at the top level of `result`.-fn cards<'a>(result: &'a Value, context: &str) -> &'a Vec<Value> {- result- .get("cards")- .and_then(Value::as_array)- .unwrap_or_else(|| panic!("{context}: snapshot carries no `cards` array: {result}"))-}--/// Card titles, in board order.-///-/// The wire field is `title` — note that the `todos_add` / `todos_edit` *input*-/// params spell the same thing `content`, and `todos_replace`'s input spells it-/// `title` again. See `~/tinyhuman/bugs/e2e-wave-todos-replace-undocumented-card-shape.md`.-fn card_titles(result: &Value, context: &str) -> Vec<String> {- cards(result, context)- .iter()- .map(|card| {- card.get("title")- .and_then(Value::as_str)- .unwrap_or_else(|| panic!("{context}: card without `title`: {card}"))- .to_string()- })- .collect()-}--// ── Cases ───────────────────────────────────────────────────────────────────--/// `replace` → `list` → `set_session_thread` → `clear`: the write half of the-/// board that had no e2e coverage at all.-///-/// Asserts on content, not on `Ok`: the exact card titles after a wholesale-/// replace, the session link landing on the right card, and `clear` actually-/// emptying the list rather than returning a stale snapshot.-#[tokio::test]-async fn todos_replace_set_session_thread_and_clear_round_trip() {- let _lock = env_lock();- let harness = setup(Vec::new()).await;- let thread = "todos-e2e-thread-a";-- // A wholesale replace on an empty board is the create path.- let replaced = rpc(- &harness.rpc_base,- 1,- "openhuman.todos_replace",- json!({- "thread_id": thread,- // `id`, `title` and `status` must all be PRESENT — none of the- // three carries `#[serde(default)]`. The schema's "id may be empty- // — server generates" means the string may be empty, not the key- // may be absent, and the schema names no field at all.- "cards": [- { "id": "", "title": "draft the migration", "status": "todo" },- { "id": "", "title": "review the migration", "status": "in_progress" }- ]- }),- )- .await;- let replaced = ok(&replaced, "todos_replace");- assert_eq!(- card_titles(replaced, "todos_replace"),- vec![- "draft the migration".to_string(),- "review the migration".to_string()- ],- "replace must persist exactly the cards it was given, in order"- );- assert!(- replaced- .get("markdown")- .and_then(Value::as_str)- .is_some_and(|md| md.contains("draft the migration")),- "the snapshot's markdown rendering must include the card titles: {replaced}"- );-- // The server mints ids for the blank ones; `list` must read back the same- // board from disk rather than an in-memory echo of the request.- let listed = rpc(- &harness.rpc_base,- 2,- "openhuman.todos_list",- json!({ "thread_id": thread }),- )- .await;- let listed = ok(&listed, "todos_list");- assert_eq!(- card_titles(listed, "todos_list"),- card_titles(replaced, "todos_replace"),- "list must return the board replace just wrote"- );- let first_id = cards(listed, "todos_list")[0]- .get("id")- .and_then(Value::as_str)- .expect("server-minted card id")- .to_string();- assert!(!first_id.is_empty(), "server must mint a non-empty card id");-- // Link the card to an agent session's thread, then clear the link.- let linked = rpc(- &harness.rpc_base,- 3,- "openhuman.todos_set_session_thread",- json!({ "thread_id": thread, "id": first_id, "sessionThreadId": "agent-session-77" }),- )- .await;- let linked = ok(&linked, "todos_set_session_thread");- let linked_card = cards(linked, "todos_set_session_thread")- .iter()- .find(|card| card.get("id").and_then(Value::as_str) == Some(first_id.as_str()))- .expect("the linked card survives the write");- assert_eq!(- linked_card- .get("sessionThreadId")- .or_else(|| linked_card.get("session_thread_id"))- .and_then(Value::as_str),- Some("agent-session-77"),- "set_session_thread must stamp the session link onto the named card: {linked_card}"- );-- let unlinked = rpc(- &harness.rpc_base,- 4,- "openhuman.todos_set_session_thread",- json!({ "thread_id": thread, "id": first_id }),- )- .await;- let unlinked = ok(&unlinked, "todos_set_session_thread clear");- let unlinked_card = cards(unlinked, "todos_set_session_thread clear")- .iter()- .find(|card| card.get("id").and_then(Value::as_str) == Some(first_id.as_str()))- .expect("the card survives the clear");- assert!(- unlinked_card- .get("sessionThreadId")- .or_else(|| unlinked_card.get("session_thread_id"))- .and_then(Value::as_str)- .is_none(),- "an omitted sessionThreadId must clear the link, not leave it: {unlinked_card}"- );-- // Clear empties the board, and the emptiness survives a re-read.- let cleared = rpc(- &harness.rpc_base,- 5,- "openhuman.todos_clear",- json!({ "thread_id": thread }),- )- .await;- let cleared = ok(&cleared, "todos_clear");- assert!(- cards(cleared, "todos_clear").is_empty(),- "clear must return an empty board: {cleared}"- );-- let after_clear = rpc(- &harness.rpc_base,- 6,- "openhuman.todos_list",- json!({ "thread_id": thread }),- )- .await;- assert!(- cards(- ok(&after_clear, "todos_list after clear"),- "todos_list after clear"- )- .is_empty(),- "the cleared board must still be empty when re-read from disk"- );-- harness.join.abort();-}--/// `decide_plan` on a card awaiting approval, plus the two failure paths the-/// board's write handlers share: a blank `thread_id` and an unknown card id.-#[tokio::test]-async fn todos_decide_plan_approves_and_rejects_and_refuses_bad_input() {- let _lock = env_lock();- let harness = setup(Vec::new()).await;- let thread = "todos-e2e-thread-b";-- let seeded = rpc(- &harness.rpc_base,- 10,- "openhuman.todos_replace",- json!({- "thread_id": thread,- "cards": [- { "id": "", "title": "ship the thing", "status": "awaiting_approval" },- { "id": "", "title": "ship the other thing", "status": "awaiting_approval" }- ]- }),- )- .await;- let seeded = ok(&seeded, "seed for decide_plan");- let seeded_cards = cards(seeded, "seed for decide_plan");- assert_eq!(seeded_cards.len(), 2, "two cards seeded: {seeded}");- let approve_id = seeded_cards[0]["id"].as_str().expect("card id").to_string();- let reject_id = seeded_cards[1]["id"].as_str().expect("card id").to_string();-- let approved = rpc(- &harness.rpc_base,- 11,- "openhuman.todos_decide_plan",- json!({ "thread_id": thread, "id": approve_id, "approve": true }),- )- .await;- let approved = ok(&approved, "todos_decide_plan approve");- let approved_status = cards(approved, "todos_decide_plan approve")- .iter()- .find(|card| card["id"].as_str() == Some(approve_id.as_str()))- .and_then(|card| card.get("status"))- .and_then(Value::as_str)- .expect("approved card keeps a status")- .to_string();- assert_ne!(- approved_status, "awaiting_approval",- "approving must move the card off awaiting_approval, got {approved_status}"- );- assert_ne!(- approved_status, "rejected",- "approving must not reject the card"- );-- let rejected = rpc(- &harness.rpc_base,- 12,- "openhuman.todos_decide_plan",- json!({ "thread_id": thread, "id": reject_id, "approve": false }),- )- .await;- let rejected = ok(&rejected, "todos_decide_plan reject");- assert_eq!(- cards(rejected, "todos_decide_plan reject")- .iter()- .find(|card| card["id"].as_str() == Some(reject_id.as_str()))- .and_then(|card| card.get("status"))- .and_then(Value::as_str),- Some("rejected"),- "rejecting must set the card's status to rejected: {rejected}"- );-- // Failure path 1: a blank thread_id is refused before any store is opened.- let blank_thread = rpc(- &harness.rpc_base,- 13,- "openhuman.todos_decide_plan",- json!({ "thread_id": " ", "id": approve_id, "approve": true }),- )- .await;- assert!(- error_message(&blank_thread, "todos_decide_plan blank thread")- .contains("thread_id must not be empty"),- "a blank thread_id must be named in the error, got: {blank_thread}"- );-- // Failure path 2: an unknown card id must error rather than silently- // returning an unchanged board — a no-op success here would let the UI- // report a decision that never landed.- let unknown_card = rpc(- &harness.rpc_base,- 14,- "openhuman.todos_decide_plan",- json!({ "thread_id": thread, "id": "no-such-card-id", "approve": true }),- )- .await;- assert!(- unknown_card.get("error").is_some(),- "deciding an unknown card must be an error, not a silent no-op: {unknown_card}"- );-- harness.join.abort();-}--/// The run-record surface: `run_list`, `run_get`, and `reclaim_stale` on a-/// thread with no runs — the empty-state contract every caller hits first.-#[tokio::test]-async fn todos_run_records_and_reclaim_report_an_honest_empty_state() {- let _lock = env_lock();- let harness = setup(Vec::new()).await;- let thread = "todos-e2e-thread-c";-- let runs = rpc(- &harness.rpc_base,- 20,- "openhuman.todos_run_list",- json!({ "thread_id": thread }),- )- .await;- let runs = ok(&runs, "todos_run_list");- assert_eq!(- runs.as_array().map(Vec::len),- Some(0),- "a thread with no runs must list an empty array, not null or an object: {runs}"- );-- // Same, filtered by a card that has never run.- let filtered = rpc(- &harness.rpc_base,- 21,- "openhuman.todos_run_list",- json!({ "thread_id": thread, "cardId": "card-that-never-ran" }),- )- .await;- assert_eq!(- ok(&filtered, "todos_run_list filtered")- .as_array()- .map(Vec::len),- Some(0),- "filtering by an unknown card id must return an empty list: {filtered}"- );-- // `run_get` for an unknown run is a documented `null`, not an error — the- // Tasks board polls this and a thrown error would surface as a red toast.- let missing = rpc(- &harness.rpc_base,- 22,- "openhuman.todos_run_get",- json!({ "thread_id": thread, "runId": "no-such-run" }),- )- .await;- assert_eq!(- ok(&missing, "todos_run_get missing"),- &Value::Null,- "run_get for an unknown run id must be null: {missing}"- );-- // `reclaim_stale` with nothing to reclaim must still report the counters,- // so a caller can tell "scanned, found none" from "did not scan".- let reclaimed = rpc(- &harness.rpc_base,- 23,- "openhuman.todos_reclaim_stale",- json!({ "thread_id": thread, "heartbeatStaleSecs": 1, "claimTtlSecs": 1, "maxReclaimCount": 1 }),- )- .await;- let reclaimed = ok(&reclaimed, "todos_reclaim_stale");- assert_eq!(- reclaimed.get("reclaimedCount").and_then(Value::as_u64),- Some(0),- "nothing to reclaim must be reported as 0, not omitted: {reclaimed}"- );- assert_eq!(- reclaimed.get("blockedCount").and_then(Value::as_u64),- Some(0),- "nothing blocked must be reported as 0: {reclaimed}"- );- assert_eq!(- reclaimed- .get("details")- .and_then(Value::as_array)- .map(Vec::len),- Some(0),- "an empty reclaim must carry an empty details array: {reclaimed}"- );-- // The run surface refuses a blank thread just like the card surface does.- let blank = rpc(- &harness.rpc_base,- 24,- "openhuman.todos_run_list",- json!({ "thread_id": "" }),- )- .await;- assert!(- error_message(&blank, "todos_run_list blank thread")- .contains("thread_id must not be empty"),- "run_list must refuse a blank thread_id: {blank}"- );-- harness.join.abort();-}--/// `todos_replace` refuses a card missing any of the mandatory trio.-///-/// These three refusals are the *handler's* behaviour and are unchanged by-/// #6087, which corrected the schema rather than the handler. What changed is-/// that they are now **documented**: the catalog spells `id`, `title` and-/// `status` as required (see `replace_cards_input`), so a caller can no longer-/// walk into them by reading the schema. They are pinned here because the-/// refusals themselves are the contract — `TaskBoardCard`'s `id`, `title` and-/// `status` carry no `#[serde(default)]`, so every one of them must be-/// **present**. Two consequences, both pinned below:-///-/// 1. The obvious spelling — `content`, which is what the sibling `todos_add`-/// and `todos_edit` inputs call the very same text — is rejected outright.-/// 2. "id may be empty" is about the string, not the key: omitting `status`-/// fails even with a well-formed title.-///-/// The assertions are written against what the code *does*. The companion-/// case `todos_replace_accepts_a_card_built_only_from_its_declared_schema`-/// proves the other half: that the catalog now carries enough to build a card-/// that these refusals let through.-#[tokio::test]-async fn todos_replace_rejects_the_card_shape_its_own_schema_implies() {- let _lock = env_lock();- let harness = setup(Vec::new()).await;- let thread = "todos-e2e-thread-shape";-- // `content` — the name every other todos input uses for this field.- let with_content = rpc(- &harness.rpc_base,- 40,- "openhuman.todos_replace",- json!({- "thread_id": thread,- "cards": [{ "id": "", "content": "spelled the sibling way", "status": "todo" }]- }),- )- .await;- let message = error_message(&with_content, "todos_replace with `content`");- assert!(- message.contains("missing field") && message.contains("title"),- "the `content` spelling must fail naming `title`, got: {message}"- );-- // A well-formed title, but no status.- let no_status = rpc(- &harness.rpc_base,- 41,- "openhuman.todos_replace",- json!({ "thread_id": thread, "cards": [{ "id": "", "title": "no status here" }] }),- )- .await;- let message = error_message(&no_status, "todos_replace without `status`");- assert!(- message.contains("missing field") && message.contains("status"),- "an absent `status` must be rejected, got: {message}"- );-- // And a well-formed title with no `id` key at all — "id may be empty" does- // not extend to omitting it.- let no_id = rpc(- &harness.rpc_base,- 42,- "openhuman.todos_replace",- json!({ "thread_id": thread, "cards": [{ "title": "no id key", "status": "todo" }] }),- )- .await;- let message = error_message(&no_id, "todos_replace without `id`");- assert!(- message.contains("missing field") && message.contains("id"),- "an absent `id` key must be rejected even though an empty `id` is fine, got: {message}"- );-- // Nothing partial was written on the way through the three refusals.- let listed = rpc(- &harness.rpc_base,- 43,- "openhuman.todos_list",- json!({ "thread_id": thread }),- )- .await;- assert!(- cards(- ok(&listed, "board after refused replaces"),- "board after refused replaces"- )- .is_empty(),- "a rejected replace must leave the board untouched: {listed}"- );-- harness.join.abort();-}--/// A card built **only** from what the catalog declares is accepted (#6087).-///-/// This is the regression test for the schema defect, and it is deliberately-/// written so that it cannot pass by accident. Rather than hard-coding a card-/// that happens to work, it *reads the declared schema* and constructs the card-/// from it: every field the catalog marks `required` is populated, and the-/// `status` value is taken from the declared enum's own variant list. If the-/// declaration goes back to a bare `TypeSchema::Json`, or names a field the-/// handler does not deserialize, or spells `title` as `content`, or offers a-/// `status` variant `TaskCardStatus` will not parse, this fails — because the-/// card it builds is only ever as correct as the schema it read.-#[tokio::test]-async fn todos_replace_accepts_a_card_built_only_from_its_declared_schema() {- let _lock = env_lock();- let harness = setup(Vec::new()).await;- let thread = "todos-e2e-thread-from-schema";-- let catalog = schema_catalog(&harness.rpc_base).await;- let entry = catalog_entry(&catalog, "openhuman.todos_replace");-- let cards_input = entry- .get("inputs")- .and_then(Value::as_array)- .unwrap_or_else(|| panic!("todos_replace declares no inputs: {entry}"))- .iter()- .find(|i| i.get("name").and_then(Value::as_str) == Some("cards"))- .unwrap_or_else(|| panic!("todos_replace declares no `cards` input: {entry}"));-- // The declaration must describe an array of objects, not an opaque blob.- // `TypeSchema::Json` serialises as the bare string "Json", which is exactly- // what this controller used to publish and what made it unconstructible.- let card_fields = cards_input- .get("ty")- .and_then(|t| t.get("Array"))- .and_then(|a| a.get("Object"))- .and_then(|o| o.get("fields"))- .and_then(Value::as_array)- .unwrap_or_else(|| {- panic!(- "`cards` must declare an array of objects with named fields; \- an opaque type cannot be built from. Got ty = {}",- cards_input.get("ty").unwrap_or(&Value::Null)- )- });-- // Build a card from the declaration alone.- let mut card = serde_json::Map::new();- let mut required_seen: Vec<String> = Vec::new();- for field in card_fields {- if field.get("required").and_then(Value::as_bool) != Some(true) {- continue;- }- let name = field- .get("name")- .and_then(Value::as_str)- .unwrap_or_else(|| panic!("declared field without a name: {field}"))- .to_string();- let ty = field.get("ty").unwrap_or(&Value::Null);- let value = if let Some(variants) = ty.get("Enum").and_then(|e| e.get("variants")) {- // Take the enum's own first variant — if the schema advertises a- // value the wire type cannot parse, the dispatch below fails.- variants- .as_array()- .and_then(|v| v.first())- .cloned()- .unwrap_or_else(|| panic!("declared enum with no variants: {field}"))- } else if name == "id" {- // The one documented special case: the key is required, the string- // may be empty, and the server then generates the id.- Value::String(String::new())- } else {- Value::String(format!("built from the schema: {name}"))- };- required_seen.push(name.clone());- card.insert(name, value);- }-- // EXACTLY the trio, not merely "includes" it. `TaskBoardCard` has exactly- // three fields without a serde default; if a fourth is ever marked required- // in the catalog, a caller obeying the schema would send a key the handler- // does not need, and the loop above would happily paper over it.- let mut sorted = required_seen.clone();- sorted.sort();- assert_eq!(- sorted,- vec!["id".to_string(), "status".to_string(), "title".to_string()],- "the catalog must mark exactly `id`, `title` and `status` required — \- those are the only three `TaskBoardCard` fields with no serde default"- );-- // The six `#[serde(default)]` fields must NOT be declared `Option(...)`.- //- // This is asserted against the *declaration*, not against a dispatch,- // because a dispatch cannot see it: `core::all::check_type` short-circuits- // on `Value::Null` for every declared type, so `null` reaches the handler- // either way and is rejected by serde either way. The declaration is- // therefore documentation-only at runtime — and documentation-only is- // exactly the thing that rots unnoticed, so it gets a direct assertion.- for name in [- "plan",- "allowedTools",- "acceptanceCriteria",- "evidence",- "order",- "updatedAt",- ] {- let field = card_fields- .iter()- .find(|f| f.get("name").and_then(Value::as_str) == Some(name))- .unwrap_or_else(|| panic!("the card must declare `{name}`"));- assert!(- field.get("ty").and_then(|t| t.get("Option")).is_none(),- "`{name}` is `#[serde(default)]` on a non-Option field upstream, so an \- explicit null fails to deserialize. Declaring it `Option(...)` advertises \- null as valid and puts the catalog back to describing a call the handler \- rejects. Declared ty was: {}",- field.get("ty").unwrap_or(&Value::Null)- );- assert_eq!(- field.get("required").and_then(Value::as_bool),- Some(false),- "`{name}` has a serde default, so it must be optional-by-omission"- );- }-- // Every *optional* enum field must advertise exactly the variants its wire- // type parses, and each must round-trip. The generated card above only- // populates required fields, so without this an optional enum declared as a- // free `Option(String)` — which `approvalMode` was — would let a- // catalog-valid value like "sometimes" through the schema and straight into- // an `invalid params` from the handler.- for (name, expected) in [("approvalMode", ["not_required", "required"].as_slice())] {- let field = card_fields- .iter()- .find(|f| f.get("name").and_then(Value::as_str) == Some(name))- .unwrap_or_else(|| panic!("the card must declare `{name}`"));- let variants = field- .get("ty")- .and_then(|t| t.get("Option"))- .and_then(|inner| inner.get("Enum"))- .and_then(|e| e.get("variants"))- .and_then(Value::as_array)- .unwrap_or_else(|| {- panic!(- "`{name}` is backed by a closed enum upstream, so the catalog \- must declare its variants rather than a free string. \- Declared ty was: {}",- field.get("ty").unwrap_or(&Value::Null)- )- })- .clone();-- // Probing only what is listed would let a *removed* variant through:- // drop `not_required` and the surviving `required` probe still passes.- // The complete set is the thing being pinned, so assert it before- // probing. `expected` rides on the loop's own list so a second field- // brings its own set rather than widening a shared literal.- let mut declared = variants- .iter()- .map(|v| {- v.as_str()- .unwrap_or_else(|| panic!("`{name}`'s declared variants must be strings"))- })- .collect::<Vec<_>>();- declared.sort_unstable();- assert_eq!(- declared, expected,- "`{name}` must declare exactly the variants its wire type parses"- );-- for (i, variant) in variants.iter().enumerate() {- let mut probe = card.clone();- probe.insert("id".to_string(), Value::String(format!("enum-{name}-{i}")));- probe.insert(name.to_string(), variant.clone());- let response = rpc(- &harness.rpc_base,- 90 + i as i64,- "openhuman.todos_replace",- json!({ "thread_id": thread, "cards": [Value::Object(probe)] }),- )- .await;- ok(- &response,- &format!("todos_replace with the declared `{name}` variant {variant}"),- );- }- }-- // Every advertised status variant must actually parse. Taking only the- // first would let a misspelled later variant (`in-progress` for- // `in_progress`, say) sit in the catalog undetected.- let status_variants: Vec<String> = card_fields- .iter()- .find(|f| f.get("name").and_then(Value::as_str) == Some("status"))- .and_then(|f| f.get("ty"))- .and_then(|t| t.get("Enum"))- .and_then(|e| e.get("variants"))- .and_then(Value::as_array)- .unwrap_or_else(|| panic!("`status` must declare an enum of variants"))- .iter()- .filter_map(|v| v.as_str().map(str::to_string))- .collect();- assert!(- status_variants.len() >= 2,- "a lifecycle enum with fewer than two variants is a declaration bug: {status_variants:?}"- );- for (i, variant) in status_variants.iter().enumerate() {- let mut probe = card.clone();- probe.insert("status".to_string(), Value::String(variant.clone()));- probe.insert("id".to_string(), Value::String(format!("probe-{i}")));- let response = rpc(- &harness.rpc_base,- 70 + i as i64,- "openhuman.todos_replace",- json!({ "thread_id": thread, "cards": [Value::Object(probe)] }),- )- .await;- ok(- &response,- &format!("todos_replace with the declared status variant {variant:?}"),- );- }-- let replaced = rpc(- &harness.rpc_base,- 60,- "openhuman.todos_replace",- json!({ "thread_id": thread, "cards": [Value::Object(card)] }),- )- .await;- let result = ok(- &replaced,- "todos_replace with a card built from its own schema",- );-- // It was accepted AND stored — a schema that merely deserializes but drops- // the card would be no better than the old one.- let titles = card_titles(result, "replace built from schema");- assert_eq!(- titles,- vec!["built from the schema: title".to_string()],- "the card built from the declared schema must land on the board: {result:?}"- );-- // The server generated an id for the empty one, as the comment promises.- let stored = cards(result, "replace built from schema");- let id = stored[0]- .get("id")- .and_then(Value::as_str)- .unwrap_or_else(|| panic!("stored card carries no id: {stored:?}"));- assert!(- !id.is_empty(),- "an empty `id` must be server-generated, got an empty string back"- );-- harness.join.abort();-}--/// A `#[serde(default)]` collection may be **omitted**, but not sent as `null`-/// — and the catalog now says so (#6087).-///-/// `TaskBoardCard`'s `plan`, `allowedTools`, `acceptanceCriteria` and-/// `evidence` are `Vec<String>`; `order` is `u32`; `updatedAt` is `String`.-/// None is an `Option`, so `#[serde(default)]` covers an *absent* key and an-/// explicit `null` fails with `invalid type: null`.-///-/// The first draft of this schema declared all six as `Option(...)`, which-/// advertised `null` as valid and would have put the catalog straight back to-/// describing a call the handler rejects — the exact defect #6087 removes.-/// They are declared with their real types and `required: false` instead, and-/// this pins both halves of that contract.-#[tokio::test]-async fn todos_replace_defaulted_card_fields_may_be_omitted_but_not_null() {- let _lock = env_lock();- let harness = setup(Vec::new()).await;- let thread = "todos-e2e-thread-defaults";-- // Omitting every defaulted field is accepted — that is what the serde- // defaults are for, and what `required: false` advertises.- let omitted = rpc(- &harness.rpc_base,- 80,- "openhuman.todos_replace",- json!({- "thread_id": thread,- "cards": [{ "id": "", "title": "only the required trio", "status": "todo" }]- }),- )- .await;- let result = ok(&omitted, "todos_replace omitting every defaulted field");- assert_eq!(- card_titles(result, "omitted defaults"),- vec!["only the required trio".to_string()],- "a card carrying only the required trio must be accepted: {result:?}"- );-- // An explicit null for a defaulted collection is refused. If the catalog- // ever goes back to declaring these `Option(...)`, it will be promising a- // shape this assertion proves the handler does not accept.- for field in ["plan", "allowedTools", "acceptanceCriteria", "evidence"] {- let mut card = serde_json::Map::new();- card.insert("id".into(), json!(""));- card.insert("title".into(), json!("null probe"));- card.insert("status".into(), json!("todo"));- card.insert(field.to_string(), Value::Null);-- let response = rpc(- &harness.rpc_base,- 81,- "openhuman.todos_replace",- json!({ "thread_id": thread, "cards": [Value::Object(card)] }),- )- .await;- let message = error_message(&response, &format!("todos_replace with {field}: null"));- assert!(- message.contains("invalid type: null") || message.contains(field),- "an explicit null for the defaulted `{field}` must be refused, so the \- catalog must not advertise it as nullable; got: {message}"- );- }-- harness.join.abort();-}diff --git a/tests/worker_c_modules_e2e.rs b/tests/worker_c_modules_e2e.rsindex 8ddff4f8b5..b00028e043 100644--- a/tests/worker_c_modules_e2e.rs+++ b/tests/worker_c_modules_e2e.rs@@ -789,42 +789,6 @@ async fn threads_remaining_controller_paths_round_trip() {.and_then(Value::as_bool),Some(false));-- let board_put = rpc(- &harness.rpc_base,- 87,- "openhuman.threads_task_board_put",- json!({- "thread_id": created_thread_id,- "cards": [{- "id": "card-1",- "title": "Verify remaining controller paths",- "status": "todo",- "order": 1- }]- }),- )- .await;- assert_eq!(- payload(&board_put, "threads_task_board_put")- .pointer("/taskBoard/cards/0/id")- .and_then(Value::as_str),- Some("card-1")- );-- let board_get = rpc(- &harness.rpc_base,- 88,- "openhuman.threads_task_board_get",- json!({ "thread_id": created_thread_id }),- )- .await;- assert_eq!(- payload(&board_get, "threads_task_board_get")- .pointer("/taskBoard/cards/0/title")- .and_then(Value::as_str),- Some("Verify remaining controller paths")- );}#[tokio::test]