Skip to main content

Introduction

When using Qoder Agent Mode, terminal execution relies heavily on your local environment and shell configuration. You may encounter issues such as:
  • Inability to launch the terminal
  • Commands not executing
  • No output returned
This topic provides common troubleshooting methods to resolve these issues.

Common troubleshooting methods

Method 1: Configure a supported shell

Qoder supports several shells. Ensure you’re using a compatible one.
  1. Open Qoder.
  2. PressCmd + Shift + P (MacOS)orCtrl + Shift + P(Windows/Linux) to open the Command Palette.
  3. Type Terminal: Select Default Profile and select it.
  4. Choose a supported shell:
    • Linux/macOS: bashfishpwshzsh
    • Windows: Git Bashpwsh
  5. Completely close and reopen Qoder for changes to take effect.

Method 2: Manually install shell integration

If terminal integration still fails, install shell integration manually by adding the appropriate line to your shell’s configuration file.
  •  zsh (~/.zshrc): 
  • Bash (~/.bashrc):
  •  PowerShell ($Profile):
  • Fish (~/.config/fish/config.fish):
After editing the file:
  1. Save the changes.
  2. Restart Qoder completely.
For other shells, refer to manual shell integration.

If issues persist

If you still don’t receive terminal output:
  • Click the “Terminate Terminal” button to close the current terminal session.
  • Run the command again. This refreshes the terminal connection and often resolves transient issues.

Windows-specific troubleshooting

Git Bash

  1. Download and install Git for Windows from: https://git-scm.com/downloads/win.
  2. Exit and reopen Qoder.
  3. Set “Git Bash” as the default terminal:  a. Open the Command Palette. b. Run: Terminal: Select Default Profile . c. Select Git Bash.

PowerShell

  1. Ensure you’re using PowerShell 7 or later.
    Check your version:
  1. If needed, update PowerShell .
  2. By default, PowerShell restricts script execution for security. You may need to adjust the execution policy.
a. Open PowerShell as Administrator:
  • Press Win + X
  • Select Windows PowerShell (Admin) or Windows Terminal (Admin)
b. Check the current policy:
c. Update the  policy for your user:
d. Confirm with Y when prompted, then verify:
e. Restart Qoder and retry.

WSL

If using Windows Subsystem for Linux (WSL): 
  1. Add the following line to your ~/.bashrc:
2. Reload your shell or runsource ~/.bashrc. 3. Retry the terminal command in Qoder.

Abnormal Terminal Output

Symptoms:
  • Garbled characters, block symbols
  • Escape sequences (e.g., ^[[1m, ^[[32m)
  • Command output is truncated or formatting is messy.
Possible Causes: Third-party shell personalization configurations, such as Powerlevel10k, Oh My Zsh, or custom Fish themes. Detect if the Agent is running by checking the QODER_AGENT environment variable. If it is active, bypass loading complex themes or prompt configurations during shell startup to avoid conflicts. zsh (~/.zshrc):
Bash (~/.bashrc):

Solution 2: Temporarily Disable

Comment out theme-related configurations in your shell config file and restart Qoder to test. If the issue is resolved, re-enable items one by one to locate the conflicting component. For example, commenting out Powerlevel10k in ~/.zshrc: