Commits merged: - fix(FN-2994): gate unavailable research workflow and humanize provider labels - fix(FN-2994): polish research view form and history interactions - feat(FN-2994): complete Step 5 — document research view architecture - fix(FN-2994): align status-dot variant and hook/test conventions - fix(FN-2994): address lint and typecheck issues - test(FN-2994): cover research lifecycle actions and pending status - fix(FN-2994): polish research actions and cited reader behavior - feat(FN-2994): complete Step 3 — add lifecycle actions and task flows - fix(FN-2994): ensure research enables header overflow gate - feat(FN-2994): complete Step 2 — implement research view shell layout - feat(FN-2994): complete Step 2 — gate research navigation and view - feat(FN-2994): complete Step 1 — add research api surface and hook Files changed: docs/architecture.md | 7 +- docs/dashboard-guide.md | 21 ++ packages/dashboard/app/App.tsx | 11 +- packages/dashboard/app/api/legacy.ts | 143 ++++----- packages/dashboard/app/components/Header.tsx | 29 +- packages/dashboard/app/components/MobileNavBar.tsx | 22 +- packages/dashboard/app/components/ResearchView.css | 247 +++++++++------ packages/dashboard/app/components/ResearchView.tsx | 347 ++++++++++++++------- .../app/components/__tests__/ResearchView.test.tsx | 183 ++++++----- .../app/hooks/__tests__/useResearch.test.ts | 66 ++++ packages/dashboard/app/hooks/useResearch.ts | 162 ++++++++++ packages/dashboard/app/research-types.ts | 43 +++ packages/dashboard/app/styles.css | 4 + .../src/__tests__/research-routes.test.ts | 65 ++++ packages/dashboard/src/research-routes.ts | 195 ++++++++++-- 15 files changed, 1111 insertions(+), 434 deletions(-) Fusion-Task-Id: FN-2994
15 KiB
Dashboard Guide
The Fusion dashboard is the main control plane for tasks, agents, missions, settings, logs, and repository operations.
Board View
Board view is the kanban surface for day-to-day operation.
Features:
- Drag-and-drop between lifecycle columns
- Search/filter tasks
- Column visibility controls
- Inline quick entry creation
- PR/issue badges with live updates
List View
List view is optimized for dense task management.
Features:
- Sectioned task table grouped by lifecycle column
- Sortable columns (ID/title/status/column)
- Column visibility toggles and optional hide-done filtering
- Bulk selection + batch model updates
Chat View
Chat view provides project-scoped conversations with agents.
Quick Chat
Quick Chat is an optional floating panel for fast, project-scoped assistant conversations without leaving your current view.
- Controlled by the project setting
showQuickChatFAB - Supports agent mentions (
@agent) and file mentions - Uses the same model/provider infrastructure as full Chat view
- On small screens, compact tool-call summaries in the floating panel intentionally stay single-line (count + tool names + status) to preserve message density
switchSession()resumes the existing thread for the selected target (agent-only or agent+model)startFreshSession()is the explicit new-thread action and always creates a new persisted session- Resume lookups use a targeted session query instead of loading the full active session list first
- Tool-call summaries in the floating quick-chat panel are intentionally condensed into a single-line header row (especially on small screens) so tool name + status stay scannable without multi-line wrapping
- On mobile viewports, opening Quick Chat auto-focuses the composer as soon as it is ready so the keyboard opens immediately
Mailbox View
Mailbox view shows inbox/outbox communication threads and unread state.
Interactive Terminal
Fusion embeds a terminal using xterm.js.
Features:
- Multiple terminal tabs
- PTY-backed shell sessions
- Mobile-aware virtual keyboard handling and auto-refit behavior
Git Manager
Git manager centralizes repo operations in the dashboard.
Features:
- Branch/worktree visibility
- Commit and diff browsing
- Push/pull/fetch actions
- Remote editing controls
Documents View
Documents view aggregates task documents and project markdown files.
Features:
- Group task documents by task ID (with revision history metadata)
- Search documents across tasks
- Open project markdown files with inline preview
- Jump directly from a document group to the owning task detail modal
- Toggle between raw text and rendered markdown using the Markdown/Plain button
Markdown Rendering
Documents view supports toggling between raw text and formatted markdown when viewing document content:
- Raw mode (default): Shows markdown syntax as plain text (e.g.,
**bold**) - Markdown mode: Renders markdown with proper formatting (e.g., bold, headings, lists, tables)
The toggle button is accessible with aria-pressed for screen readers. Toggle state is scoped per-document, so switching between documents resets the view to raw mode.
Research View
Research view is a standalone dashboard surface for creating and managing research runs.
Available when
experimentalFeatures.researchViewis enabled.
Features:
- Create-run form with required query text and selectable provider options
- Searchable run history list with project-scoped state
- Selected-run reader with summary, citations, findings, and run event history
- Run lifecycle controls: cancel, retry, and refresh
- Export actions for supported formats (
markdown,json,htmlas advertised by backend availability) - Task-facing actions to create a new task from findings or attach findings to an existing task
- Graceful unavailable/setup messaging when research backend capability is disabled or not configured
Navigation:
- Desktop: Header → More views overflow menu
- Mobile: More sheet in
MobileNavBar - Research is intentionally not shown in the primary board/list/agents/missions/chat toggle row
Memory View
Memory view provides a multi-file editor for project and daily memory files.
Available when the
experimentalFeatures.memoryViewtoggle is enabled.
Task Detail Modal
Inspect task definition, logs, comments, documents, workflow outcomes, model overrides, and task routing from a single modal.
The Routing tab shows:
- effective node
- routing source (task override vs project default vs local)
- unavailable-node policy value
- per-task node override controls (locked while task is active)
Project-wide routing defaults are configured in Settings → Node Routing.
Node Dashboard
The Node Dashboard provides a mesh view of connected Fusion nodes. Each node can be a local instance or a remote headless node (fn serve).
Local/Remote Node Switching
When remote nodes are available, the dashboard header displays a node status indicator:
- Local mode — Shows a green "Local" badge, indicating the dashboard is connected to the local Fusion instance
- Remote mode — Shows the remote node name with its connection status (online/offline/connecting)
Click the chevron next to the status indicator to open the node selector dropdown:
- Local — Switch back to viewing the local Fusion instance
- Remote nodes — Select a remote node to view its tasks, projects, and status
How Node Switching Works
- The node selector appears in the header when remote nodes are registered in the mesh
- Selecting a remote node routes all API calls through the proxy endpoint (
/api/proxy/:nodeId/...) - Task data (projects, tasks) is fetched from the remote node and displayed in the dashboard
- SSE events from the remote node are streamed via the proxy and update the dashboard in real-time
- Selecting "Local" returns to the local Fusion instance with full local data
Benefits of Remote Node Viewing
- Monitor task progress across distributed teams
- View task status on remote headless nodes without direct SSH access
- Compare project health across multiple Fusion instances
- Stay informed about remote agent activity and task completion
Node Status Indicators
| Status | Color | Meaning |
|---|---|---|
| Online | Green | Node is connected and responsive |
| Offline | Red | Node is unreachable or shut down |
| Connecting | Yellow (pulsing) | Connection attempt in progress |
Persistence
The selected node persists across browser sessions via localStorage. If the selected remote node is unregistered, the dashboard automatically falls back to local mode.
Remote Access (Settings)
Dashboard remote controls live in Settings → Remote Access.
From this section, operators can:
- Configure Tailscale and Cloudflare provider fields
- Activate the current provider
- Start/stop tunnel lifecycle manually
- Generate login URLs / QR payloads using persistent or short-lived token mode
For setup prerequisites, security caveats for tokenized URLs/QR links, and troubleshooting, use the canonical Remote Access runbook.
Skills API
The Skills API provides endpoints for managing execution skills. Skills are toggled via project-scoped settings in .fusion/settings.json.
GET /api/skills/discovered
List all discovered skills with their enabled state.
Response: 200 OK
{
"skills": [
{
"id": "npm%3A%40example%2Fskill::skills/foo/SKILL.md",
"name": "foo/SKILL.md",
"path": "/path/to/skills/foo/SKILL.md",
"relativePath": "skills/foo/SKILL.md",
"enabled": true,
"metadata": {
"source": "npm:@example/skill",
"scope": "project",
"origin": "package"
}
}
]
}
Skill ID Format: encodeURIComponent(metadata.source) + "::" + relativePath
- Top-level skills use
source: "*" - Package skills use the package source identifier
Error Response: 404 Not Found
{
"error": "Skills adapter not configured",
"code": "adapter_not_configured"
}
GET /api/skills/:id/content
Fetch a skill's SKILL.md content and supplementary file metadata.
Response: 200 OK
{
"content": {
"name": "foo/SKILL.md",
"skillMd": "# Foo Skill\n...",
"files": [
{
"name": "examples",
"relativePath": "skills/foo/examples",
"type": "directory"
},
{
"name": "example.ts",
"relativePath": "skills/foo/examples/example.ts",
"type": "file"
}
]
}
}
Error Responses:
400 Bad Request— invalid encoded skill ID (code: "invalid_skill_id")404 Not Found— skill not found (code: "skill_not_found") or adapter missing (code: "adapter_not_configured")
PATCH /api/skills/execution
Toggle a skill's enabled/disabled state.
Request Body:
{
"skillId": "npm%3A%40example%2Fskill::skills/foo/SKILL.md",
"enabled": true
}
Response: 200 OK
{
"success": true,
"skillId": "npm%3A%40example%2Fskill::skills/foo/SKILL.md",
"enabled": true,
"persistence": {
"scope": "project",
"targetFile": "/path/to/.fusion/settings.json",
"settingsPath": "packages[].skills",
"pattern": "+skills/foo/SKILL.md"
}
}
Toggle Semantics:
- Top-level skills (
origin: "top-level"): Mutatesettings.skills- Enable: ensures
+<relativePath>exists, removes-<relativePath> - Disable: ensures
-<relativePath>exists, removes+<relativePath>
- Enable: ensures
- Package skills (
origin: "package"): Mutatesettings.packages[].skillsfor the matchingmetadata.source- If the package entry is a string, it's converted to an object
{ source: <same>, skills: [] } - Other package fields (
extensions,prompts,themes) are preserved
- If the package entry is a string, it's converted to an object
Error Responses:
400 Bad Request— Invalid request body{ "error": "skillId is required", "code": "invalid_body" }404 Not Found— Adapter not configured{ "error": "Skills adapter not configured", "code": "adapter_not_configured" }
GET /api/skills/catalog
Fetch the skills.sh catalog with optional authentication.
Query Parameters:
limit(optional): Number of results (default 20, max 100)q(optional): Search query string
Response: 200 OK
{
"entries": [
{
"id": "example-skill",
"slug": "example-skill",
"name": "Example Skill",
"description": "An example skill",
"tags": ["utility"],
"installs": 100,
"installation": {
"installed": true,
"matchingSkillIds": ["npm%3A%40example%2Fskill::skills/example/SKILL.md"],
"matchingPaths": ["skills/example/SKILL.md"]
}
}
],
"auth": {
"mode": "unauthenticated",
"tokenPresent": false,
"fallbackUsed": false
}
}
Authentication Flow:
- If
SKILLS_SH_TOKENenv var is present, use authenticated request - If authenticated request returns
400/401/403, retry without authentication (fallback mode) - If no token, use unauthenticated request directly
Unauthenticated Short-Query Behavior:
- Public
skills.sh /api/searchrequests are only sent whenqhas at least 2 characters - For omitted, empty, or 1-character queries, the API returns
200with{ entries: [] } - This applies both to direct unauthenticated mode and authenticated-to-unauthenticated fallback mode, preventing upstream
400 Bad Requestresponses during initial load
Auth Mode Values:
authenticated— Request made with tokenunauthenticated— Request made without token (no token available)fallback-unauthenticated— Initial authenticated request failed with 401/403, retried without token
Error Response: 502 Bad Gateway
{
"error": "Upstream request timed out",
"code": "upstream_timeout"
}
Possible error codes:
upstream_timeout— Request timed outupstream_http_error— Upstream returned an error statusupstream_invalid_payload— Upstream returned invalid response format
Agent Import
The Agent Import feature allows you to import agents from Agent Companies packages. When importing agents from companies.sh or local directories, Fusion now also persists any skill definitions from the package.
How It Works
-
Select Source: Choose to import from:
- The companies.sh catalog (browse and search)
- A local directory containing AGENTS.md files
- A single manifest file (.md or .txt)
- Paste manifest content directly
-
Preview: Review the agents and skills that will be imported before confirming
-
Import: Upon confirmation:
- Agents are created in Fusion's agent store
- Skills are persisted to
skills/imported/{companySlug}/{skillSlug}/SKILL.md - Each skill's
SKILL.mdcontains YAML frontmatter with skill metadata and the instruction body
Skill Persistence
Skills from Agent Companies packages are persisted to the project-local skills directory:
{projectRoot}/
skills/
imported/
{companySlug}/ # slugified company name or "unknown-company"
{skillSlug}/ # slugified skill name
SKILL.md # skill manifest with frontmatter + instructions
Collision Handling: If a SKILL.md file already exists at the target path, the import skips that skill (does not overwrite). This prevents accidental data loss.
Path Safety: All path segments are slugified to prevent directory traversal attacks. Special characters are removed and whitespace is normalized to hyphens.
Import Result
The import result shows:
Agents:
- Number of agents created
- Number of agents skipped (already exist)
- Number of errors (import failures)
Skills:
- Number of skills imported (written to disk)
- Number of skills skipped (already exist)
- Number of skill errors (write failures)
API Response
The POST /api/agents/import endpoint returns skill import results:
{
"companyName": "Example Co",
"companySlug": "example-co",
"created": [{ "id": "agent-1", "name": "CEO" }],
"skipped": [],
"errors": [],
"skillsCount": 3,
"skills": {
"imported": [
{ "name": "review", "path": "skills/imported/example-co/review/SKILL.md" },
{ "name": "strategy", "path": "skills/imported/example-co/strategy/SKILL.md" }
],
"skipped": [],
"errors": []
}
}
The skills object contains detailed import outcomes for each skill from the package.










