Skip to content

Failed to parse command history from exec pane #81

@klonuo

Description

@klonuo

This happens more often then not, for tmuxai to be stuck in running mode. I have to press ctrl+c to end conversation.

Example log:

2025/10/07 09:28:02 [INFO] TmuxAI starting up
2025/10/07 09:28:03 [INFO] Found available pane: %34
2025/10/07 09:28:03 [INFO] Starting with initial subcommand: show me the otel service configuration
2025/10/07 09:28:03 [INFO] Initial task provided: show me the otel service configuration
2025/10/07 09:28:03 [INFO] Sending 2 messages to AI
2025/10/07 09:28:03 [DEBUG] Sending API request to: https://openrouter.ai/api/v1/chat/completions with model: z-ai/glm-4.5-air:free
2025/10/07 09:28:08 [DEBUG] API response status: 200, response size: 779 bytes
2025/10/07 09:28:08 [DEBUG] Received AI response (237 characters): 
I'll help you check the OpenTelemetry (otel) service configuration. Let me look for common configuration files and check if there are any otel services running.

<ExecCommand>find /etc -name "*otel*" 2>/dev/null | head -10</ExecCommand>
2025/10/07 09:28:08 [DEBUG] AIResponse: 
	Message: I'll help you check the OpenTelemetry (otel) service configuration. Let me look for common configuration files and check if there are any otel services running.
	SendKeys: []
	ExecCommand: [find /etc -name "*otel*" 2>/dev/null | head -10]
	PasteMultilineContent: 
	RequestAccomplished: false
	ExecPaneSeemsBusy: false
	WaitingForUserResponse: false
	NoComment: false
2025/10/07 09:28:18 [INFO] Sending 4 messages to AI
2025/10/07 09:28:18 [DEBUG] Sending API request to: https://openrouter.ai/api/v1/chat/completions with model: z-ai/glm-4.5-air:free
2025/10/07 09:28:22 [DEBUG] API response status: 200, response size: 820 bytes
2025/10/07 09:28:22 [DEBUG] Received AI response (219 characters): 
I can see there's an OpenTelemetry collector service configured. Let me check the configuration file to show you the otel service configuration.

<ExecCommand>cat /etc/otelcol-contrib/otelcol-contrib.conf</ExecCommand>
2025/10/07 09:28:22 [DEBUG] AIResponse: 
	Message: I can see there's an OpenTelemetry collector service configured. Let me check the configuration file to show you the otel service configuration.
	SendKeys: []
	ExecCommand: [cat /etc/otelcol-contrib/otelcol-contrib.conf]
	PasteMultilineContent: 
	RequestAccomplished: false
	ExecPaneSeemsBusy: false
	WaitingForUserResponse: false
	NoComment: false
2025/10/07 09:41:44 [ERROR] Failed to parse command history from exec pane

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions