feat(agentic): add Multitask mode and improve subagent background delivery#762
Merged
Conversation
- 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
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR expands the agentic workflow with a new
Multitaskmode and aGeneralPurposesubagent, while improving background subagent task delivery and session behavior consistency.Key updates:
Multitaskmode and expose it across registry, defaults, remote mapping, and localized frontend mode selectors.GeneralPurposesubagent support.run_in_backgroundhandling and improved coordinator/scheduler/execution flow.bitfun-coretests to keep test runs isolated.Impact