Skip to content

feat(kanban): warn users that scratch workspaces are deleted on completion - #30949

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-25567e5d
May 23, 2026
Merged

feat(kanban): warn users that scratch workspaces are deleted on completion#30949
teknium1 merged 1 commit into
mainfrom
hermes/hermes-25567e5d

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Summary

Scratch kanban workspaces are intentionally ephemeral — complete_task calls _cleanup_workspace which shutil.rmtrees the dir. Behavior is right; the lack of any user-facing warning is the bug. Community user lost worker output and asked for exactly this in #hermes-agent.

Changes

  • hermes_cli/kanban_db.py: _maybe_emit_scratch_tip(conn, task_id, kind) fires on first scratch workspace materialization across an install — logs a WARNING and appends a tip_scratch_workspace event on the task. Sentinel at ~/.hermes/kanban/.scratch_tip_shown flips after first emit; per-install scope so new boards don't re-warn. Wired into both dispatcher spawn sites (regular + review). Best-effort everywhere — help message never blocks dispatch.
  • website/docs/user-guide/features/kanban.md + Korean i18n: scratch bullet now spells out "Deleted when the task completes" and points at worktree: / dir:<path> for persistence. Other two bullets tagged "Preserved on completion".
  • tests/hermes_cli/test_kanban_db.py: 2 tests — first verifies log + event fire once and stay silent on the second task; second verifies worktree/dir workspaces don't trigger the tip.

Validation

Before After
First scratch task Silent WARNING in agent.log + tip_scratch_workspace event visible in hermes kanban show <id>
Subsequent scratch tasks Silent Silent (sentinel flips after first emit)
worktree / dir workspaces Silent Silent (tip only applies to ephemeral kind)
Kanban test suite n/a 382/382 pass (160 test_kanban_db incl. 2 new + 220 test_kanban_core_functionality / test_kanban_boards)

Reported by Gwabo (Discord, HA channel) — workspace contents vanished after a task completed, suggested a first-use warning. Diagnosis was slightly off (he attributed it to a PC restart, but the wipe happens at complete_task time regardless); the warning ask was right.

@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard labels May 23, 2026
…etion

First scratch workspace creation on an install now emits a one-shot
warning log + a 'tip_scratch_workspace' event on the task. Sentinel
file at ~/.hermes/kanban/.scratch_tip_shown silences subsequent
creations across the whole install.

Behavior unchanged — scratch is still ephemeral by design. This just
makes the design visible to new users (reported in user community:
'progress files vanished, no warning anywhere').

Docs (en + ko) updated to spell out 'Deleted when the task completes'
on the scratch bullet and 'Preserved on completion' on worktree/dir.
@teknium1
teknium1 force-pushed the hermes/hermes-25567e5d branch from eb4c8bb to 5bbaf7d Compare May 23, 2026 18:26
@teknium1
teknium1 merged commit ad11327 into main May 23, 2026
4 checks passed
@teknium1
teknium1 deleted the hermes/hermes-25567e5d branch May 23, 2026 18:27
@github-actions

Copy link
Copy Markdown
Contributor

🔎 Lint report: hermes/hermes-25567e5d vs origin/main

ruff

Total: 0 on HEAD, 0 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 0 pre-existing issues carried over.

ty (type checker)

Total: 9029 on HEAD, 9029 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 4805 pre-existing issues carried over.

Diagnostics are surfaced as warnings — this check never fails the build.

sahilm-ti pushed a commit to sahilm-ti/hermes-agent that referenced this pull request May 25, 2026
…etion (NousResearch#30949)

First scratch workspace creation on an install now emits a one-shot
warning log + a 'tip_scratch_workspace' event on the task. Sentinel
file at ~/.hermes/kanban/.scratch_tip_shown silences subsequent
creations across the whole install.

Behavior unchanged — scratch is still ephemeral by design. This just
makes the design visible to new users (reported in user community:
'progress files vanished, no warning anywhere').

Docs (en + ko) updated to spell out 'Deleted when the task completes'
on the scratch bullet and 'Preserved on completion' on worktree/dir.
sahilm-ti pushed a commit to sahilm-ti/hermes-agent that referenced this pull request May 25, 2026
…etion (NousResearch#30949)

First scratch workspace creation on an install now emits a one-shot
warning log + a 'tip_scratch_workspace' event on the task. Sentinel
file at ~/.hermes/kanban/.scratch_tip_shown silences subsequent
creations across the whole install.

Behavior unchanged — scratch is still ephemeral by design. This just
makes the design visible to new users (reported in user community:
'progress files vanished, no warning anywhere').

Docs (en + ko) updated to spell out 'Deleted when the task completes'
on the scratch bullet and 'Preserved on completion' on worktree/dir.
mathias3 pushed a commit to mathias3/hermes-agent that referenced this pull request May 28, 2026
…etion (NousResearch#30949)

First scratch workspace creation on an install now emits a one-shot
warning log + a 'tip_scratch_workspace' event on the task. Sentinel
file at ~/.hermes/kanban/.scratch_tip_shown silences subsequent
creations across the whole install.

Behavior unchanged — scratch is still ephemeral by design. This just
makes the design visible to new users (reported in user community:
'progress files vanished, no warning anywhere').

Docs (en + ko) updated to spell out 'Deleted when the task completes'
on the scratch bullet and 'Preserved on completion' on worktree/dir.
Bryce-huang pushed a commit to wbkunlun/hermes-agent that referenced this pull request May 29, 2026
…etion (NousResearch#30949)

First scratch workspace creation on an install now emits a one-shot
warning log + a 'tip_scratch_workspace' event on the task. Sentinel
file at ~/.hermes/kanban/.scratch_tip_shown silences subsequent
creations across the whole install.

Behavior unchanged — scratch is still ephemeral by design. This just
makes the design visible to new users (reported in user community:
'progress files vanished, no warning anywhere').

Docs (en + ko) updated to spell out 'Deleted when the task completes'
on the scratch bullet and 'Preserved on completion' on worktree/dir.
#AI commit#
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
…etion (NousResearch#30949)

First scratch workspace creation on an install now emits a one-shot
warning log + a 'tip_scratch_workspace' event on the task. Sentinel
file at ~/.hermes/kanban/.scratch_tip_shown silences subsequent
creations across the whole install.

Behavior unchanged — scratch is still ephemeral by design. This just
makes the design visible to new users (reported in user community:
'progress files vanished, no warning anywhere').

Docs (en + ko) updated to spell out 'Deleted when the task completes'
on the scratch bullet and 'Preserved on completion' on worktree/dir.
alt-glitch pushed a commit that referenced this pull request Jun 14, 2026
…etion (#30949)

First scratch workspace creation on an install now emits a one-shot
warning log + a 'tip_scratch_workspace' event on the task. Sentinel
file at ~/.hermes/kanban/.scratch_tip_shown silences subsequent
creations across the whole install.

Behavior unchanged — scratch is still ephemeral by design. This just
makes the design visible to new users (reported in user community:
'progress files vanished, no warning anywhere').

Docs (en + ko) updated to spell out 'Deleted when the task completes'
on the scratch bullet and 'Preserved on completion' on worktree/dir.
T02200059 pushed a commit to T02200059/hermes-agent that referenced this pull request Jun 18, 2026
…etion (NousResearch#30949)

First scratch workspace creation on an install now emits a one-shot
warning log + a 'tip_scratch_workspace' event on the task. Sentinel
file at ~/.hermes/kanban/.scratch_tip_shown silences subsequent
creations across the whole install.

Behavior unchanged — scratch is still ephemeral by design. This just
makes the design visible to new users (reported in user community:
'progress files vanished, no warning anywhere').

Docs (en + ko) updated to spell out 'Deleted when the task completes'
on the scratch bullet and 'Preserved on completion' on worktree/dir.
liuchanchen pushed a commit to liuchanchen/hermes-agent that referenced this pull request Jun 23, 2026
…etion (NousResearch#30949)

First scratch workspace creation on an install now emits a one-shot
warning log + a 'tip_scratch_workspace' event on the task. Sentinel
file at ~/.hermes/kanban/.scratch_tip_shown silences subsequent
creations across the whole install.

Behavior unchanged — scratch is still ephemeral by design. This just
makes the design visible to new users (reported in user community:
'progress files vanished, no warning anywhere').

Docs (en + ko) updated to spell out 'Deleted when the task completes'
on the scratch bullet and 'Preserved on completion' on worktree/dir.
waefrebeorn pushed a commit to waefrebeorn/slermes that referenced this pull request Jul 2, 2026
…etion (NousResearch#30949)

First scratch workspace creation on an install now emits a one-shot
warning log + a 'tip_scratch_workspace' event on the task. Sentinel
file at ~/.hermes/kanban/.scratch_tip_shown silences subsequent
creations across the whole install.

Behavior unchanged — scratch is still ephemeral by design. This just
makes the design visible to new users (reported in user community:
'progress files vanished, no warning anywhere').

Docs (en + ko) updated to spell out 'Deleted when the task completes'
on the scratch bullet and 'Preserved on completion' on worktree/dir.
donbowman pushed a commit to donbowman/hermes-agent that referenced this pull request Jul 13, 2026
…etion (NousResearch#30949)

First scratch workspace creation on an install now emits a one-shot
warning log + a 'tip_scratch_workspace' event on the task. Sentinel
file at ~/.hermes/kanban/.scratch_tip_shown silences subsequent
creations across the whole install.

Behavior unchanged — scratch is still ephemeral by design. This just
makes the design visible to new users (reported in user community:
'progress files vanished, no warning anywhere').

Docs (en + ko) updated to spell out 'Deleted when the task completes'
on the scratch bullet and 'Preserved on completion' on worktree/dir.
Gravezzz pushed a commit to Gravezzz/hermes-agent that referenced this pull request Jul 21, 2026
…etion (NousResearch#30949)

First scratch workspace creation on an install now emits a one-shot
warning log + a 'tip_scratch_workspace' event on the task. Sentinel
file at ~/.hermes/kanban/.scratch_tip_shown silences subsequent
creations across the whole install.

Behavior unchanged — scratch is still ephemeral by design. This just
makes the design visible to new users (reported in user community:
'progress files vanished, no warning anywhere').

Docs (en + ko) updated to spell out 'Deleted when the task completes'
on the scratch bullet and 'Preserved on completion' on worktree/dir.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants