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 — Draft: teleport backend — import/export engine by baanish · Pull Request #7135 · pingdotgg/t3code

Conversation

@baanish

@baanish baanish commented Aug 15, 2026 •
edited by macroscopeapp Bot
Loading

Uh oh!

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

Copy link
Copy Markdown

Draft. Do not merge. First slice of two-way teleport. Review this stack, not a mega PR.

What Changed

The teleport engine: contracts, thread.history.replace, presence, and the server service that lists, imports, and exports native CLI sessions.
Native files stay native. Import copies a CLI session onto a T3 thread. Export writes the thread back. Presence (t3 vs native) is persisted so both sides are not writers at once.
No CLI format adapters are registered yet. listSessions returns an empty list. Import/export of an unregistered provider fails closed. Adapters land in the Codex / Claude / Grok / OpenCode PRs on top of this one.

Why

Two-way teleport needs one shared engine before any provider-specific format. This is that engine.

Stack

  1. This PR — teleport backend
  2. Teleport UI
  3. Codex support
  4. Claude support
  5. Grok support
  6. OpenCode support

UI Changes

None. The picker and export button land in the next PR.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Note

Add teleport import/export engine with native session sync via WebSocket RPC

  • Introduces a TeleportService with three WebSocket RPC endpoints (teleport.listSessions, teleport.importSessions, teleport.exportSession) backed by a provider-driven adapter registry for syncing native AI tool sessions (Codex, Claude, Grok, etc.)
  • Adds thread.history.replace and thread.teleport.set commands that emit thread.history-replaced and thread.teleported events; these rewrite message history and persist teleport state through the projection pipeline, projector, and client-side reducer
  • Adds migration 041 to introduce a teleport_json column on projection_threads and backfill it from existing provider_session_runtime rows
  • Implements cross-platform atomic native file write (writeNativeSessionAtomically) with lock detection, temp-file staging, content verification, and OS-specific rename handling
  • Adds opencodeSessionMatchesProjectCwd with heuristics to match OpenCode sessions to projects while rejecting generic roots and known foreign harness folders
  • Risk: thread.turn.start now returns OrchestrationCommandInvariantError when a thread's teleport presence is native, blocking message sends until the session is imported
📊 Macroscope summarized 3620294. 33 files reviewed, 0 issues evaluated, 0 issues filtered, 0 comments posted

🗂️ Filtered Issues

No issues evaluated.

Sorry, something went wrong.

Uh oh!

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

All reactions
cursoragent and others added 2 commits August 15, 2026 08:54
@cursoragent @baanish
feat(teleport): add the import/export engine without native formats
8acf756
Contracts, orchestration, and the teleport service land first. Native CLI
formats register later, so list/import/export stay empty until a provider
adapter is added.

Co-authored-by: aanishbhirud <[email protected]>
@cursoragent @baanish
test(teleport): use generic fixture paths
3620294
Keep personal project directories out of the public diff.

Co-authored-by: aanishbhirud <[email protected]>
@coderabbitai

coderabbitai Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: e6b2a674-f0d0-4f20-bba9-8ca0778dc432

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XXL 1,000+ changed lines (additions + deletions). labels Aug 15, 2026
@baanish baanish mentioned this pull request Aug 15, 2026
Draft: two-way teleport with native CLI sessions #7136
Closed
3 of 4 tasks
macroscopeapp[bot]
macroscopeapp Bot reviewed Aug 15, 2026
View reviewed changes

@macroscopeapp macroscopeapp Bot left a comment

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.

Effect service conventions review for the new teleport service. Findings below cover the service module layout, layer/make exports, error modeling, and tagged-error handling in the changed files.

Posted via Macroscope — Effect Service Conventions

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/server/src/teleport/Services/TeleportService.ts
Comment on lines +15 to +31
export interface TeleportServiceShape {
readonly listSessions: (
input: TeleportListSessionsInput,
) => Effect.Effect<TeleportListSessionsResult, TeleportListSessionsError>;

readonly importSessions: (
input: TeleportImportSessionsInput,
) => Effect.Effect<TeleportImportSessionsResult, TeleportImportError>;

readonly exportSession: (
input: TeleportExportSessionInput,
) => Effect.Effect<TeleportExportSessionResult, TeleportExportError>;
}

export class TeleportService extends Context.Service<TeleportService, TeleportServiceShape>()(
"t3/teleport/Services/TeleportService",
) {}

@macroscopeapp macroscopeapp Bot Aug 15, 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.

New service is split across teleport/Services/TeleportService.ts (tag) and teleport/Layers/TeleportService.ts (construction + layer), and keeps a standalone TeleportServiceShape. Consider one canonical module apps/server/src/teleport/TeleportService.ts in the order imports → errors/schemas → Context.Service tag with the interface declared inline → make → layer, and drop the separate shape type (use TeleportService["Service"] where the type is needed, as server.test.ts already does).

Posted via Macroscope — Effect Service Conventions

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread packages/contracts/src/teleport.ts
Comment on lines +131 to +137
export class TeleportInvalidInputError extends Schema.TaggedErrorClass<TeleportInvalidInputError>()(
"TeleportInvalidInputError",
{
message: TrimmedNonEmptyString,
cause: Schema.optional(Schema.Defect()),
},
) {}

@macroscopeapp macroscopeapp Bot Aug 15, 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.

TeleportInvalidInputError stores a free-form message as its only data and is used as a catch-all for semantically distinct failures (in-flight conflict, cwd mismatch, duplicate refs, running session, thread/binding load failure, dispatch failure, already-native export). Convention here is structured attributes with message derived via a getter (see contracts/src/vcs.ts). Consider splitting the distinct cases into their own tagged errors (or at minimum adding stable fields such as operation, threadId/externalSessionId) and deriving the message from them; the same applies to TeleportDiscoveryError (line 188) and TeleportProjectResolutionError (line 180), which also carry only message + cause.

Posted via Macroscope — Effect Service Conventions

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/server/src/teleport/Layers/TeleportService.ts
Comment on lines +195 to +199
const mapDispatchError = (message: string) => (cause: unknown) =>
new TeleportInvalidInputError({
message,
cause,
});

@macroscopeapp macroscopeapp Bot Aug 15, 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.

mapDispatchError is a curried alias whose only behavior is new TeleportInvalidInputError({ message, cause }). Suggest constructing the error at each failure boundary (call sites at lines 413, 422, 440, 450, 495, 734) so the attributes and cause stay visible, and adding real context (e.g. threadId, the dispatched command type) at those sites instead of a free-form message string.

Posted via Macroscope — Effect Service Conventions

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/server/src/teleport/Layers/TeleportService.ts
}
}

export const TeleportServiceLive = Layer.effect(

@macroscopeapp macroscopeapp Bot Aug 15, 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.

The module owns construction, so it would be better to export a real make (the Effect.gen body) and the canonical layer as export const layer = Layer.effect(TeleportService, make) from the merged teleport/TeleportService.ts, rather than an inlined TeleportServiceLive. Consumers in server.ts would then use TeleportService.layer.

Posted via Macroscope — Effect Service Conventions

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/server/src/ws.ts
import * as SessionStore from "./auth/SessionStore.ts";
import { failEnvironmentAuthInvalid, failEnvironmentInternal } from "./auth/http.ts";
import * as RelayClient from "@t3tools/shared/relayClient";
import { TeleportService } from "./teleport/Services/TeleportService.ts";

@macroscopeapp macroscopeapp Bot Aug 15, 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.

Service boundary import: every other service module in this file is imported as a namespace (import * as ProviderRegistry from ...). Suggest import * as TeleportService from "./teleport/TeleportService.ts"; and const teleport = yield* TeleportService.TeleportService; at line 425 so the module namespace is preserved.

Posted via Macroscope — Effect Service Conventions

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/server/src/teleport/Layers/TeleportService.ts
Comment on lines +513 to +520
Effect.catchTag(
"PlatformError",
(cause: PlatformError.PlatformError) =>
new TeleportDiscoveryError({
message: "Native filesystem error during teleport import.",
cause,
}),
),

@macroscopeapp macroscopeapp Bot Aug 15, 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.

Prefer Effect.catchTags over Effect.catchTag, even for a single tag (same pattern at line 746).

Suggested change
Effect.catchTag(
"PlatformError",
(cause: PlatformError.PlatformError) =>
new TeleportDiscoveryError({
message: "Native filesystem error during teleport import.",
cause,
}),
),
Effect.catchTags({
PlatformError: (cause: PlatformError.PlatformError) =>
new TeleportDiscoveryError({
message: "Native filesystem error during teleport import.",
cause,
}),
}),

Posted via Macroscope — Effect Service Conventions

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/server/src/teleport/Layers/TeleportService.ts
Comment on lines +601 to +606
Effect.catchIf(isIgnorableProviderStopError, (error) =>
Effect.logDebug("teleport.export.stop-session-skipped", {
threadId: input.threadId,
reason: error._tag,
}),
),

@macroscopeapp macroscopeapp Bot Aug 15, 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.

isIgnorableProviderStopError is a _tag switch used with catchIf purely to recover statically known tagged failures. Suggest replacing it with Effect.catchTags({ ProviderValidationError: ..., ProviderSessionNotFoundError: ..., ProviderAdapterSessionNotFoundError: ... }) and deleting the predicate (lines 126-135); catchIf is best reserved for genuinely structural predicates such as platform error codes.

Posted via Macroscope — Effect Service Conventions

Sorry, something went wrong.

Uh oh!

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

All reactions
@baanish baanish closed this Aug 15, 2026
macroscopeapp[bot]
macroscopeapp Bot reviewed Aug 15, 2026
View reviewed changes
Comment thread apps/server/src/teleport/Layers/TeleportService.ts
return {
schemaVersion: TELEPORT_SCHEMA_VERSION,
provider,
providerInstanceId: defaultInstanceIdForDriver(driverKind),

@macroscopeapp macroscopeapp Bot Aug 15, 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.

🟡 Medium Layers/TeleportService.ts:739

The export response returns the default provider instance ID even when the persisted binding uses a custom providerInstanceId, so callers receive an ID that does not identify the binding just written. Return the existing binding's providerInstanceId when present, falling back to defaultInstanceIdForDriver(driverKind) only for new bindings.

🤖 Copy this AI Prompt to have your agent fix this:
In file @apps/server/src/teleport/Layers/TeleportService.ts around line 739:

The export response returns the default provider instance ID even when the persisted binding uses a custom `providerInstanceId`, so callers receive an ID that does not identify the binding just written. Return the existing binding's `providerInstanceId` when present, falling back to `defaultInstanceIdForDriver(driverKind)` only for new bindings.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/server/src/teleport/nativeWrite.ts
cause: PlatformError.PlatformError,
): Effect.Effect<void, TeleportFileLockedError | TeleportNativeWriteError> => {
if (platform === "win32" && isReplaceConflict(cause) && !isNativeFileBusy(cause)) {
return fs.remove(input.to).pipe(

@macroscopeapp macroscopeapp Bot Aug 15, 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 teleport/nativeWrite.ts:92

On Windows, a failed second rename deletes the existing native session: fs.remove(input.to) runs first, and scoped cleanup then removes tempPath, leaving neither copy when the replacement fails. Preserve the destination until the replacement succeeds (for example, use an atomic replacement operation or restore the original after a failed rename).

🤖 Copy this AI Prompt to have your agent fix this:
In file @apps/server/src/teleport/nativeWrite.ts around line 92:

On Windows, a failed second `rename` deletes the existing native session: `fs.remove(input.to)` runs first, and scoped cleanup then removes `tempPath`, leaving neither copy when the replacement fails. Preserve the destination until the replacement succeeds (for example, use an atomic replacement operation or restore the original after a failed rename).

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/server/src/teleport/cwd.ts
Comment on lines +76 to +78
if (first === "home" || first === "users" || first === "root") {
return parts.length <= 2;
}

@macroscopeapp macroscopeapp Bot Aug 15, 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.

🟡 Medium teleport/cwd.ts:76

isGenericTeleportCwd treats a UNC share root such as \\server\share as non-generic, so opencodeSessionMatchesProjectCwd can match that session as the parent of unrelated projects on the share. Recognize normalized UNC paths with only a server and share component as generic roots, like drive roots.

  if (first === "home" || first === "users" || first === "root") {
    return parts.length <= 2;
  }
+  if (posix.startsWith("//") && parts.length <= 2) {
+    return true;
+  }
🤖 Copy this AI Prompt to have your agent fix this:
In file @apps/server/src/teleport/cwd.ts around lines 76-78:

`isGenericTeleportCwd` treats a UNC share root such as `\\server\share` as non-generic, so `opencodeSessionMatchesProjectCwd` can match that session as the parent of unrelated projects on the share. Recognize normalized UNC paths with only a server and share component as generic roots, like drive roots.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/server/src/orchestration/Layers/ProjectionPipeline.ts
case "thread.message-sent":
case "thread.proposed-plan-upserted":
case "thread.activity-appended":
case "thread.history-replaced":

@macroscopeapp macroscopeapp Bot Aug 15, 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.

🟡 Medium Layers/ProjectionPipeline.ts:872

thread.history-replaced leaves stale pending approval rows and a stale ProjectionThread.latestTurnId, so an in-place import can retain a nonzero pendingApprovalCount and point at a turn that was just deleted. Clear the pending approvals and set latestTurnId to null when replacing history, matching the client reducer.

🤖 Copy this AI Prompt to have your agent fix this:
In file @apps/server/src/orchestration/Layers/ProjectionPipeline.ts around line 872:

`thread.history-replaced` leaves stale pending approval rows and a stale `ProjectionThread.latestTurnId`, so an in-place import can retain a nonzero `pendingApprovalCount` and point at a turn that was just deleted. Clear the pending approvals and set `latestTurnId` to `null` when replacing history, matching the client reducer.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/server/src/teleport/fileLock.ts
Comment on lines +52 to +55
}).pipe(
Effect.map((result) => result.stdout.trim().length > 0),
Effect.orElseSucceed(() => false),
);

@macroscopeapp macroscopeapp Bot Aug 15, 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 teleport/fileLock.ts:52

requireNativePathUnlocked treats every non-Windows lsof failure—including ENOENT when lsof is unavailable and the 2-second timeout—as an unlocked path, so export can proceed while a native session is actively being written. Effect.orElseSucceed(() => false) swallows the check error; remove it so the TeleportFileLockedError propagates instead of failing open.

Suggested change
}).pipe(
Effect.map((result) => result.stdout.trim().length > 0),
Effect.orElseSucceed(() => false),
);
}).pipe(
Effect.map((result) => result.stdout.trim().length > 0),
);
🤖 Copy this AI Prompt to have your agent fix this:
In file @apps/server/src/teleport/fileLock.ts around lines 52-55:

`requireNativePathUnlocked` treats every non-Windows `lsof` failure—including `ENOENT` when `lsof` is unavailable and the 2-second timeout—as an unlocked path, so export can proceed while a native session is actively being written. `Effect.orElseSucceed(() => false)` swallows the check error; remove it so the `TeleportFileLockedError` propagates instead of failing open.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/server/src/teleport/cwd.ts
if (first === undefined) {
return true;
}
if (first === "home" || first === "users" || first === "root") {

@macroscopeapp macroscopeapp Bot Aug 15, 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.

🟡 Medium teleport/cwd.ts:76

opencodeSessionMatchesProjectCwd("/root/workspace", "/root/workspace/subproject") returns false, hiding valid OpenCode sessions launched from /root/workspace. isGenericTeleportCwd applies the /home/<user> depth rule to root, so it incorrectly classifies /root/workspace as a generic cwd; restrict the depth check for root to /root itself.

-  if (first === "home" || first === "users" || first === "root") {
+  if (first === "home" || first === "users" || (first === "root" && parts.length <= 1)) {
🤖 Copy this AI Prompt to have your agent fix this:
In file @apps/server/src/teleport/cwd.ts around line 76:

`opencodeSessionMatchesProjectCwd("/root/workspace", "/root/workspace/subproject")` returns `false`, hiding valid OpenCode sessions launched from `/root/workspace`. `isGenericTeleportCwd` applies the `/home/<user>` depth rule to `root`, so it incorrectly classifies `/root/workspace` as a generic cwd; restrict the depth check for `root` to `/root` itself.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread packages/client-runtime/src/state/threadReducer.ts
};
}

case "thread.history-replaced": {

@macroscopeapp macroscopeapp Bot Aug 15, 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 state/threadReducer.ts:562

thread.history-replaced leaves the existing pagination epoch and cursor valid, so an in-flight or later loadOlderTurns response can merge pre-replacement messages, activities, plans, and checkpoints back into the imported history. Because applyItemLocked calls setThread(result.thread, "keep") and only bumps historyEpoch for thread.reverted, this event must invalidate outstanding pages and reset or rebuild pagination state.

🤖 Copy this AI Prompt to have your agent fix this:
In file @packages/client-runtime/src/state/threadReducer.ts around line 562:

`thread.history-replaced` leaves the existing pagination epoch and cursor valid, so an in-flight or later `loadOlderTurns` response can merge pre-replacement messages, activities, plans, and checkpoints back into the imported history. Because `applyItemLocked` calls `setThread(result.thread, "keep")` and only bumps `historyEpoch` for `thread.reverted`, this event must invalidate outstanding pages and reset or rebuild pagination state.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/server/src/teleport/Layers/TeleportService.ts
message: `Teleport does not support provider '${provider}'.`,
});
}
const nativePath = yield* adapter.write({

@macroscopeapp macroscopeapp Bot Aug 15, 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 Layers/TeleportService.ts:687

exportSession writes or updates the native file before the binding and presence: "native" are durably persisted, so a later directory.upsert or thread.teleport.set failure leaves a native copy alongside T3-owned state. importSessions has the same inconsistency in reverse: thread mutations occur before binding/presence persistence, so failures leave orphaned threads or replaced history, and a later batch failure leaves earlier sessions partially imported. Make these operations transactional with rollback/compensation (or persist the ownership transition before the native/thread mutation) and define batch atomicity so the single-writer invariant is preserved.

🤖 Copy this AI Prompt to have your agent fix this:
In file @apps/server/src/teleport/Layers/TeleportService.ts around line 687:

`exportSession` writes or updates the native file before the binding and `presence: "native"` are durably persisted, so a later `directory.upsert` or `thread.teleport.set` failure leaves a native copy alongside T3-owned state. `importSessions` has the same inconsistency in reverse: thread mutations occur before binding/presence persistence, so failures leave orphaned threads or replaced history, and a later batch failure leaves earlier sessions partially imported. Make these operations transactional with rollback/compensation (or persist the ownership transition before the native/thread mutation) and define batch atomicity so the single-writer invariant is preserved.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/server/src/teleport/cwd.ts
const platform = yield* HostProcessPlatform;
// Default macOS volumes are case-insensitive. realpath keeps on-disk case
// when the path exists; missing paths fall back to the input spelling.
if (platform === "darwin") {

@macroscopeapp macroscopeapp Bot Aug 15, 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 teleport/cwd.ts:113

On case-sensitive macOS volumes, teleportCwdsEquivalent returns true for distinct existing paths such as /work/Foo and /work/foo, so import validation can select the wrong project directory. The unconditional toLowerCase() comparison at line 114 must be replaced with a volume-aware case-sensitivity check.

🤖 Copy this AI Prompt to have your agent fix this:
In file @apps/server/src/teleport/cwd.ts around line 113:

On case-sensitive macOS volumes, `teleportCwdsEquivalent` returns `true` for distinct existing paths such as `/work/Foo` and `/work/foo`, so import validation can select the wrong project directory. The unconditional `toLowerCase()` comparison at line 114 must be replaced with a volume-aware case-sensitivity check.

Sorry, something went wrong.

Uh oh!

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

All reactions
@DJProspero1 DJProspero1 mentioned this pull request Nov 2, 2026
feat(threads): hand off Claude CLI conversations to T3 DJProspero1/t3code#1
Draft
@hong-tm hong-tm mentioned this pull request Nov 2, 2026
[Bug]: Collapse-repetition stream rule can silence a run entirely, thread appears stuck until the user sends a message #29697
Closed
@DJProspero1 DJProspero1 mentioned this pull request Nov 3, 2026
feat(threads): hand off Claude CLI conversations to T3 #30341
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] left review comments

Uh oh!

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

Assignees

No one assigned

Labels

size:XXL 1,000+ 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.

Uh oh!

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

2 participants

@baanish @cursoragent
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.