Skip to content

bug when using terminal #5065

Description

@francybiordina-code

To Reproduce

paste some command in the terminal of something like mariadb

Current vs. Expected behavior

it has to manage the text like every terminal

Provide environment information

dokploy 0.29.14

Which area(s) are affected? (Select all that apply)

Application

Are you deploying the applications where Dokploy is installed or on a remote server?

Same server where Dokploy is installed

Additional context

something strange happens when i paste some command on the terminal of mariadb. check the video! i cannot edit the things i just pasted.

error.mov

Will you send a PR to fix it?

No

Activity

  1. linear-code commented on Aug 12, 2026

    @linear-code
  2. dosubot commented on Aug 12, 2026

    @dosubot

    Hi @francybiordina-code! I'm Dosu and I'm helping the Dokploy team.

    The paste/editing issue you're seeing in the MariaDB container terminal stems from the DockerTerminal component missing the ClipboardAddon. Looking at docker-terminal.tsx, it does not load ClipboardAddon from @xterm/addon-clipboard, while the web server terminal does. This means pasted text goes through xterm's default handling, which causes the cursor and editing behavior to break after pasting.

    This was fixed for the web server terminal in PR #1203, but that fix was never applied to the Docker container terminal. A separate attempt to fix Docker terminal paste behavior (PR #1135) was closed without being merged.

    Since @xterm/addon-clipboard is already a project dependency [1], the fix would be a small addition to docker-terminal.tsx:

    import { ClipboardAddon } from "@xterm/addon-clipboard";
    // ...
    const clipboardAddon = new ClipboardAddon();
    term.loadAddon(clipboardAddon);

    This mirrors exactly what's already done in terminal.tsx. Would anyone be able to submit a PR with this change?

    To reply, just mention @dosu.


    Share context across your team and agents. Try Dosu.

    Leave Feedback Learn about dokploy with Dosu Add Dosu to your team

  3. Souvik-Cyclic commented on Aug 12, 2026

    @Souvik-Cyclic
    Contributor

    Opened a PR for this: adds the missing xterm ClipboardAddon to the docker container terminal, matching the web server terminal. Should fix the paste/edit behavior. #5066

  4. added a commit that references this issue on Aug 12, 2026
    65198f6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions