requestExpandedMode(event, "game") does not switch inline webview to the game entrypoint in Playtest
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- devtools, javascript, typescript
- Lĩnh vực
- developer-experience, tooling
Hướng nghiên cứu
The issue is in the Devvit Web API's requestExpandedMode function. Start by examining the @devvit/web/client module and the EFFECT_WEB_VIEW effect handling. Look for the bridge configuration and entrypoint resolution logic. Check the Playtest environment's webview mode transitions. Verify the immersiveMode flag and entrypoint URL generation. Testing requires a Devvit app setup with multiple HTML entrypoints.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
1. Summary
I am seeing unexpected behavior when switching from an inline launch screen to a second expanded entrypoint using the documented Devvit Web API:
default -> splash.html -> trusted click -> requestExpandedMode(event, "game") -> game.html
The splash screen loads correctly, but the webview remains inline after the click and game.html never opens.
2. Environment
- App:
ai-content-helper - Devvit app/runtime version:
0.0.14.95 - SDK:
0.14.4 - Playtest subreddit:
r/ai_content_helper_tes - Client: Reddit Web
- Playtest environment: Devvit Playtest
- Registered entrypoints:
{
"post": {
"entrypoints": {
"default": {
"entry": "splash.html"
},
"game": {
"entry": "game.html"
}
}
}
}
3. Expected behavior
The post should initially render splash.html in inline mode.
After the user clicks the Start button, the app should:
- enter expanded mode;
- load the
gameentrypoint; - display
game.html.
4. Actual behavior
splash.htmlloads successfully.devvit.webViewModebefore the click is1(inline).- The Start button receives a real trusted user click.
- The handler calls
requestExpandedMode(event, "game"). - After the click:
devvit.webViewModeremains1(inline);- the iframe remains on
splash.html; - no
game.htmlframe is opened; - no visible transition occurs.
5. Minimal reproduction
Minimal configuration:
{
"post": {
"entrypoints": {
"default": {
"entry": "splash.html"
},
"game": {
"entry": "game.html"
}
}
}
}
Minimal client flow:
splash.html
-> Start button
-> trusted click event
-> requestExpandedMode(event, "game")
-> expected: expanded game.html
The splash handler is equivalent to:
import {requestExpandedMode} from "@devvit/web/client";
startButton.addEventListener("click", event => {
requestExpandedMode(event, "game");
});
6. What was already verified
- The splash entrypoint loads normally.
- The click is a trusted user click.
- The app starts in inline mode.
- The
gameentrypoint exists in the bridge configuration. - The
gamekey matches thedevvit.jsonentrypoint key. - The local SDK 0.14.4 implementation generates an
EFFECT_WEB_VIEWeffect with:immersiveMode: IMMERSIVE_MODE;- the resolved
game.htmlentrypoint URL.
- The source builds successfully.
- Typecheck, lint, unit tests, and build pass.
- No temporary diagnostic code remains in the app.
7. What was already ruled out
The following errors were not observed:
web view is already expanded;Untrusted event;no entrypoint named "game";- JavaScript page errors;
- browser console errors related to the transition;
- scheduler, backend, Redis, Gemini, or automation errors.
The issue does not appear to be caused by the automation or backend logic. Those components are unrelated to the splash-to-game transition.
An independent direct submitCustomPost({entry: "game"}) test was not completed because the current Playtest workflow did not expose the temporary diagnostic menu action, and the temporary webview endpoint returned 404. No conclusion is being made from that incomplete test.
8. Relevant logs/errors
Observed after clicking Start:
Before click:
devvit.webViewMode === 1 // inline
After click:
devvit.webViewMode === 1 // still inline
Current frame:
...-webview.devvit.net/splash.html
No JavaScript or page errors were reported.
No errors were reported for:
already expanded
Untrusted event
no entrypoint named "game"
9. Question to Devvit maintainers
Could you confirm whether this behavior is expected in Reddit Web Playtest for Devvit SDK 0.14.4 / app version 0.0.14.95?
Specifically:
- Is
EFFECT_WEB_VIEWwithIMMERSIVE_MODEexpected to switch fromdefaulttogamein Reddit Web Playtest? - Are there known limitations involving multiple HTML entrypoints or expanded mode in Playtest?
- Is there an official way to create or open a post directly with
entry: "game"for validation? - Are additional browser/client requirements or flags needed for this transition?
No claim is being made that this is a Reddit bug. This report is intended to provide a minimal reproduction of unexpected behavior and request guidance.
- Ngôn ngữ chính
- TypeScript
- Star
- 210
- Fork
- 88
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của reddit/devvit
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 42/100
Tất cả issue của reddit/devvit
Issue tương tự
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Crush Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
ElementsProject/cln-application#167 · 1 bình luận · 1 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Quantco/pnpm-licenses#17 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100