fix: clear 'Plan Ready' on implementation in a new thread#1117
fix: clear 'Plan Ready' on implementation in a new thread#1117UtkarshUsername wants to merge 13 commits intopingdotgg:mainfrom
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 Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6efed9b736
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
- Carry `sourceProposedPlan` metadata in `thread.turn-start-requested` - Persist source plan thread/plan IDs on pending projection turns via migration 015 - Mark proposed plans implemented in runtime ingestion only after `turn.started` - Update decider, contracts, and ingestion tests to match new lifecycle
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: daee140d7e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts
Outdated
Show resolved
Hide resolved
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0e4354bc9a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts
Outdated
Show resolved
Hide resolved
|
@codex review. I hope this is the last 🤞 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d4bd52fa2c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review 😬 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 86a20d1b73
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Ok, I am going to continue these reviews in the cli now 😫 |
|
All the reviews found by the cli codex review were invalid or separate PR-worthy. So, let's go! |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d7a5164f66
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
- stop overwriting pending turn-start placeholders; append and consume oldest first - handle `provider.turn.start.failed` by deleting only the oldest pending placeholder row - extend ingestion test coverage for overlapping turn-start requests on a target thread
|
See #1133 |
You can view my issues and PRs at https://pr-navigator.pages.dev/t3code-utkarsh.
What Changed
This fixes the stale
Plan Readystate when a proposed plan is implemented viaImplement in new thread.On the backend side, proposed plans now carry implementation metadata,
thread.turn.startcan reference a source proposed plan, the decider marks that source plan as implemented when the new thread starts successfully, and projections/persistence round-trip that state.On the web side, the sidebar and chat view now treat only unimplemented proposed plans as actionable, so the source thread stops showing
Plan Readyand hides the follow-up plan actions after cross-thread implementation.Why
Before this change, same-thread implementation cleared
Plan Readybecause the thread leftplanmode, but the “implement in new thread” flow did not consume the source plan at all. That left the original thread in a stale actionable state even after the implementation thread had already started.The right fix is to make “implemented elsewhere” first-class domain state and have the UI consume that state, instead of patching the sidebar locally.
Partially fixes #978. Showing the link in UI can be done in another PR.
UI Changes
Posted the video on X because the file size was too large to upload here: https://x.com/UtkarshUsername/status/2033161459447087223?s=20
Checklist
Note
Clear 'Plan Ready' status when a proposed plan is implemented in a new thread
implementedAt,implementationThreadId) on proposed plans end-to-end: DB schema (migrations 014 and 015), contracts, projection, and frontend store.thread.turn.startcommand includes asourceProposedPlanreference, the decider validates it and carries it into thethread.turn-start-requestedevent; on acceptedturn.started, the ingestion service marks that plan as implemented.hasActionableProposedPlanhelper in session-logic.ts returns false for implemented plans;resolveThreadStatusPillin Sidebar.logic.ts uses it so threads with implemented plans show 'Completed' instead of 'Plan Ready'.sourceProposedPlanin the dispatch payload and gates the follow-up prompt onhasActionableProposedPlan.Macroscope summarized 7af5861.