Merged
Conversation
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.
feat: Webui improvement
Description
Improves automation mode and web UI integration to provide better progress monitoring capabilities when running MassGen in automated/headless workflows. Also adds auto-launch functionality and session management improvements.
Closes MAS-137
Key Features
1. Auto-Launch with URL Parameters
The web UI now supports URL parameters to auto-start coordination:
When using
--webwith a question and config, the browser auto-opens with the coordination already starting:New
--no-browserflag to disable auto-opening:massgen --config config.yaml --web --no-browser "What is 2+2?"2. Combined
--automation+--webModeWhen both flags are specified, the web UI shows an automation-friendly timeline view instead of the full interactive interface. This allows external tools (LLM agents, CI pipelines) to monitor coordination progress visually.
3. Status File Path Display
Automation mode now prints
LOG_DIRandSTATUSpaths at startup for easy monitoring:4. Enhanced Terminal Timeline Output
The
SilentDisplay(used in automation mode) now prints a structured timeline showing votes, reasons, and results:5. Session Management Improvements
Type of change
feat:) - Non-breaking change which adds functionalityChecklist
Pre-commit status
How to Test
Test CLI Commands
Auto-launch (browser opens automatically):
Auto-launch with --no-browser:
massgen --config config.yaml --web --no-browser "What is 2+2?"Automation + Web mode:
massgen --config config.yaml --automation --web "What is 2+2?"Automation-only mode:
massgen --config config.yaml --automation "What is 2+2?"Interactive web mode (regression test):
Session management:
http://localhost:8000Expected Results
--web "question"--automation --web--automation--webFiles Changed
CLI Changes
massgen/cli.py--no-browserflag, URL param generation, auto-open browser, passautomation_modeto serverBackend Changes
massgen/frontend/displays/silent_display.py_print_timeline()for structured vote outputmassgen/frontend/displays/web_display.pymassgen/frontend/web/server.pyWeb UI Changes
webui/src/App.tsxwebui/src/components/AutomationView.tsxwebui/src/components/HeaderControls.tsxwebui/src/stores/agentStore.tsautomationModeandlogDirstatewebui/src/types/index.tsAdditional Context
This PR addresses the feature requests from the original issue:
--weband--automationare specified, web UI shows progress (timeline view)--automationmode prints the location of status.jsonAdditional improvements:
--webwith question+config