[OneDev #37] Espanso corrupts agent terminal sends (C:\tmp\ → C:\Users\Joseph\.agents\mp\, PowerShell snippet expansion) #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from OneDev issue #37 (id 35582)
Original project: internal-joseph
Original state: Open
Original submitterId: 5
Original submitDate: 2026-05-08T16:05:08.554+00:00
Original lastActivity: {'date': '2026-05-08T16:05:08.554+00:00', 'description': 'opened', 'userId': 5}
Original fields:
Symptom
When Claude Code (or any tool driving a PTY) sends commands into a PowerShell session, espanso intercepts and rewrites the input mid-stream. Two reproductions seen during the 2026-05-08 handoff-skill session:
C:\tmp\foo.ps1→C:\Users\Joseph\.agents\mp\foo.ps1(consistent; trigger appears to beC:\tmp\).$env:Path = "$env:USERPROFILE\scoop\shims;$env:Path"triggered injection of an unrelated multi-lineStart-Process cdb.exe ...command (a memory-dump debugging snippet that lives in espanso config).Both happen inside ghst PTY sessions and the live Tabby PowerShell — so it's espanso, not ghst.
Impact
~/<name>.ps1(avoidsC:\tmp\trigger) and avoid certain literal command strings.Likely cause
Espanso matches its triggers regardless of source — keyboard, paste, programmatic stdin into a focused window. Triggers configured for interactive convenience fire on agent-driven input too.
References from memory:
project_espanso_setup.md— Espanso replaced BeefText 2026-05-01feedback_espanso_gotchas.md— v2 gotchas already knownAsks
AppData/Roaming/espanso/config for triggers that match common agent inputs (C:\tmp\,$env:Path = ..., etc.).feedback_espanso_gotchas.md(or split a new memory) once the fix is chosen so future agents know the failure shape.Repro
In any pwsh.exe focused window, type literally
C:\tmp\test.ps1and observe expansion. Same for the$env:Path = "...scoop\shims..."string captured above.