Multi-Agent Collaboration for Team and Friends
TypeScript agent-automationagent-orchestrationagent-workflowai-agentsai-collaborationai-memoryai-workforceautonomous-agentsclaude-codeclaude-code-skillscodexcoding-agentmulti-agentmultiple-agentone-person-businessone-person-companyone-person-teamopencodesolopreneur
feat: support runtime switching
Gus1801d18e5e2b
diff --git a/src/cli/daemon/execenv/__tests__/context.test.ts b/src/cli/daemon/execenv/__tests__/context.test.tsindex d6b1a326f..89e835065 100644--- a/src/cli/daemon/execenv/__tests__/context.test.ts+++ b/src/cli/daemon/execenv/__tests__/context.test.ts@@ -12,6 +12,7 @@ import {import { join } from "path";import { tmpdir } from "os";import {+ buildInstructionContent,contentHash,hasContentChanged,ensureSymlinks,@@ -37,6 +38,20 @@ function makeTask(overrides: Partial<Task> = {}): Task {};}+describe("buildInstructionContent", () => {+ it("uses agent name in opening line when provided", () => {+ const task = makeTask({ agent: { name: "My Assistant", instructions: "" } });+ const content = buildInstructionContent(task);+ expect(content).toMatch(/^You're My Assistant in the Alook Platform\./);+ });++ it("falls back to 'Alook Agent' when agent is undefined", () => {+ const task = makeTask({ agent: undefined });+ const content = buildInstructionContent(task);+ expect(content).toMatch(/^You're Alook Agent in the Alook Platform\./);+ });+});+describe("contentHash", () => {it("returns consistent hex string for same input", () => {const h1 = contentHash("hello world");diff --git a/src/cli/daemon/execenv/__tests__/timeline.test.ts b/src/cli/daemon/execenv/__tests__/timeline.test.tsindex 95502f6cb..666fa4dbc 100644--- a/src/cli/daemon/execenv/__tests__/timeline.test.ts+++ b/src/cli/daemon/execenv/__tests__/timeline.test.ts@@ -261,6 +261,7 @@ describe("timeline", () => {prompt: "test",agent_responses: [],errmsg: null,+ provider: "claude",...overrides,};}@@ -273,17 +274,17 @@ describe("timeline", () => {datetime: new Date().toISOString(),}));- expect(findResumableSessionId(dir, "user_dm_message")).toBe("sess_abc");+ expect(findResumableSessionId(dir, "user_dm_message", "claude")).toBe("sess_abc");});it("returns null when no entries exist", () => {- expect(findResumableSessionId(dir, "user_dm_message")).toBeNull();+ expect(findResumableSessionId(dir, "user_dm_message", "claude")).toBeNull();});it("returns null when no timeline files exist", () => {rmSync(dir, { recursive: true, force: true });mkdirSync(dir, { recursive: true });- expect(findResumableSessionId(dir, "user_dm_message")).toBeNull();+ expect(findResumableSessionId(dir, "user_dm_message", "claude")).toBeNull();});it("returns null when the latest completed entry is older than 3h", () => {@@ -295,7 +296,7 @@ describe("timeline", () => {datetime: fourHoursAgo.toISOString(),}));- expect(findResumableSessionId(dir, "user_dm_message")).toBeNull();+ expect(findResumableSessionId(dir, "user_dm_message", "claude")).toBeNull();});it("returns null when session_id is null on the entry", () => {@@ -306,7 +307,7 @@ describe("timeline", () => {datetime: new Date().toISOString(),}));- expect(findResumableSessionId(dir, "user_dm_message")).toBeNull();+ expect(findResumableSessionId(dir, "user_dm_message", "claude")).toBeNull();});it("skips failed/running entries and finds the correct completed one", () => {@@ -329,7 +330,7 @@ describe("timeline", () => {datetime: new Date().toISOString(),}));- expect(findResumableSessionId(dir, "user_dm_message")).toBe("sess_good");+ expect(findResumableSessionId(dir, "user_dm_message", "claude")).toBe("sess_good");});it("searches across midnight boundary (yesterday's file)", () => {@@ -344,7 +345,7 @@ describe("timeline", () => {datetime: twoHoursAgo.toISOString(),}));- expect(findResumableSessionId(dir, "user_dm_message")).toBe("sess_yesterday");+ expect(findResumableSessionId(dir, "user_dm_message", "claude")).toBe("sess_yesterday");});it("returns the latest match, not the first one in file order", () => {@@ -364,7 +365,7 @@ describe("timeline", () => {datetime: oneHourAgo.toISOString(),}));- expect(findResumableSessionId(dir, "user_dm_message")).toBe("sess_newer");+ expect(findResumableSessionId(dir, "user_dm_message", "claude")).toBe("sess_newer");});it("respects custom maxAgeMs parameter", () => {@@ -377,9 +378,9 @@ describe("timeline", () => {}));// 10 minute window — entry is 30 min old, should not match- expect(findResumableSessionId(dir, "user_dm_message", 10 * 60 * 1000)).toBeNull();+ expect(findResumableSessionId(dir, "user_dm_message", "claude", 10 * 60 * 1000)).toBeNull();// 60 minute window — entry is 30 min old, should match- expect(findResumableSessionId(dir, "user_dm_message", 60 * 60 * 1000)).toBe("sess_recent");+ expect(findResumableSessionId(dir, "user_dm_message", "claude", 60 * 60 * 1000)).toBe("sess_recent");});it("does not match a different task type", () => {@@ -391,7 +392,7 @@ describe("timeline", () => {datetime: new Date().toISOString(),}));- expect(findResumableSessionId(dir, "scheduled_check")).toBeNull();+ expect(findResumableSessionId(dir, "scheduled_check", "claude")).toBeNull();});it("finds the latest entry across midnight boundary correctly", () => {@@ -415,7 +416,76 @@ describe("timeline", () => {datetime: thirtyMinAgo.toISOString(),}));- expect(findResumableSessionId(dir, "user_dm_message")).toBe("sess_today");+ expect(findResumableSessionId(dir, "user_dm_message", "claude")).toBe("sess_today");+ });++ it("createTimelineEntry includes provider field when provided", () => {+ const entry = createTimelineEntry("t_p1", "test", "user_dm_message", "sess_1", 1234, "claude");+ expect(entry.provider).toBe("claude");+ });++ it("createTimelineEntry sets provider to null when not provided (backward compat)", () => {+ const entry = createTimelineEntry("t_p2", "test", "user_dm_message", "sess_1", 1234);+ expect(entry.provider).toBeNull();+ });++ it("returns session ID when latest completed entry has matching provider", () => {+ writeEntry(_todayFilename(), makeEntry({+ task_id: "t_match",+ status: "completed",+ session_id: "sess_match",+ provider: "codex",+ datetime: new Date().toISOString(),+ }));++ expect(findResumableSessionId(dir, "user_dm_message", "codex")).toBe("sess_match");+ });++ it("returns null when latest completed entry has a different provider", () => {+ writeEntry(_todayFilename(), makeEntry({+ task_id: "t_diff",+ status: "completed",+ session_id: "sess_claude",+ provider: "claude",+ datetime: new Date().toISOString(),+ }));++ expect(findResumableSessionId(dir, "user_dm_message", "codex")).toBeNull();+ });++ it("skips entries with provider null or undefined (old entries — backward compat)", () => {+ writeEntry(_todayFilename(), makeEntry({+ task_id: "t_old",+ status: "completed",+ session_id: "sess_old",+ provider: null,+ datetime: new Date().toISOString(),+ }));++ expect(findResumableSessionId(dir, "user_dm_message", "claude")).toBeNull();+ });++ it("finds correct session when multiple providers interleave in timeline", () => {+ const twoHoursAgo = new Date(Date.now() - 2 * 60 * 60 * 1000);+ const oneHourAgo = new Date(Date.now() - 1 * 60 * 60 * 1000);++ writeEntry(_todayFilename(), makeEntry({+ task_id: "t_claude",+ status: "completed",+ session_id: "sess_claude",+ provider: "claude",+ datetime: twoHoursAgo.toISOString(),+ }));+ writeEntry(_todayFilename(), makeEntry({+ task_id: "t_codex",+ status: "completed",+ session_id: "sess_codex",+ provider: "codex",+ datetime: oneHourAgo.toISOString(),+ }));++ expect(findResumableSessionId(dir, "user_dm_message", "claude")).toBe("sess_claude");+ expect(findResumableSessionId(dir, "user_dm_message", "codex")).toBe("sess_codex");});});});diff --git a/src/cli/daemon/execenv/context.ts b/src/cli/daemon/execenv/context.tsindex c36974472..9287b85e9 100644--- a/src/cli/daemon/execenv/context.ts+++ b/src/cli/daemon/execenv/context.ts@@ -15,8 +15,7 @@ import type { Task } from "../types.js";export const CANONICAL_FILE = "AGENTS.md";export const SYMLINK_ALIASES = ["CLAUDE.md"];-const SYSTEM_PROMPT = `You're Alook Agent.-## Memory Management+const SYSTEM_PROMPT_BODY = `## Memory Management- Your memory directory is ./, don't write ANY EXTERNAL memory file.- Write ESSENTIAL yet SHORT memory to ./memory.md- For SPECIFIC yet LONG rules or pattern, write to experiences/[NAME].md, and add index to ./memory.md for later recall.@@ -63,7 +62,8 @@ those json are sorted by datetime in asc order.`;export function buildInstructionContent(task: Task): string {- let content = SYSTEM_PROMPT;+ const displayName = task.agent?.name || "Alook Agent";+ let content = `You're ${displayName} in the Alook Platform.\n${SYSTEM_PROMPT_BODY}`;if (task.agent?.instructions) {content += `## BIG BOSS Instructions@@ -105,6 +105,7 @@ Write the HTML body to a file first, then send it. The body is forwarded as-is (}content += `\n### Calendar+You have your own calendar to setup daily routines and reminders.Schedule future tasks for yourself. At the scheduled time, a new task is dispatched to you with the event as the prompt (task type 'calendar_event').---Create a one-off event:diff --git a/src/cli/daemon/execenv/timeline.ts b/src/cli/daemon/execenv/timeline.tsindex 6b41ba846..0d1e2d009 100644--- a/src/cli/daemon/execenv/timeline.ts+++ b/src/cli/daemon/execenv/timeline.ts@@ -30,6 +30,7 @@ export interface ContextTimelineEntry {prompt: string;agent_responses: string[];errmsg: string | null;+ provider: string | null;}function filenameForDate(date: Date): string {@@ -193,6 +194,7 @@ export function createTimelineEntry(type: string,sessionId?: string,pid?: number,+ provider?: string,): ContextTimelineEntry {return {task_id: taskId,@@ -204,6 +206,7 @@ export function createTimelineEntry(prompt,agent_responses: [],errmsg: null,+ provider: provider ?? null,};}@@ -212,6 +215,7 @@ const DEFAULT_RESUME_MAX_AGE_MS = 3 * 60 * 60 * 1000; // 3 hoursexport function findResumableSessionId(timelineDir: string,type: string,+ provider: string,maxAgeMs: number = DEFAULT_RESUME_MAX_AGE_MS,): string | null {const now = new Date();@@ -230,6 +234,7 @@ export function findResumableSessionId(if (entry.status === "completed" &&entry.type === type &&+ entry.provider === provider &&entry.session_id &&new Date(entry.datetime) >= cutoff) {diff --git a/src/cli/daemon/session-runner.test.ts b/src/cli/daemon/session-runner.test.tsindex 3a9c38477..a4850d81e 100644--- a/src/cli/daemon/session-runner.test.ts+++ b/src/cli/daemon/session-runner.test.ts@@ -37,6 +37,7 @@ const mockCreateTimelineEntry = vi.fn(type: string,sessionId?: string,pid?: number,+ provider?: string,) => ({task_id: taskId,session_id: sessionId || null,@@ -47,6 +48,7 @@ const mockCreateTimelineEntry = vi.fn(prompt,agent_responses: [],errmsg: null,+ provider: provider || null,}),);const mockFindResumableSessionId = vi.fn(() => null);@@ -210,6 +212,7 @@ describe("session-runner runSession", () => {"user_dm_message","sess-1",process.pid,+ "claude",);expect(mockInitEntryAsync).toHaveBeenCalledWith("/tmp/ws/ws1/agent1/workdir/.context_timeline",@@ -336,6 +339,7 @@ describe("session-runner runSession", () => {expect(mockFindResumableSessionId).toHaveBeenCalledWith("/tmp/ws/ws1/agent1/workdir/.context_timeline","user_dm_message",+ "claude",);expect(mockBackendExecute).toHaveBeenCalledWith(expect.any(String),@@ -553,4 +557,86 @@ describe("session-runner runSession", () => {expect(secondLine.role).toBe("assistant");expect(secondLine.type).toBe("text");});++ it("passes provider to createTimelineEntry", async () => {+ setupBackend([], {+ status: "completed",+ output: "Done",+ error: "",+ durationMs: 100,+ sessionId: "sess-1",+ });++ await runSession(makeInput({ provider: "codex" }));++ expect(mockCreateTimelineEntry).toHaveBeenCalledWith(+ "t1",+ "do the thing",+ "user_dm_message",+ "sess-1",+ process.pid,+ "codex",+ );+ });++ it("passes provider to findResumableSessionId", async () => {+ setupBackend([], {+ status: "completed",+ output: "Done",+ error: "",+ durationMs: 100,+ sessionId: "sess-1",+ });++ await runSession(makeInput({ provider: "codex" }));++ expect(mockFindResumableSessionId).toHaveBeenCalledWith(+ "/tmp/ws/ws1/agent1/workdir/.context_timeline",+ "user_dm_message",+ "codex",+ );+ });++ it("session resume works when findResumableSessionId returns a session for matching provider", async () => {+ mockFindResumableSessionId.mockReturnValueOnce("prev-sess-codex");++ setupBackend([], {+ status: "completed",+ output: "Resumed",+ error: "",+ durationMs: 100,+ sessionId: "sess-1",+ });++ await runSession(makeInput({ provider: "codex" }));++ expect(mockBackendExecute).toHaveBeenCalledWith(+ expect.any(String),+ expect.objectContaining({ resumeSessionId: "prev-sess-codex" }),+ );+ });++ it("session starts fresh when provider has no matching prior entry", async () => {+ mockFindResumableSessionId.mockReturnValueOnce(null);++ setupBackend([], {+ status: "completed",+ output: "Fresh",+ error: "",+ durationMs: 100,+ sessionId: "sess-1",+ });++ await runSession(makeInput({ provider: "opencode" }));++ expect(mockFindResumableSessionId).toHaveBeenCalledWith(+ "/tmp/ws/ws1/agent1/workdir/.context_timeline",+ "user_dm_message",+ "opencode",+ );+ expect(mockBackendExecute).toHaveBeenCalledWith(+ expect.any(String),+ expect.objectContaining({ resumeSessionId: undefined }),+ );+ });});diff --git a/src/cli/daemon/session-runner.ts b/src/cli/daemon/session-runner.tsindex 74ba72f00..90134cee9 100644--- a/src/cli/daemon/session-runner.ts+++ b/src/cli/daemon/session-runner.ts@@ -36,7 +36,7 @@ export async function runSession(input: SessionRunnerInput): Promise<void> {const resumeSessionId =task.type === TASK_TYPES.USER_DM_MESSAGE- ? findResumableSessionId(timelineDir, task.type) ?? undefined+ ? findResumableSessionId(timelineDir, task.type, provider) ?? undefined: undefined;if (resumeSessionId) {log.info(`Task ${task.id} resuming session ${resumeSessionId}`);@@ -57,7 +57,7 @@ export async function runSession(input: SessionRunnerInput): Promise<void> {const earlySessionId = await session.sessionId;await initEntryAsync(timelineDir,- createTimelineEntry(task.id, task.prompt, task.type, earlySessionId, process.pid),+ createTimelineEntry(task.id, task.prompt, task.type, earlySessionId, process.pid, provider),);// Message batchingdiff --git a/src/shared/src/api-types.ts b/src/shared/src/api-types.tsindex 14ebe2ef2..e15407ba0 100644--- a/src/shared/src/api-types.ts+++ b/src/shared/src/api-types.ts@@ -88,6 +88,7 @@ export interface UpdateAgentRequest {name?: string;description?: string;instructions?: string;+ runtime_id?: string;runtime_config?: Record<string, unknown>;max_concurrent_tasks?: number;email_handle?: string;diff --git a/src/web/src/app/api/agents/[id]/route.test.ts b/src/web/src/app/api/agents/[id]/route.test.tsindex 11e14ce17..0fedea2ff 100644--- a/src/web/src/app/api/agents/[id]/route.test.ts+++ b/src/web/src/app/api/agents/[id]/route.test.ts@@ -7,6 +7,7 @@ vi.mock("@opennextjs/cloudflare", () => ({const mockGetAgent = vi.fn();const mockDeleteAgent = vi.fn();const mockUpdateAgent = vi.fn();+const mockGetAgentRuntimeForWorkspace = vi.fn();vi.mock("@alook/shared", () => ({createDb: vi.fn(() => ({})),@@ -16,6 +17,9 @@ vi.mock("@alook/shared", () => ({deleteAgent: (...args: unknown[]) => mockDeleteAgent(...args),updateAgent: (...args: unknown[]) => mockUpdateAgent(...args),},+ runtime: {+ getAgentRuntimeForWorkspace: (...args: unknown[]) => mockGetAgentRuntimeForWorkspace(...args),+ },},}));@@ -183,4 +187,61 @@ describe("PATCH /api/agents/[id]", () => {);});+ it("PATCH with valid runtime_id (same workspace) updates agent successfully", async () => {+ mockGetAgentRuntimeForWorkspace.mockResolvedValue({ id: "rt1", workspaceId: "w1" });+ mockUpdateAgent.mockResolvedValue({ id: "a1", name: "Agent" });++ const req = new NextRequest("http://localhost/api/agents/a1", {+ method: "PATCH",+ body: JSON.stringify({ runtime_id: "rt1" }),+ });+ const ctx = { params: Promise.resolve({ id: "a1" }) };+ const res = await PATCH(req, ctx);++ expect(res.status).toBe(200);+ expect(mockGetAgentRuntimeForWorkspace).toHaveBeenCalledWith(+ expect.anything(),+ "rt1",+ "w1",+ );+ expect(mockUpdateAgent).toHaveBeenCalledWith(+ expect.anything(),+ "a1",+ "w1",+ expect.objectContaining({ runtimeId: "rt1" }),+ );+ });++ it("PATCH with runtime_id from another workspace returns 400", async () => {+ mockGetAgentRuntimeForWorkspace.mockResolvedValue(null);++ const req = new NextRequest("http://localhost/api/agents/a1", {+ method: "PATCH",+ body: JSON.stringify({ runtime_id: "rt_other_ws" }),+ });+ const ctx = { params: Promise.resolve({ id: "a1" }) };+ const res = await PATCH(req, ctx);+ const body = await res.json();++ expect(res.status).toBe(400);+ expect(body.error).toBe("runtime not found in workspace");+ expect(mockUpdateAgent).not.toHaveBeenCalled();+ });++ it("PATCH with nonexistent runtime_id returns 400", async () => {+ mockGetAgentRuntimeForWorkspace.mockResolvedValue(null);++ const req = new NextRequest("http://localhost/api/agents/a1", {+ method: "PATCH",+ body: JSON.stringify({ runtime_id: "rt_nonexistent" }),+ });+ const ctx = { params: Promise.resolve({ id: "a1" }) };+ const res = await PATCH(req, ctx);+ const body = await res.json();++ expect(res.status).toBe(400);+ expect(body.error).toBe("runtime not found in workspace");+ expect(mockUpdateAgent).not.toHaveBeenCalled();+ });+});diff --git a/src/web/src/app/api/agents/[id]/route.ts b/src/web/src/app/api/agents/[id]/route.tsindex c3917a017..cc1c5cdac 100644--- a/src/web/src/app/api/agents/[id]/route.ts+++ b/src/web/src/app/api/agents/[id]/route.ts@@ -48,7 +48,13 @@ export const PATCH = withAuth(async (req, ctx) => {if (typeof body.name === "string") data.name = body.name;if (typeof body.description === "string") data.description = body.description;if (typeof body.instructions === "string") data.instructions = body.instructions;- if (typeof body.runtime_id === "string") data.runtimeId = body.runtime_id;+ if (typeof body.runtime_id === "string") {+ const runtime = await queries.runtime.getAgentRuntimeForWorkspace(db, body.runtime_id, ws.workspaceId);+ if (!runtime) {+ return writeError("runtime not found in workspace", 400);+ }+ data.runtimeId = body.runtime_id;+ }if (body.runtime_config !== undefined) {if (typeof body.runtime_config === "object" && body.runtime_config !== null && !Array.isArray(body.runtime_config)) {const rc = body.runtime_config as Record<string, unknown>;diff --git a/src/web/src/components/agent-edit-form.tsx b/src/web/src/components/agent-edit-form.tsxindex 15c61918e..681de5e6e 100644--- a/src/web/src/components/agent-edit-form.tsx+++ b/src/web/src/components/agent-edit-form.tsx@@ -10,6 +10,7 @@ import type { Agent } from "@alook/shared";import { isValidHandle } from "@alook/shared";import type { AgentRuntime as Runtime } from "@alook/shared";import { cn } from "@/lib/utils";+import { LockIcon } from "lucide-react";function nameToHandle(name: string): string {return name@@ -172,16 +173,21 @@ export function AgentEditForm({</p></div>- {!agent && (- <div className="space-y-1.5">- <Label htmlFor="agent-runtime">Runtime</Label>- <RuntimeSelect- value={runtimeId}- onValueChange={setRuntimeId}- runtimes={runtimes}- />- </div>- )}+ <div className="space-y-1.5">+ <Label htmlFor="agent-runtime">Runtime</Label>+ <RuntimeSelect+ value={runtimeId}+ onValueChange={(newId) => {+ const oldProvider = runtimes.find((r) => r.id === runtimeId)?.provider;+ const newProvider = runtimes.find((r) => r.id === newId)?.provider;+ setRuntimeId(newId);+ if (oldProvider && oldProvider !== newProvider) {+ setModel("");+ }+ }}+ runtimes={runtimes}+ />+ </div><div className="flex items-center gap-2 pt-2"><Button@@ -202,26 +208,16 @@ export function AgentEditForm({</div>{agent && (- <div className="space-y-3 border-t border-border/40 pt-4">- <div className="space-y-1">- <Label className="text-muted-foreground">Email Handle</Label>- <p className="text-sm text-muted-foreground">- {agent.email_handle ? `${agent.email_handle}@alook.ai` : "Not configured"}- </p>+ <div className="rounded-lg border border-border/50 bg-muted/30 px-4 py-3">+ <div className="mb-2.5 flex items-center gap-1.5">+ <LockIcon className="size-3 text-muted-foreground/60" />+ <span className="text-xs font-medium text-muted-foreground/60">Set at creation</span></div>- <div className="space-y-1">- <Label className="text-muted-foreground">Runtime</Label>- <p className="text-sm text-muted-foreground">- {(() => {- const rt = runtimes.find((r) => r.id === agent.runtime_id);- if (!rt) return "Unknown runtime";- const machine =- (typeof rt.device_info === "string" ? rt.device_info : "") ||- rt.name ||- "";- return machine ? `${rt.provider} (${machine})` : rt.provider;- })()}- </p>+ <div className="flex items-center justify-between">+ <span className="text-xs text-muted-foreground">Email</span>+ <span className="text-xs text-muted-foreground">+ {agent.email_handle ? `${agent.email_handle}@alook.ai` : "Not configured"}+ </span></div></div>)}diff --git a/src/web/src/components/calendar/calendar-event-sheet.tsx b/src/web/src/components/calendar/calendar-event-sheet.tsxindex b5434f711..d8f597f9e 100644--- a/src/web/src/components/calendar/calendar-event-sheet.tsx+++ b/src/web/src/components/calendar/calendar-event-sheet.tsx@@ -18,7 +18,6 @@ import {DialogTitle,} from "@/components/ui/dialog";import { Button } from "@/components/ui/button";-import { Input } from "@/components/ui/input";import { MarkdownEditor, isEmptyHtml } from "@/components/ui/markdown-editor";import {CalendarDays,@@ -467,25 +466,42 @@ export function CalendarEventSheet({? title.trim() || "Untitled event": title.trim() || "New calendar event";+ const titleRef = useRef<HTMLTextAreaElement | null>(null);++ const resizeTitle = (el: HTMLTextAreaElement | null) => {+ if (!el) return;+ el.style.height = "auto";+ el.style.height = `${el.scrollHeight}px`;+ };++ useEffect(() => {+ resizeTitle(titleRef.current);+ }, [title]);+const titleInput = (- <Input+ <textarea+ ref={(el) => {+ titleRef.current = el;+ resizeTitle(el);+ }}aria-label="Event title"value={title}- onChange={(e) => setTitle(e.target.value)}+ onChange={(e) => {+ setTitle(e.target.value);+ resizeTitle(e.target);+ }}onKeyDown={(e) => {- if (e.key === "Enter") {- // Input is single-line, so Enter would otherwise submit the create- // form. Intercept and move focus into the description editor — a- // Notion-like flow the user expects after naming the event.+ if (e.key === "Enter" && !e.shiftKey) {e.preventDefault();focusDescription();}}}placeholder={mode === "edit" ? "Untitled event" : "New event"}autoFocus={mode === "create"}+ rows={1}className={cn(- "h-auto rounded-none border-0 bg-transparent px-0 py-0 font-news text-4xl md:text-5xl font-medium leading-[1.1] tracking-tight",- "shadow-none focus-visible:border-0 focus-visible:ring-0 focus-visible:ring-offset-0",+ "w-full resize-none overflow-hidden rounded-none border-0 bg-transparent px-0 py-1 font-news text-2xl md:text-3xl font-medium leading-[1.2] tracking-tight",+ "shadow-none outline-none focus-visible:border-0 focus-visible:ring-0 focus-visible:ring-offset-0","placeholder:text-muted-foreground/40 placeholder:font-normal")}/>diff --git a/src/web/src/components/home/hero-section.tsx b/src/web/src/components/home/hero-section.tsxindex 8674eeeb9..1c23db560 100644--- a/src/web/src/components/home/hero-section.tsx+++ b/src/web/src/components/home/hero-section.tsx@@ -186,7 +186,7 @@ export function HeroSection({ isLoggedIn }: { isLoggedIn: boolean }) {<polyline points="10 17 15 12 10 7" /><line x1="15" y1="12" x2="3" y2="12" /></svg>- DASHBOARD+ APP</a>) : (<adiff --git a/src/web/src/components/home/marketing-nav.tsx b/src/web/src/components/home/marketing-nav.tsxindex 8caea305e..93229753e 100644--- a/src/web/src/components/home/marketing-nav.tsx+++ b/src/web/src/components/home/marketing-nav.tsx@@ -58,7 +58,7 @@ export function MarketingNav({ isLoggedIn }: { isLoggedIn: boolean }) {border: "1px solid var(--landing-text)",}}>- Dashboard+ App<svgwidth="12"height="12"