Skip to content

sessions: Count blocked sessions in application badge - #333774

Merged
Benjamin Christopher Simmonds (benibenj) merged 2 commits into
mainfrom
benibenj/agents/count-sessions-with-input-and-ci-failures
Sep 1, 2026
Merged

sessions: Count blocked sessions in application badge#333774
Benjamin Christopher Simmonds (benibenj) merged 2 commits into
mainfrom
benibenj/agents/count-sessions-with-input-and-ci-failures

Conversation

@benibenj

Copy link
Copy Markdown
Contributor

Summary

  • count sessions needing input or with failing pull request CI in the application badge
  • exclude unread sessions that are still in progress
  • reuse the shared blocked-sessions model and add focused regression coverage

Validation

  • npm run transpile-client
  • npm run typecheck-client
  • npm run valid-layers-check
  • .\scripts\test.bat --run src\vs\sessions\contrib\sessions\test\electron-browser\sessionsApplicationBadge.test.ts

Full npm run hygiene is blocked on Windows by an existing path resolution issue that looks for C:\C:\...\remote\package.json; scoped pre-commit hygiene passed.

Include sessions that need input or have failing pull request CI, while excluding unread sessions that are still in progress.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

Review tier: Balanced
Findings: 2 Low severity

New issues introduced by this change (2)
Severity Finding
Low severity src/​vs/​sessions/​contrib/​sessions/​electron-browser/​sessions.contribution.ts — The criteria here no longer match the implementation: archived sessions are always excluded, and…
Low severity src/​vs/​sessions/​contrib/​sessions/​electron-browser/​sessionsApplicationBadge.ts — This class documentation now omits filtering that the implementation applies: archived sessions are…
What changed in this PR

Updates the application badge to reflect sessions requiring attention.

Changes:

  • Counts blocked sessions and excludes unread in-progress sessions.
  • Reuses BlockedSessions for failing CI detection.
  • Adds focused regression tests and updates setting text.
File Description
sessionsApplicationBadge.ts Revises badge counting logic.
sessionsApplicationBadge.test.ts Adds blocked-session regression coverage.
sessions.contribution.ts Updates the setting description.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/vs/sessions/contrib/sessions/electron-browser/sessions.contribution.ts Outdated
Comment thread src/vs/sessions/contrib/sessions/electron-browser/sessionsApplicationBadge.ts Outdated
Document the archived, in-progress, pull request state, and draft filters applied by the badge count.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@benibenj
Benjamin Christopher Simmonds (benibenj) merged commit 0ff22af into main Sep 1, 2026
40 checks passed
@benibenj
Benjamin Christopher Simmonds (benibenj) deleted the benibenj/agents/count-sessions-with-input-and-ci-failures branch September 1, 2026 15:22
@vs-code-engineering vs-code-engineering Bot added this to the 1.137.0 milestone Sep 1, 2026
Bhavya U (bhavyaus) pushed a commit that referenced this pull request Sep 1, 2026
* sessions: Count blocked sessions in application badge

Include sessions that need input or have failing pull request CI, while excluding unread sessions that are still in progress.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* sessions: Clarify application badge criteria

Document the archived, in-progress, pull request state, and draft filters applied by the badge count.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

3 participants