# NousResearch/hermes-agent · Fix keystrokes leaking to page in drive_preview type

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #101515: fix(preview): guard drive_preview type action against unfocused DOM

A bug where drive_preview's type action sends keystrokes to the underlying page instead of the focused editor, triggering unintended shortcuts and mutations. The associated fixes add guards to refuse or abort typing when the target element is not properly focused.

## TL;DR

- 3 member(s): 0 open issue(s), 1 closed issue(s), 1 open PR(s), 1 merged PR(s), 0 PR(s) closed without merging.
- A fix was merged to main in PR #121473. Verify it addresses your case.
- **Recommended:** read PR #121473 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-121473`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.67`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #101508: \[Bug\]: drive_preview \`type\` sends keystrokes to the page instead of the editor — printable chars become Jira keyboard shortcuts and mutate the issue (assignee changed 4×, Create dialog opened)

## Prior & competing PRs

- **#121473: fix(preview): refuse unfocused type and abort leftover keystrokes**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `apps/desktop/src/app/chat/right-rail/preview-act.test.ts`, `apps/desktop/src/app/chat/right-rail/preview-act.ts`, `apps/desktop/src/app/chat/right-rail/preview-drive.ts`, `apps/desktop/src/app/chat/right-rail/preview-typing-abort.ts`, `apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/input-requests.ts`, `apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/server-requests.ts`, `apps/desktop/src/lib/preview-act/act-in-page.ts`, `apps/desktop/src/lib/preview-act/types.ts`, `apps/shared/src/gateway-contract.generated.ts`, `apps/shared/src/gateway-contract.openrpc.json`, `tools/drive_preview_tool.py`, `tui_gateway/contracts/server_requests.py`
- **#101515: fix(preview): guard drive_preview type action against unfocused DOM**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#101508`
  - files: `apps/desktop/src/app/chat/right-rail/preview-act.test.ts`, `apps/desktop/src/app/chat/right-rail/preview-act.ts`

## Fix status

- Merged to main in PR #121473 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-25`.
- Subsystem: `apps/desktop`
