Updated 2026-06-19

Web Workbench

AgentHub Web (port 5174) is the Hub-backed IM-form collaboration surface. It shares the same workbench UI with Desktop, showing the agent conversation in chat and review results in dedicated panels. A team can see projects, shared sessions, run history, review state, and integration-created tasks without the browser having direct access to a developer’s local filesystem or CLI processes.

NOTE

The Web workbench is an active development surface. It can be previewed locally with Hub-backed sessions. Full production Web + Hub + Edge routing and database-backed workbench views are still in development.

When To Use Web

Use AgentHub Web when the workflow needs shared visibility rather than direct local execution:

ScenarioUse Web forUse Desktop / Edge for
Team reviewShared conversation, review state, audit trailLocal file preview and local diff approval
Project overviewProject context, tasks, agents, devices, run historyWorkspace management and runtime process control
IM-created workHub task created from Feishu/Lark or automationRuntime execution after Hub authorization
Remote target planningTarget selection, authorization state, degraded stateActual workspace access through an approved Edge

Web is the collaboration layer. Local execution belongs to Desktop plus Edge.

Surface Model

A complete Web workbench organizes these surfaces without turning the page into a generic chat app:

SurfacePurposeCurrent status
Project listEntry point for team-owned workIn progress
Project detailContext, files, runs, agents, tasks, membersIn progress
Shared sessionIM-form group chat, selected agent, target, events, approvalsIn progress
Review viewResults, diffs, comments, approve/reject actionsIn progress
Target/device viewOnline state, authorization, last seen, capabilitiesIn development
Audit/status viewProduct events, degraded state, failure reasonIn progress

Hub Contract

Web talks to Hub. Hub owns identity, product sessions, project membership, device routing, task creation, shared state, and audit.

The minimum useful Hub-backed Web session includes:

  • TokenDance ID subject and AgentHub product session (OIDC PKCE).
  • Project id, role, and membership state.
  • Task or run id.
  • Selected Agent Profile and target Edge.
  • Conversation events and run lifecycle events.
  • Results, diffs, approvals, and failure reviews.
  • Audit events for who requested, approved, rejected, cancelled, or escalated work.

Web renders local execution state only after Hub has authorized the target and Edge has emitted safe events.

Local File Boundary

The core rule for Web: Web does not own the local filesystem.

RequestCorrect behavior
User asks Web to inspect local filesCreate a Hub task and route to an authorized Edge target
User opens a diff produced by EdgeRender normalized diff data, not arbitrary local paths
User clicks approveSend a Hub/Edge approval action with audit context
User asks for a terminal commandRequire explicit policy and route through Edge approval
Edge is offlineShow unavailable or degraded state

Public screenshots should avoid private absolute paths, secrets, provider keys, internal host names, and real user data.

Interaction States

Web exposes stable product states that are readable in desktop and mobile layouts:

StateMeaningUI expectation
EmptyNo project or run selectedCompact prompt to pick or create a task
ReadyHub session and project context are loadedClear primary action, visible target state
RunningEdge has accepted the run and streams eventsMessage stream, progress, cancel affordance
Needs approvalEdge is waiting on user or reviewer actionResults (diffs/artifacts) visible, decision controls clear
CompletedRun finished with resultsSummary, results, next action
FailedRuntime, policy, schema, auth, or network failureStable error code and recovery path
DegradedTarget, Hub, or integration is partially unavailableHonest status display

Avoid jumpy layout, heavy hover shadows, old purple accents, black footer blocks, and browser-default blue focus outlines in product mocks. Focus states still need to exist for real controls, but mock-only decorative controls should not look like selected DOM.

Review Flow

A Web review flow makes the decision chain visible:

  1. A user, integration, or automation creates a Hub task.
  2. Hub resolves project membership, product authorization, Agent Profile, and target policy.
  3. Edge starts the runtime only after authorization and workspace policy pass.
  4. Edge streams normalized events and candidate results.
  5. Web renders the conversation, results, diffs, and approval state.
  6. A reviewer approves, rejects, comments, escalates, or cancels.
  7. Hub records audit events and exposes final state.

Design Requirements

Web follows the same product direction as AgentHub Desktop and the public website. Both share the same workbench UI:

  • Light-first TokenDance Blue surfaces.
  • Dense but readable tool layouts.
  • Small radii and restrained glass.
  • Icon-first controls where the meaning is familiar.
  • No marketing cards inside tool panes.
  • Tables and panels that do not overflow on mobile.
  • zh/en text that describes the same capability and status.
  • Chat messages and review results rendered consistently with Desktop.
  • Motion that helps continuity without changing layout after hydration.

Evidence Checklist

Before moving Web copy from “in progress” to a stronger claim, capture:

EvidenceWhat to prove
Route screenshotProject/session/review route renders in desktop and mobile
Hub API traceWeb reads Hub state through product session boundaries
Edge routing traceTarget selection and Edge events are authorized through Hub
Review screenshotReview surface renders workbench contracts and does not expose private paths
Approval auditApprove/reject/cancel actions produce recorded events
Failure screenshotOffline target, unauthorized target, runtime unavailable, and timeout are readable
Edit this page on GitHub