GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Keep a drawing out of a sent draft and a released file page · anomalyco/opencode-android@50ac0cb

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • docs/parity
    • composer.md
    • media.md
    • session.md
  • feature
    • media/src
      • main/kotlin/ai/opencode/feature/media/agentfiles
        • AgentFileViewerModel.kt
      • test/kotlin/ai/opencode/feature/media
        • ImageDrawingTests.kt
    • session/src
      • main/kotlin/ai/opencode/feature/session
        • SessionFeature.kt
        • SessionFeatureAttachments.kt
        • SessionViewAttachments.kt
      • test/kotlin/ai/opencode/feature/session
        • SessionFeatureTestsComposer.kt
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎docs/parity/composer.md‎

Copy file name to clipboardExpand all lines: docs/parity/composer.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Status values: `todo`, `partial: <what is missing>`, `done`, `n/a: <reason and w
2929
| `OpenCode/Composer/AutocompleteTunables.swift` | 60 | `AutocompleteTunables.kt` | done | Baked defaults (no tuning store on Android); presets as `AutocompleteParameters` transforms; `register`/`setEnabled` n/a (Tuning Panel) Sync b1c67259 (iOS 569e6f30, p217): `allKeys`/`setEnabled` gone with iOS (Android's `allKeys` removed); `sectionTitles` n/a (no Tuning Panel). Sync 01eef583 (258a9424): the spring tunables and presets dropped (the roles own them); only the gesture knobs stay. |
3030
| `OpenCode/Composer/AutocompleteViews.swift` | 993 | `AutocompleteViews.kt` | done | Kind icons ported as Compose paths (UIKit `AutocompleteKindIconView` folded into the composable); `ComposerAutocompleteTextBridge` maps TextKit styling to Input/Output/VisualTransformation + `AutocompleteInlineChips` overlay from `TextLayoutResult`; `SyncComposerAutocomplete` ports `syncComposerAutocomplete`; ComposerTextInput/SessionView wire it. Chip non-breaking uses NBSP/U+2011 substitution (other break opportunities, e.g. after `/`, may still wrap) `SyncComposerAutocomplete` takes `composerSize: () -> Size` and reads it in its own scope (the size changes each keyboard frame). Sync e5c22780: KDoc names `ComposerSurface`. Sync 03adf07a (d0b24aaa): the bridge gains `caretUpdateAfterEdit(text, selection, composition)`, so a keystroke reports its caret with the edit; iOS's attributed-string `styled` cache and text perf probe are TextKit-only (n/a). Sync 01eef583 (258a9424): the drag's lift (and a lost pointer) calls `endScroll()`. |
3131
| `OpenCode/Composer/ComposerDoubleTap.swift` | 153 | `ComposerDoubleTap.kt` | done | `ComposerTextTap`, the iOS thresholds (tap 0.35 s and 10 dp, inline-control slop 4 dp, second tap within 0.4 s of the first's end and acted on within 0.6 s, 30 dp across, up to 34 dp below the field), `isOnLastVisibleLine`, the selection-change keep rule and word lookup (`TextLayoutResult.getWordBoundary`). iOS's `ComposerTapObserver` (a UIGestureRecognizer that never recognizes) is the field's existing pointer loop noting finger taps; `ComposerWindowTouchObserver` is `Modifier.composerWindowTouches` on SessionView's root (Initial pass, every new press, `PointerType.Touch` = direct touch). Sync dccec82e (06cedc87, 52ae8547): new. Sync ae029f85 (6a173ff1): `takesDoubleTap` (in `ComposerTextInput.kt`) returns false without clearing the tap when the latest window touch is the first tap's own (`latest.time <= tap.began`), keeping it for the second; KDoc names the row gap as well as the model chip. |
32-
| `OpenCode/Composer/ComposerFileAttachment.swift` | 373 | `ComposerFileAttachment.kt` (struct, lead), `ComposerAttachmentsFeature.kt`; wire types in `:server` `model/Composer.kt` | done | `ComposerAttachmentsFeature`: State (same fields; `undoSnapshot` is the `UndoSnapshot` moved down here), Action (`Outcome` stands in for typed `Result`), Location tapped/response/removed/error dismissed/settings (same haptics `.success`/`.error`, cancel-in-flight), static `readInlineFile`, `upload` (progress, “The upload ended early.”, `uploadsUnsupported`, discard on finish), `cancelUpload`. Attachment IDs are `UUID.toString()` (lowercase) on `OpenCodeOutgoingAttachment`. SessionFeature extension (`reduceAttachments`) → session area wires it. Sync f657969b: `OpenCodeTranscriptFile` gains `mediaHash`/`byteCount`/`isUnavailable` (“Media unavailable”, `exclamationmark.triangle`) in `:server` (7f5ac4c5); `Action.AttachmentLanded` (an attachment Add already answered: no haptic of its own; the session appends it like `AttachmentAdded`, f0670c5d); removing an attachment plays `Haptic.lightTap`. iOS PR #335 (561854a, not on iOS main yet): `drawingAdded(_:from:)` is `:feature:session`'s `SessionFeature.Action.DrawingAdded`, since its `TaskIdentity` belongs to the session, above this module. |
32+
| `OpenCode/Composer/ComposerFileAttachment.swift` | 373 | `ComposerFileAttachment.kt` (struct, lead), `ComposerAttachmentsFeature.kt`; wire types in `:server` `model/Composer.kt` | done | `ComposerAttachmentsFeature`: State (same fields; `undoSnapshot` is the `UndoSnapshot` moved down here), Action (`Outcome` stands in for typed `Result`), Location tapped/response/removed/error dismissed/settings (same haptics `.success`/`.error`, cancel-in-flight), static `readInlineFile`, `upload` (progress, “The upload ended early.”, `uploadsUnsupported`, discard on finish), `cancelUpload`. Attachment IDs are `UUID.toString()` (lowercase) on `OpenCodeOutgoingAttachment`. SessionFeature extension (`reduceAttachments`) → session area wires it. Sync f657969b: `OpenCodeTranscriptFile` gains `mediaHash`/`byteCount`/`isUnavailable` (“Media unavailable”, `exclamationmark.triangle`) in `:server` (7f5ac4c5); `Action.AttachmentLanded` (an attachment Add already answered: no haptic of its own; the session appends it like `AttachmentAdded`, f0670c5d); removing an attachment plays `Haptic.lightTap`. iOS PR #335 (561854a, not on iOS main yet): `drawingAdded(_:from:)` is `:feature:session`'s `SessionFeature.Action.DrawingAdded`, since its `TaskIdentity` belongs to the session, above this module. iOS PR #335 follow-up 47cad96: `drawingAdded` gains `sendGeneration`; on Android it's `DrawingAdded.sendGeneration` (session.md). |
3333
| `OpenCode/Composer/ComposerFileImport.swift` | 129 | `ComposerFileImport.kt` | done | `ComposerFileSource` (`Url`, `PhotosPickerItem`; iOS `.itemProvider` drops are URIs too), `ComposerFileRouting.isInlineImage` (display name or resolver MIME, same image set), `ComposerFileImporter` (Compose-state `isLoading`, per-batch staging, failure count). Android extras: `ComposerFileStaging` (local copy of iOS `ShareHandoff.swift` staging: `stage(uri)`, `stage(bytes)`, `discard`; bounded/verify/rename stay with the share sheet) and `ComposerPickers` (`ACTION_OPEN_DOCUMENT` / `ACTION_PICK_IMAGES` intents + result URIs) because activity-compose isn’t on this module’s classpath. |
3434
| `OpenCode/Composer/ComposerGlassHandoff.swift` | 88 | `ComposerGlassHandoff.kt` | done | `Modifier.handsGlassOver` moved here from `ComposerMorph.kt` as iOS did, gaining `pulledDown` (the sheet's pull raises the sunk composer back by pull / `composerRise`, none under Reduce Motion). A modifier can't set a composition local, so iOS's environment write is `ComposerMorph.attachmentMenuAnchorHold(reduceMotion)` for the caller to provide. Round 2: the session sinks the composer under the New Plus Menu photo sheet (`handsGlassOver(sheet.morph, returnsImmediately, sinksUnderSheet, pulledDown = max(0, top + drag − compactTop))`) and provides `LocalAttachmentMenuAnchorHold` from `attachmentMenuAnchorHold(reduceMotion)` around the capsule; the model sheet's hand-off goes with the model picker. Sync 01eef583 (258a9424): sinks on `panelOpen` enter/exit; the composer's glass returns on `swap` after `panelClose` × 0.62. |
3535
| `OpenCode/Composer/ComposerImageImport.swift` | 211 | `ComposerImageImport.kt` | done | `SharedImageEncoder` (local copy: 20 MB source cap, 1568 px long edge, JPEG 0.8, EXIF dropped by re-encode, orientation applied by `ImageDecoder`), `ImageAttachmentImporter.process`, `ComposerItemProviderLoader` (image bytes, video first frame ≤1600 px JPEG 0.85), `ComposerImageSource` (`ItemProvider`/`PhotosPickerItem` = URIs, `Data`, `Loader`; `Transferable` folds into `Data`), `ComposerImageImporter` (supersession, max 4, oversized flag, same callbacks). Sync f657969b: `start` takes a `limit` (default 4 for pastes, shares and quotes; the photo sheet passes `MAX_PHOTO_SELECTION`, 8), 300220d1. Sync 440b77f0 (1385761f): the import's default `limit` is a plain 4 (pastes, shares and quotes). iOS PR #335 (561854a, not on iOS main yet): `SharedImageEncoder`'s `MAX_PIXEL_SIZE`, `COMPRESSION_QUALITY` and `MIME` read `:feature:media`'s `PromptImageFormat`, which a drawing's export shares (media.md). |

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.