Skip to content

Work view backlog shows wrong repo's issues for non-codev workspaces #333

Closed

Description

@waleedkadous

Parent: #323

Problem

The Work view's backlog section shows GitHub issues from the codev repo regardless of which workspace is active. Screenshot shows the "life" workspace displaying codev issues (#323-#332, #178, #143, #141) and codev's PR #309.

Root Cause

The /api/overview endpoint in overview.ts calls fetchIssueList() and fetchPRList() from github.ts, which use gh CLI. These calls likely run from the Tower's working directory (the codev repo) rather than the workspace's directory, so gh picks up codev's remote.

Fix

The getOverview() function needs to receive the workspace root path and run gh commands with cwd set to that workspace. If the workspace has no GitHub remote, the backlog/PR sections should be empty (not show another repo's data).

Dependencies

None — independent fix, but part of the #323 family.

Activity

  1. added
    bug
    on Feb 16, 2026
  2. waleedkadous commented on Feb 16, 2026

    @waleedkadous
    ContributorAuthor

    On it! Working on a fix now.

  3. added 2 commits that reference this issue on Feb 16, 2026
  4. added a commit that references this issue on Feb 16, 2026
  5. waleedkadous commented on Feb 17, 2026

    @waleedkadous
    ContributorAuthor

    Still happening. Root cause identified: OverviewCache has a single global cache (prCache, issueCache, closedCache) that's not keyed by workspace. When codev's overview loads first, the cache fills with codev's GitHub issues. When another project requests its overview within the 60s TTL, the cache returns stale codev data.

    The lastWorkspaceRoot invalidation (line ~599) only triggers on workspace switch, but the individual cache getters (fetchPRsCached, fetchIssuesCached, fetchRecentlyClosedCached) ignore the cwd parameter when returning cached data.

    Fix: key the cache by workspace path, not just TTL.

  6. added 2 commits that reference this issue on Feb 17, 2026
    acb132a
    9695f47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions