Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sudo-tee/opencode.nvim
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: sudo-tee/opencode.nvim
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: pr/83
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 7 commits
  • 27 files changed
  • 1 contributor

Commits on Oct 28, 2025

  1. fix(formatter): replace embedded md codefences

    It seems like the markdown rendering plugins get confused by nested code
    fences so we replace embedded fences with ` ` `
    cameronr committed Oct 28, 2025
    Configuration menu
    Copy the full SHA
    c1e625a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9b33add View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2025

  1. fix(formatter): use longer codefence

    Instead of disabling embedded markdown rendering, we can use a longer
    outer codefence.
    
    It did require regenerating all of the test data.
    cameronr committed Oct 29, 2025
    Configuration menu
    Copy the full SHA
    27396b0 View commit details
    Browse the repository at this point in the history
  2. fix(formatter): get more correct markdown types

    Instead of just using the filename extension, use the neovim filetype
    (with some specific overrides). Fall back to the filename extension.
    
    This means we render our markdown sections with `markdown` as the type
    instead of `md` and that enables rendering embedded codefences
    correctly.
    
    Hopefully the last fix on this :)
    cameronr committed Oct 29, 2025
    Configuration menu
    Copy the full SHA
    648947a View commit details
    Browse the repository at this point in the history
  3. chore(util): fix unit tests on nightly

    Seems like nightly returns text as the type for .txt files which breaks
    our tests
    cameronr committed Oct 29, 2025
    Configuration menu
    Copy the full SHA
    95f5c20 View commit details
    Browse the repository at this point in the history
  4. fix(renderer): parts occasionally not rendering

    This was a subtle one and it only shows up when we're not collapsing
    events so it wasn't caught by the unit tests. I've since modified the
    unit tests to also run the replays without collapsing to catch bugs like
    this in the future.
    
    If the first version of a part didn't result in something being
    rendered, future updates to that part would also not render anything.
    This was particularly likely to happen with tools as the first version
    of the part is often `step-start`. Because we didn't think this was a
    new part, we called `_replace_part_in_buffer` but that exits quickly
    because the part hadn't been rendered anywhere.
    
    While we could try to call `_insert_part_to_buffer` in
    `_replace_part_in_buffer` if the part hadn't been rendered, that would
    miss some subtle cases around error handling so the correct fix is
    consider the part new in `on_part_updated` if we haven't rendered it
    before.
    cameronr committed Oct 29, 2025
    Configuration menu
    Copy the full SHA
    4317d0b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    635fe3f View commit details
    Browse the repository at this point in the history
Loading