Repository navigation
fix(dncl): show the console after reloading in the Japanese mode (#2628) - #2633
Merged
smalruby3-editor-bot[bot] merged 2 commits intoNov 29, 2026
Merged
Conversation
The console was shown only when the Japanese tab was active, so a reload in the Code tab of the Japanese mode showed the stage. Show it in every tab but the Ruby tab while the program is written in Japanese (not in a lesson that does not allow it). Closes #2628 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
🤖 autopilot status
Linked issue #2628. Maintained by autopilot (single writer); do not edit. |
This was referenced Nov 29, 2026
A lesson that does not allow Japanese could start in the Code tab of the Japanese mode, where the console now shows after a reload, and keep the console in place of the stage of the lesson. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
|
🤖 敵対的レビュー(round 1): 指摘 3 件(Must 1 / Question 0 / FYI 2) Must
FYI
直してほしい指摘は、モニターの「AI に直してもらう」で指示を書くか、Request changes で ID を指定してから |
|
🚀 Preview deployed (stg API): https://preview.smalruby.app/topic-autopilot-2628-c5e22270/ |
smalruby3-editor-bot
Bot
merged commit Nov 29, 2026
f12f16b
into
topic/japanese-mode-1731
11 checks passed
This branch was previously deployed
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.
概要
日本語モードのまま、コードタブでブラウザを読み込み直すと、コンソールが消えてステージが出る不具合(B31)を直す。
原因
コンソールを既定で出す effect(
ruby-tab.jsx)が「日本語モード かつ 日本語タブが開いている」ときだけ動いていた。Redux の
smalrubyConsoleは保存されないので、コードタブで読み込み直すと、日本語モード(smalruby:dnclMode)のままでもコンソールが出なかった。変更
src/lib/smalruby-console.jsに純粋関数shouldShowSmalrubyConsoleByDefault({ dnclMode, dnclModeLocked, activeTabIndex })を足した。日本語モードのあいだは、ルビータブ以外のどのタブでもコンソールを既定にする(日本語モードを許さないレッスンでは出さない)。
ruby-tab.jsxの effect はこの関数を使う。>_で隠したこと(hiddenByUser)は保存しない。読み込み直したら、日本語モードならまた出す(Issue の AI のおすすめどおり)。docs/extension-smalruby-console/README.mdに挙動を書いた。テスト
test/unit/lib/smalruby-console.test.jsに判定のテストを足した(RED を確認してから実装)。bin/lint-changed: prettier は通過。eslint は@smalruby/ja-notationの解決だけ失敗(軽量 worktree の node_modules にリンクが無いため。今回の変更と無関係)。Closes #2628
🤖 Generated with Claude Code