Skip to content

Make agent-view Cmd+Up/Down skip hidden hera tasks; raise local test timeout to 200s - #1063

Merged
anutron merged 3 commits into
masterfrom
argus/argus-arrows
Oct 19, 2026
Merged

anutron merged 3 commits into
masterfrom
argus/argus-arrows

Conversation

@anutron

@anutron anutron commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Bug: in the Tasks-tab agent view, Cmd+Up/Down (previous/next task) ignored the hide-hera-managed toggle, so with hera tasks hidden it still landed on hidden hera workers and coordinators. AdjacentTask walked the raw task slice; it now walks scanOrder, the same visible order the list renders (filter and hide-hera-managed applied; Pinned → Active → Archive; folded projects still reachable). If the current task isn't visible, the chord does nothing.
  • Spec: new requirement "Agent-view previous/next task follows the visible task list" in task-list-view, archived in this PR (openspec/changes/archive/2026-10-19-fix-agent-task-nav-visibility).
  • Local test timeout 120s → 200s: run alone, internal/tui takes ~123s under -race (~1,300 serial tests, none over 1.7s), so the 120s per-package timeout failed it every time on a dev machine. Same result with this change reverted, so the slowness predates it. CI runs without -timeout and isn't affected. Updated the ci-gates.md notes that said not to raise it.

Parity

The web SPA and macOS app aren't affected: the hide toggle only exists in the TUI, and the macOS Cmd+Up/Down walks its own sidebar list.

Test plan

  • New TestTaskListView_AdjacentTask_HonorsVisibility (hidden hera skipped, shown when not hidden, filter, pinned-first order). It fails on the old code by landing on the hidden worker.
  • Existing TestTaskListView_AdjacentTask still passes
  • build, vet, fmt-check, lint-pr (0 issues)
  • GOFLAGS=-p=1 make test-cover-gate: green, 88.8% (floor 88)
  • make vuln fails on go1.26.8 stdlib advisories (net/http, crypto/tls, net/textproto). CI runs it as continue-on-error.

🤖 Generated with Claude Code

anutron and others added 3 commits October 18, 2026 23:14
AdjacentTask walked the raw task slice, so with hera-managed tasks hidden
(H) Cmd+Up/Down still landed on hidden hera workers and coordinators. It
now walks scanOrder, the same visible order the list renders: filter and
hide-hera-managed applied, Pinned -> Active -> Archive.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
internal/tui alone runs ~1,300 serial tests in ~123s under -race on a
normal dev machine, so the 120s per-package timeout failed it
deterministically. CI runs without -timeout and is unaffected. Update the
ci-gates notes that forbade raising it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
150s still tripped internal/tui (144s at -p=1) under a load spike; give
it real headroom.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/drn/argus/internal/tui/taskview 94.40% (+0.01%) 👍

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/drn/argus/internal/tui/taskview/tasklist.go 94.01% (+0.01%) 651 (+1) 612 (+1) 39 👍

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/drn/argus/internal/tui/taskview/tasklist_test.go

@anutron
anutron merged commit 1526d00 into master Oct 19, 2026
1 check passed
@anutron
anutron deleted the argus/argus-arrows branch October 19, 2026 08:12
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