Skip to content

fix: refresh GitHub status on activity - #45

Merged
AmethystLiang merged 1 commit into
mainfrom
AmethystLiang/syncGhIssueStatus
Mar 23, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
AmethystLiang/syncGhIssueStatus

Conversation

@AmethystLiang

Copy link
Copy Markdown
Contributor

Summary

  • Refresh GitHub data (PR/issue status) on activity: triggers refresh when switching worktrees (setActiveWorktree) and when the window regains focus (visibilitychange)
  • New store actions: refreshAllGitHub invalidates all cache entries and re-fetches; refreshGitHubForWorktree does the same for a single worktree
  • Background poll for issues: 5-minute interval fallback in WorktreeCard ensures issue data stays fresh even without user interaction
  • Fix: skip redundant GitHub refresh when re-clicking the already-active worktree

Test plan

  • Switch between worktrees and verify PR/issue badges update
  • Tab away from the app, change a PR/issue status on GitHub, tab back — verify the status updates
  • Click the same worktree card repeatedly — verify no unnecessary API calls in network tab
  • Leave app open on a worktree with a linked issue for >5 minutes — verify issue data refreshes via background poll

🤖 Generated with Claude Code

@AmethystLiang
AmethystLiang force-pushed the AmethystLiang/syncGhIssueStatus branch from b659f1a to e4ccfc5 Compare March 23, 2026 16:23
@AmethystLiang
AmethystLiang merged commit 596aac5 into main Mar 23, 2026
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
nwparker added a commit that referenced this pull request Oct 19, 2026
…ew callers off the deprecated owner resolver

The creation-action policy and browser creation (#3, #48) fold together, so the provider the
policy offers is the one creation uses. Browser panes, page lifecycle and conversion, tab
duplication, the explorer tree pane, doc-preview actions and editor path moves (#21, #43, #45-#47,
#49, #50) read runtimeEnvironmentIdWithLegacyFallbackUnlessTwin. File-explorer writes on a folder
(#51) take the owner from the rows alone, never from the focused server. Deprecated importers
16 -> 6.
nwparker added a commit that referenced this pull request Oct 19, 2026
…iew off the deprecated owner resolver (#30562)

* refactor(renderer): fold browser creation, file actions and doc-preview callers off the deprecated owner resolver

The creation-action policy and browser creation (#3, #48) fold together, so the provider the
policy offers is the one creation uses. Browser panes, page lifecycle and conversion, tab
duplication, the explorer tree pane, doc-preview actions and editor path moves (#21, #43, #45-#47,
#49, #50) read runtimeEnvironmentIdWithLegacyFallbackUnlessTwin. File-explorer writes on a folder
(#51) take the owner from the rows alone, never from the focused server. Deprecated importers
16 -> 6.

* refactor(renderer): fold file preview off the deprecated owner resolver; Open in Orca Browser refuses a twin

A project two hosts publish reads as no server for the doc-preview plan, but the file:// path now
refuses it with its own message instead of opening this machine's copy (#7). Deprecated importers
6 -> 5.

* fix(renderer): a twin's file preview and open-externally refuse instead of opening this machine's copy

Codex P2 on the F7 folds: a folder twin read as no server, so the preview plan built a local
file:// tab and open-externally handed the path to this machine's OS. Both now check the owner
for ambiguity first. Also fix two test fixtures that broke the renderer typecheck.

* refactor(renderer): move the file:// open target out of file-preview.ts

file-preview.ts crossed its line limit after main grew it; the file:// target, its type and its two
refusal messages move to workspace-file-browser-open-target.ts, which they never depended on
file-preview for.

* test: mock the replacement resolver in the quick-action availability suite (Codex P2)
brz-anderson added a commit to brz-anderson/brza-studio that referenced this pull request Oct 28, 2026
… and a chip

A gh pr or gh issue call outweighs git in a compound command and draws
GitPullRequest. Once the output carries the URL, the row reads
"PR stablyai#123 — <title>" or "Issue stablyai#45 — <title>", the title taken from
--title or from gh's plain or JSON view output, and the number becomes a
desktop chip that opens the URL in the browser.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant