Repository navigation
Browse: retry on 502, auto-refresh, a fixed ⌘K; resume any time - #303
Merged
Merged
Conversation
…ettings BrowseDiff splits a fresh answer into in-place updates and the structural part (new, gone, reordered); BrowseRefreshApply keeps the cursor and picks by id; BrowseRefreshPolicy decides when to ask and what to hold. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… held behind a banner Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…e, the menus always list resume Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
A search over a big org asks for a hundred heavy nodes per page and GitHub can answer HTTP 502/504 or a timeout. Browse now classifies the failure (BrowseFetchPolicy), retries the same page from the same cursor at 100, 50, 25, 10 and then 10 without checks and reviewers, remembers the size for the scope and query, waits out a secondary rate limit once up to 30 s, and ends with a message that says to narrow the search. The count, repo count and org repo list retry too; a null-data answer is a failure; GitHub.explain never returns a gateway page; the total is what GitHub says, not a sum over pages. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…g into leaves INSERT Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
# Conflicts: # Sources/HeedCore/Browse/BrowseFetch.swift
# Conflicts: # Sources/HeedCore/Browse/BrowsePalette.swift
# Conflicts: # Sources/HeedApp/Browse/BrowseModel.swift # Sources/HeedApp/Views/BrowseView.swift
…s, dimmed orgs, search) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…d rows; browse-none shot enters Browse first Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Four pieces that touch the same Browse code, merged and verified once together so they cost one CI run.
Browse survives GitHub timeouts
A big search could come back HTTP 502 and the raw error reached the screen. Browse now asks again from the same cursor at a smaller page (100, 50, 25, 10, then a light fragment without check status and reviewers), with short backoffs, remembers the size per search, and ends with "GitHub timed out running this search. Narrow it: a repo, a label, or a shorter age." Permanent errors (auth, SAML, bad query) are not retried; a secondary rate limit waits once. Each chunk of the checked-out-orgs search retries on its own cursor, and a chunk that cannot finish fails the whole fetch rather than showing a partial list. Two bugs found on the way: a GraphQL timeout (
data: null) was read as "no results", and multi-page searches double-counted the total.Auto-refresh
Browse refreshes when you come back to it (view switch, app active, window key) when the last answer is older than
[browse] refresh_after(60 s),[browse] auto_refreshturns it off. Updates to rows you already have apply silently by id and never move a row. New, removed or reordered rows wait behind a banner ("3 new · 1 gone · 5 reordered") while you have an item selected, picks, a pushed reader, a live run or an open builder; r applies them, keeping the cursor on the same item and the picks. The count line says "updated 2m ago". Gone rows are removed from the cache.⌘K
Resume any time
Right-click on a session always lists Resume its agent, Copy resume command and Start its agent fresh.
guforces a resume (kept id: the agent's own resume; no id: its latest-conversation form where one exists). A running agent greys Resume and Start fresh out with the reason; Copy still works.gYcopies the exact command with the injected hooks, valid after heed exits, with secrets left off. Host and parked sessions are disabled with reasons. Built on the same launch builder as the resume banner.Verified
mise run lint,swift build, the full suite (3033 tests),mise run text-check,mise run bundle,scripts/tutor-check.sh(0 problems), the docs build (0 warnings); the Browse, resume and menu shots regenerated and read; mutation checks on each part's tests.Not tested
No live 502 reproduced (the retry ladder is tested against a fake gh). No real ⌘K keystroke injected, so the INSERT cause is likely, not proven. No real agent resume run (
claude --resume/--continue). Auto-refresh's activation observers and the landing of a real fetch are unexercised.🤖 Generated with Claude Code