Commit Graph

321 Commits

Author SHA1 Message Date
lyon c73b19fcaa feat(web): configure trace explorer links 2026-06-20 16:26:54 +08:00
lyon 3f83852f60 fix: persist workbench projection cursor 2026-06-19 21:20:11 +08:00
lyon c950709b25 fix(workbench): gc stale empty sessions 2026-06-19 01:16:00 +08:00
lyon 08b2e3077a fix: converge workbench session authority 2026-06-18 15:24:16 +08:00
lyon 2afdb2d9ea fix: tune v03 cloud api health probe budget 2026-06-18 00:19:09 +08:00
lyon 545fa2fbc3 fix: detect runtime config changes in ci plan 2026-06-17 22:07:10 +08:00
lyon 05f1e8ccd7 fix: stabilize D601 env reuse planning 2026-06-16 07:50:51 +08:00
Lyon ea3b26b895 fix: scope Go envreuse packages to Go services (#1131) 2026-06-13 16:22:21 +08:00
Lyon 0edcf9e588 feat: add v03 user billing service (#1128) 2026-06-13 14:26:37 +08:00
root 42b68db978 fix: rebuild missing v03 env reuse images 2026-06-12 19:14:02 +00:00
Codex Agent 56581a4373 fix: use Tekton proxy for env reuse downloads 2026-06-12 18:12:41 +00:00
Codex Agent 1b026d01c4 fix: use external postgres for v0.3 runtime lane 2026-06-09 10:05:49 +08:00
Codex Agent bdc90fb294 fix: align v0.3 public ports 2026-06-09 03:13:32 +08:00
Codex Agent 187fb80a5d refactor: make v0.3 runtime node-scoped 2026-06-08 22:19:30 +08:00
Codex Agent e8ab452b10 fix: separate gitops root from render output 2026-06-08 17:53:14 +08:00
Codex Agent 1ce1a40292 refactor: model runtime lanes by node config 2026-06-08 17:44:25 +08:00
Codex Agent f4b6c12488 Configure runtime lane download stack 2026-06-08 15:39:17 +08:00
Codex Agent 5e59a75ff8 Generalize CI plan runtime lanes 2026-06-08 15:07:35 +08:00
Codex Agent 1657c84697 Generalize runtime lane git mirror refs 2026-06-08 14:46:20 +08:00
Codex Agent 6c5166d816 Add HWLAB v0.3 lane expansion config 2026-06-08 14:08:18 +08:00
Codex Agent 916838bde4 feat: update caserun aggregation and v02 deploy config 2026-06-08 12:21:09 +08:00
Codex Agent 18bdaf313f fix: launch v02 bridge containers with env reuse 2026-06-07 21:49:54 +08:00
Codex Agent 1b76fb3760 fix: enable v02 env reuse for runtime services 2026-06-07 21:26:07 +08:00
Codex Agent d300428246 fix: include trace renderer in cloud web rollout plan 2026-06-06 10:46:44 +08:00
Codex Agent 42b53e5795 fix: discover preinstalled hwpod specs 2026-06-06 01:49:59 +08:00
Codex Agent 3e7131f6ab refactor: converge hwpod node-ops channel 2026-06-05 17:23:56 +08:00
Codex Agent ab7d79c69a feat: expose v02 webui performance metrics 2026-06-05 11:14:27 +08:00
Codex Agent fd1b8c0e5a fix(v02): remove legacy code agent control plane 2026-06-05 01:35:35 +08:00
Lyon 758c26a448 fix: surface playwright fallback remediation (#852)
Co-authored-by: Codex Agent <codex@hwlab.local>
2026-06-04 20:55:21 +08:00
Lyon 6b417cc620 fix: add repo-owned playwright probe guard (#850)
Co-authored-by: Codex Agent <codex@hwlab.local>
2026-06-04 20:35:58 +08:00
Lyon d23cc410be fix(v02): bound cloud web layout smoke (#846)
Co-authored-by: Codex Agent <codex@hwlab.local>
2026-06-04 18:50:35 +08:00
Codex Agent 52af835500 fix: unify v02 browser launcher 2026-06-04 14:51:54 +08:00
Codex 6341015d3b feat(v0.2): Code Agent 默认 sessionStorage=persistent + eviction reset UX
PR D for #770:HWLAB Cloud Web Workbench 透传 session state 真正持久化

- code-agent-agentrun-adapter.ts:
  * 新 ensureAgentRunSessionPersistent:默认 sessionStorage=persistent,
    调 POST /api/v1/sessions 同步建 session + PVC
  * submitAgentRunChatTurn 改两步尝试:ensureSession 或 runner-jobs POST
    收到 session-store-evicted 时用新 sessionId(<base>-reset-<trace8>)
    + threadId=null 重试,trace 追加 agentrun:session-reset 事件
  * 新 shouldResetSessionAfterEviction / newSessionIdAfterEviction 辅助函数
- code-agent-response-contract.mjs: session-store-evicted 归
  session-blocked category
- code-agent-chat.ts: 新 userMessage
  「Code Agent session 存储已失效(PVC 被回收或 TTL 到期),
   HWLAB 已为你开新 sessionId,可继续发送下一条消息。」
- spec-v02-hwlab-cloud-web.md: 新增 'Session state 持久化与 eviction reset'
  章节,含禁止路径与实现情况表

env 控制:HWLAB_CODE_AGENT_AGENTRUN_SESSION_STORAGE=ephemeral
可退回 metadata-only 模式(PR 前默认行为)。
2026-06-03 21:47:14 +08:00
Codex 58b06fcd17 fix(web): enforce React TypeScript single path 2026-06-03 17:47:27 +08:00
Lyon 0d06a4c5fe fix(web): migrate Cloud Web from vanilla DOM to React + TypeScript + Vite (#756) (#764)
- Replace monolithic app.ts / app-conversation.ts / app-device-pod.ts /
  app-skills.ts / app-helpers.ts / app-session-tabs.ts / auth.ts and the
  364-line index.html with a Vite-built React + TypeScript SPA.
- New src/ module tree: main.tsx, App.tsx, components/{layout,auth,
  conversation,command-bar,device-pod,skills,settings,help},
  hooks/, services/api, services/auth, state, types, logic/ (pure
  helpers from the old tree), styles/.
- Pure-logic modules (composer-policy, code-agent-facts, code-agent-
  status, live-status, message-markdown, app-trace, app-session-tabs,
  runtime) move to src/logic/ with their tests preserved; tests still
  auto-discover.
- Build pipeline switches from Bun.build to Vite: vite.config.ts
  inlines everything into a single app.js + app-assets/ for the dist;
  scripts/dist-contract.ts now runs vite build and asserts the dist
  against a fresh build instead of comparing dist to source.
- scripts/check.ts now verifies the React entry, the mount-only
  index.html, Vite dist, the composer / session / device pod / skills
  / settings / help contracts, the React state shape, and the new
  test file locations. It also refuses to run if any legacy app-*.ts
  or auth.ts survives at the top level.
- New scripts/frontend-guard.ts enforces the 400-line migration target,
  refuses the legacy el map and document.getElementById markers,
  refuses to keep app-*.ts / auth.ts at the top level, and verifies
  the required module directory layout.
- Update scripts/src/dev-cloud-workbench-smoke-lib.mjs to read the new
  src/services/, src/logic/ paths and refresh cloudWebModuleSourceFiles.
- index.html is now a mount shell only (no login shell, no workbench
  shell, no device pod sidebar markup). React renders the full UI from
  src/main.tsx, satisfying the issue-756 migration goal of catching
  unclosed tags at the TypeScript/JSX compile step instead of relying
  on browser DOM healing.
- web:check (now: check + frontend-guard + tsc-check + bun test) is
  green: 51 pass / 0 fail, Vite build produces dist/app.js (379 kB)
  + dist/index.html + dist/app-assets/. Vite build is reproducible;
  dist freshness is verified against a fresh Vite build.
- Grandfathered pure-logic files (> 600 lines): src/logic/app-trace.ts
  (1367), src/logic/live-status.ts (1006), src/logic/code-agent-facts.ts
  (548), src/logic/code-agent-status.ts (572). Reason: each is a tested
  pure-logic classifier with a public contract consumed by both the
  CLI renderer and the Web renderer; splitting now would fork the
  public function shape across two PRs and the migration target is the
  React entry + module split, not a pure-logic refactor.

Refs #756. Closes #756 once merged + deployed to hwlab-v02.

Co-authored-by: Codex <codex@local>
2026-06-03 16:53:25 +08:00
Codex 5b9d614336 fix: route agentrun prompt changes to cloud api 2026-06-03 07:25:35 +08:00
Codex 29e9e23fb3 fix: use native codex stdio continuation 2026-06-02 16:22:27 +08:00
Codex cd58ee7989 feat: 增加 UniDesk SSH runner 工具别名 2026-06-02 16:07:54 +08:00
Codex 66282ba80f fix: unlock cloud web composer steer 2026-06-02 12:25:16 +08:00
Codex 0fb8004896 fix: reuse agent worker env image in v02 ci 2026-06-01 22:29:54 +08:00
Codex 3d10fd275b feat: 接入 AgentRun v0.1 adapter 2026-06-01 17:06:11 +08:00
Codex d5baeb461b fix: 防止 artifact 复用污染组件证明 2026-05-31 22:28:10 +08:00
Codex b103a880ca fix: add trace auto-follow bottom pinning 2026-05-31 21:34:14 +08:00
Codex bfcd6722f2 fix: 校验 artifact 复用组件输入 2026-05-31 21:05:44 +08:00
Codex b135388316 fix: 将 hwpod 纳入 v02 runtime component 2026-05-31 20:44:48 +08:00
Codex 89b83465e4 fix: add cloud web env reuse runtime 2026-05-31 14:37:28 +08:00
Codex c462122ad7 fix: refine v02 workbench layout 2026-05-31 13:58:51 +08:00
Codex 7cafb70d9a fix: absorb v02 web trace layout updates 2026-05-31 10:58:23 +08:00
Codex 6da43e5a8e fix: prevent v02 cicd full rebuild regressions 2026-05-31 05:32:05 +08:00
Codex 5bf4bf0f47 feat: sync g14 harness and device-pod cli 2026-05-31 05:07:16 +08:00