feat: carry push-back context into AI steps#2109
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (15)
📝 WalkthroughWalkthroughThis PR adds support for capturing and propagating the previous stdout of rewound DAG nodes during push-back iterations. New environment variables, node fields, and executor interfaces enable chat and harness executors to access previous stdout when re-executing steps with reviewer feedback. ChangesPush-Back Previous Stdout Propagation
Sequence DiagramsequenceDiagram
participant DagAPI as DAG API<br/>(dagruns.go)
participant Runner as Runner<br/>(runner.go)
participant Node as Node<br/>(node.go)
participant Executor as Executor<br/>(chat/harness)
participant State as State<br/>(data.go)
DagAPI->>DagAPI: Capture node.Stdout<br/>before reset
DagAPI->>DagAPI: Call setPushBackContext<br/>with previousStdout
DagAPI->>State: Store PushBackPreviousStdout<br/>in NodeState
Runner->>Runner: setupNodeExecutionEnv
Runner->>Runner: Inject env vars:<br/>DAG_PUSHBACK_ITERATION<br/>DAG_PUSHBACK_PREVIOUS_STDOUT_FILE
Node->>Executor: Execute command
Executor->>Executor: Check if implements<br/>PushBackPreviousStdoutAware
Node->>Executor: SetPushBackPreviousStdout(path)<br/>if ApprovalIteration > 0
Executor->>Executor: Use previous stdout<br/>in message/prompt<br/>construction
Executor->>Executor: Format feedback<br/>with context
Executor->>Executor: Augment prompt<br/>with log reference
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
Summary
Validation
Summary by CodeRabbit
Release Notes