Skip to content

Fix desktop IME enter handling and gateway restart guards#37603

Open
nickytod wants to merge 1 commit into
NousResearch:mainfrom
nickytod:ari/fix-ime-gateway-restart
Open

Fix desktop IME enter handling and gateway restart guards#37603
nickytod wants to merge 1 commit into
NousResearch:mainfrom
nickytod:ari/fix-ime-gateway-restart

Conversation

@nickytod

@nickytod nickytod commented Jun 2, 2026

Copy link
Copy Markdown

Summary

  • Add shared desktop IME composition detection and use it for Enter handlers in composer, edit composer, rename, and onboarding inputs.
  • Hard-block raw systemctl stop/restart of hermes-gateway services from inside gateway sessions, even with yolo or approvals off.
  • Change generated systemd gateway units to KillMode=control-group and assert that generated units no longer use KillMode=mixed.

Fixes #37483
Fixes #37453
Fixes #37454

Verification

  • PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 /opt/homebrew/bin/python3.11 -m pytest tests/tools/test_approval.py::TestGatewaySystemctlRestartGuard tests/hermes_cli/test_gateway_service.py::TestGeneratedSystemdUnits::test_user_unit_avoids_recursive_execstop_and_uses_extended_stop_timeout tests/hermes_cli/test_gateway_service.py::TestGeneratedSystemdUnits::test_system_unit_avoids_recursive_execstop_and_uses_extended_stop_timeout -q -o 'addopts='
  • npm run type-check --workspace apps/desktop
  • npm run test:ui --workspace apps/desktop -- src/lib/ime.test.ts
  • npx eslint src/app/chat/composer/index.tsx src/components/assistant-ui/thread.tsx src/app/chat/sidebar/session-actions-menu.tsx src/components/desktop-onboarding-overlay.tsx src/lib/ime.ts src/lib/ime.test.ts

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/cli CLI entry point, hermes_cli/, setup wizard comp/gateway Gateway runner, session dispatch, delivery labels Jun 2, 2026
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 comp/gateway Gateway runner, session dispatch, delivery P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

2 participants