Skip to content

Autopilot Mode#1497

Merged
nturinski merged 12 commits into
feat/CoRfrom
nat/yoloMode
Jun 18, 2026
Merged

Autopilot Mode#1497
nturinski merged 12 commits into
feat/CoRfrom
nat/yoloMode

Conversation

@nturinski

Copy link
Copy Markdown
Member

Tested this and it was working, but I need to look at the code a bit more closely

@nturinski nturinski requested a review from a team as a code owner June 16, 2026 20:29
@MicroFish91

Copy link
Copy Markdown
Contributor

@copilot can you give me a high level summary of the changes

Copilot AI commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

@copilot can you give me a high level summary of the changes

High-level, the last two commits do two things:

  • They introduce Autopilot/YOLO mode across the Copilot-on-Rails flow so planning/scaffolding/debug phases can run unattended, with mode propagation via markers/files and updated agent instructions under resources/agents/**.
  • They tighten the hand-off behavior in the extension by starting a fresh chat session per phase transition (plan/scaffold/debug entry points), so each agent runs with cleaner context while still using .azure/* files as shared state.

Net effect: a more automated end-to-end flow with clearer execution rules and less cross-phase chat-context bleed.

Copilot AI requested a review from MicroFish91 June 17, 2026 23:01

@MicroFish91 MicroFish91 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM

if (!(await ensureAgentInstructions('azure-project-scaffold'))) {
return;
}
// Fresh chat session per phase hand-off — the scaffold agent reads the approved

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably can skip the comments explaining why we run newChat each time

}

/** Best-effort restore on extension shutdown. */
export function deactivateAutopilot(): void {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this wrapping function necessary / can we consolidate to just one?

@nturinski

Copy link
Copy Markdown
Member Author

Made some security changes, specifically a global timeout that turns autopilot off after 2 hours if the session hangs/etc.

@nturinski nturinski merged commit 501d137 into feat/CoR Jun 18, 2026
2 checks passed
@nturinski nturinski deleted the nat/yoloMode branch June 18, 2026 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants