clay-server 2.32.0-beta.10 → 2.32.0-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/public/app.js CHANGED
@@ -522,6 +522,15 @@ import { initDebate, handleDebatePreparing, handleDebateStarted, handleDebateRes
522
522
  forceScrollToBottom();
523
523
  });
524
524
 
525
+ // Scroll to bottom when returning to the app (e.g. switching back from another
526
+ // Android app or tab). Without this the browser restores a stale scroll offset
527
+ // and leaves the user stranded mid-session instead of at the latest message.
528
+ document.addEventListener("visibilitychange", function () {
529
+ if (!document.hidden) {
530
+ scrollToBottom();
531
+ }
532
+ });
533
+
525
534
  // Fork session from a user message
526
535
  messagesEl.addEventListener("click", function(e) {
527
536
  var btn = e.target.closest(".msg-action-fork");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clay-server",
3
- "version": "2.32.0-beta.10",
3
+ "version": "2.32.0-beta.11",
4
4
  "description": "Self-hosted Claude Code in your browser. Multi-session, multi-user, push notifications.",
5
5
  "bin": {
6
6
  "clay-server": "./bin/cli.js",