Repository navigation
Conversation
- Implement multi-dimensional context synthesis with inception goal tracking - Add Markdown memory distillation to .opencode/auto-drive.md - Introduce supervisor model steering with graceful heuristic degradation - Add interactive UI toggle with status indicator and settings controls - Support /autodrive and /auto-drive slash commands - Set default client follow-up delivery mode to queue - Enable infinite exponential backoff retry for provider transient errors
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
The following comment was made by an LLM, it may be inaccurate: Based on my search, I found one potentially related PR: Related PR Found:
Why it might be related: Both PRs appear to be part of the autonomous execution feature set, with PR #45379 focusing on the goal command aspect and PR #45837 (current) implementing the broader auto-drive execution engine that includes goal tracking ( Recommend checking if PR #45379 is merged or still open, and whether there's any overlap in the goal command implementation versus the auto-drive engine's goal tracking capabilities. |
|
Closing to update with English-first localization, refreshed defaults, and an expanded architectural philosophy. |
Summary
This PR introduces Auto-Drive (智能续推 / 自动领航), an autonomous execution engine that enables perpetual, self-driving session continuation across turns:
Multi-dimensional Context Synthesis (
packages/core/src/session/auto-drive.ts):initialGoal) across turns to avoid goal drifting during long-running sessions.lastText) and checks for explicit upcoming steps, continuation prompts, and completion status.Project Memory & Strategy Distillation (
.opencode/auto-drive.md):.opencode/auto-drive.mdin the project root to load active roadmaps, milestones, and learned patterns.Supervisor Model Steering with Graceful Degradation:
finish === "stop").UI & User Experience Integration:
packages/app/src/components/prompt-input-v2.tsx).SettingsGeneral&SettingsGeneralV2)./autodriveand/auto-driveslash commands (packages/core/src/plugin/command.ts,packages/opencode/src/command/index.ts,.opencode/command/auto-drive.md).queueso human interventions insert smoothly into the ongoing workflow without abrupt termination.Infinite Exponential Backoff for Provider Transient Failures:
packages/opencode/src/session/retry.ts) to retry without a fixed 5-attempt cap on 429/5xx errors, ensuring resilience for long-running autonomous sessions.Testing
packages/core/test/session-auto-drive.test.ts(100% pass).packages/core/test/session-runner.test.tspass cleanly (100% pass).packages/core/test/session-prompt.test.tspass cleanly (100% pass).bun turbo typecheck(30/30 packages) andbun typecheckpass with 0 errors.