Commit Graph

296 Commits

Author SHA1 Message Date
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
Codex 395216122a fix: make hwlab cli a short web client 2026-05-30 12:31:07 +08:00
Codex 6edce687ca fix: stabilize cloud web proxy runtime 2026-05-30 11:09:56 +08:00
Codex aee03fab68 fix: delegate cloud web auth to cloud api 2026-05-30 10:23:59 +08:00
Codex b70c9a1a54 fix: enable v02 env reuse code-only rollout 2026-05-30 01:16:07 +08:00
Codex d1ffc007e4 feat: add v02 device-pod env reuse boot path 2026-05-29 22:49:08 +08:00
Codex d7ff08f3f2 refactor: run hwlab gateway through bun ts 2026-05-29 15:01:56 +08:00
Codex 5c9d04766b fix: remove legacy simulator runtime defaults 2026-05-29 13:28:22 +08:00
Codex f740fc9dbc feat: migrate device pod cli to rest authority 2026-05-29 11:30:17 +08:00
Codex b99c663614 feat: enforce v02 runtime authority 2026-05-29 08:10:19 +08:00
Codex a385c2ad0b fix: unblock v02 gitops ts reconciler 2026-05-29 02:31:09 +08:00
Codex 671303d2b9 feat: add v02 access device pod authority 2026-05-29 02:15:55 +08:00
Codex 03c09f5c94 refactor: migrate v0.2 runtime services to TypeScript 2026-05-29 02:09:35 +08:00
Codex 5827e9b5b9 chore: structure v02 check runner 2026-05-29 01:34:39 +08:00
Codex e2c206aab4 Merge remote-tracking branch 'origin/v0.2' into codex/v02-cloud-api-ts-migration
# Conflicts:
#	package.json
#	scripts/src/artifact-runtime-readiness-guard.mjs
#	scripts/src/m3-io-control-e2e.mjs
#	web/hwlab-cloud-web/scripts/check.ts
2026-05-29 00:59:52 +08:00
Codex a0869c5afa refactor: migrate v02 cloud api to TypeScript 2026-05-29 00:33:22 +08:00
Codex b7f7299056 feat: migrate v0.2 cloud web to TypeScript 2026-05-28 21:33:33 +08:00
Codex 44851d8eb3 docs: consolidate v0.2 documentation governance 2026-05-28 21:18:52 +08:00
Codex 297206b695 feat: add fake device pod sidebar service 2026-05-28 01:39:03 +08:00
Codex d02b7cd8a6 fix: persist code agent workspace 2026-05-27 13:26:12 +08:00
Codex 2a22359865 feat: preload gateway tran helper 2026-05-27 12:31:37 +08:00
Codex dddfdbf4c9 fix: keep deploy manifest human-authored 2026-05-27 10:39:50 +08:00
Codex 336a9b2c2c fix: keep G14 generated state on gitops branch 2026-05-27 10:14:24 +08:00
Codex d5c6ead870 fix: keep deploy manifest human-authored 2026-05-27 09:21:50 +08:00
Codex a56ea7e33e fix: extend code agent timeout recovery 2026-05-27 07:46:24 +08:00
Codex 97846207a3 refactor: primitive G14 CI without Docker fallback 2026-05-27 00:53:37 +08:00