Skip to content

Native open/save file dialogs with platform hints, options and preview - #6052

Open
shai-almog wants to merge 32 commits into
masterfrom
native-file-dialogs
Open

shai-almog wants to merge 32 commits into
masterfrom
native-file-dialogs

Conversation

@shai-almog

Copy link
Copy Markdown
Collaborator

Adds native save dialogs, plus open dialogs you can customize, in the new package com.codename1.io.filechooser.

API

  • Display.showOpenDialog(OpenFileRequest, cb) and Display.showSaveDialog(SaveFileRequest, cb). The callback runs on the EDT, including when the user cancels.
  • Requests take a title, a message, an accept label, an initial folder, named filters (FileTypeFilter: extensions, MIME types, UTTypes), a suggested name, multi-select or folder picking, and overwrite confirmation.
  • Portable FileDialogOptions (checkbox, choice, text) show up inside the native dialog where the platform allows it, and their values come back in FileDialogResult.
  • FileDialogHints are platform hints (macOS tag field, Windows client GUID, Android initial URI, ...). A platform ignores the hints it doesn't know.
  • FilePreviewProvider gives a live preview while opening. An accessory Component can be added too.
  • A save gets its content from SaveContent (written after the user picks a location and format) or from an existing file.
  • Display.isFileDialogFeatureSupported(...) is a runtime capability query.
  • On platforms without a native dialog, a Codename One fallback is used. openFileChooser is unchanged.

Ports

Platform Open Save Extras
JavaSE / simulator AWT FileDialog, or Swing JFileChooser same filters, options, preview
Android Storage Access Framework (SAF) document picker ACTION_CREATE_DOCUMENT none
iOS UIDocumentPicker temp file, then export none
macOS NSOpenPanel NSSavePanel filters, options, hints
Windows IFileOpenDialog IFileSaveDialog filters, options via IFileDialogCustomize, hints
Linux GtkFileChooser GtkFileChooser filters, options
JavaScript file picker download none

Known limitations

  • A native dialog never embeds an accessory component; only the fallback form shows one. Preview works only on JavaSE.
  • Android and iOS don't report the selected filter or option values (the defaults are returned).
  • macOS filters by extension through allowedFileTypes, which is deprecated on macOS 12 and later, and always confirms before overwriting.

Verification

  • New unit tests: FileDialogRequestTest and FileDialogSupportTest.
  • SpotBugs, PMD and Checkstyle are clean on core. SpotBugs is clean on Android and iOS.
  • The native signature check passes on iOS. The C++ linkage check passes on Windows.
  • Linux and Windows natives were never compiled locally; this relies on CI. No dialog has been run on a device yet.

🤖 Generated with Claude Code

shai-almog and others added 12 commits October 19, 2026 14:18
… previews

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…review

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…download

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d options

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Open uses initForOpeningContentTypes (filter UTTypes, extensions, folder),
multi-select, directoryURL and shouldShowFileExtensions; picked items are
copied to tmp. Save stages content in the caches dir off the EDT and exports
it with initForExportingURLs asCopy. Results return through a per-request id
and are delivered on the EDT.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…filters, options and hints

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Filters become an accessory popup that switches the allowed types, options
render as checkbox/popup/text controls in the same accessory stack, and the
MAC_* hints map to the panel properties. Answers use NativeFileDialogCodec;
saves are written through completeSaveDialog. No accessory Component or
preview on the Mac yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shai-almog

shai-almog commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator Author

Compared 12 screenshots: 12 matched.
✅ JavaSE simulator integration screenshots matched stored baselines.

@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

✅ Continuous Quality Report

Test & Coverage

Static Analysis

  • SpotBugs [Report archive]
    • ✅ ByteCodeTranslator: 0 findings (no issues)
    • ✅ android: 0 findings (no issues)
    • ✅ android-compat: 0 findings (no issues)
    • ✅ android-res-compiler: 0 findings (no issues)
    • ✅ backend: 0 findings (no issues)
    • ✅ backend-test: 0 findings (no issues)
    • ✅ build-engine: 0 findings (no issues)
    • ✅ build-hint-catalog: 0 findings (no issues)
    • ✅ build-hint-tools: 0 findings (no issues)
    • ✅ codenameone-gradle-plugin: 0 findings (no issues)
    • ✅ codenameone-maven-plugin: 0 findings (no issues)
    • ✅ core-unittests: 0 findings (no issues)
    • ✅ ios: 0 findings (no issues)
    • ✅ javac: 0 findings (no issues)
    • ✅ project-model: 0 findings (no issues)
  • ✅ PMD: 0 findings (no issues) [Report archive]
  • ✅ Checkstyle: 0 findings (no issues) [Report archive]

Generated automatically by the PR CI workflow.

@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Developer Guide build artifacts are available for download from this workflow run:

Developer Guide quality checks:

  • AsciiDoc linter: No issues found (report)
  • Vale: No alerts found (report)
  • Paragraph capitalization: No paragraph capitalization issues (report)
  • LanguageTool: No grammar matches (report)
  • Image references: No unused images detected (report)

@github-actions

Copy link
Copy Markdown
Contributor

Cloudflare Preview

@shai-almog

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-21T11:37:03.210647Z 3967c08 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@shai-almog

shai-almog commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator Author

Compared 214 screenshots: 214 matched.
✅ JavaScript-port screenshot tests passed.

@shai-almog

shai-almog commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator Author

Compared 178 screenshots: 178 matched.

Native Android coverage

  • 📊 Line coverage: 17.40% (30679/176345 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 15.70% (144888/923101), branch 10.66% (10013/93896), complexity 8.22% (7449/90604), method 12.01% (5157/42930), class 20.74% (1059/5105)
    • Lowest covered classes
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysKt – 0.00% (0/6367 lines covered)
      • kotlin.collections.unsigned.kotlin.collections.unsigned.UArraysKt___UArraysKt – 0.00% (0/2384 lines covered)
      • org.jacoco.agent.rt.internal_0e20598.asm.org.jacoco.agent.rt.internal_0e20598.asm.ClassReader – 0.00% (0/1524 lines covered)
      • org.jacoco.agent.rt.internal_0e20598.asm.org.jacoco.agent.rt.internal_0e20598.asm.MethodWriter – 0.00% (0/922 lines covered)
      • kotlin.sequences.kotlin.sequences.SequencesKt___SequencesKt – 0.00% (0/736 lines covered)
      • com.google.common.cache.com.google.common.cache.LocalCache$Segment – 0.00% (0/726 lines covered)
      • okio.okio.Buffer – 0.00% (0/687 lines covered)
      • kotlin.text.kotlin.text.StringsKt___StringsKt – 0.00% (0/625 lines covered)
      • com.codename1.androidcompat.rt.com.codename1.androidcompat.rt.TextXmlPullParser – 0.00% (0/623 lines covered)
      • com.codename1.androidcompat.androidx.constraintlayout.core.widgets.com.codename1.androidcompat.androidx.constraintlayout.core.widgets.Flow – 0.00% (0/576 lines covered)

✅ Native Android screenshot tests passed.

Native Android coverage

  • 📊 Line coverage: 17.40% (30679/176345 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 15.70% (144888/923101), branch 10.66% (10013/93896), complexity 8.22% (7449/90604), method 12.01% (5157/42930), class 20.74% (1059/5105)
    • Lowest covered classes
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysKt – 0.00% (0/6367 lines covered)
      • kotlin.collections.unsigned.kotlin.collections.unsigned.UArraysKt___UArraysKt – 0.00% (0/2384 lines covered)
      • org.jacoco.agent.rt.internal_0e20598.asm.org.jacoco.agent.rt.internal_0e20598.asm.ClassReader – 0.00% (0/1524 lines covered)
      • org.jacoco.agent.rt.internal_0e20598.asm.org.jacoco.agent.rt.internal_0e20598.asm.MethodWriter – 0.00% (0/922 lines covered)
      • kotlin.sequences.kotlin.sequences.SequencesKt___SequencesKt – 0.00% (0/736 lines covered)
      • com.google.common.cache.com.google.common.cache.LocalCache$Segment – 0.00% (0/726 lines covered)
      • okio.okio.Buffer – 0.00% (0/687 lines covered)
      • kotlin.text.kotlin.text.StringsKt___StringsKt – 0.00% (0/625 lines covered)
      • com.codename1.androidcompat.rt.com.codename1.androidcompat.rt.TextXmlPullParser – 0.00% (0/623 lines covered)
      • com.codename1.androidcompat.androidx.constraintlayout.core.widgets.com.codename1.androidcompat.androidx.constraintlayout.core.widgets.Flow – 0.00% (0/576 lines covered)

Benchmark Results

Detailed Performance Metrics

Metric Duration
SIMD kernel backend scalar fallback (no native SIMD)
SIMD int-add (64K x300) java 176ms / native 102ms = 1.7x speedup
SIMD float-mul (64K x300) java 82ms / native 71ms = 1.1x speedup
SIMD kernel correctness PASS (native result == scalar reference)
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 SIMD byte path gated to scalar (CPU autovectorizes scalar; explicit SIMD not beneficial here)
Base64 CN1 encode 83.000 ms
Base64 CN1 decode 84.000 ms
Base64 native encode 418.000 ms
Base64 encode ratio (CN1/native) 0.199x (80.1% faster)
Base64 native decode 277.000 ms
Base64 decode ratio (CN1/native) 0.303x (69.7% faster)
Image encode benchmark status skipped (SIMD unsupported)

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 71c2a5a6ee

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread CodenameOne/src/com/codename1/impl/NativeFileDialogCodec.java
Comment thread Ports/Android/src/com/codename1/impl/android/AndroidFileDialogs.java Outdated
Comment thread CodenameOne/src/com/codename1/impl/FileDialogSupport.java Outdated
Comment thread Ports/Android/src/com/codename1/impl/android/AndroidFileDialogs.java Outdated
Comment thread Ports/iOSPort/nativeSources/IOSNative.m
Comment thread Ports/LinuxPort/src/com/codename1/impl/linux/LinuxImplementation.java Outdated
Comment thread Ports/iOSPort/nativeSources/IOSNative.m Outdated
@shai-almog

shai-almog commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator Author

Compared 193 screenshots: 193 matched.
Native Windows port, REAL shipping pipeline: the hellocodenameone screenshot suite rendered by a binary CROSS-COMPILED on Linux (clang-cl + xwin, WebView2 linked) and RUN on a Windows x64 runner. Compared against the in-repo baseline in scripts/windows/screenshots.

Benchmark Results

Detailed Performance Metrics

Metric Duration
SIMD kernel backend SSE2 (x64) / NEON (arm64) native kernels
SIMD int-add (64K x300) java 45ms / native 3ms = 15.0x speedup
SIMD float-mul (64K x300) java 41ms / native 3ms = 13.6x speedup
SIMD kernel correctness PASS (native result == scalar reference)
Base64 native bridge unavailable (CN1 + SIMD + image benchmarks only)
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 SIMD byte path gated to scalar (CPU autovectorizes scalar; explicit SIMD not beneficial here)
Base64 CN1 encode 56.000 ms
Base64 CN1 decode 71.000 ms
Base64 SIMD encode 73.000 ms
Base64 encode ratio (SIMD/CN1) 1.304x (30.4% slower)
Base64 SIMD decode 70.000 ms
Base64 decode ratio (SIMD/CN1) 0.986x (1.4% faster)
Image encode benchmark iterations 100
Image createMask (SIMD off) 7.000 ms
Image createMask (SIMD on) 4.000 ms
Image createMask ratio (SIMD on/off) 0.571x (42.9% faster)
Image applyMask (SIMD off) 30.000 ms
Image applyMask (SIMD on) 26.000 ms
Image applyMask ratio (SIMD on/off) 0.867x (13.3% faster)
Image modifyAlpha (SIMD off) 29.000 ms
Image modifyAlpha (SIMD on) 22.000 ms
Image modifyAlpha ratio (SIMD on/off) 0.759x (24.1% faster)
Image modifyAlpha removeColor (SIMD off) 30.000 ms
Image modifyAlpha removeColor (SIMD on) 79.000 ms
Image modifyAlpha removeColor ratio (SIMD on/off) 2.633x (163.3% slower)

- Copyright headers on the new tests; classify the fallback save form in
  FrameworkChromeNeverWindowsTest; Vale quote punctuation in the guide.
- Linux: add the filter's extension in the GTK native and confirm the
  overwrite of that name, since GTK only checked the typed basename.
- Core: saving a sourceFile onto itself no longer truncates it.
- Android: refuse to launch while another activity result is outstanding;
  stop reporting INITIAL_DIRECTORY, which only the URI hint honours.
- iOS: convert extension filters to legacy UTIs before iOS 14; copy picked
  documents off the main thread.
- JavaScript: report a dismissed picker as cancelled; a save too large for
  the heap still answers the callback.
- Linux/Windows: deliver results on the EDT.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shai-almog

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c6b20e3220

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread CodenameOne/src/com/codename1/impl/FileDialogSupport.java Outdated
Comment thread Ports/JavaSE/src/com/codename1/impl/javase/JavaSEFileDialogs.java
Comment thread Ports/JavaSE/src/com/codename1/impl/javase/JavaSEFileDialogs.java
Comment thread CodenameOne/src/com/codename1/impl/CodenameOneImplementation.java Outdated
Comment thread Ports/Android/src/com/codename1/impl/android/AndroidFileDialogs.java Outdated
Comment thread CodenameOne/src/com/codename1/impl/NativeFileDialogCodec.java
@shai-almog

shai-almog commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator Author

Compared 193 screenshots: 193 matched.
Native Windows port (x64 / Intel-AMD): full hellocodenameone screenshot suite rendered offscreen with Direct2D/DirectWrite, plus the real benchmarks (base64 native/CN1/SIMD, image createMask/applyMask/modifyAlpha/PNG/JPEG, SSE2 SIMD kernels). Compared against the in-repo baseline in scripts/windows/screenshots.

Benchmark Results

Detailed Performance Metrics

Metric Duration
SIMD kernel backend SSE2 (x64) / NEON (arm64) native kernels
SIMD int-add (64K x300) java 30ms / native 3ms = 10.0x speedup
SIMD float-mul (64K x300) java 41ms / native 3ms = 13.6x speedup
SIMD kernel correctness PASS (native result == scalar reference)
Base64 native bridge unavailable (CN1 + SIMD + image benchmarks only)
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 SIMD byte path gated to scalar (CPU autovectorizes scalar; explicit SIMD not beneficial here)
Base64 CN1 encode 38.000 ms
Base64 CN1 decode 47.000 ms
Base64 SIMD encode 56.000 ms
Base64 encode ratio (SIMD/CN1) 1.474x (47.4% slower)
Base64 SIMD decode 51.000 ms
Base64 decode ratio (SIMD/CN1) 1.085x (8.5% slower)
Image encode benchmark iterations 100
Image createMask (SIMD off) 12.000 ms
Image createMask (SIMD on) 9.000 ms
Image createMask ratio (SIMD on/off) 0.750x (25.0% faster)
Image applyMask (SIMD off) 39.000 ms
Image applyMask (SIMD on) 31.000 ms
Image applyMask ratio (SIMD on/off) 0.795x (20.5% faster)
Image modifyAlpha (SIMD off) 32.000 ms
Image modifyAlpha (SIMD on) 18.000 ms
Image modifyAlpha ratio (SIMD on/off) 0.563x (43.8% faster)
Image modifyAlpha removeColor (SIMD off) 60.000 ms
Image modifyAlpha removeColor (SIMD on) 17.000 ms
Image modifyAlpha removeColor ratio (SIMD on/off) 0.283x (71.7% faster)

ParparVM vs HotSpot (JDK 25): windows-x64

The performance gate could not run: the gate's own unit tests (test_perf_gate.py) failed. See perf-build.log in this job's artifacts.

- Core: a content writer still runs when the destination is the source
  file; the default implementation no longer advertises INITIAL_DIRECTORY.
- JavaSE: filtered saves (and filtered opens on Windows, where AWT's
  FilenameFilter does nothing) use the Swing chooser, which confirms the
  overwrite of the name with the extension added.
- Android: picks are checked against extension filters the MIME query could
  not express; a picked folder is copied to the cache so the result is a
  path FileSystemStorage can use.
- macOS: filters given as UTIs reach allowedFileTypes.
- iOS: close the staged export stream in a finally (SpotBugs DLS).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shai-almog

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7879337058

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Ports/WindowsPort/nativeSources/cn1_windows_filedialog.cpp Outdated
Comment thread CodenameOne/src/com/codename1/impl/FileDialogSupport.java
Comment thread Ports/JavaSE/src/com/codename1/impl/javase/JavaSEFileDialogs.java
Comment thread Ports/JavaSE/src/com/codename1/impl/javase/JavaSEFileDialogs.java Outdated
Comment thread Ports/JavaSE/src/com/codename1/impl/javase/JavaSEFileDialogs.java
Comment thread Ports/iOSPort/src/com/codename1/impl/ios/IOSImplementation.java
Comment thread Ports/iOSPort/nativeSources/IOSNative.m Outdated
- Windows: an IFileDialogEvents sink keeps the save dialog's default
  extension on the selected filter, so switching type no longer yields
  report.pdf.png.
- Core: the fallback save form runs on the EDT when called from another
  thread, and the open fallback delivers on the EDT.
- JavaSE: drop a preview render that finishes after the selection moved;
  parse file:/ and drive-letter URLs for the starting folder; saves that
  must not confirm an overwrite use the Swing chooser.
- iOS: watchOS and tvOS use the Codename One fallback; a picker requested
  while another controller is presented answers cancelled instead of
  hanging.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shai-almog

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d7802299d6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Ports/LinuxPort/nativeSources/cn1_linux_services.c
Comment thread Ports/LinuxPort/nativeSources/cn1_linux_services.c Outdated
Comment thread Ports/LinuxPort/nativeSources/cn1_linux_services.c Outdated
Comment thread CodenameOne/src/com/codename1/impl/CodenameOneImplementation.java Outdated
…heck; report fallback save controls

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shai-almog

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0b00046ab9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Ports/iOSPort/src/com/codename1/impl/ios/IOSImplementation.java Outdated
Comment thread CodenameOne/src/com/codename1/io/filechooser/FileDialogRequest.java
shai-almog and others added 2 commits October 20, 2026 20:19
@shai-almog

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 26ad8056fe

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Ports/WindowsPort/nativeSources/cn1_windows_filedialog.cpp Outdated
Comment thread Ports/LinuxPort/nativeSources/cn1_linux_services.c Outdated
Comment thread Ports/iOSPort/src/com/codename1/impl/ios/IOSImplementation.java Outdated
Comment thread Ports/JavaSE/src/com/codename1/impl/javase/JavaSEFileDialogs.java
Comment thread Ports/iOSPort/src/com/codename1/impl/ios/IOSImplementation.java
Comment thread Ports/iOSPort/src/com/codename1/impl/ios/IOSImplementation.java Outdated
…gate, JavaSE URL dirs, Android partial-save cleanup

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shai-almog

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2f69b8e950

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Ports/Android/src/com/codename1/impl/android/AndroidFileDialogs.java Outdated
… successful write

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shai-almog

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 31852b9dda

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Ports/LinuxPort/nativeSources/cn1_linux_services.c Outdated
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shai-almog

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cfb4b397b9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Ports/Android/src/com/codename1/impl/android/AndroidFileDialogs.java Outdated
Comment thread Ports/Android/src/com/codename1/impl/android/AndroidFileDialogs.java Outdated
Comment thread Ports/iOSPort/src/com/codename1/impl/ios/IOSImplementation.java
Comment thread CodenameOne/src/com/codename1/impl/FileDialogSupport.java
Comment thread Ports/iOSPort/nativeSources/IOSNative.m Outdated
shai-almog and others added 2 commits October 21, 2026 11:45
…ard and coordinated copy, unchecked writer failures

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shai-almog

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 90ee77db25

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Ports/iOSPort/src/com/codename1/impl/ios/IOSImplementation.java
Comment thread Ports/Android/src/com/codename1/impl/android/AndroidFileDialogs.java Outdated
Comment thread CodenameOne/src/com/codename1/io/filechooser/FileDialogRequest.java
… failure, wildcard fallback accept

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shai-almog

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f37784b340

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread CodenameOne/src/com/codename1/impl/NativeFileDialogCodec.java
…e accept union

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shai-almog

Copy link
Copy Markdown
Collaborator Author

@codex review

…parators

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shai-almog

shai-almog commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator Author

Compared 179 screenshots: 179 matched.
✅ Native Mac screenshot tests passed.

Benchmark Results

  • VM Translation Time: 0 seconds
  • Compilation Time: 336 seconds

Detailed Performance Metrics

Metric Duration
SIMD kernel backend SSE2 (x64) / NEON (arm64) native kernels
SIMD int-add (64K x300) java 62ms / native 3ms = 20.6x speedup
SIMD float-mul (64K x300) java 69ms / native 3ms = 23.0x speedup
SIMD kernel correctness PASS (native result == scalar reference)
Base64 native bridge unavailable (CN1 + SIMD + image benchmarks only)
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 SIMD byte path active (NEON-accelerated)
Base64 CN1 encode 107.000 ms
Base64 CN1 decode 59.000 ms
Image encode benchmark iterations 100
Image createMask (SIMD off) 17.000 ms
Image createMask (SIMD on) 3.000 ms
Image createMask ratio (SIMD on/off) 0.176x (82.4% faster)
Image applyMask (SIMD off) 64.000 ms
Image applyMask (SIMD on) 75.000 ms
Image applyMask ratio (SIMD on/off) 1.172x (17.2% slower)
Image modifyAlpha (SIMD off) 68.000 ms
Image modifyAlpha (SIMD on) 68.000 ms
Image modifyAlpha ratio (SIMD on/off) 1.000x (0.0% slower)
Image modifyAlpha removeColor (SIMD off) 84.000 ms
Image modifyAlpha removeColor (SIMD on) 66.000 ms
Image modifyAlpha removeColor ratio (SIMD on/off) 0.786x (21.4% faster)

ParparVM vs HotSpot (JDK 25): macos-arm64

The performance gate could not run: the gate's own unit tests (test_perf_gate.py) failed. See perf-build.log in this job's artifacts.

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.

1 participant