fix: use temp file for message to avoid shell parsing issues #196
Reference in New Issue
Block a user
Delete Branch "fix/issue-message-encoding"
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?
Bug
When cmd_start, cmd_continue, or cmd_delegate pass messages to
opencode run, the message contains newlines and special characters (parentheses, etc.) which break shell parsing.Error seen:
Fix
Write message to a temp file and use
@msg_filesyntax to pass toopencode run. This handles any characters in the message without shell parsing issues.Changes in
kugetsu-session.sh:cmd_delegate: Use temp file for messagecmd_start: Use temp file for dev_messagecmd_continue: Use temp file for messageTemp file is cleaned up after the command starts.