Repository navigation
chore: trim comments to the AGENTS.md comment rule - #77
Merged
Merged
Conversation
Deletes ticket, QA and commit references, fix narration and bug history, explanations of what iOS does where the code doesn't need them, and comments that restate the code; shortens long KDoc and block comments to a line or two. Comments only.
Removes comments that only point at the iOS counterpart ("Port of iOS
`X.swift`", "(iOS `Foo.bar`)") and the test KDocs that list which iOS
tests are ported or skipped: docs/parity already maps every Android file
to its iOS file, and test names match iOS. Where a comment mixed an iOS
reference with something about the current code, only that part stays.
Also drops the remaining Android-vs-iOS narration (the voice "Kit's call"
history, the LivingOrbView/DotScopeView divergence notes) and applies the
same trim to the files skipped earlier while #65/#66 (#70) were open.
No code is renamed.
Comments only. Verified with a script that strips comments with a
Kotlin-aware scanner (strings, raw strings, templates, nested block
comments) and checks the code is identical before and after, that every
changed line is a comment or blank (or a code line whose code part is
unchanged), and that no stray blank lines are left. Full scripts/check.sh
on the Android VM.
docs/parity maps each Android file to its iOS file, so code comments don't need to.
This was referenced Nov 14, 2026
This was referenced Nov 14, 2026
Merged
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Trims code comments to the AGENTS.md Comments rule (#68), in one PR. This replaces #71–#76.
Comments only. No code, formatting or imports changed, so there's no UI change and no media.
What's removed and why
// Port of iOS \X.swift`,(iOS `Foo.bar`), and test KDocs that list which iOS tests are ported or skipped.docs/parityalready maps every Android file to its iOS file, and test names match iOS. When a comment mixed an iOS reference with something about the current code, only that part stays. No code is renamed. Comments mentioning iOS go from 4,784 to 4. Those 4 state contracts or describe test data: theiosclient-tools name that keeps both phones' tools apart on one server, the iOS-repo script that re-renders the call sounds, aSessionView.swift:42` path example, and an "iOS" folder in test data.Kept: platform constraints, units, the reason for magic numbers, thread-safety and ordering notes, API contracts,
@paramlines,@Suppressreasons, TODOs, and// regionmarkers (with the iOS part removed).docs/parity/*.mdis unchanged. Nothing in it or AGENTS.md told contributors to add iOS pointers. AGENTS.md gains one Comments bullet: don't add comments pointing to the iOS counterpart.How comments-only was verified
A script compares each file with
origin/devusing a Kotlin-aware comment scanner (strings, raw strings,${}templates, nested block comments). It checks that:{or before});.kt/.ktsfiles changed, apart from the AGENTS.md bullet.Result: 1,093 Kotlin files, 0 problems. The full
scripts/check.shpasses on the Android VM.Comment lines, before → after
appcoredevtoolsfeature/composerfeature/drawerfeature/mediafeature/sessionfeature/settingsfeature/systemfeature/transcriptfeature/voiceserverSkipped
#62 (
proto-send-native) is being rebased, so none of its 78 files are touched here. They get the same pass after it merges. Its AGENTS.md change is in a different section from this PR's bullet.Files skipped for #62
AGENTS.mdcore/src/main/kotlin/ai/opencode/core/diagnostics/LabMarks.ktcore/src/main/kotlin/ai/opencode/core/diagnostics/MotionAudit.ktcore/src/main/kotlin/ai/opencode/core/diagnostics/MotionWatch.ktdocs/parity/composer.mddocs/parity/devtools.mddocs/parity/drawer.mddocs/parity/media.mddocs/parity/session.mddocs/parity/transcript.mdfeature/composer/src/main/kotlin/ai/opencode/feature/composer/ComposerFieldLink.ktfeature/composer/src/main/kotlin/ai/opencode/feature/composer/ComposerKeyboardMorph.ktfeature/composer/src/main/kotlin/ai/opencode/feature/composer/ComposerSendTransition.ktfeature/composer/src/main/kotlin/ai/opencode/feature/composer/ComposerTextInput.ktfeature/composer/src/main/kotlin/ai/opencode/feature/composer/SentImageFlight.ktfeature/composer/src/test/kotlin/ai/opencode/feature/composer/SentImageFlightTests.ktfeature/drawer/src/main/kotlin/ai/opencode/feature/drawer/motion/DrawerMotion.ktfeature/drawer/src/test/kotlin/ai/opencode/feature/drawer/motion/DirectionalPanGestureRecognizerTests.ktfeature/media/src/main/kotlin/ai/opencode/feature/media/agentfiles/AgentImageGallery.ktfeature/media/src/main/kotlin/ai/opencode/feature/media/agentfiles/AgentImagePreviews.ktfeature/media/src/main/kotlin/ai/opencode/feature/media/agentfiles/AgentImageVisibility.ktfeature/media/src/main/kotlin/ai/opencode/feature/media/MediaFoundation.ktfeature/media/src/test/kotlin/ai/opencode/feature/media/AgentImagePreviewFrameworkTests.ktfeature/media/src/test/kotlin/ai/opencode/feature/media/AgentImagePreviewTests.ktfeature/session/src/main/kotlin/ai/opencode/feature/session/ComposerSendReset.ktfeature/session/src/main/kotlin/ai/opencode/feature/session/SendLift.ktfeature/session/src/main/kotlin/ai/opencode/feature/session/SessionScrollEdgeBridge.ktfeature/session/src/main/kotlin/ai/opencode/feature/session/SessionSendFlight.ktfeature/session/src/main/kotlin/ai/opencode/feature/session/SessionTranscriptView.ktfeature/session/src/main/kotlin/ai/opencode/feature/session/SessionViewAttachments.ktfeature/session/src/main/kotlin/ai/opencode/feature/session/SessionViewComposerControls.ktfeature/session/src/main/kotlin/ai/opencode/feature/session/SessionViewComposer.ktfeature/session/src/main/kotlin/ai/opencode/feature/session/SessionView.ktfeature/session/src/test/kotlin/ai/opencode/feature/session/ComposerSendTransitionTests.ktfeature/session/src/test/kotlin/ai/opencode/feature/session/NewMessagesTests.ktfeature/session/src/test/kotlin/ai/opencode/feature/session/SessionFeatureTestsComposer.ktfeature/session/src/test/kotlin/ai/opencode/feature/session/TranscriptScrollBehaviorTests.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/links/ImageLinkPreviews.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/links/LinkPreviewMotion.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/links/LinkPreviewViews.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/list/NewDividerMotion.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/list/TranscriptListController.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/list/TranscriptList.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/list/TranscriptListRows.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/list/TranscriptListScroller.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/list/TranscriptListSelection.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/list/TranscriptListSnapshot.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/list/TranscriptMotionTrace.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/list/TranscriptRowEntrance.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/list/TranscriptRowGrowth.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/list/TranscriptScrollBehavior.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/list/TranscriptScrollSprings.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/markdown/ui/MarkdownBlocksView.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/markdown/ui/TranscriptBand.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/rows/DisclosureMotion.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/rows/ReplyActions.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/rows/RowModifiers.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/rows/RunErrorRow.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/rows/ToolRows.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/rows/TranscriptEntryView.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/TranscriptContract.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/TranscriptTunables.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/user/MediaReferenceTiles.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/user/SendLanding.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/user/TranscriptPendingActions.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/user/TranscriptUserBubble.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/user/TranscriptUserMessageView.ktfeature/transcript/src/main/kotlin/ai/opencode/feature/transcript/user/TranscriptVoiceMessageView.ktfeature/transcript/src/test/kotlin/ai/opencode/feature/transcript/links/ImageLinkPreviewTests.ktfeature/transcript/src/test/kotlin/ai/opencode/feature/transcript/links/LinkPreviewMotionTests.ktfeature/transcript/src/test/kotlin/ai/opencode/feature/transcript/list/MarkLoadingTests.ktfeature/transcript/src/test/kotlin/ai/opencode/feature/transcript/list/NewMessagesTests.ktfeature/transcript/src/test/kotlin/ai/opencode/feature/transcript/list/TranscriptGestureReleaseTests.ktfeature/transcript/src/test/kotlin/ai/opencode/feature/transcript/list/TranscriptRenderWorkTests.ktfeature/transcript/src/test/kotlin/ai/opencode/feature/transcript/list/TranscriptRowGrowthTests.ktfeature/transcript/src/test/kotlin/ai/opencode/feature/transcript/list/TranscriptScrollBehaviorTests.ktfeature/transcript/src/test/kotlin/ai/opencode/feature/transcript/NewMessagesListTests.ktfeature/transcript/src/test/kotlin/ai/opencode/feature/transcript/rows/TranscriptLayoutTests.ktFiles #60, #63, #64 and #31 also change, all in comments: #60 11, #63 15, #64 36, #31 30. Git should merge comment-only hunks cleanly unless they touch the same lines.