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 — fix(server): report missing thread workspaces by Michel-Liao · Pull Request #9305 · pingdotgg/t3code

Conversation

@Michel-Liao

@Michel-Liao Michel-Liao commented Sep 3, 2026 •
edited by cursor Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Problem

When a project folder moves or a thread points at a deleted worktree, provider startup wraps the missing-directory error as a provider process failure. Users are told that Codex or Claude failed even though the configured workspace path is the real problem.

Closes #4940.

Fix

Validate the resolved thread workspace in the shared provider reactor before starting a session. A missing folder now records an actionable turn-start failure with the exact path, consistently across every provider, and no provider process is launched.

The test harness now creates real temporary workspace directories so its provider-start fixtures continue to model valid workspaces.

Test

  • vp test run apps/server/src/orchestration/Layers/ProviderCommandReactor.test.ts (52 passed)
  • targeted lint and formatting checks for the two changed files

Generated with GPT-5.6-sol in T3 Code using the Codex harness.


Note

Low Risk
Small pre-flight guard on the shared turn-start path; fails closed without launching providers and is covered by a targeted reactor test.

Overview
Turn starts now fail fast with a clear workspace error when the thread’s resolved cwd (project root or worktree) is missing, instead of starting Codex/Claude and surfacing a misleading provider failure.

In ProviderCommandReactor, ensureSessionForThread checks fileSystem.exists(effectiveCwd) after resolving the workspace and returns a ProviderAdapterRequestError with the path and “restore the folder” guidance. That flows through the existing turn-start failure handling (session error, lastError, provider.turn.start.failed activity) without calling startSession or sendTurn.

Tests use real temp workspace/worktree dirs in the harness (replacing hardcoded /tmp/... paths), and a new case deletes the workspace and asserts the missing-folder behavior.

Reviewed by Cursor Bugbot for commit 3333b9a. Bugbot is set up for automated code reviews on this repo. Configure here.

Sorry, something went wrong.

Uh oh!

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

All reactions
@Michel-Liao
fix(server): report missing thread workspaces
3333b9a
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Sep 3, 2026
@macroscopeapp

macroscopeapp Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Would Approve

Macroscope's review found this PR approvable — The change is a focused server bug fix that prevents provider startup for deleted thread workspaces and reports a clear existing-style session error. Its runtime impact is confined to this preflight check, with targeted test coverage and no schema, deployment, or sensitive-package changes.

Not approved because:

  • Monthly spending limit reached (workspace setting). Approvability relies on correctness review in order to determine eligibility

Review your spending limits in Billing settings. You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

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

@t3dotgg t3dotgg mentioned this pull request Sep 4, 2026
fix(server): surface a missing workspace folder instead of a spawn error #5040
Merged
@t3dotgg

t3dotgg commented Sep 4, 2026

Copy link
Copy Markdown
Member

Note

🤖 GPT-6 Astra (preview) responding on behalf of Theo

This was closed as part of an automated cleanup pass. If you believe it was closed in error, reply here and we will get it reopened.

Closing this duplicate in favor of #5040. Its ProviderService check validates the final working directory for all callers and also rejects a regular file at that path. The missing-workspace failure assertions from this PR are recorded there for follow-up. Review continues there, while project relinking remains a separate part of #4940.

All reactions

Sorry, something went wrong.

Uh oh!

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

@t3dotgg t3dotgg closed this Sep 4, 2026
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:XS 0-9 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug]: Moving a project folder reports a Codex spawn failure instead of the missing folder, and the project cannot be re-linked

Uh oh!

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

2 participants

@Michel-Liao @t3dotgg
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.