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

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

Closed opened this in answer to
Closed without merging

Typing in the launcher filter now finds every repository you can see, not only the first 200. I ran test/tui-apps.test.ts, which passes, including the new test.

Notes

stopped closed without shipping deploy dd8ccc1

opened this

Typing in the launcher filter now finds every repository you can see, not only the first 200. I ran test/tui-apps.test.ts, which passes, including the new test. I did not run test/tui-screens.test.ts or the full suite, and bunx tsc --noEmit could not run here (no type definitions for bun), so the type check is unverified.

  • What changed: src/tui/screens/dashboard.ts now reads all visible repositories, a page at a time, using the same visibility rule as the web and API listings. It does this on the first keystroke of a filter and keeps the result until the next reload. The existing name, owner and description match runs over that full list.
  • Empty filter: the launcher is unchanged. It still shows your own and your orgs' repositories, taken from the first 200 visible, as before.
  • Visibility: nothing about it changes. The existing test that a private repository never shows still passes.
  • New test: test/tui-apps.test.ts inserts 230 public repositories and types a filter for one past the 200th. It fails on the old code, because that repository sits beyond the first 200.
  • What I left out: I did not route the filter through search(…, { kind: "repos" }). That search caps its description matches at 500 repositories, so it would still lose some of the tail.
  • Cost: with a filter active, the launcher holds the whole visible list in memory. It's one read per reload, not per keystroke.
  • Sandbox: the test and the push needed the sandbox off, because it blocks unix sockets and the localhost remote.

🤖 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