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
fix: exclude help wanted issues from scheduled task context
[._.]/ Adam Eivy2053160be583
diff --git a/server/lib/taskDataInputCatalog.js b/server/lib/taskDataInputCatalog.jsindex 062f36c115..07020479da 100644--- a/server/lib/taskDataInputCatalog.js+++ b/server/lib/taskDataInputCatalog.js@@ -9,7 +9,7 @@export const TASK_DATA_INPUT_DEFINITIONS = Object.freeze([Object.freeze({ id: 'product-requirements', label: 'Product requirements', description: 'Find and include PRD.md files from the target repository.', requiresApp: true }),Object.freeze({ id: 'project-goals', label: 'Project goals', description: 'Find and include GOALS.md files from the target repository.', requiresApp: true }),- Object.freeze({ id: 'open-issues', label: 'Open issues', description: 'Include the target repository\'s current open forge issues, with their labels.', requiresApp: true, carriesDispatchLabels: true }),+ Object.freeze({ id: 'open-issues', label: 'Open issues', description: 'Include the target repository\'s current open forge issues, with their labels, excluding help wanted issues.', requiresApp: true, carriesDispatchLabels: true }),Object.freeze({ id: 'open-pull-requests', label: 'Open pull requests', description: 'Include the target repository\'s current open pull or merge requests.', requiresApp: true }),Object.freeze({ id: 'closed-unmerged-pull-requests', label: 'Closed unmerged pull requests', description: 'Include recently closed pull or merge requests that were not merged.', requiresApp: true }),]);diff --git a/server/services/taskDataInputs.js b/server/services/taskDataInputs.jsindex fe7983a9cb..433b4411aa 100644--- a/server/services/taskDataInputs.js+++ b/server/services/taskDataInputs.js@@ -230,7 +230,13 @@ const INPUT_LOADERS = {}, forge.env): await deps.listIssues({ cli: forge.cli, cwd: app.repoPath, env: forge.env });return result.ok- ? renderForgeItems(result.issues, { emptyMessage: configured ? 'No open issues match this task’s configured filters.' : 'No open issues.' })+ ? renderForgeItems(+ // Human-gated work is never a scheduled agent input. Keep the raw+ // listing intact for callers that need it for duplicate detection.+ result.issues.filter((issue) => !normalizeLabels(issue.labels)+ .some((label) => label.trim().toLowerCase() === 'help wanted')),+ { emptyMessage: 'No open issues match this task’s configured filters (help wanted is excluded).' }+ )+ (result.truncated ? TRUNCATION_NOTICE : ''): unavailableMessage('Open issues');},diff --git a/server/services/taskDataInputs.test.js b/server/services/taskDataInputs.test.jsindex 6bf9d56c25..f9a5313fab 100644--- a/server/services/taskDataInputs.test.js+++ b/server/services/taskDataInputs.test.js@@ -65,7 +65,7 @@ describe('taskDataInputs', () => {common.dependencies.listIssues.mockResolvedValue({ ok: true, issues: [] });const empty = await resolveTaskDataInputs(['open-issues'], common);- expect(empty[0].content).toBe('No open issues.');+ expect(empty[0].content).toContain('No open issues match');});it('uses task policy for issue context and fails closed when policy resolution fails', async () => {@@ -90,6 +90,32 @@ describe('taskDataInputs', () => {expect(listIssues).not.toHaveBeenCalled();});+ it.each([false, true])('omits human-gated issues from scheduled context (configured: %s)', async (configured) => {+ const issues = [+ { number: 1, title: 'Human hardware validation', labels: [' Help Wanted '] },+ { number: 2, title: 'Human perspectives', labels: [{ name: 'help wanted' }] },+ { number: 3, title: 'Automatable work', labels: ['bug'] },+ ];+ const list = vi.fn().mockResolvedValue({ ok: true, issues });+ const options = {+ app: APP,+ taskMetadata: configured ? { issueExcludeLabels: ['human-only'] } : {},+ dependencies: {+ resolveTracker: vi.fn().mockResolvedValue({ forge: 'gh', host: 'github.com' }),+ resolveTokenEnv: vi.fn().mockResolvedValue({}),+ listIssues: list, listConfiguredIssues: list,+ },+ };+ const [section] = await resolveTaskDataInputs(['open-issues'], options);+ expect(section.content).toContain('#3 Automatable work');+ expect(section.content).not.toContain('Human hardware');+ expect(section.content).not.toContain('Human perspectives');+ expect(issues).toHaveLength(3);+ list.mockResolvedValue({ ok: true, issues: issues.slice(0, 2) });+ expect((await resolveTaskDataInputs(['open-issues'], options))[0].content)+ .toContain('help wanted is excluded');+ });+it('reports a discovered document that could not be read', async () => {const sections = await resolveTaskDataInputs(['project-goals'], {app: APP,