refactor(arena): move arena-bridge to context and add reactive manager tracking

- Move useArenaInProcess from AppContainer to AgentViewProvider
- Replace polling with config.onArenaManagerChange() callback
- Add success-type progress messages when agents finish tasks
- Add isSuccessStatus helper for IDLE/COMPLETED status checks
- Reset input history position when arena session starts

This improves separation of concerns and eliminates the 500ms polling
interval in favor of immediate reactive updates when the arena manager
changes.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
tanzhenxin 2026-03-10 21:45:30 +08:00
parent addbdcb0ef
commit d7aa98a0c0
13 changed files with 178 additions and 134 deletions

View file

@ -163,7 +163,7 @@ export async function startInteractiveUI(
>
<SessionStatsProvider sessionId={config.getSessionId()}>
<VimModeProvider settings={settings}>
<AgentViewProvider>
<AgentViewProvider config={config}>
<AppContainer
config={config}
settings={settings}