fix: remote-ahead push dialog, PR cache invalidation, tool registry, …#20
Merged
fix: remote-ahead push dialog, PR cache invalidation, tool registry, …#20
Conversation
…archive popover - Push rejected with non-fast-forward now surfaces a dialog offering one-click pull (auto-stash + rebase) and push, instead of a raw toast - Branch checkout now invalidates changes.getGitHubStatus and chats.getPrStatus so the PR chip refreshes immediately - Register 14 missing tool types in AgentToolRegistry (Skill, ScheduleWakeup, EnterPlanMode, Cron*, Monitor, PushNotification, Task(Output/Stop), Enter/ExitWorktree, RemoteTrigger, ToolSearch) so they render with icons instead of plain text - Archive popover no longer eagerly fetches projects.list or useRemoteArchivedChats; both gated on popover open Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
Addresses four bugs from the "happy hippo" stability pass that weren't yet applied on
dev. Two of the six originally reported fixes (changelog URL, PostHog SDK) were already in the codebase; this PR ships the remaining four.1. Pull & Push dialog for remote-ahead errors
When
git pushfails because the remote branch has new commits, the user now sees a dialog offering a one-click Pull & Push (auto-stash + rebase, then retry push) instead of a raw[rejected] non-fast-forwardtoast.isNonFastForwardPushErrorhelper and re-throws it with aREMOTE_AHEAD:prefix so the renderer can distinguish it from generic push failures.usePushActionroutesREMOTE_AHEAD:errors to a newPullPushDialogand keeps the toast path for every other error.DiffSidebarHeaderandActiveChat.2. PR status cache invalidation on branch switch
Switching branches via the branch selector in
ChangesPanelHeadernow invalidates bothchanges.getGitHubStatusandchats.getPrStatus, so the PR chip reflects the new branch immediately instead of waiting for the 30s polling interval.3. Missing tool-type registrations
Added 14 tool types to
AgentToolRegistrythat were falling through to the plain-text fallback:Skill,ScheduleWakeup,EnterPlanMode,CronCreate/CronDelete/CronList,Monitor,PushNotification,TaskOutput/TaskStop,EnterWorktree/ExitWorktree,RemoteTrigger,ToolSearch. Each renders with a proper icon, pending/completed title, and a compact subtitle derived from the tool input.AskUserQuestionis intentionally left out since it still uses its dedicated rich renderer.4. Archive popover eager fetches
archive-popover.tsxno longer firestrpc.projects.listoruseRemoteArchivedChatsuntil the popover opens.useRemoteArchivedChatsaccepts a newenabledargument (defaults totrueto keep existing callers unchanged).Test plan
origin/<branch>, commit locally, press Push → dialog appears; Pull & Push completes in one click, auto-stashes/restores any local changes.projects.listnor the remote archived-chats query fires until the archive popover is opened.bun run buildstill passes (no new type errors in touched files).🤖 Generated with Claude Code