hermes-agent/gateway
Pavel Tajduš 0a53663ef8 fix(slack): preserve typed command integrity across enrichment paths
Commands typed in Slack could be mangled by every enrichment layer the
adapter applies to normal messages:

- Block Kit / unfurl / attachment-notice / text-file injection could
  prepend or append content around a command, moving the command token
  away from character zero or polluting its arguments. Commands are now
  restored from canonical authored input after all enrichment
  (final is_command_text guard before MessageEvent construction).
- @bot /cmd (typed slash behind a mention) was never classified as a
  command; the mention-strip branch now re-probes for both slash and
  bang forms.
- The Slack Agent-view context label ([Slack app context: ...]) was
  prepended to command events too; now command-exempt.
- Native slash payload arguments were strip()ed, destroying meaningful
  spacing inside/after arguments; only the command delimiter is
  nonsemantic now.
- Slash payload thread identity (thread_ts/message_ts, top-level or
  nested in message/container) is preserved onto SessionSource so
  session-scoped commands hit the same thread session.
- /queue and /steer queued fallbacks now propagate channel_context so a
  command that triggered first-entry thread backfill doesn't lose the
  history when re-queued.

Adapted from PR #66310 to the post-#69320 channel_context design (thread
history already rides MessageEvent.channel_context, never text).
2026-07-22 20:55:51 -07:00
..
assets
builtin_hooks
platforms fix(slack): handle leading-space text commands 2026-07-22 20:55:51 -07:00
relay fix(relay): restore streaming delivery, Slack command parity, and status clearing (salvage of #69716) (#69747) 2026-07-23 12:51:13 +10:00
__init__.py
authz_mixin.py fix(relay): restore streaming delivery, Slack command parity, and status clearing (salvage of #69716) (#69747) 2026-07-23 12:51:13 +10:00
cgroup_cleanup.py
channel_directory.py
code_skew.py
config.py fix(gateway): normalize YAML boolean streaming mode and keep enabled a mode-only alias 2026-07-20 05:39:09 -07:00
cwd_placeholder.py
dead_targets.py
delivery.py
delivery_ledger.py fix(gateway): don't spend a redelivery attempt when the platform is down 2026-07-20 11:52:41 +05:30
display_config.py
drain_control.py
hooks.py
kanban_watchers.py
memory_monitor.py
message_timestamps.py
mirror.py
pairing.py
platform_registry.py
profile_routing.py
readiness.py
response_filters.py
restart.py
restart_loop_guard.py
rich_sent_store.py
run.py fix(slack): preserve typed command integrity across enrichment paths 2026-07-22 20:55:51 -07:00
runtime_footer.py
scale_to_zero.py
session.py fix(slack): expose shared-thread author mention target 2026-07-22 07:22:55 -07:00
session_context.py
shutdown_forensics.py
shutdown_watchdog.py
slash_access.py
slash_commands.py fix: forward timestamp in CLI, gateway, and TUI branch copy loops 2026-07-22 06:58:27 -07:00
status.py fix(status): make gateway_updated_at a stable RFC3339-or-null contract (#68657) 2026-07-21 13:12:41 -07:00
status_phrases.py
sticker_cache.py
stream_consumer.py fix(desktop, ink): don't wipe messages before final message (#65919) 2026-07-20 11:42:29 -04:00
stream_dispatch.py
stream_events.py
systemd_notify.py
turn_lease.py
whatsapp_identity.py