Skip to content

OPENCODE: webfetch returns markdown by default #430

@Hmbown

Description

@Hmbown

Summary

Run html-to-markdown conversion by default; respect content-type for non-HTML.

Acceptance criteria

  • Default output is markdown for text/html.
  • format=raw opts out.
  • Size cap unchanged.

Files

crates/tui/src/tools/fetch_url.rs

Size

S

Source

Source tag: OPENCODE. Add exact upstream/opencode source links during implementation if they are not already known. Do not copy external code blindly; port the behavior into this repo's architecture.

Filed from 2026-05-02 v0.8.8 intake.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestv0.8.10Targeting v0.8.10

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions