github Fu-Jie/openwebui-extensions github-copilot-sdk-v0.13.0
GitHub Copilot Official SDK Pipe v0.13.0

6 hours ago

Release Scope: v0.13.0 is the first release to ship both Agent Team multi-agent collaboration and a fully end-to-end operative SESSION_MODE. These two capabilities are independent but together represent a step-change in what the Copilot SDK Pipe can do: coordinate multiple AI models as a team, while controlling exactly how autonomous or interactive each session should be.

Overview

v0.13.0 ships two major additions. Agent Team introduces native multi-agent orchestration: configure a group of OpenWebUI custom models as sub-agents, pick a leader, and every agent automatically shares the same tool capabilities (OpenWebUI skills + MCP servers) as the base session. Session Mode gets its first fully end-to-end implementation: the [Active Session Mode] directive is now injected into the system prompt (aligned with the official Copilot SDK agent-loop documentation), making autopilot, interactive, and plan modes genuinely distinct at the LLM level — not just a valve setting.


New Features

  • Agent Team: Coordinate a team of OpenWebUI custom models as sub-agents within a single Copilot SDK session. Select agents by tag (AGENT_TEAM_TAG) or explicit model IDs (AGENT_TEAM_MODEL_IDS), and designate a team leader (AGENT_TEAM_LEADER). Each agent automatically inherits the same tool capabilities (OpenWebUI skills + MCP servers) as the base session, ensuring consistent capability across the whole team. Available at both global (Valves) and per-user (User Valves) levels. A _resolve_agent_team() bug that caused a crash on every agent-team session was fixed simultaneously.

  • Active Session Mode Awareness: A mode-specific [Active Session Mode] block is now injected after BASE_GUIDELINES in the system prompt. The language is directly aligned with the official Copilot SDK agent-loop docs:

    • autopilot: Agent drives the task end-to-end without pausing; CLI sends a continuation nudge if task_complete is not called.
    • interactive: Agent completes the immediate request and stops; no continuation nudge is injected.
    • plan: Agent researches and produces a structured plan before any implementation; waits for user approval before proceeding (user's direct override takes priority).
  • Mode-Aware Adaptive Workstyle: _build_adaptive_workstyle_context() now accepts a session_mode parameter and injects a mode-specific preamble. Each mode shapes the Agent's execution rhythm at the workstyle level in addition to the mode directive level — double reinforcement.

  • SDK Mode Set Hardened: Both the resume-session and create-session code paths now call session.rpc.mode.set() inside asyncio.wait_for(timeout=5.0). Failure is logged at WARNING level and surfaced as a debug notification (system-prompt directive still applies even if SDK call fails).


Bug Fixes

  • UnboundLocalError on New Session (HIGH): The create-session path referenced final_system_msg in a debug log, but that variable is only assigned on the resume path. Every brand-new session's first turn was crashing with an UnboundLocalError. Fixed by removing the variable reference from the create-path log.

  • User Override Rule Silenced (MEDIUM): The [Active Session Mode] block used hard MUST/STOP language that overrode BASE_GUIDELINES §8's "user's direct instruction overrides the configured mode" rule. Fixed by adding unless the user explicitly instructs otherwise clauses to the interactive and plan directives.

  • False CLI Enforcement Claim (MEDIUM): The autopilot directive claimed "The Copilot CLI enforces this mode at the infrastructure level" unconditionally, but mode.set() can fail. Softened to "When autopilot mode is active at the SDK level, the Copilot CLI automatically sends a continuation nudge…" — accurate under both success and failure conditions.


Improvements

  • System Prompt Overhaul: Generalized hardcoded Copilot CLI tool names (view_file, show_file, read_bash, write_bash, mode="sync") and removed inapplicable conventions (mandatory Co-authored-by: Copilot trailer). Resolved SQL pattern contradiction (todos/todo_deps for task tracking vs. interactive_controls for Rich UI state).

  • SESSION_MODE Global Resolution: effective_session_mode is resolved once at the top of _pipe_impl with priority: user_valve > global valve > "autopilot". This cleanly separates mode resolution from agent team logic.


Migration Notes

None. All changes are internal to the system prompt and session lifecycle. No Valve keys were renamed or removed.


Version Changes

  • GitHub Copilot SDK Pipe: v0.12.3 → v0.13.0 | 📖 README

📚 Documentation Portal
🐛 Report Issues

Version Changes

Plugin Updates

  • GitHub Copilot Official SDK Pipe: v0.12.3 → v0.13.0 | 📖 README

📚 Documentation Portal
🐛 Report Issues

Don't miss a new openwebui-extensions release

NewReleases is sending notifications on new releases.