From 335cf9ca9fd4912d33fece525459ba54b848193a Mon Sep 17 00:00:00 2001 From: cruldra Date: Thu, 8 Oct 2026 07:16:11 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20chore(tui):=20=E5=88=A0=E6=8E=89?= =?UTF-8?q?=E4=BC=9A=E8=AF=9D=E4=BA=A4=E6=8E=A5=E9=82=AE=E7=AE=B1=E5=B7=A5?= =?UTF-8?q?=E5=8D=95=E7=9A=84=E8=BF=87=E6=BB=A4=EF=BC=8C=E4=BA=A4=E6=8E=A5?= =?UTF-8?q?=E5=B7=B2=E6=94=B9=E8=B5=B0=E9=98=BF=E9=87=8C=E4=BA=91=20OSS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tui/internal/issue/loader.go | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/tui/internal/issue/loader.go b/tui/internal/issue/loader.go index f5f49cf..b941c4d 100644 --- a/tui/internal/issue/loader.go +++ b/tui/internal/issue/loader.go @@ -225,35 +225,6 @@ func fetchPRStatus(ctx context.Context, client GiteaClient, owner, repo, prStr s // LoadIssues loads all issues assigned to or created by the current user, // resolves state from comment blobs, and enriches with live PR and dependency // data (skipped for done-column issues). -const mailboxTitle = "spx-session-mailbox" -const mailboxLabel = "spx-session-mailbox" -const mailboxMarker = "" - -func isMailboxIssue(iss gitea.Issue) bool { - if iss.Title == mailboxTitle { - return true - } - if strings.Contains(iss.Body, mailboxMarker) { - return true - } - for _, l := range iss.Labels { - if l.Name == mailboxLabel { - return true - } - } - return false -} - -func filterMailboxIssues(issues []gitea.Issue) []gitea.Issue { - out := issues[:0] - for _, iss := range issues { - if !isMailboxIssue(iss) { - out = append(out, iss) - } - } - return out -} - func LoadIssues(ctx context.Context, client GiteaClient, owner, repo, workspaceRoot string) ([]Issue, error) { // Kick off user + repo-wide comments in parallel. userCh := make(chan *gitea.User, 1) @@ -320,7 +291,6 @@ func LoadIssues(ctx context.Context, client GiteaClient, owner, repo, workspaceR } issues := mergeIssues(assigned, created) - issues = filterMailboxIssues(issues) buckets := groupComments(allComments) // Pre-compute columns to decide which issues need live PR/deps queries.