fix: one model at a time on switch + phone composer/scroll fit - #361
Merged
Merged
Conversation
…roll fit codec_models.restart_server: STOP-then-START instead of `pm2 restart`. pm2 restart overlaps old+new, so both the 27B and 35B were briefly resident (~37GB peak) — another session caught it. Now: stop the old server, wait until it is gone and its port is free (weights released), then start the new one. One model resident by construction. codec_dashboard.html (phone shell): - .chat-input 16px so iOS does not zoom the viewport on focus (that zoom is what made the composer text look huge); white-space:nowrap so the placeholder stays one line instead of wrapping to two in the narrow button row; tighter gaps/ buttons give the field width. - showPanel hides the fixed composer on non-chat panels — it was floating over Home/Settings; re-runs the nav/composer measurement when chat returns. - .content bottom reserve nav+composer+28 (was +12, only ~2px clearance) so the end of a long reply clears the fixed composer without rotating the phone. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
restart_server now stops the old server and waits for release before starting the new one. Rework the two flow tests to the new phases and add a guard test that it refuses to start over an unreleased old process. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Switch — single model resident (codec_models.py)
restart_serverwaspm2 restart= old + new overlap, so 27B + 35B were both resident for a few seconds (~37GB peak). Now STOP old → wait until gone + port free (weights released) → START new. One model at a time by construction.Phone shell (codec_dashboard.html)
.chat-input16px (stop iOS zoom-on-focus that made text look huge) +white-space:nowrap(placeholder was wrapping to 2 lines) + tighter buttons for width.showPanelhides the fixed composer off the chat panel (it floated over Home); re-measures on return..contentbottom reservenav + composer + 28(was+12, ~2px clearance) so a long reply's end clears the fixed composer — no rotating the phone.Verified at 375px: composer one line (16px), Home hides composer, reply clears by 28px (layout math; emulator dvh quirk blocks a clean absolute screenshot). Mobile HTML live on reload; switch needs
pm2 restart codec-dashboard.Mwen (35B + n8n ONTOLOGICAL prompt) wired via local config/symlink (not in repo).
🤖 Generated with Claude Code