-
Notifications
You must be signed in to change notification settings - Fork 70
Refactor session PR flow boundaries and simplify coupling #109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Add standalone guide for configuring OpenAI ChatGPT subscription credentials to use Codex models (GPT 5.2, 5.2 Codex, 5.3 Codex). Covers obtaining OAuth tokens via OpenCode, adding repo secrets, and model selection. Links from GETTING_STARTED.md.
Highlight OpenAI Codex model support in the Overview and Key Features sections, with a link to the setup guide.
Terraform Validation Results
Pushed by: @ColeMurray, Action: |
Terraform Validation Results
Pushed by: @ColeMurray, Action: |
Greptile OverviewGreptile SummaryRefactored PR creation flow by extracting orchestration logic from Key improvements:
The refactoring maintains backward compatibility and all tests pass. |
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.
7 files reviewed, 2 comments
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.
Pull request overview
Refactors the session pull request creation flow by moving PR orchestration into a dedicated SessionPullRequestService, while keeping SessionDO responsible for resolving the prompting participant and OAuth context. Adds new unit/integration coverage for PR creation and documents OpenAI model setup.
Changes:
- Introduce
SessionPullRequestServiceto orchestrate branch resolution, pushes, artifact writes, and PR creation/manual fallback. - Update
SessionDO.handleCreatePRto resolve prompting participant/auth and delegate PR creation to the new service. - Add integration/unit tests for PR creation flows and add OpenAI model configuration documentation (linked from README and Getting Started).
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/control-plane/test/integration/create-pr.test.ts | Adds integration coverage for create-PR endpoint error cases, manual fallback behavior, and artifact handling. |
| packages/control-plane/src/session/pull-request-service.ts | New service encapsulating PR orchestration (branch resolution, push, artifact writes, PR creation/manual fallback). |
| packages/control-plane/src/session/pull-request-service.test.ts | Unit tests for the new PR service covering error paths, manual fallback, PR creation, and manual artifact reuse. |
| packages/control-plane/src/session/durable-object.ts | Delegates PR orchestration to the new service; keeps participant/auth resolution in the DO. |
| docs/OPENAI_MODELS.md | New guide describing OpenAI model setup via OAuth credentials. |
| docs/GETTING_STARTED.md | Links to OpenAI model setup guide in the deployment walkthrough. |
| README.md | Mentions multi-provider model support and links to OpenAI model setup documentation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Terraform Validation Results
Pushed by: @ColeMurray, Action: |
Terraform Validation Results
Pushed by: @ColeMurray, Action: |
Summary
SessionDOSessionPullRequestServicefocused on PR orchestration (push, branch resolution, artifact writes, PR creation/manual fallback)Tests
npm run typecheck --workspace @open-inspect/control-planenpm run test -- src/session/pull-request-service.test.tsnpm run test:integration -- test/integration/create-pr.test.ts