CyberStrikeAI/web/static/js
Sycun 9c6928074d fix: a rollback keeps the operator's edits, and a retry really compiles
The review found two failure paths that reported success for work the engine had
not done.

Rollback: it refused only when *non-protected* source files were modified, and
then ran `git reset --hard` to the previous commit - which discards every local
change to tracked files, not just the update's. Edits to roles/skills/tools (the
update itself keeps those via its own stash) and edits made after the update
were silently wiped, while Result said nothing: deployment.md's promise that
"work done afterwards is not swept away" did not hold. Rollback now copies every
protected file that differs right now into `.update-backup/rollback_<ts>/`
before the reset, sets the copies back after it, re-applies hand deletions, and
names what it kept in Result.KeptContent like an update does.

Retry: Apply merges and writes the state file before it builds, so a failed (or
toolchain-less) build leaves HEAD on the new commit with the old binary still in
place. The retry then took the `!snap.UpdateAvailable` no-op branch, aligned the
version and returned err=nil - the job was recorded as succeeded, the page said
"update finished", the CLI printed that source and binary were in place, and the
old executable kept running. The tree now carries a `.update-build-pending`
marker, written the moment the merge lands (and when an adoption commits to its
work tree) and cleared only after the new binary is in place. The no-op branch
reads it: with a toolchain it compiles and reports the build (commits=0,
binaryBuilt=true); without one it keeps refusing exactly like the first attempt,
so "install go and click again" is now a real instruction. The console stops
treating "nothing to pull" as "nothing to do" (the retry button stays live, the
confirm dialog and the done toast say the build is what will happen), and the
CLI's printResult no longer swallows the build-only result.

Both paths are covered by regression tests that fail on the pre-fix tree: two
rollback scenarios driven through real git (edit before and after the update, a
hand deletion), and four retry scenarios driven through a scripted go on PATH
(failed build, state-write failure, an adoption's failed build retried by the
next update, and no toolchain then toolchain).
2026-10-08 16:16:07 +08:00
..
agents.js Add files via upload 2026-07-10 19:46:14 +08:00
api-docs.js Add files via upload 2026-08-06 17:12:21 +08:00
asset-export-language.test.cjs fix: localize asset exports and preserve import compatibility 2026-10-06 02:51:15 +08:00
asset-scan-prompt.test.cjs fix: respect limited scan goals and retain asset completion instructions 2026-10-06 03:26:31 +08:00
assets.js fix: respect limited scan goals and retain asset completion instructions 2026-10-06 03:26:31 +08:00
audit-datetime-picker.js feat: add Russian UI locale (#341) 2026-10-05 15:07:54 +08:00
audit-reset.test.cjs fix: validate workflows and preserve execution outcomes 2026-10-06 02:32:32 +08:00
audit.js feat: add Russian UI locale (#341) 2026-10-05 15:07:54 +08:00
auth.js Merge remote-tracking branch 'origin/main' into feat/self-update 2026-10-08 13:59:27 +08:00
batch-outcome-display.test.cjs fix: show failed outcomes in finished batch queues 2026-10-06 03:05:25 +08:00
builtin-tools.js Add files via upload 2026-01-11 02:03:33 +08:00
c2-listener-form.test.cjs fix: restore listener edit actions and validate required fields 2026-10-06 02:54:27 +08:00
c2-profile-save.test.cjs fix: preserve task terminal state and file navigation paths 2026-10-06 01:48:12 +08:00
c2.js fix: restore listener edit actions and validate required fields 2026-10-06 02:54:27 +08:00
chat-codex-layout.test.cjs feat(ui): 显示 Agent 任务进度列表 (#251) 2026-08-14 10:44:03 +08:00
chat-files.js Add files via upload 2026-08-06 17:12:21 +08:00
chat-input-keyboard.test.cjs 优化项目对话、刷新续流、实时滚动与工具状态恢复 (#245) 2026-08-13 21:28:37 +08:00
chat-message-copy.test.cjs Add token usage tracking and UI refinements 2026-08-24 00:05:05 +08:00
chat-plan-progress.js Add files via upload 2026-08-15 01:33:33 +08:00
chat-plan-progress.test.cjs feat(ui): 显示 Agent 任务进度列表 (#251) 2026-08-14 10:44:03 +08:00
chat-scroll-refresh.test.cjs feat: add configurable tool call blocking and monitoring 2026-09-08 09:44:32 +08:00
chat-scroll.js Add files via upload 2026-08-15 01:33:33 +08:00
chat.js feat: add Russian UI locale (#341) 2026-10-05 15:07:54 +08:00
conversation-actions-sync.test.cjs Remove conversation grouping feature 2026-08-26 15:00:09 +08:00
dashboard.js Add token usage tracking and UI refinements 2026-08-24 00:05:05 +08:00
eino-usage-summary-ui.test.cjs Add files via upload 2026-08-15 01:33:33 +08:00
fact-graph.js Add files via upload 2026-07-09 16:47:00 +08:00
form-validation.test.cjs fix: validate form edits and enforce task result ownership 2026-10-06 02:20:28 +08:00
hitl-approval-ui.test.cjs feat: add TypeSafe Jev as HITL audit backend 2026-09-22 21:15:53 +08:00
hitl-conversation-isolation.test.cjs 优化项目对话、刷新续流、实时滚动与工具状态恢复 (#245) 2026-08-13 21:28:37 +08:00
hitl.js feat: add Russian UI locale (#341) 2026-10-05 15:07:54 +08:00
i18n.js feat: add Russian UI locale (#341) 2026-10-05 15:07:54 +08:00
info-collect.js Add files via upload 2026-08-06 17:12:21 +08:00
iteration-divider-ui.test.cjs 优化项目对话、刷新续流、实时滚动与工具状态恢复 (#245) 2026-08-13 21:28:37 +08:00
knowledge-index-error.test.cjs fix: retain knowledge indexing errors and explain failure causes 2026-10-06 03:02:14 +08:00
knowledge.js fix: retain knowledge indexing errors and explain failure causes 2026-10-06 03:02:14 +08:00
mobile-ui-i18n.test.cjs 增加手机端使用ui的体验和整体优化 (#344) 2026-10-08 10:44:42 +08:00
mobile-ui.js 增加手机端使用ui的体验和整体优化 (#344) 2026-10-08 10:44:42 +08:00
modal.js Remove conversation grouping feature 2026-08-26 15:00:09 +08:00
monitor-blocked-stats.test.cjs feat: add configurable tool call blocking and monitoring 2026-09-08 09:44:32 +08:00
monitor.js fix: retain cancellation labels after approval interruptions 2026-10-06 03:11:11 +08:00
notification-view-read.test.cjs fix: preserve task terminal state and file navigation paths 2026-10-06 01:48:12 +08:00
notifications.js fix: preserve task terminal state and file navigation paths 2026-10-06 01:48:12 +08:00
password-feedback.test.cjs fix: place accessible password visibility toggle inside login input 2026-10-08 11:52:44 +08:00
permission-gate-state.test.cjs feat: update this installation's own source in one action 2026-10-07 12:07:26 +08:00
progress-done-outcome.test.cjs fix: retain cancellation labels after approval interruptions 2026-10-06 03:11:11 +08:00
project-folder-preview.test.cjs fix: use a closed ring for project preview task stats 2026-09-18 17:21:01 +08:00
project-related-facts.test.cjs fix: keep related fact views in place and clarify import outcomes 2026-10-06 02:58:56 +08:00
projects.js fix: keep list badges within table columns 2026-10-06 03:16:34 +08:00
rbac-guards.js feat: add configurable tool call blocking and monitoring 2026-09-08 09:44:32 +08:00
rbac.js Add files via upload 2026-07-16 19:30:29 +08:00
roles.js Add files via upload 2026-08-06 17:12:21 +08:00
router-hash-form.test.cjs feat: update this installation's own source in one action 2026-10-07 12:07:26 +08:00
router.js feat: move the one-click update into the system settings menu 2026-10-07 22:52:56 +08:00
sanitize-markdown.js Add files via upload 2026-06-09 11:03:51 +08:00
settings-eino-resilience.test.cjs fix: refresh ai channel reasoning selects 2026-08-25 18:51:19 +08:00
settings.js feat: move the one-click update into the system settings menu 2026-10-07 22:52:56 +08:00
skill-description-save.test.cjs fix: mask stored credentials and validate agent saves 2026-10-06 02:04:14 +08:00
skills.js fix: mask stored credentials and validate agent saves 2026-10-06 02:04:14 +08:00
storage.js feat: add runtime storage cleanup with per-category retention (#310) (#313) 2026-09-25 14:46:23 +08:00
tasks.js fix: show failed outcomes in finished batch queues 2026-10-06 03:05:25 +08:00
terminal.js Add files via upload 2026-07-09 16:47:00 +08:00
theme.js Add files via upload 2026-07-07 15:09:04 +08:00
tool-blocked-display.test.cjs feat: add configurable tool call blocking and monitoring 2026-09-08 09:44:32 +08:00
tool-guard.js feat: add configurable tool call blocking and monitoring 2026-09-08 09:44:32 +08:00
tool-guard.test.cjs feat: add configurable tool call blocking and monitoring 2026-09-08 09:44:32 +08:00
tool-result-args-backfill.test.cjs Fix missing results for parallel Eino tool calls. 2026-08-19 00:29:12 +08:00
turn-duration-refresh.test.cjs Add token usage tracking and UI refinements 2026-08-24 00:05:05 +08:00
update-ui.test.cjs fix: a rollback keeps the operator's edits, and a retry really compiles 2026-10-08 16:16:07 +08:00
update.js fix: a rollback keeps the operator's edits, and a retry really compiles 2026-10-08 16:16:07 +08:00
vulnerability.js feat: add Russian UI locale (#341) 2026-10-05 15:07:54 +08:00
webshell-file-path.test.cjs fix: preserve task terminal state and file navigation paths 2026-10-06 01:48:12 +08:00
webshell.js fix: mask stored credentials and validate agent saves 2026-10-06 02:04:14 +08:00
wechat-robot.js Add files via upload 2026-07-06 11:31:13 +08:00
workflow-package-client.js Add files via upload 2026-07-14 15:11:50 +08:00
workflow-package-client.test.cjs feat(工作流):支持本地图编排策略包导入导出 (#195) 2026-07-14 11:28:37 +08:00
workflow-package-ui.test.cjs fix: keep related fact views in place and clarify import outcomes 2026-10-06 02:58:56 +08:00
workflow-save.test.cjs fix(workflows): resume saving after metadata confirmation (#345) 2026-10-08 11:08:46 +08:00
workflow-validity.test.cjs fix: validate workflows and preserve execution outcomes 2026-10-06 02:32:32 +08:00
workflows.js fix(workflows): resume saving after metadata confirmation (#345) 2026-10-08 11:08:46 +08:00