Orkas is an open-source (MIT), local-first AI team for your desktop: a Commander turns your goal into to-dos and coordinates 16 built-in specialist agents plus Claude Code, Codex, OpenCode, OpenClaw and Hermes, with projects, scheduled automations and connectors. Free app for macOS & Windows; built-in models or your own keys.
JavaScript agent-collaborationagent-harnessagent-orchestrationagent-teamagent-workflowai-assistantai-automationai-employeeai-productivityai-teamai-workflowautonomous-agentsclaude-code-guiclaude-coworkdesktop-agentlocal-firstmulti-agentmulti-agent-systemself-evolving-agentstask-automation
fix(todos): give long editor content room to grow
BlueSkyID666cd90521b8ccd
diff --git a/src/renderer/index.html b/src/renderer/index.htmlindex d8ecb26d..1d1ea41e 100644--- a/src/renderer/index.html+++ b/src/renderer/index.html@@ -1393,7 +1393,7 @@<div class="chat-input-overlay"><div class="chat-attachments project-todo-attachments" id="project-todo-attachments" hidden></div></div>- <textarea id="project-todo-input" rows="3" maxlength="4000"+ <textarea id="project-todo-input" rows="6" maxlength="4000"data-i18n-placeholder="project.todo.placeholder" placeholder="Create a task…"></textarea><div class="chat-bottom-bar todo-editor-composer-bar"><button type="button" class="chat-attach-btn project-todo-attach-btn" id="project-todo-attach-btn"diff --git a/src/renderer/style.css b/src/renderer/style.cssindex ff4aaae2..b4c7fb95 100644--- a/src/renderer/style.css+++ b/src/renderer/style.css@@ -2043,7 +2043,22 @@ body.is-sidebar-resizing iframe { pointer-events: none; }.todo-editor-composer.drag-over { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-soft); }.todo-editor-composer .chat-input-overlay { position: static; transform: none; align-items: flex-start; pointer-events: none; }.todo-editor-composer .chat-input-overlay > .chat-attachments { max-width: 100%; pointer-events: auto; }-.todo-editor-composer textarea { min-height: 72px; padding: 2px; border: 0; border-radius: 0; resize: none; box-shadow: none; font-size: 14px; line-height: 1.55; }+/* The content grows with its text from six lines up to what the dialog can+ hold under the modal's 85vh cap (480px covers the header, an attachment+ row, the fields and the actions), then scrolls inside. Shorter windows+ fall back to the dialog's own scroll. */+.todo-editor-composer textarea {+ field-sizing: content;+ min-height: 136px;+ max-height: max(136px, calc(85vh - 480px));+ padding: 2px;+ border: 0;+ border-radius: 0;+ resize: none;+ box-shadow: none;+ font-size: 14px;+ line-height: 1.55;+}.todo-editor-composer textarea:focus { box-shadow: none; }.todo-editor-composer-bar { min-height: 30px; }.todo-editor-composer-bar .project-memory-editor-counter { margin-left: auto; padding-right: 2px; }diff --git a/test/e2e/todos_e2e_board.spec.ts b/test/e2e/todos_e2e_board.spec.tsindex 2eda3602..33b4ebbf 100644--- a/test/e2e/todos_e2e_board.spec.ts+++ b/test/e2e/todos_e2e_board.spec.ts@@ -1,5 +1,61 @@import { expect, test } from './fixtures/orkas';+for (const scope of ['global', 'project'] as const) {+ test(`gives long ${scope} todo content room while keeping editor actions reachable`, async ({ orkas }, info) => {+ const page = orkas.page!;+ await page.evaluate(() => (window as any).setLang('en'));+ const project = scope === 'project' ? await orkas.invoke<any>('projects.create', { name: 'Editor layout' }) : null;+ const projectId = project?.project.project_id || '';+ const content = Array.from({ length: 30 }, (_, index) => `Checklist item ${index + 1}: preserve the original task content.`).join('\n');+ const created = await orkas.invoke<any>('projects.tasks.create', { projectId, content });+ const taskId = created.task.id;+ await orkas.invoke('projects.tasks.attachments.upload', {+ projectId, taskId, name: 'brief.txt', dataBase64: Buffer.from('Original attachment').toString('base64'),+ });+ const before = await orkas.invoke('projects.tasks.list', { projectId });+ if (projectId) {+ await page.evaluate(async (pid) => { await (window as any).setView('project', pid); }, projectId);+ await page.locator('[data-project-tab="todo"]').click();+ } else await page.locator('#todos-btn').click();+ const card = page.locator(`.project-todo-item[data-tid="${taskId}"]:visible`);+ await card.locator('[data-action="todo-edit"]').click();+ const field = page.locator('#project-todo-input');+ await expect(field).toHaveValue(content);+ await expect(page.locator('#project-todo-attachments')).toContainText('brief.txt');+ const editorRoom = () => page.evaluate(() => {+ const dialog = document.querySelector('#todo-editor-modal .todo-editor-dialog') as HTMLElement;+ const input = document.getElementById('project-todo-input') as HTMLTextAreaElement;+ return {+ lines: Math.floor(input.clientHeight / parseFloat(getComputedStyle(input).lineHeight)),+ fieldScrolls: input.scrollHeight > input.clientHeight,+ dialogScrolls: dialog.scrollHeight > dialog.clientHeight + 1,+ };+ });+ for (const [width, height, minimumLines] of [[1280, 800, 8], [1440, 900, 12]]) {+ await page.setViewportSize({ width, height });+ await expect.poll(async () => (await editorRoom()).lines).toBeGreaterThanOrEqual(minimumLines);+ expect(await editorRoom()).toMatchObject({ fieldScrolls: true, dialogScrolls: false });+ await expect(page.locator('#project-todo-save')).toBeInViewport();+ await field.evaluate((element) => { element.scrollTop = element.scrollHeight; });+ expect(await field.evaluate((element) => element.scrollTop)).toBeGreaterThan(0);+ await page.screenshot({ path: info.outputPath(`todo-editor-${width}.png`) });+ }+ // Small windows may scroll the dialog; cancellation still reaches the action.+ await page.setViewportSize({ width: 1024, height: 600 });+ await page.locator('#project-todo-cancel').scrollIntoViewIfNeeded();+ await expect(page.locator('#project-todo-cancel')).toBeInViewport();+ await page.locator('#project-todo-cancel').click();+ await page.setViewportSize({ width: 1280, height: 800 });+ await page.locator(projectId ? '#project-todo-add-btn' : '#todos-add-btn').click();+ await expect(field).toHaveValue('');+ expect(await editorRoom()).toEqual({ lines: 6, fieldScrolls: false, dialogScrolls: false });+ await field.fill('A short draft');+ expect(await editorRoom()).toEqual({ lines: 6, fieldScrolls: false, dialogScrolls: false });+ await page.locator('#project-todo-cancel').click();+ expect(await orkas.invoke('projects.tasks.list', { projectId })).toEqual(before);+ });+}+// The assignment journey exercises both account-scoped agents and execution.