GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing github.com — Draft: two-way teleport with native CLI sessions by baanish · Pull Request #7136 · pingdotgg/t3code Conversation
|
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Two small consistency findings in the new teleport UI. Everything else in the changed web files (command palette views, composer disabled/placeholder handling, ChatView toast) follows the existing primitives and layout conventions.
Posted via Macroscope — UI Consistency
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Effect service conventions review of the new TeleportService (plus its contract errors). Four convention violations found; details inline.
Posted via Macroscope — Effect Service Conventions
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
The import CTA lacked cursor-pointer, and the header export control used the text xs size instead of the square icon-xs used by neighboring actions. Co-authored-by: aanishbhirud <[email protected]>
Reject unsafe session ids on native reads/writes, fail closed when lock checks cannot run, keep Codex whitespace, preserve in-place provider instances, and clear stale history/approvals when replacing a thread. Co-authored-by: aanishbhirud <[email protected]>
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
One finding: the new header control's disabled state suppresses the tooltip that explains why it is unavailable.
Posted via Macroscope — UI Consistency
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Claim the in-flight abort through an atomic gate so a second interrupt waits instead of emitting another turn.aborted or calling session.abort again. Co-authored-by: aanishbhirud <[email protected]>
Export writes the native session cwd from the thread worktree, which lives outside the project root. Listing and import treated only the workspace root as in-project, so Teleport Out was a one-way door. Discover extra cwds from the project's thread worktrees, match subdirectory sessions, and stop accepting ancestor cwds such as / or $HOME. Co-authored-by: aanishbhirud <[email protected]>
Export set presence to native with a teleport-pending path before writing the CLI file, then only reverted on write tapError. Interruptions, defects, and later directory or teleport.set failures left the thread stuck: the UI only offered Import, which rejected the fake path. Wrap the pending presence in acquireUseRelease so any unsuccessful exit reverts to T3, or persists the real native path if the file was written. Co-authored-by: aanishbhirud <[email protected]>
Release-path persist of a written native session can still raise a filesystem error. Catch that so a failed bind cannot mask the export failure or skip reverting pending presence. Co-authored-by: aanishbhirud <[email protected]>
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Two error-modeling convention issues in the new teleport code: message stored as data when it is a fixed template over existing attributes, and a helper whose only behavior is constructing that error.
Posted via Macroscope — Effect Service Conventions
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Lock, schema, identity, and file-locked errors now derive `message` from their fields, so the lockProbeError helper can go. A failed new-thread import deletes the orphan thread instead of leaving it unbound. Co-authored-by: aanishbhirud <[email protected]>
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Reviewed the new teleport service against the Effect service conventions. Service shape (Context.Service with inline interface, exported make/layer), dependency acquisition via yield*, and Effect.catchTags usage all look right now. Three remaining error-modelling issues below.
Posted via Macroscope — Effect Service Conventions
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Store a write stage instead of a free-form message on TeleportNativeWriteError, derive TeleportUnsupportedProviderError from the provider, and remap schema verification with catchTags. On Windows, replace native files by moving the destination aside so a failed rename can restore the previous session. Co-authored-by: aanishbhirud <[email protected]>
Persist teleport ownership first so a failed history replace cannot leave an unbound thread with overwritten messages. Co-authored-by: aanishbhirud <[email protected]>
Keep the teleported-out composer disable path and use main's disconnected placeholder constant. Co-authored-by: aanishbhirud <[email protected]>
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
One finding: the new chat-header teleport button loses the themed toolbar control styling because the tooltip wrapper overwrites data-slot="button". See the inline comment for the one-attribute fix.
Posted via Macroscope — UI Consistency
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
TooltipTrigger replaces data-slot=button, so custom themes skipped this icon. Opt in with data-toolbar-control the same way ProjectScriptsControl does. Co-authored-by: aanishbhirud <[email protected]>
Send-disabled only grayed the editor. Type-to-focus, mention drops, and file drops could still queue hidden draft content. Reject those paths too. Co-authored-by: aanishbhirud <[email protected]>
In-place native session import persisted directory binding, teleport presence, unarchive, history, and title as separate durable mutations. A later failure left T3 ownership and history out of sync, and a concurrent turn could run against that intermediate state. Commit ownership, history, and unarchive in one orchestration command. Fence thread.turn.start with importing presence, recover leftover importing state on startup, and keep title plus directory finalize best-effort. Import stays atomic per session, not all-or-nothing for the batch. Co-authored-by: aanishbhirud <[email protected]>
There was an error while loading. Please reload this page.
tapError only saw typed failures, so a cancelled or defective pre-commit import step could leave presence "importing" until process restart. onError reverts for fail, die, and interrupt, and keeps revert running. Co-authored-by: aanishbhirud <[email protected]>
Keep ChatView's teleport send-disabled import. Main moved the collapsed sidebar titlebar inset into WorkspacePageHeader, so that import is gone. Co-authored-by: aanishbhirud <[email protected]>
Keep ChatComposer's teleport lock on the prompt editor after main moved send/stop into the footer. Native and importing presence still disable the editor and show the send-disabled reason. Co-authored-by: aanishbhirud <[email protected]>
There was an error while loading. Please reload this page.
Paste/drop could start before teleport lock, then attach compressed images after compression finished. Stash restore and stash-current could also write into a native/importing draft. Recheck send-disabled after awaits and reject those stash mutations while teleport-locked. Co-authored-by: aanishbhirud <[email protected]>
|
closing because this is explicitly marked |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.