Skip to content

Jobs command issues#269

Merged
UdeshyaDhungana merged 1 commit intobg-jobs-4from
cursor/jobs-command-issues-f553
Feb 26, 2026
Merged

Jobs command issues#269
UdeshyaDhungana merged 1 commit intobg-jobs-4from
cursor/jobs-command-issues-f553

Conversation

@UdeshyaDhungana
Copy link
Contributor

@UdeshyaDhungana UdeshyaDhungana commented Feb 26, 2026

Fix a Python logic bug in job output generation and refactor Go test cases to centralize job entry formatting.


Note

Low Risk
Changes are limited to test helpers and a Python scenario shell; main risk is altering regex expectations for jobs/reaped-job output formatting, which could change test outcomes.

Overview
Centralizes jobs/reaped-job output expectations in Go tests. Adds BackgroundJobStatusEntry.ExpectedOutputAndRegex() and updates both JobsBuiltinResponseTestCase and CommandResponseWithReapedJobsTestCase to use it instead of duplicating fmt/regex construction (including the special-case optional trailing & for Running).

Fixes a logic bug in the Python scenario jobs output. Corrects indentation so the jobs builtin returns the full multi-line listing after iterating all background jobs, rather than returning early.

Written by Cursor Bugbot for commit df90315. This will update automatically on new commits. Configure here.

- Fix Bug 1: Move return statement outside for loop in main.py (line 92)
  to process all background jobs instead of returning after the first one

- Fix Bug 2: Add ExpectedOutputAndRegex() method to BackgroundJobStatusEntry
  to centralize job entry formatting logic. Update both
  CommandResponseWithReapedJobsTestCase and JobsBuiltinResponseTestCase
  to use the shared method, including proper 'Running' status handling.
@UdeshyaDhungana UdeshyaDhungana merged commit e1f66aa into bg-jobs-4 Feb 26, 2026
7 checks passed
@UdeshyaDhungana UdeshyaDhungana deleted the cursor/jobs-command-issues-f553 branch February 26, 2026 10:19
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.

2 participants