Skip to content

feat(agentic): add Multitask mode and improve subagent background delivery#762

Merged
wsp1911 merged 6 commits into
GCWing:mainfrom
wsp1911:main
May 18, 2026
Merged

feat(agentic): add Multitask mode and improve subagent background delivery#762
wsp1911 merged 6 commits into
GCWing:mainfrom
wsp1911:main

Conversation

@wsp1911
Copy link
Copy Markdown
Collaborator

@wsp1911 wsp1911 commented May 18, 2026

This PR expands the agentic workflow with a new Multitask mode and a GeneralPurpose subagent, while improving background subagent task delivery and session behavior consistency.

Key updates:

  • Add built-in Multitask mode and expose it across registry, defaults, remote mapping, and localized frontend mode selectors.
  • Add GeneralPurpose subagent support.
  • Introduce background subagent task delivery, including run_in_background handling and improved coordinator/scheduler/execution flow.
  • Fix background result delivery so returned results are surfaced correctly in parent conversations.
  • Preserve agent mode across session history reload/rollback and improve mode restoration behavior.
  • Streamline session workspace resolution and allow more flexible session targeting in session-related tools.
  • Clean up temporary directories created by bitfun-core tests to keep test runs isolated.

Impact

  • Improves multi-task agent workflows.
  • Makes subagent background execution and result delivery more reliable.
  • Reduces session/mode inconsistencies across history changes.
  • Improves test environment hygiene.

wsp1911 added 5 commits May 17, 2026 23:07
- add a shared session workspace resolver in the coordinator and session
  manager
- let cron, session control, and session history infer workspace from
  session_id when possible
- allow SessionMessage to create a new target session when session_id is
  omitted
- tighten tool input validation and add regression tests for the new
  session workflows
- isolate session and subagent test temp workspaces with Drop cleanup
- clean up temp repos used by function agent port adapter tests
- clean up miniapp runtime and storage temp roots after tests
- keep bitfun-core test runs from leaving bitfun-* directories in Temp
- persist agent_type on user dialog turns and cache the last surviving dialog mode in session state
- restore and clear previous mode correctly during session reload and rollback so reminders reflect real mode transitions
- share coding mode prompt/tool defaults and expose plan/debug helpers consistently across modes
- add test coverage for persisted turn mode recovery and rollback-to-empty behavior
- add `run_in_background` support to Task tool and return a background task handle
- generalize round steering into round injection for current-turn and exact-turn delivery
- deliver background subagent results via steering when parent is running
- start a new parent turn automatically when background results arrive while idle
- wire scheduler/coordinator/execution engine to the new background delivery flow
@wsp1911 wsp1911 marked this pull request as ready for review May 18, 2026 01:21
…ult delivery

- add builtin Multitask mode with agentic-equivalent tooling and multitask-specific reminders
- surface Multitask across mode registry, model defaults, skill policy, remote mapping, and localized frontend mode pickers
- fix chat input mode filtering and persisted agent-type validation so Multitask can be selected in the UI
- move agent system reminders ahead of user_query when wrapping turn input
- correct background subagent result delivery semantics so result turns display the actual returned result instead of the original delegated task
@wsp1911 wsp1911 merged commit 0d435f2 into GCWing:main May 18, 2026
4 checks passed
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.

1 participant