~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/knotless

git that lives in your Atmosphere account

knotless.dev
1 collaborator

knotless 0.17.0 Latest 2 packages, 1 image

1
10

show: read an issue or pull from its author's repo when no appview is set

Closed
Closed chadtmiller.com opened this issue 1 comment
area/cli

On a public repository, forge::show calls Target::entries first, which goes to indexed_entries and bails with "pulls and issues on public repositories come from an appview: set KNOTLESS_APPVIEW" when KNOTLESS_APPVIEW is unset.

That makes a single issue or pull unreadable (CLI show, MCP show_item) even though its at:// URI already names the author's repo, and show already has a path that reads the subject straight from there (Target::around / Target::subject). It just never reaches it, because the entries call fails first.

Writes are unaffected: open_issue, open_pull, comment, set_state all write to the caller's own PDS and work without an appview.

Proposal

When no appview is set, show falls back to:

  • the subject itself, read from its author's repo
  • the owner's and collaborators' state, label and queue records about it (as fresh_entries already reads)
  • the owner's hides and blocks, applied as kept_out does

Comments from other accounts can't be found without an index, so the thread would come back with only the owner's and collaborators' comments, and say so (e.g. a note that comments are partial without an appview) rather than presenting it as complete.

list and merge can keep requiring the appview; listing everything genuinely needs the index.

Repro

Run the knotless MCP without KNOTLESS_APPVIEW and call show_item on any issue in chadtmiller.com/knotless.

Closing as no longer needed. When KNOTLESS_APPVIEW is unset, the appview now defaults to DEFAULT_APPVIEW (crates/knotless/src/env.rs), so show works without one being set. It still refuses when the variable is set to empty, which is a deliberate opt-out.