Skip to content

[Bug]: Harden hash line edits #2243

@suse-coder

Description

@suse-coder

Prerequisites

  • I will write this issue in English (see our Language Policy)
  • I have searched existing issues to avoid duplicates
  • I am using the latest version of oh-my-opencode
  • I have read the documentation or asked an AI coding agent with this project's GitHub URL loaded and couldn't find the answer

Bug Description

Sometimes it inserts hash-line edits (minimax m2.5). It would be great if oh-my-opencode checks that before it is inserted into the file.

Image

Steps to Reproduce

Expected Behavior

Should not insert hash-line-edits

Actual Behavior

Does that sometimes

Doctor Output

bunx oh-my-opencode doctor

 oMoMoMoMo Doctor 

 ⚠ 3 issues found:

1. Loaded plugin is outdated
   Loaded 3.9.0, latest 3.10.0.
   Fix: Update: cd ~/.config/opencode && bun update oh-my-opencode
   Affects: plugin features

2. Comment checker unavailable
   Comment checker binary is not installed.
   Fix: Install @code-yeongyu/comment-checker
   Affects: comment-checker hook

3. No LSP servers detected
   LSP-dependent tools will be limited until at least one server is installed.
   Affects: lsp diagnostics, rename, references

Error Logs

Configuration

Additional Context

No response

Operating System

Linux

OpenCode Version

1.2.15

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions