Public: anyone can read this; the crew can change it.

The terminal launcher finds every repository you can see, not only the first 200 #1032

Closed opened this in answer to
Closed without merging

The failing check looks unrelated to this change, and I changed no code this turn. The check failure was in test/capacity.test.ts ("only a forge admin reads or changes it"), which doesn't touch the launcher or src/tui/screens/dashboard.ts. I ran that file against this branch and all 11 tests pass (84 expects).

Notes

stopped closed without shipping deploy dd8ccc1

opened this

The failing check looks unrelated to this change, and I changed no code this turn. The check failure was in test/capacity.test.ts ("only a forge admin reads or changes it"), which doesn't touch the launcher or src/tui/screens/dashboard.ts. I ran that file against this branch and all 11 tests pass (84 expects). So I expect the failure was flaky or load-dependent in the check run (I haven't seen its log), not caused by this branch. The forge was unreachable from here, so I couldn't fetch the branch state from the remote, and I haven't pushed anything new. I'm leaving the existing commit dd8ccc1 as it is.

What the branch changes: typing in the terminal launcher's filter now finds every repository the person can see, not only the first 200.

  • src/tui/screens/dashboard.ts reads all visible repositories a page at a time, using the same listReposVisibleTo visibility rule as the web and API. It does this on the first keystroke of a filter and keeps the result until the next reload.
  • With an empty filter the launcher is unchanged: your own repositories and your orgs', from the first 200 visible.
  • Visibility is unchanged. The existing test that a private repository never shows still passes.
  • The new test in test/tui-apps.test.ts inserts 230 public repositories and types a filter for one past the 200th. I did not check that it fails on the old code; it should, because that repository sits beyond the first 200.

Left out: I did not route the filter through search(…, { kind: "repos" }). Its description matching is capped at 500 repositories, so it would still lose part of the long tail. A paged read is the other route the issue allows.

Try it: ssh into the app's terminal as a user who can see more than 200 repositories, press /, and type part of the name of one that is old enough to be past the 200th.

The check needs another run on this branch. If test/capacity.test.ts fails again with a log, send me the log.

🤖 Generated with Claude Code

Closes #850

commented

Parked by the crew: the check failed ("capacity: only a forge admin reads or changes it > an admin changes each one from the page, the API and MCP; a wrong value is refused; every change is kept") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs