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): create task files from a new thread, with optional enrichment by tomcorke · Pull Request #17 · tomcorke/t3code

Conversation

@tomcorke

@tomcorke tomcorke commented Oct 31, 2026

Copy link
Copy Markdown
Owner

Closes #6.

Problem

Task mode could only import existing task files; Create new task was a disabled menu item. Creating a task needs a compatible file, a visible destination, and a launch that never leaves a half-made task behind.

Changes

  • New thread > Task > Create new task… opens a dialog (title, description, folder, "enrich"). It only plans the task in the draft. Nothing is written until the thread is sent, so cancelling a draft writes no file.
  • TaskDocuments.create writes an Obsidian-compatible file (TASK-YYYYMMDD-HHMM-slug.md, uuid id, state: "todo", your description word for word under ## Source prompt, Activity Log), registers it, and removes its own file if registration fails. It is idempotent per caller-minted id, so a retry after a lost reply finds the same file. Filenames never overwrite (wx, numeric suffix).
  • startThreadTurn creates the file, then launches. If creation fails the thread never launches and the draft is kept; if launch fails the task stays valid and a retry reuses it.
  • Folder: a managed <T3 home>/tasks fallback (new taskDocuments.defaultFolder, shown in the dialog) or a typed path remembered per environment on this client. No vault path is assumed.
  • Enrichment: the first thread's starter also asks the agent to enrich the task in place (source prompt kept, ready only if the file could be updated). enrichment is frozen in the initialization envelope and inherited on Retry; later threads only read the task. It is omitted from the MCP tool schema, so the agent context budget is unchanged.
  • Permissions: create needs filesystem read+write, defaultFolder read; permission table extended.

Proof

  • Server: TaskDocuments.test.ts (default folder and exact format, idempotent and collision-safe, no file or registration on failure including the 64-registration limit), ThreadLaunchService.test.ts (enrichment frozen, inherited on retry, absent otherwise).
  • client-runtime: commands.test.ts (file created before launch; a failure stops the launch), commandPermissions.test.ts.
  • web: TaskCreateDialog.browser.test.tsx (plans only; Escape plans nothing).
  • Isolated real client (--no-seed, synthetic repo and folder): nothing written while planning; file created on send; Retry kept enrichment on the same thread; a second thread on the task had no enrichment; ordinary new thread still Task: None; an invalid folder left the draft intact with no thread or file; a real Claude Haiku 5.5 run read the context, enriched the file in place (source prompt unchanged), reported ready, and the queued message ran after.
  • vp run check:changed: all static stages and typechecks pass. Two evals/mcp-tool-use/run.test.ts tests fail on this Windows host and also fail with the base run.ts.

Before/after captures (menu with the disabled item vs the dialog, light/dark, wide/narrow, enriched ready thread with the document, and the creation-failure state) are kept in the planning project (artifacts/phase-4/screenshots) and are not uploaded to this PR.

Known limits and follow-ups

  • Folder is client-remembered, not a server setting: [task-mode] Make the new-task folder a server setting #15.
  • Two eval cases (TASK-INIT-enrich-ready, TASK-INIT-enrich-readonly) are added and build under --dry-run; no paid API run was authorized. The ready path was run live once on Haiku; the read-only failure path was not run: [task-mode] Run the enrichment evals live #16.
  • Overlapping explicit retries: fix(server): reject stale task starters under the dispatch lock #10. Navigation/relink: [task-mode] Add metadata-led task navigation and relink controls #7. Hardening and mobile: [task-mode] Harden supported entry points, environments, and lifecycle #8.

Review

Three independent reviews on Claude Sonnet 5.5 high (Codex allowance exhausted; the third was user-authorized). Fixed: a reused plan id could silently drop edits (should), interrupted creation could orphan a file, cleanup could delete a file whose row existed (should), dialog prefill and length limits. Declined: leftover plan in localStorage after a discarded draft (storage only). The last review confirmed the cleanup fix; its one finding, a stray regenerated expo.graphql from the commit hook, is reverted in this head.

Claude Sonnet 5.5 in T3 Code.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

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

All reactions
tomcorke and others added 3 commits October 31, 2026 13:34
@tomcorke @claude
feat(task-mode): create compatible task files from a new thread, with…
a09efac
… 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]>
@tomcorke @claude
fix(task-mode): a new-task dialog always mints a fresh id
dbb385d
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]>
@tomcorke @claude
fix(task-mode): keep a created task file once its registration row ex…
59ed323
…ists

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:L labels Oct 31, 2026
@github-actions

github-actions Bot commented Oct 31, 2026

Copy link
Copy Markdown

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Codex Live turn WebSocket wire 1.3 KiB 1.3 KiB 0 B (0.0%) 2.0 KiB ✅
Codex Live turn WebSocket decoded 21.6 KiB 21.6 KiB 0 B (0.0%) 24.4 KiB ✅
Codex Live turn messages 2 2 0 (0.0%) 8 ✅
Claude Total thread wire 5.1 KiB 5.1 KiB 0 B (0.0%) 6.8 KiB ✅
Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Claude Live turn WebSocket wire 1.3 KiB 1.3 KiB 0 B (0.0%) 2.0 KiB ✅
Claude Live turn WebSocket decoded 21.9 KiB 21.9 KiB 0 B (0.0%) 24.4 KiB ✅
Claude Live turn messages 2 2 0 (0.0%) 8 ✅

Baseline: 998cd56 · PR result: 59ed323 · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

All reactions

Sorry, something went wrong.

Uh oh!

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

@tomcorke
tomcorke merged commit 3bdf4d1 into main Oct 31, 2026
25 checks passed

Uh oh!

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

@tomcorke
tomcorke deleted the feat/task-mode-6-task-creation branch October 31, 2026 14:04
This was referenced Nov 1, 2026
[task-mode] Post-merge review of PR #17 #31
Closed
[task-mode] Clean up task files after interrupted creation writes #50
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[task-mode] Create compatible task files and run visible enrichment

Uh oh!

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

1 participant

@tomcorke
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 01402775 — 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.