Skip to content

refactor: Clean up redundant code comments - #1163

Merged
tofarr merged 3 commits into
mainfrom
openhands/comment-cleanup/2026-11-04-c38c32
Nov 6, 2026
Merged

tofarr merged 3 commits into
mainfrom
openhands/comment-cleanup/2026-11-04-c38c32

Conversation

@tofarr

@tofarr tofarr commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Why

This is the scheduled comment cleanup: 50 files examined, 23 edited. 137 comments were removed as restating the adjacent code (mostly // Mock ... labels above vi.mock, step narration in tests, and Reset ... labels), 2 were trimmed to drop history and keep only the present-tense fact, and 2 more verbose ones were condensed. No code, docstrings, or machine-read comments changed.

Follow-ups for a human:

  • frontend/__tests__/components/chat/chat-interface.test.tsx (line ~351): // spy on send and expect to have been called sits at the end of a test with no assertion. Kept as is.
  • frontend/__tests__/components/chat/chat-interface.test.tsx (lines ~453, ~476): "This test may need adjustment since useRouteLoaderData is now globally mocked" has no owner or ticket. Kept as is.
  • frontend/src/routes/mcp-settings.tsx (lines ~148-151, ~212): comments tied to OHE tickets and a "bug bash" flag. They may go stale once the flag is removed. Kept as is.
  • frontend/__tests__/components/conversation-tab-title.test.tsx (line ~241): the shortened note says useAgentState is mocked to always return AWAITING_USER_INPUT, but the test sets the agent store to RUNNING. The test may not exercise what it claims.
  • // Arrange / // Act / // Assert markers were left in place as test-structure labels.

Validation

verify_comment_only.py passed for all 23 changed code files (0 failures). No README files were changed, so there were no README diffs to review.

This pull request was opened by an AI agent (OpenHands).


Enterprise server image for this PR:

ghcr.io/openhands/enterprise-server:sha-fcc7e3d

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Coverage report

This PR does not seem to contain any modification to coverable code.

@hieptl hieptl 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.

Thank you! 🙏

@tofarr
tofarr enabled auto-merge (squash) November 5, 2026 16:03
@tofarr tofarr changed the title Clean up redundant code comments refactor: Clean up redundant code comments Nov 5, 2026
@github-actions github-actions Bot added the type: refactor Code refactoring label Nov 5, 2026
@tofarr
tofarr merged commit 4b4379f into main Nov 6, 2026
21 of 22 checks passed
@tofarr
tofarr deleted the openhands/comment-cleanup/2026-11-04-c38c32 branch November 6, 2026 12:34
@openhands-release-bot openhands-release-bot Bot added the released: 1.88.0 Shipped in 1.88.0 label Nov 6, 2026
@openhands-release-bot

Copy link
Copy Markdown
Contributor

🚀 Released in 1.88.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released: 1.88.0 Shipped in 1.88.0 type: refactor Code refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants