Skip to content

Misaligned Terminal Output Formatting #14

Closed

Description

@ekenberg

Bug Description
When running the program, the terminal output is not well formed. When comparing to the output of running it in a separate bash session, it looks wrong. Terminal output should be correctly formatted. This output consists of three lines. The three lines are there, but they are offset incorrectly so that the columns do not align.

Expected output:

   |  3 |  3 |  3 |  3 |  3 |  3 |
 0                                 0
   |  3 |  3 |  3 |  3 |  3 |  3 |

claude output:

  ⎿  |  3 |  3 |  3 |  3 |  3 |  3 |
      0                                 0
        |  3 |  3 |  3 |  3 |  3 |  3 |

Environment Info

  • Platform: linux
  • Terminal: Guake terminal
  • Version: 0.2.8
  • Feedback ID: 9ffa6d84-c209-4e41-9e87-85a7af099030

Activity

  1. igorkofman commented on Mar 6, 2025

    @igorkofman
    Collaborator
    Image

    Cannot repro this with the latest version in Apple Terminal

    Please re-open if this issue persists.

  2. ekenberg commented on Mar 6, 2025

    @ekenberg
    Author

    @igorkofman I do not have permission to re-open the issue, but the problem is still there. I think it is related to Claude using Bash. Read() works as in your example. Claude using Bash does not work. Directly executing commands with exclamation mark does not work:

    Image

    I believe Claude removes initial spaces from Bash output.

  3. igorkofman commented on Mar 6, 2025

    @igorkofman
    Collaborator

    Thanks - we'll dig in!

  4. igorkofman commented on Mar 7, 2025

    @igorkofman
    Collaborator

    Should be fixed in the next version (Monday)

  5. ekenberg commented on Mar 18, 2025

    @ekenberg
    Author

    Update FYI: problem still persists in v0.2.48

    ! cat foo.txt
      ⎿  |  3 |  3 |  3 |  3 |  3 |  3 |
          0                                 0
            |  3 |  3 |  3 |  3 |  3 |  3 |
    
    > show contents of foo.txt
    
    ● Read(file_path: "/home/johan/tmp/foo.txt")…
      ⎿     |  3 |  3 |  3 |  3 |  3 |  3 |
          0                                 0
            |  3 |  3 |  3 |  3 |  3 |  3 |
    
    
  6. igorkofman commented on Mar 18, 2025

    @igorkofman
    Collaborator

    Oh man, this regressed. Fixing and adding tests :)

  7. igorkofman commented on Mar 18, 2025

    @igorkofman
    Collaborator

    (pass) BashTool output > preserves leading whitespace in output - should be fixed permanently tomorrow.

  8. github-actions commented on Aug 9, 2025

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  9. locked as resolved and limited conversation to collaborators on Aug 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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