Skip to content

Hermes 1335 parity#67

Merged
liftaris merged 3 commits into
devfrom
upstream/hermes-1335-parity
May 19, 2026
Merged

Hermes 1335 parity#67
liftaris merged 3 commits into
devfrom
upstream/hermes-1335-parity

Conversation

@liftaris
Copy link
Copy Markdown
Owner

Summary

  • Regenerates config schema from Hermes Agent 1335ce996, including new auxiliary, compression, Discord, and Kanban config keys.
  • Adds Kanban parity for scheduled tasks and new task metadata: branch, model override, session id, and heartbeat display.
  • Sanitizes ANSI/control bytes at chat render boundaries for system/tool/subagent-controlled text while preserving markdown punctuation and normal whitespace.

Test Plan

  • bunx tsc --noEmit
  • bun test
  • bun run build

liftaris and others added 3 commits May 18, 2026 23:56
- STATUSES gains 'scheduled' between 'todo' and 'ready' (upstream
  e3823657d). Column renders with muted tint to read as parked/delayed
  vs blocked (warning) or running (success).
- Task type / SELECT add schema-tolerant reads for branch_name
  (1733cb3a1), model_override (79f6654d1/f01ee0b57), session_id
  (31fe22903), and last_heartbeat_at (used by stale detection in
  e286e6875). All four are NULL-fallback on prior-version DBs.
- SidePane renders Branch, Model, Session rows when populated, and
  Heartbeat (ago format) only for running tasks with a recent beat.
  Workspace stays adjacent to Branch so worktree+branch read together.
- unblock() handles both 'blocked' and 'scheduled' per upstream
  unblock_task semantics; 'u' shortcut and the 'Unblock' action surface
  for either state. editStatus picker gains a 'scheduled' transition
  via the new `hermes kanban schedule` verb.
- Tests: new "scheduled status + new fields parity" block seeds a
  board exercising every new column and asserts boardOf/SidePane render.
  Pre-existing nav tests adjusted to account for the extra column.

Skipped (per task scope): drag/drop affordances, worker visibility
endpoints (02efad704 — herm doesn't have a corresponding interaction
pattern), filter-by-run-outcome (341912c22 — orthogonal to current
filter chip model).
Strip ANSI escape sequences (CSI, OSC, DCS, SOS, PM, APC, dangling
introducers) and C0/C1 control bytes from gateway-, provider-, and
tool-sourced strings at the reducer chokepoint. OpenTUI's <text>
renders these as literal cells or, worse, lets the terminal interpret
mouse-mode/cursor escapes that leaked through tool output.

New helper src/utils/sanitize.ts is applied at every wire boundary in
turnReducer (system/error/interrupt text, message delta + complete,
tool start/progress/complete preview+result+summary+inline_diff, thinking,
subagent start/tool/complete/progress, transcript hydration).

DiffBlock and DiffTabs swap their per-file ad-hoc SGR regexes for the
shared helper so there is one place to update the byte vocabulary.

Composer input is untouched (per task constraint).

15 new tests in test/sanitize.test.tsx cover dangling CSI, SGR color,
OSC (BEL- and ST-terminated + unterminated), DCS/APC sixel-style, C0
keep-tab/LF/CR, C1+DEL, plus reducer-level coverage of every entry
point and a Tool/MessageList render-frame assertion that no control
bytes leak into the rendered cells.
@liftaris liftaris marked this pull request as ready for review May 19, 2026 07:23
@liftaris liftaris merged commit dc59087 into dev May 19, 2026
1 check passed
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.6.1-dev.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@liftaris liftaris mentioned this pull request May 19, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.6.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@liftaris liftaris deleted the upstream/hermes-1335-parity branch May 22, 2026 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant