Skip to content

fix: one model at a time on switch + phone composer/scroll fit - #361

Merged
AVADSA25 merged 2 commits into
mainfrom
fix/single-model-switch-and-mobile
Sep 16, 2026
Merged

AVADSA25 merged 2 commits into
mainfrom
fix/single-model-switch-and-mobile

Conversation

@AVADSA25

Copy link
Copy Markdown
Owner

Switch — single model resident (codec_models.py)

restart_server was pm2 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-input 16px (stop iOS zoom-on-focus that made text look huge) + white-space:nowrap (placeholder was wrapping to 2 lines) + tighter buttons for width.
  • showPanel hides the fixed composer off the chat panel (it floated over Home); re-measures on return.
  • .content bottom reserve nav + 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

Mikarina13 and others added 2 commits September 16, 2026 23:21
…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>
@AVADSA25
AVADSA25 merged commit 9df6c06 into main Sep 16, 2026
1 check passed
@AVADSA25
AVADSA25 deleted the fix/single-model-switch-and-mobile branch September 16, 2026 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants