You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pull request updates multiple apps with new interfaces, input handling, persistence, and dialog flows. It adds grouped task storage to To-do, recent-book tracking to ePub Reader, and grid-and-timeline views to GPIO. It also changes layout behavior in Breakout and Snake, adds calculator and Tone controls, and updates several apps to use window-manager dialogs. App manifest versions change, and a script is added to increment manifest versions.
Merge Risk: Moderate · up to cb5d1 · assessed changes only
Path filters excluded changed files. This rating applies only to the assessed changes.
This update reworks several apps. Some saves can destroy existing user data on failure or truncate large files, and the To-do group rename error path can read invalid memory. The Diceware strength display may overstate the strength of its passphrases. These should be fixed or accepted before merging.
Pre-merge checks: 3 · 1
Failed checks: 1 inconclusive
Check name
Status
Explanation
Resolution
Title check
The title "App Updates" is vague and generic. The changeset covers many separate app changes, including AudioRecorder, Brainfuck, Breakout, Clock, EpubReader, GPIO, TodoList, Tone, and others. It desc…
Replace the title with a short, specific sentence that names the main change. For example, state the main behavior change, such as migrating app dialogs from tactility.alertdialog to window manager dialogs, or name the most significant app …
Passed checks: 3 passed
Check name
Status
Explanation
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check
Explanation
The title "App Updates" is vague and generic. The changeset covers many separate app changes, including AudioRecorder, Brainfuck, Breakout, Clock, EpubReader, GPIO, TodoList, Tone, and others. It describes a broad category of work and does not name the main change. It does not state a specific change, so a teammate scanning history cannot tell the primary change from it.
Resolution
Replace the title with a short, specific sentence that names the main change. For example, state the main behavior change, such as migrating app dialogs from tactility.alertdialog to window manager dialogs, or name the most significant app rework. If the PR covers several unrelated app updates, list the main apps in the title or split the PR by topic.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
571-571: Minor · Stability & Availability · Quick win
Synchronize access to pendingDeletePath.
After dialog dismissal, another LVGL delete request can reach this guard while the app task clears pendingDeletePath at Line 81 in main.cpp. The new guard reads the same std::string without synchronization. deleteConfirmed does not protect that later clear.
Use a common mutex for the guard, assignment, failure cleanup, and app-task consumption. Copy the pending path to app-task-owned storage before performing deletion.
Apps/Brainfuck/main/Source/Brainfuck.cpp: 1
117-118: Minor · Functional Correctness · Quick win
Apply the script-size limit before saving.
The editor has no size guard. A script with 32,769 ASCII characters can therefore report "Saved", but readScript rejects that same file when the user opens it again.
Reject content larger than MAX_SCRIPT_SIZE before opening the destination. Show a size error and leave the existing file unchanged. Keep empty scripts and scripts of exactly 32,768 bytes valid.
Apps/Breakout/main/Source/Breakout.cpp: 1
420-420: Minor · Functional Correctness · Quick win
Keep the rounded brick grid inside the field.
With a 320-by-150 wrapper, scale is 0.75 and areaW is 225. The rounded brickW and brickGap are 21 and 2. Ten columns therefore occupy 228 pixels. brickOffsetX becomes -1, so both outer columns extend beyond the field.
Calculate brick widths and gaps from a shared pixel budget, or scale brick boundaries before calculating their widths. Keep the complete grid within areaW, including at fractional scales.
Apps/Clock/main/Source/ClockUi.cpp: 1
559-560: Minor · Functional Correctness · Quick win
Record fullscreen before the null-content return.
setFullscreen returns early when context->content is null. In that case it does not store fullscreen. applyMenuChoice runs on the app task after the menu bit is set, and it does not check whether the clock widgets exist. If the window manager destroys the widgets before the choice is applied, the fullscreen selection is lost. buildUi reapplies fullscreen only when context->fullscreen is true, so the rebuilt window does not enter fullscreen.
Store the requested state before the null check. buildUi then applies it on the next build. The face switch does not need this change because it stores context->analog before the rebuild.
683-684: Minor · Functional Correctness · Quick win
Publish each action and its value as one unit.
requestAction writes actionValue and then action (Apps/GPIO/main/Source/Gpio.cpp:186-187). gpioRunAction takes the action with exchange at line 683 and reads actionValue at line 684. Both reads happen before lvgl_lock() at line 686. A publication that runs between those two reads replaces the value, so the first action runs with the second action's value. A ACTION_REMOVE for GPIO 4 can then remove GPIO 7 instead. The second action remains pending and removes GPIO 7 again on the next run, so GPIO 4 stays on the timeline.
A second publication before the app task consumes the first also overwrites the unconsumed action, because the slot holds one command.
Use a command queue that stores each action with its value, and keep pending commands until the app task consumes them. The consumer must take each command as one unit. With no intervening publication, the same queue must still remove GPIO 4.
Apps/TodoList/main/Source/TodoStore.cpp: 1
214-214: Minor · Functional Correctness · Quick win
Preserve UTF-8 boundaries when shortening group names.
A name containing 23 ASCII letters followed by é has 25 bytes. This resize retains only the first byte of é, which creates invalid UTF-8 for the directory and tab name.
Truncate at a complete code-point boundary within the byte limit.
Apps/Tone/manifest.properties: 1
9-9: Minor · Functional Correctness · Quick win
Update the app description to match the new controls.
The description advertises mono/stereo selection and nine frequency presets. The new UI has no channel selector, uses stereo output, and provides eight presets. It also changes white noise to frequency-dependent held noise.
Update this description so users do not look for unavailable controls.
Apps/Tone/main/Source/ToneUi.cpp: 1
720-721: Minor · Functional Correctness · Quick win
Read the menu action and its value as one atomic handoff.
requestAction writes actionValue and then action as two separate atomic stores. toneRunAction exchanges action and then loads actionValue as a second, separate step, and both happen before lvgl_lock(). If a second menu selection publishes between those two steps, toneRunAction can dispatch the value from the second selection with the action from the first. For example, it can open the frequency dialog for a value that belongs to a different menu entry.
The handoff must publish the action and its value as one unit, and the consumer must take both in one operation. A single packed atomic word (for example, std::atomic<uint64_t> holding both fields) is one way to do this. Any such change must update the field declarations in Tone.h:37-38 and every reader and writer of these fields.
Scripts/bump-versions.py: 2
51-51: Minor · Functional Correctness · Quick win
Accept whitespace around the property separator.
For version.name = 0.10.0 and version.code = 10, both checks fail. The script leaves both values unchanged, then reports success. The supplied publisher parser accepts these entries because it strips each key after splitting on =.
Split each property on = and compare the stripped key. Keep canonical entries working.
Also applies to: 56-56
59-59: Minor · Data Integrity & Integration · Quick win
Replace the complete version-code value.
For version.code=000, int() returns 0. This replacement changes only the first zero and writes version.code=100, not version.code=1. Reconstruct the property with new_code instead of searching for the normalized old integer.
Apps/Snake/main/Source/main.cpp: 1
49-49: Minor · Functional Correctness · Quick win
Do not discard the selected difficulty when lvgl_try_lock fails.
When lvgl_try_lock fails on line 49, snakeStartGame is skipped. The selection dialog result has already been consumed, so no dialog is open and no game starts. The selection is lost silently, and the app does not reopen the selection dialog. The base revision has the same behavior in its selection branch, so this predates the PR. It can be fixed as a follow-up in this area.
The failure branch must either keep the selected difficulty for a later start or show the selection dialog again, so the user can continue. Choose one of these behaviors. The lock-success path must stay unchanged.
Each progress update scans every archive entry for every spine item. The new scroll-end handler performs this work after dragging too, while holding the LVGL lock. Cache spine sizes and prefix totals once per book. Then calculate progress from the current chapter's cached values. This removes repeated O(spine items × archive entries) work from reader input. (raw.githubusercontent.com)
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 15b1343e-b630-4e5e-853e-37cc07577a8d
Commits
Reviewing files that changed from the base of the PR and between c58181f and cb5d1e8.
Files ignored due to path filters: 2
Apps/AirMouse/icon.svg is excluded by !**/*.svg
Apps/AirMouse/icon_mono.svg is excluded by !**/*.svg
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
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
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.
Uh oh!
There was an error while loading. Please reload this page.