improvement(mship): questions improvement - #6385
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryThe PR improves Mothership question and credential interactions, including exact desktop OAuth-attempt correlation.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains; current desktop completions are correlated using the attempt ID stored with the accepted handoff state, preventing completion from being applied to a different overlapping launch.
|
| Filename | Overview |
|---|---|
| apps/desktop/src/main/handoff.ts | Binds connect scope, including the chat attempt ID, to the one-shot handoff state and returns it only after successful state consumption. |
| apps/sim/lib/credentials/oauth-chat-attempt.ts | Resolves current-shell desktop completions by the explicit attempt ID while retaining an omission-only fallback for legacy shells. |
| apps/sim/hooks/use-oauth-return.ts | Uses the correlated desktop completion to update the matching attempt and refresh credential caches. |
| apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/special-tags/use-oauth-chip-connection.ts | Creates row-scoped OAuth attempts and passes their IDs into desktop handoffs. |
| packages/desktop-bridge/src/index.ts | Extends the typed desktop bridge completion and launch contracts with nullable attempt correlation. |
Sequence Diagram
sequenceDiagram
participant Row as Credential row
participant Renderer
participant Main as Electron main
participant Browser as System browser
Row->>Renderer: Create chatAttemptId
Renderer->>Main: beginOAuthConnect(scope + chatAttemptId)
Main->>Main: Bind scope to generated state
Main->>Browser: Open OAuth URL
Browser-->>Main: Loopback callback(state)
Main->>Main: Consume matching state and scope
Main-->>Renderer: Completion(chatAttemptId)
Renderer-->>Row: Update exact attempt
Reviews (2): Last reviewed commit: "fixes" | Re-trigger Greptile
|
|
@cursor review |
PR SummaryMedium Risk Overview Credential cards now parse OAuth from chat chips is correlated per row via Reconnect now bumps Reviewed by Cursor Bugbot for commit 5ba1185. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 817ca0d. Configure here.
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 5ba1185. Configure here.
|
Want your agent to iterate on Greptile's feedback? Try greploops. |
Summary
Mship credential continue ui --> questions ui
Companion: https://github.com/simstudioai/mothership/pull/414
Type of Change
Testing
Manual
Checklist