Polish gamified Agency Mini App concepts - #231
#231Merged
MagMueller merged 1 commit intoMay 18, 2026
mainbrowser-use/bux:mainfrom
codex/gamified-miniapps-and-resume-queuebrowser-use/bux:codex/gamified-miniapps-and-resume-queueCopy head branch name to clipboard
Merged
Polish gamified Agency Mini App concepts#231MagMueller merged 1 commit intomainbrowser-use/bux:mainfrom codex/gamified-miniapps-and-resume-queuebrowser-use/bux:codex/gamified-miniapps-and-resume-queueCopy head branch name to clipboard
MagMueller merged 1 commit into
mainbrowser-use/bux:mainfrom
codex/gamified-miniapps-and-resume-queuebrowser-use/bux:codex/gamified-miniapps-and-resume-queueCopy head branch name to clipboard
Conversation
Contributor
There was a problem hiding this comment.
2 issues found across 5 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="agent/mini_app_static/concepts.js">
<violation number="1" location="agent/mini_app_static/concepts.js:446">
P2: `renderGameLoop` is added but never rendered, so the new loop/reward/gesture concept UI is dead code and does not appear in the app.</violation>
</file>
<file name="agent/telegram_bot.py">
<violation number="1" location="agent/telegram_bot.py:1510">
P2: `_interrupted_turn_prompt` assumes `job["prompt"]` is a string; non-string persisted values can crash startup recovery.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
| ${renderGameStats(concept)} | ||
| ${renderPreviewStrip(ordered, card)} | ||
| ${showGlobalStats ? renderGameStats(concept) : ""} | ||
| ${showPreview ? renderPreviewStrip(ordered, card) : ""} |
Contributor
There was a problem hiding this comment.
P2: renderGameLoop is added but never rendered, so the new loop/reward/gesture concept UI is dead code and does not appear in the app.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At agent/mini_app_static/concepts.js, line 446:
<comment>`renderGameLoop` is added but never rendered, so the new loop/reward/gesture concept UI is dead code and does not appear in the app.</comment>
<file context>
@@ -427,23 +433,44 @@ function renderConcept(concept) {
- ${renderGameStats(concept)}
- ${renderPreviewStrip(ordered, card)}
+ ${showGlobalStats ? renderGameStats(concept) : ""}
+ ${showPreview ? renderPreviewStrip(ordered, card) : ""}
${renderer(concept, ordered, card)}
</section>
</file context>
Suggested change
| ${showPreview ? renderPreviewStrip(ordered, card) : ""} | |
| ${showPreview ? renderPreviewStrip(ordered, card) : ""} | |
| ${renderGameLoop(concept, card)} |
|
|
||
|
|
||
| def _interrupted_turn_prompt(job: dict) -> str: | ||
| original = (job.get("prompt") or "").strip() |
Contributor
There was a problem hiding this comment.
P2: _interrupted_turn_prompt assumes job["prompt"] is a string; non-string persisted values can crash startup recovery.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At agent/telegram_bot.py, line 1510:
<comment>`_interrupted_turn_prompt` assumes `job["prompt"]` is a string; non-string persisted values can crash startup recovery.</comment>
<file context>
@@ -1505,21 +1506,44 @@ def _save_lanes_to_disk_locked() -> None:
+def _interrupted_turn_prompt(job: dict) -> str:
+ original = (job.get("prompt") or "").strip()
+ if len(original) > 2000:
+ original = original[:2000] + "\n...[truncated]"
</file context>
Suggested change
| original = (job.get("prompt") or "").strip() | |
| original = str(job.get("prompt") or "").strip() |
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.
Summary
Validation
Summary by cubic
Polished all 10 Agency Mini App concept screens with distinct gamified mechanics, real swipe interactions, and score/state tracking to make the demos feel playable. Also recover Telegram lane jobs after restarts so users don’t lose in-flight work.
New Features
combo,streak, andlastReward; updated stats (level/xp, combo), boss HP, and a compact core-loop panel.Bug Fixes
in_flightjobs on startup with a continuation system prompt; avoid repeating external actions and log requeued count./mini-app-1…/mini-app-10;/mini-app-11returns 404 with tests added.Written for commit f9434a5. Summary will update on new commits. Review in cubic