GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(web): open registered task wikilinks by tomcorke · Pull Request #28838 · pingdotgg/t3code

feat(web): open registered task wikilinks #28838

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tomcorke wants to merge 8 commits into pingdotgg:main from tomcorke:feat/task-mode-18-rich-markdown-editing

Uh oh!

There was an error while loading. Please reload this page.

Closed

feat(web): open registered task wikilinks #28838

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit Hold shift + click to select a range
acc3a7e
feat(server): add revision-aware registered task documents
tomcorke Oct 30, 2026
3712da5
feat(server): initialize native task threads (#11)
tomcorke Oct 30, 2026
998cd56
feat(web): tasks get a shared document pane beside their threads (#14)
tomcorke Oct 31, 2026
3bdf4d1
feat(web): create task files from a new thread, with optional enrichm…
tomcorke Oct 31, 2026
9c3ce12
fix(server): reject stale task starters
tomcorke Nov 1, 2026
b4d6358
feat(web): add metadata-led task navigation and relink controls (#43)
tomcorke Nov 1, 2026
1e4adac
feat(web): render registered task wikilinks
tomcorke Nov 1, 2026
ad41c37
fix(web): type task wikilink source markers
tomcorke Nov 1, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
feat(web): create task files from a new thread, with optional enrichm…
…ent (#17)

* feat(task-mode): create compatible task files from a new thread, with optional enrichment

New thread > Task > Create new task plans a task (title, description, folder, enrich) in the draft; the file is written only when the thread is sent. Creation is idempotent per minted task id, writes the Obsidian-compatible template, and stops the launch if it fails. The first thread's starter can enrich the task; retries keep that choice and later threads only read the task.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* fix(task-mode): a new-task dialog always mints a fresh id

Reusing the id of a plan whose send had already made the file made create return the old file and drop edited title and description. Also remove the created file on any non-success exit, prefill the dialog from the plan, and cap title and description to the contract.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* fix(task-mode): keep a created task file once its registration row exists

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@tomcorke @claude
tomcorke and claude authored Oct 31, 2026
commit 3bdf4d14dc65ba53795038bf63ce30e36d11ccba

Some comments aren't visible on the classic Files Changed page.

There are no files selected for viewing

4 changes: 3 additions & 1 deletion 4 apps/server/src/mcp/toolkits/project/tools.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import * as ServerSettings from "../../../serverSettings.ts";
import * as ThreadLaunchService from "../../../orchestration-v2/ThreadLaunchService.ts";
import * as Crypto from "effect/Crypto";
import * as Schema from "effect/Schema";
import * as Struct from "effect/Struct";
import { Tool, Toolkit } from "effect/ai";
import * as ProjectService from "../../../project/ProjectService.ts";
import * as ManagedProjectFolders from "../../../project/ManagedProjectFolders.ts";
Expand Down Expand Up @@ -125,7 +126,8 @@ const ThreadLaunchTool = Tool.make("t3_thread_launch", {
"Create one new top-level thread, bound to its workspace before the agent starts. Task in `message`. Omit `projectId`, model and modes to inherit yours (outside a thread, pass `projectId` or `scratch`); modes cannot exceed yours. After an error or lost reply, retry with the same `clientRequestId`. Follow it with `t3_thread_read` or `t3_thread_wait`. Mention it with its `link`.",
parameters: Schema.Struct({
task: Schema.optional(
TaskThreadLaunchOptions.annotate({
// Only a task's creator asks for enrichment; agents launch threads on tasks that exist.
TaskThreadLaunchOptions.mapFields(Struct.omit(["enrichment"])).annotate({
description:
"Optional registered task document and update-discipline path on the destination environment. Runs visible context initialization first. Omit message/attachments; send work after launch. No filesystem permission is added.",
}),
Expand Down
2 changes: 2 additions & 0 deletions 2 apps/server/src/observability/RpcInstrumentation.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ type WsRpcMethod = RpcGroup.Rpcs<typeof WsRpcGroup>["_tag"];
// Trace queries and dashboards depend on these labels, including deviations from method prefixes.
const RPC_AGGREGATES = {
[WS_METHODS.taskDocumentsRegister]: "taskDocuments",
[WS_METHODS.taskDocumentsCreate]: "taskDocuments",
[WS_METHODS.taskDocumentsDefaultFolder]: "taskDocuments",
[WS_METHODS.taskDocumentsOpen]: "taskDocuments",
[WS_METHODS.taskDocumentsList]: "taskDocuments",
[WS_METHODS.taskDocumentsSave]: "taskDocuments",
Expand Down
12 changes: 12 additions & 0 deletions 12 apps/server/src/orchestration-v2/ThreadLaunchService.test.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -456,9 +456,18 @@ it.effect("freezes task launch retries and keeps membership independent of nativ
task: { taskDocumentId, updateInstructionsPath: "/changed-update.md" },
});
assert.deepEqual(retry.projection.thread.taskInitialization, frozen);
assert.notProperty(frozen!, "enrichment");
assert.notInclude(frozen!.text, "enrich");
assert.equal(yield* Ref.get(reads), beforeRetry);
assert.equal(retry.projection.messages.length, 1);
assert.equal(retry.projection.runs.length, 1);
const enriched = yield* launches.launch({
...request,
commandId: CommandId.make("task:enriched"),
task: { ...request.task, enrichment: true },
});
assert.equal(enriched.projection.thread.taskInitialization?.enrichment, true);
assert.include(enriched.projection.thread.taskInitialization?.text, "Source prompt");
assert.notInclude(JSON.stringify(frozen), "Canonical task contents");
const shell = yield* threads.getThreadShell(first.threadId);
assert.equal(shell?.taskDocumentId, taskDocumentId);
Expand Down Expand Up @@ -571,6 +580,7 @@ it.effect(
canonicalPath: "/tasks/context.md",
revision: "a".repeat(64),
templateVersion: 1,
enrichment: true,
text: "Read the task and wait.",
workspaceStrategy: input.workspaceStrategy,
modelSelection,
Expand All @@ -595,6 +605,8 @@ it.effect(
});
const thread = retried.projection.thread;
assert.equal(thread.taskInitialization?.attemptId, "task:stranded-retry");
assert.equal(thread.taskInitialization?.enrichment, true);
assert.include(thread.taskInitialization?.text, "Source prompt");
assert.equal(thread.taskInitialization?.title, thread.title);
assert.equal(thread.taskInitialization?.interactionMode, thread.interactionMode);
assert.notEqual(thread.interactionMode, "plan");
Expand Down
11 changes: 11 additions & 0 deletions 11 apps/server/src/orchestration-v2/ThreadLaunchService.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -910,14 +910,25 @@ const make = Effect.gen(function* () {
yield* fs
.access(updateInstructionsPath, { readable: true })
.pipe(Effect.mapError(mapError(input, "resolve-task")));
// A retry re-sends no enrichment choice; it keeps what the first attempt froze.
const enrichment =
task.enrichment ??
(input.retryTaskInitialization === true && priorThread !== null
? (yield* threads
.getThreadRecords(priorThread.id, [])
.pipe(Effect.mapError(mapError(input, "read-receipt", priorThread.id)))).thread
.taskInitialization?.enrichment
: undefined);
initialization = {
attemptId: input.commandId,
messageId: MessageIdSchema.make(`${input.commandId}:task-initialization`),
canonicalPath: document.summary.canonicalPath,
revision: document.revision,
templateVersion: TASK_THREAD_TEMPLATE_VERSION,
...(enrichment === true ? { enrichment } : {}),
text: taskThreadStarter({
...task,
enrichment,
canonicalPath: document.summary.canonicalPath,
updateInstructionsPath,
workspaceStrategy: input.workspaceStrategy,
Expand Down
69 changes: 69 additions & 0 deletions 69 apps/server/src/tasks/TaskDocuments.test.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -482,4 +482,73 @@ describe("TaskDocuments", () => {
yield* Fiber.interrupt(watcher);
}).pipe(Effect.scoped, Effect.provide(layer)),
);

describe("create", () => {
const newId = (suffix: string) => TaskDocumentId.make(`aaaaaaaa-aaaa-4aaa-8aaa-${suffix}`);
const input = (suffix: string, directory?: string) => ({
taskDocumentId: newId(suffix),
title: 'Ship "the" café plan: 雪',
description: "Line one\nstate: not a field",
...(directory === undefined ? {} : { directory }),
});
const taskFiles = (fs: FileSystem.FileSystem, directory: string) =>
fs
.readDirectory(directory)
.pipe(Effect.map((names) => names.filter((name) => name.startsWith("TASK-"))));

it.effect("writes a compatible registered file in the managed folder by default", () =>
Effect.gen(function* () {
const { fs, path, service } = yield* setup;
const config = yield* ServerConfig.ServerConfig;
const managed = path.join(config.baseDir, "tasks");
expect(yield* service.defaultFolder()).toEqual({ directory: managed });
const created = yield* service.create(input("000000000001"));
expect(path.dirname(created.summary.canonicalPath)).toBe(yield* fs.realPath(managed));
expect(path.basename(created.summary.canonicalPath)).toMatch(
/^TASK-\d{8}-\d{4}-ship-the-caf.-plan-.+\.md$/u,
);
expect(created.summary).toMatchObject({
taskDocumentId: newId("000000000001"),
registered: true,
availability: "available",
title: 'Ship "the" café plan: 雪',
state: "todo",
pinned: false,
});
expect(created.contents).toMatch(
/^---\nid: aaaaaaaa-aaaa-4aaa-8aaa-000000000001\n[\s\S]*\n---\n# Ship "the" café plan: 雪\n\n## Source prompt\nLine one\nstate: not a field\n\n## Activity Log\n- \*\*\d{4}-\d\d-\d\d \d\d:\d\d\*\* - Task created in T3 Code\n$/u,
);
expect(yield* fs.readFileString(created.summary.canonicalPath)).toBe(created.contents);
}).pipe(Effect.scoped, Effect.provide(layer)),
);

it.effect("is idempotent per id and never overwrites a same-titled file", () =>
Effect.gen(function* () {
const { fs, directory, service } = yield* setup;
const first = yield* service.create(input("000000000002", directory));
const replay = yield* service.create(input("000000000002", directory));
const other = yield* service.create(input("000000000003", directory));
expect(replay).toEqual(first);
expect(other.summary.canonicalPath).not.toBe(first.summary.canonicalPath);
expect(yield* taskFiles(fs, directory)).toHaveLength(2);
expect(yield* fs.readFileString(first.summary.canonicalPath)).toBe(first.contents);
}).pipe(Effect.scoped, Effect.provide(layer)),
);

it.effect("leaves no file or registration when creation fails", () =>
Effect.gen(function* () {
const { fs, directory, service, target } = yield* setup;
const failure = (folder: string) =>
service.create(input("000000000004", folder)).pipe(Effect.flip);
expect(yield* failure("relative/tasks")).toMatchObject({ reason: "unsupported" });
expect(yield* failure(target)).toMatchObject({ reason: "io" });
expect(yield* service.list()).toEqual([]);
for (let index = 0; index < 64; index++) {
yield* service.create(input(`b${String(index).padStart(11, "0")}`, directory));
}
expect(yield* failure(directory)).toMatchObject({ reason: "limit" });
expect(yield* taskFiles(fs, directory)).toHaveLength(64);
}).pipe(Effect.scoped, Effect.provide(layer)),
);
});
});
112 changes: 111 additions & 1 deletion 112 apps/server/src/tasks/TaskDocuments.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// @effect-diagnostics nodeBuiltinImport:off -- SHA-256 revisions use the host crypto implementation.
import * as NodeCrypto from "node:crypto";
import * as Context from "effect/Context";
import * as DateTime from "effect/DateTime";
import * as Deferred from "effect/Deferred";
import * as Effect from "effect/Effect";
import * as Exit from "effect/Exit";
import * as Fiber from "effect/Fiber";
import * as FileSystem from "effect/FileSystem";
import * as Layer from "effect/Layer";
Expand All @@ -28,6 +30,8 @@ import {
type OpenTaskDocument,
type TaskDocumentRef,
type RegisterTaskDocumentInput,
type CreateTaskDocumentInput,
type TaskDocumentFolder,
type SaveTaskDocumentInput,
type RelinkTaskDocumentInput,
type TaskDocumentRecoveryRef,
Expand All @@ -41,6 +45,10 @@ export class TaskDocuments extends Context.Service<
readonly register: (
input: RegisterTaskDocumentInput,
) => Effect.Effect<OpenTaskDocument, TaskDocumentOperationError>;
readonly create: (
input: CreateTaskDocumentInput,
) => Effect.Effect<OpenTaskDocument, TaskDocumentOperationError>;
readonly defaultFolder: () => Effect.Effect<TaskDocumentFolder>;
readonly open: (
input: TaskDocumentRef,
) => Effect.Effect<OpenTaskDocument, TaskDocumentOperationError>;
Expand Down Expand Up @@ -101,6 +109,52 @@ function metadata(contents: string) {
};
}

const pad = (value: number) => String(value).padStart(2, "0");

/** Mirrors the Obsidian task template so the file stays editable there. */
function taskTemplate(input: CreateTaskDocumentInput, title: string, now: Date) {
const iso = now.toISOString().replace(/\.\d{3}Z$/, "Z");
const logged = `${now.getFullYear()}-${pad(now.getMonth() + 1)}-${pad(now.getDate())} ${pad(now.getHours())}:${pad(now.getMinutes())}`;
const description = input.description.trim();
return `---
id: ${input.taskDocumentId}
tags:
- task
- task/todo
state: "todo"
title: ${JSON.stringify(title)}
source:
type: "prompt"
id: ""
url: ""
captured: "${iso}"
priority:
score: 0
deadline: ""
impact: "medium"
has-blocker: false
blocker-context: ""
agent-actionable: false
goal: []
related: []
pinned: false
created: ${iso}
updated: ${iso}
---
# ${title}
${
description
? `
## Source prompt
${description}
`
: ""
}
## Activity Log
- **${logged}** - Task created in T3 Code
`;
}

const make = Effect.gen(function* () {
const fs = yield* FileSystem.FileSystem;
const path = yield* Path.Path;
Expand Down Expand Up @@ -294,7 +348,7 @@ const make = Effect.gen(function* () {
return yield* new TaskDocumentError({ reason: "duplicate-id" });
}
});
const register = Effect.fn("TaskDocuments.register")(function* (
const registerFile = Effect.fn("TaskDocuments.registerFile")(function* (
input: RegisterTaskDocumentInput,
) {
if (!path.isAbsolute(input.path))
Expand All @@ -320,6 +374,60 @@ const make = Effect.gen(function* () {
yield* notify(id);
yield* syncWatches();
return yield* open({ taskDocumentId: id });
});
const register = Effect.fn("TaskDocuments.register")(
(input: RegisterTaskDocumentInput) => registerFile(input),
lock.withPermit,
);
const defaultFolder = () => Effect.succeed({ directory: path.join(config.baseDir, "tasks") });
const create = Effect.fn("TaskDocuments.create")(function* (input: CreateTaskDocumentInput) {
const existing = (yield* rows()).find((row) => row.taskDocumentId === input.taskDocumentId);
if (existing) return yield* open(existing);
const directory = input.directory ?? (yield* defaultFolder()).directory;
if (!path.isAbsolute(directory)) return yield* new TaskDocumentError({ reason: "unsupported" });
yield* mapIo(fs.makeDirectory(directory, { recursive: true }));
const now = DateTime.toDate(yield* DateTime.now);
const title = input.title.replace(/\s+/g, " ").trim();
const contents = taskTemplate(input, title, now);
if (encode(contents).length > TASK_DOCUMENT_MAX_BYTES)
return yield* new TaskDocumentError({ reason: "too-large" });
const slug =
title
.toLowerCase()
.replace(/[^\p{L}\p{N}]+/gu, "-")
.replace(/^-+|-+$/g, "")
.slice(0, 60) || "task";
const base = `TASK-${now.getFullYear()}${pad(now.getMonth() + 1)}${pad(now.getDate())}-${pad(now.getHours())}${pad(now.getMinutes())}-${slug}`;
for (let attempt = 1; attempt <= 100; attempt++) {
const created = path.join(directory, `${base}${attempt === 1 ? "" : `-${attempt}`}.md`);
const written = yield* fs.writeFileString(created, contents, { flag: "wx" }).pipe(
Effect.as(true),
Effect.catchTags({
PlatformError: (cause) =>
cause.reason._tag === "AlreadyExists"
? Effect.succeed(false)
: Effect.fail(ioError(cause)),
}),
);
if (!written) continue;
return yield* registerFile({ path: created }).pipe(
Comment thread

@macroscopeapp macroscopeapp Bot Nov 1, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 High tasks/TaskDocuments.ts:418

Recreating a task whose generated pathname matches an unregistered row returns the old taskDocumentId with identity-changed, so the new document cannot be saved and a retry creates another file. registerFile reactivates the inactive row and reuses its ID, but the newly written file contains the requested ID; avoid pathnames reserved by registry rows or register the file under the requested identity.

🤖 Copy this AI Prompt to have your agent fix this:
In file @apps/server/src/tasks/TaskDocuments.ts around line 418:

Recreating a task whose generated pathname matches an unregistered row returns the old `taskDocumentId` with `identity-changed`, so the new document cannot be saved and a retry creates another file. `registerFile` reactivates the inactive row and reuses its ID, but the newly written file contains the requested ID; avoid pathnames reserved by registry rows or register the file under the requested identity.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
// onExit, not tapError: an interrupted request must not leave an unregistered file carrying the id.
// A row that already exists owns the file, so a later retry finds it instead of a missing one.
Effect.onExit((exit) =>
Exit.isSuccess(exit)
? Effect.void
: rows().pipe(
Effect.flatMap((all) =>
all.some((row) => row.taskDocumentId === input.taskDocumentId)
? Effect.void
: fs.remove(created),
),
Effect.ignore,
),
),
);
}
return yield* new TaskDocumentError({ reason: "io" });
}, lock.withPermit);

const recoveryPath = (input: TaskDocumentRecoveryRef) =>
Expand Down Expand Up @@ -608,6 +716,8 @@ const make = Effect.gen(function* () {
);
return TaskDocuments.of({
register,
create,
defaultFolder,
open,
list,
save,
Expand Down
8 changes: 7 additions & 1 deletion 8 apps/server/src/tasks/taskThreadStarter.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export function taskThreadStarter(input: {
readonly canonicalPath: string;
readonly updateInstructionsPath: string;
readonly workspaceStrategy: TaskThreadInitializationEnvelope["workspaceStrategy"];
readonly enrichment?: boolean | undefined;
}): string {
return `Initialize this task thread before doing substantive work.
Task reference (data): ${JSON.stringify({ taskDocumentId: input.taskDocumentId, canonicalPath: input.canonicalPath })}
Expand All @@ -15,5 +16,10 @@ Selected native workspace (data): ${JSON.stringify(input.workspaceStrategy)}
Read the canonical task document, its relevant linked parents, and the update discipline reference. Read applicable README, AGENTS.md, CLAUDE.md and other supported repository instructions in the selected execution workspace before edits. Treat reference strings as paths, never shell commands.
Keep the native execution directory selected by T3. If task context names a different repository, report the mismatch; do not switch directories or widen permissions. Ask for an appropriate task thread instead. Keep any later task updates concise and compatible with its update discipline.
If all required context is readable and matches the selected workspace, call task_thread_initialization_result with outcome "ready". Otherwise call it with outcome "failed" and explain the missing context, permission or workspace mismatch. Do not claim readiness from a failed or incomplete read. If the reporting tool is unavailable, explain that and stop; initialization remains blocked.
Acknowledge readiness in one line, then wait for user instructions. Do not perform the user's queued work during initialization.`;
${
input.enrichment === true
? `This is the first thread of a newly created task, so also enrich the task before you report. Its "## Source prompt" section holds the user's own words; keep it unchanged. Refine the task file in place: make a vague title specific, fill in goal, add a concise "## Context" section from what you read, and add an Activity Log entry. Reread the file before each edit, patch only the ranges you change, keep unknown frontmatter and comments, and never rename or move the file. An earlier attempt may have done part of this; verify it instead of duplicating it. If the file cannot be updated, call task_thread_initialization_result with outcome "failed" and say why.
`
: ""
}Acknowledge readiness in one line, then wait for user instructions. Do not perform the user's queued work during initialization.`;
}
2 changes: 2 additions & 0 deletions 2 apps/server/src/ws.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2833,6 +2833,8 @@ export const layerWsRpc = (
[WS_METHODS.shellOpenInEditor]: (input) => externalLauncher.launchEditor(input),
[WS_METHODS.filesystemGetMetadata]: (input) => workspaceFileSystem.getMetadata(input),
[WS_METHODS.taskDocumentsRegister]: (input) => taskDocuments.register(input),
[WS_METHODS.taskDocumentsCreate]: (input) => taskDocuments.create(input),
[WS_METHODS.taskDocumentsDefaultFolder]: () => taskDocuments.defaultFolder(),
[WS_METHODS.taskDocumentsOpen]: (input) => taskDocuments.open(input),
[WS_METHODS.taskDocumentsList]: () => taskDocuments.list(),
[WS_METHODS.taskDocumentsSave]: (input) => taskDocuments.save(input),
Expand Down
9 changes: 8 additions & 1 deletion 9 apps/web/src/components/ChatView.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ import { useAtomCommand } from "../state/use-atom-command";
import { useOrchestrationCommand } from "../state/use-orchestration-command";
import { useAtomQueryRunner } from "../state/use-atom-query-runner";
import { observeResize } from "~/lib/observeResize";
import { useNewTaskStore } from "~/newTaskStore";
import { ThreadVisitWatermark } from "./chat/ThreadVisitWatermark";
import { ChatTerminalDrawers } from "./chat/ChatTerminalDrawers";
import { ListChecksIcon } from "lucide-react";
Expand Down Expand Up @@ -1079,9 +1080,15 @@ export default function ChatView(props: ChatViewProps) {
const draftTaskDocumentId = useComposerDraftStore((store) =>
draftId === null ? null : (store.getDraftSession(draftId)?.taskDocumentId ?? null),
);
// A task the draft will create has no document to show until the thread is sent.
const draftTaskIsPlanned = useNewTaskStore(
(store) => draftTaskDocumentId !== null && draftTaskDocumentId in store.byId,
);
const activeTaskDocumentId = isServerThread
? (activeThreadShell?.taskDocumentId ?? null)
: draftTaskDocumentId;
: draftTaskIsPlanned
? null
: draftTaskDocumentId;
// A narrow window or a maximized tool has no room beside the chat, so the document moves to a drawer.
const taskPanePinned =
activeTaskDocumentId !== null && !prefersPlanSidebarSheet && !rightPanelMaximized;
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.