Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
Merge remote-tracking branch 'origin/main' into fix/github-inbox-mirror
Adam Eivy278780e7cad9
diff --cc client/src/components/github/GitHubInboxTab.jsxindex 151cd8fdca,b318b6975b..becb8ebbe8--- a/client/src/components/github/GitHubInboxTab.jsx+++ b/client/src/components/github/GitHubInboxTab.jsx@@@ -54,13 -53,16 +54,14 @@@ const MORE_ACTIONS ={ action: 'unsubscribe', label: 'Unsubscribe', icon: MailX },];-// Mirrors HANDLED_DECISIONS in server/lib/githubNotificationTriage.js:-// nothing is left for you on these threads, so they sit under Handled.-const HANDLED_DECISIONS = new Set(['handled-by-pr-workflow', 'duplicate', 'handed-off', 'suggest-mark-read']);-const nothingLeft = (row) => row.readOnGithub || (!row.suspect && HANDLED_DECISIONS.has(row.decision));--// Whether a row still belongs in the view after an action moved it.+// Whether a row still belongs in the view after an action moved it. Mirrors+// VIEW_FILTERS in server/services/githubNotifications.js: the inbox holds every- // open thread, as GitHub's does, whatever its decision.++// open thread GitHub still has unread or PortOS has not seen read there,++// whatever its decision.const VIEW_MATCHERS = {- 'needs-you': (row) => row.state === 'open' && !row.suspect,- suspect: (row) => row.state === 'open' && row.suspect,- handled: (row) => row.state !== 'open',- 'needs-you': (row) => row.state === 'open' && !row.suspect && !nothingLeft(row),++ 'needs-you': (row) => row.state === 'open' && !row.readOnGithub && !row.suspect,+ suspect: (row) => row.state === 'open' && !row.readOnGithub && row.suspect,- handled: (row) => row.state !== 'open' || nothingLeft(row),++ handled: (row) => row.state !== 'open' || row.readOnGithub,all: () => true,};const belongsInView = (row, view) => VIEW_MATCHERS[view](row);diff --cc server/services/githubNotifications.jsindex 2ff388cc78,beac4b8891..2b19feb9e9--- a/server/services/githubNotifications.js+++ b/server/services/githubNotifications.js@@@ -277,14 -295,13 +295,15 @@@ export async function syncAllNotificatireturn results;}-// A thread with nothing left for you (something else has it, or it is closed-// or merged) is Handled while it is still open on GitHub.-const HANDLED_SQL = `decision IN (${HANDLED_DECISIONS.map((decision) => `'${decision}'`).join(', ')})`;+// The inbox mirrors GitHub's: every open thread is in it until marked done,+// whatever its decision says (a pill on the row). Finished threads are those+// the inbox can clear in one tap.+const FINISHED_SQL = `decision IN (${FINISHED_DECISIONS.map((decision) => `'${decision}'`).join(', ')})`;const VIEW_FILTERS = {- 'needs-you': "state = 'open' AND NOT suspect",- suspect: "state = 'open' AND suspect",- handled: "state <> 'open'",- 'needs-you': `state = 'open' AND read_on_github_at IS NULL AND NOT suspect AND (decision IS NULL OR NOT ${HANDLED_SQL})`,++ // Read on the GitHub website without PortOS reading it: the operator handled it there (#13171).++ 'needs-you': "state = 'open' AND read_on_github_at IS NULL AND NOT suspect",+ suspect: "state = 'open' AND read_on_github_at IS NULL AND suspect",- handled: `(state <> 'open' OR read_on_github_at IS NOT NULL OR (NOT suspect AND ${HANDLED_SQL}))`,++ handled: "(state <> 'open' OR read_on_github_at IS NOT NULL)",all: 'TRUE',};