cc-continuity 0.3.75__tar.gz → 0.3.77__tar.gz

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.
Files changed (119) hide show
  1. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/PKG-INFO +1 -1
  2. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/README.md +2 -2
  3. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/__init__.py +1 -1
  4. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/transcript.py +10 -7
  5. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity.egg-info/PKG-INFO +1 -1
  6. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/pyproject.toml +1 -1
  7. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_transcript.py +37 -10
  8. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/LICENSE +0 -0
  9. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/__main__.py +0 -0
  10. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/atomic.py +0 -0
  11. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/blink.py +0 -0
  12. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/blink_watch.py +0 -0
  13. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/bootstrap.py +0 -0
  14. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/checkpoint.py +0 -0
  15. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/cli.py +0 -0
  16. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/config.py +0 -0
  17. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/daemon_supervisor.py +0 -0
  18. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/doctor.py +0 -0
  19. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/gitsnap.py +0 -0
  20. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/hooks/__init__.py +0 -0
  21. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/hooks/common.py +0 -0
  22. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/hooks/pre_compact.py +0 -0
  23. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/hooks/pre_tool_use.py +0 -0
  24. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/hooks/session_end.py +0 -0
  25. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/hooks/session_start.py +0 -0
  26. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/hooks/stop.py +0 -0
  27. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/hooks/task.py +0 -0
  28. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/hooks/tool_use.py +0 -0
  29. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/hooks/user_prompt.py +0 -0
  30. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/hosting.py +0 -0
  31. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/install.py +0 -0
  32. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/launch.py +0 -0
  33. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/ledger.py +0 -0
  34. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/lock.py +0 -0
  35. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/managed.py +0 -0
  36. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/naming.py +0 -0
  37. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/notify.py +0 -0
  38. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/overflow.py +0 -0
  39. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/paths.py +0 -0
  40. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/power_plug.py +0 -0
  41. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/progress_pane.py +0 -0
  42. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/project.py +0 -0
  43. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/redact.py +0 -0
  44. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/rotator.py +0 -0
  45. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/settings_merge.py +0 -0
  46. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/skills.py +0 -0
  47. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/state.py +0 -0
  48. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/statusline.py +0 -0
  49. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/thresholds.py +0 -0
  50. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/validate.py +0 -0
  51. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/watchdog.py +0 -0
  52. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/watchdog_digest.py +0 -0
  53. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity/watchdogd.py +0 -0
  54. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity.egg-info/SOURCES.txt +0 -0
  55. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity.egg-info/dependency_links.txt +0 -0
  56. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity.egg-info/entry_points.txt +0 -0
  57. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/cc_continuity.egg-info/top_level.txt +0 -0
  58. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/setup.cfg +0 -0
  59. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_atomic.py +0 -0
  60. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_blink.py +0 -0
  61. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_blink_watch.py +0 -0
  62. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_bootstrap.py +0 -0
  63. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_changelog_notes.py +0 -0
  64. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_checkpoint.py +0 -0
  65. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_cli.py +0 -0
  66. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_cli_ledger.py +0 -0
  67. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_cli_log.py +0 -0
  68. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_config.py +0 -0
  69. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_daemon_supervisor.py +0 -0
  70. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_doctor.py +0 -0
  71. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_gitsnap.py +0 -0
  72. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_hooks_common.py +0 -0
  73. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_hooks_pre_compact.py +0 -0
  74. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_hooks_pre_tool_use.py +0 -0
  75. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_hooks_session_end.py +0 -0
  76. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_hooks_session_start.py +0 -0
  77. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_hooks_stop.py +0 -0
  78. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_hooks_task.py +0 -0
  79. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_hooks_tool_use.py +0 -0
  80. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_hooks_user_prompt.py +0 -0
  81. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_hosting.py +0 -0
  82. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_hygiene.py +0 -0
  83. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_install.py +0 -0
  84. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_integration_phase5.py +0 -0
  85. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_integration_phase6.py +0 -0
  86. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_integration_phase7.py +0 -0
  87. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_launch.py +0 -0
  88. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_ledger.py +0 -0
  89. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_lock.py +0 -0
  90. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_managed.py +0 -0
  91. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_naming.py +0 -0
  92. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_notify.py +0 -0
  93. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_notify_integration.py +0 -0
  94. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_overflow.py +0 -0
  95. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_paths.py +0 -0
  96. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_power_plug.py +0 -0
  97. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_progress_pane.py +0 -0
  98. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_project.py +0 -0
  99. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_readme_badges.py +0 -0
  100. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_readme_gif.py +0 -0
  101. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_redact.py +0 -0
  102. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_rotator.py +0 -0
  103. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_settings_merge.py +0 -0
  104. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_skills.py +0 -0
  105. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_state.py +0 -0
  106. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_status.py +0 -0
  107. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_statusline.py +0 -0
  108. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_statusline_cache.py +0 -0
  109. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_thresholds.py +0 -0
  110. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_tmux_host.py +0 -0
  111. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_transcript_finalize.py +0 -0
  112. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_uninstall.py +0 -0
  113. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_validate.py +0 -0
  114. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_watchdog.py +0 -0
  115. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_watchdog_digest.py +0 -0
  116. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_watchdog_integration.py +0 -0
  117. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_watchdogd.py +0 -0
  118. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_wsl_doctor.py +0 -0
  119. {cc_continuity-0.3.75 → cc_continuity-0.3.77}/tests/test_wsl_install.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cc-continuity
3
- Version: 0.3.75
3
+ Version: 0.3.77
4
4
  Summary: Zero-touch session rotation for Claude Code (local large-context model)
5
5
  Classifier: Development Status :: 5 - Production/Stable
6
6
  Classifier: License :: OSI Approved :: MIT License
@@ -41,11 +41,11 @@ The five most recent updates, newest first. Each line links to its
41
41
  commit, so you can see what changed lately without digging through the
42
42
  log:
43
43
 
44
+ - **2026-11-27**: The split-view page badge stays on screen while you scroll. It was appended inside each pane, and the pane is the scroll container, so the absolutely positioned badge anchored to the content's top edge and scrolled away with the text: measured in a real Chrome, after one wheel notch the badge sat above the pane's visible area (y=38..68 while the viewport started at y=182) and after eight notches it was 1000 px out of view, opacity 1 but invisible; each pane is now wrapped in a non-scrolling wrapper that owns the flex sizing and positioning, the badge is appended to it so it stays pinned in the pane's top-right corner while content flows underneath, the live probe now asserts viewport intersection on every gesture step instead of trusting opacity, and the global sequence, visible-viewport page unit, bottom clamp, fade and independent scrolling are untouched, with one test written first ([commit](https://github.com/pqant/claude-continuity/commit/7876812)).
45
+ - **2026-11-27**: The split-view page badge advances with natural scroll gestures and counts pages by the pane's visible viewport. The floor(scrollTop/clientHeight)+1 counter only moved after a full scrolled-away screen, so on large panes (measured 2581 px) ordinary wheel notches and flicks kept it frozen on the first page; the page unit is now the pane's visible height measured per scroll event from its on-screen rect intersected with the viewport (no zoom or header assumptions) and the current page is the screenful under its center, so half a screen advances the counter while the bottom clamp still shows the last page and the global sequence, offsets, fade and independent scrolling are untouched, with one test written first ([commit](https://github.com/pqant/claude-continuity/commit/2c4f0b5)).
44
46
  - **2026-11-27**: The split-view page badge numbers one global sequence and always reaches the last page. v0.3.74 numbered each pane's own pages so the right half restarted at 1 while visually continuing the left, and when a pane's content height was not an exact multiple of its client height the floor(scrollTop/clientHeight)+1 formula never produced the final page, leaving the counter frozen near the bottom of short panes; the badge now adds each pane's page-count offset over one shared total (left reads 1/N..k/N, right continues k+1/N..N/N) and treats reaching the bottom (scrollTop+clientHeight >= scrollHeight-2) as the pane's last page so the right pane at bottom always reads N/N, independent scrolling, the one-second fade and every viewer control untouched, with two tests written first ([commit](https://github.com/pqant/claude-continuity/commit/744bea7)).
45
47
  - **2026-11-27**: The transcript split view scrolls left and right independently and shows an ephemeral page badge. The 2-column view was one CSS multi-column flow where the whole document scrolled as a unit; it is now two flex panes with their own scroll positions, reading order preserved by a text-length weighted split (image data URIs excluded from the weight), and scrolling a pane flashes a bold page counter (screenful pages: floor(scrollTop/clientHeight)+1 over ceil(scrollHeight/clientHeight)) in that pane's top-right corner which fades out about a second after scrolling stops, an absolute overlay with no layout cost; pane height tracks the viewport minus header and padding across toggles, header collapse and resize, existing viewer controls are untouched, with eight tests written first ([commit](https://github.com/pqant/claude-continuity/commit/073b810)).
46
48
  - **2026-11-26**: A hyphenated template heading no longer degrades a handoff draft. The template's seventh heading contains an em dash (U+2014) in its middle; a model obeying a no-em-dash writing rule retypes it with a plain hyphen, and strict matching called the section both missing and unexpected, throwing away a complete nine-section draft and finalizing a deterministic-only (degraded) checkpoint; template matching now folds em and en dashes to the hyphen at every comparison site, the draft text and the printed template stay verbatim, and four tests were written first ([commit](https://github.com/pqant/claude-continuity/commit/4b10570)).
47
- - **2026-11-26**: The hard-limit brick self-heal now fires in production. v0.3.71 admitted HANDOFF_REQUESTED to the context-400 recovery gates, but the watchdog tick loop only dispatched the scan for sessions its classifier judged ALIVE, TURN_DEAD, STALLED or FROZEN, and the classifier SKIPs everything outside ACTIVE/WARNED, so the hard-limit brick never reached the gate and the fix stayed unreachable code; the SKIP branch now carries HANDOFF_REQUESTED into recovery next to CHECKPOINT_VERIFIED, with one test written first ([commit](https://github.com/pqant/claude-continuity/commit/9e550f1)).
48
- - **2026-11-26**: A hard-limit context-400 brick now self-heals. The hard-limit gate parks the session in HANDOFF_REQUESTED and the model writes the handoff draft, but when the next API call 400s (input plus requested output over the window) the turn dies without a Stop hook and nothing finalized the draft: the deterministic context-400 recovery refused to run for exactly this state although its own route starts from it; both state gates now include HANDOFF_REQUESTED so the watchdog verifies the draft and restarts the pane on its own, two tests written first ([commit](https://github.com/pqant/claude-continuity/commit/2091404)).
49
49
  ## How it works
50
50
 
51
51
  The whole flow in one picture: the automatic session loop, the optional
@@ -4,4 +4,4 @@ Spec: docs/PRD.md (v1.0). Platform facts verified in docs/VERIFICATION.md.
4
4
  Standard library only at runtime; pytest is dev-only.
5
5
  """
6
6
 
7
- __version__ = "0.3.75"
7
+ __version__ = "0.3.77"
@@ -339,7 +339,8 @@ body.split header.mini .hdmini{width:calc(50% - 36px)}
339
339
  #panelsbtn,#panelbtn{color:#d1242f}
340
340
  [data-theme=dark] #panelsbtn,[data-theme=dark] #panelbtn{color:#ff7b72}
341
341
  main.split{max-width:none;display:flex;gap:28px;zoom:.75}
342
- main.split .pane{flex:1 1 50%;min-width:0;overflow-y:auto;position:relative}
342
+ main.split .panewrap{flex:1 1 50%;min-width:0;position:relative;display:flex}
343
+ main.split .panewrap .pane{flex:1 1 auto;min-width:0;overflow-y:auto}
343
344
  .pagebadge{position:absolute;top:8px;right:12px;pointer-events:none;opacity:0;transition:opacity .4s ease;background:var(--hdr);color:var(--fg);border:1px solid var(--line);border-radius:8px;padding:3px 12px;font-size:20px;font-weight:700;box-shadow:0 1px 4px rgba(0,0,0,.18)}
344
345
  main:not(.split) .pagebadge{display:none}
345
346
  main{max-width:1160px;margin:0 auto;padding:10px 28px 80px}
@@ -418,13 +419,15 @@ function fitPanes(){if(!spOn){for(var k=0;k<panes.length;k++)panes[k].style.heig
418
419
  var cs=getComputedStyle(mn),pt=parseFloat(cs.paddingTop)||0,pb=parseFloat(cs.paddingBottom)||0;
419
420
  var hh=hdEl.offsetHeight||0,h=Math.max(200,(window.innerHeight-hh-pt-pb)/0.75);
420
421
  for(var k=0;k<panes.length;k++)panes[k].style.height=h+'px';}
421
- function panePages(pn){var ch=pn.clientHeight||1;return Math.max(1,Math.ceil(pn.scrollHeight/ch));}
422
- function wireBadge(pn,k){var t;pn.addEventListener('scroll',function(){var ch=pn.clientHeight||1,all=0,off=0,mine=1;
422
+ function visH(pn){var r=pn.getBoundingClientRect();var sc=r.height/(pn.clientHeight||1)||1;
423
+ var t0=Math.max(r.top,0),b0=Math.min(r.bottom,window.innerHeight||1e9);return Math.max(160,(b0-t0)/(sc||1));}
424
+ function panePages(pn){return Math.max(1,Math.ceil(pn.scrollHeight/visH(pn)));}
425
+ function wireBadge(pn,k){var t;pn.addEventListener('scroll',function(){var ch=visH(pn),all=0,off=0,mine=1;
423
426
  for(var j=0;j<panes.length;j++){var v=panePages(panes[j]);all+=v;if(j<k){off+=v;}else if(j===k)mine=v;}
424
- var cur=Math.min(mine,Math.floor(pn.scrollTop/ch)+1);
427
+ var cur=Math.min(mine,Math.floor((pn.scrollTop+ch/2)/ch)+1);
425
428
  if(pn.scrollTop+ch>=pn.scrollHeight-2)cur=mine;
426
429
  var g=Math.min(all,Math.max(1,cur+off));
427
- if(!pn._pb){pn._pb=document.createElement('div');pn._pb.className='pagebadge';pn.appendChild(pn._pb);}
430
+ if(!pn._pb){pn._pb=document.createElement('div');pn._pb.className='pagebadge';pn.parentElement.appendChild(pn._pb);}
428
431
  var b=pn._pb;b.textContent=g+'/'+all;b.style.opacity='1';clearTimeout(t);
429
432
  t=setTimeout(function(){b.style.opacity='0'},1000);},{passive:true});}
430
433
  for(var k=0;k<panes.length;k++)wireBadge(panes[k],k);
@@ -833,8 +836,8 @@ def render_html(blocks: list[Block], meta: dict) -> str:
833
836
  f'<button id="t">theme</button><span id="stats"></span><button id="panelsbtn" title="panel up">&#9650;</button></div></div>\n'
834
837
  f'<div class="hdmini" hidden><span class="v">&#8250; {_meta_val(meta, "name")} (cp-{_meta_val(meta, "nnn")})</span>'
835
838
  f'<button id="panelbtn" title="panel down">&#9660;</button></div></header>\n'
836
- f'<main class="split"><div class="pane" id="pl">{pl}</div>'
837
- f'<div class="pane" id="pr">{pr}</div></main>\n'
839
+ f'<main class="split"><div class="panewrap"><div class="pane" id="pl">{pl}</div></div>'
840
+ f'<div class="panewrap"><div class="pane" id="pr">{pr}</div></div></main>\n'
838
841
  f'{"".join(galleries)}'
839
842
  f'{_LIGHTBOX if galleries or has_chips else ""}'
840
843
  f'{ext}<script>{_JS}{switch_js}'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cc-continuity
3
- Version: 0.3.75
3
+ Version: 0.3.77
4
4
  Summary: Zero-touch session rotation for Claude Code (local large-context model)
5
5
  Classifier: Development Status :: 5 - Production/Stable
6
6
  Classifier: License :: OSI Approved :: MIT License
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "cc-continuity"
7
- version = "0.3.75"
7
+ version = "0.3.77"
8
8
  description = "Zero-touch session rotation for Claude Code (local large-context model)"
9
9
  requires-python = ">=3.11"
10
10
  classifiers = [
@@ -821,7 +821,7 @@ def test_density_split_checkbox_and_css():
821
821
  assert 'id="sp"' in d
822
822
  assert "2-column" in d
823
823
  assert "main.split{max-width:none;display:flex" in d
824
- assert "main.split .pane{" in d
824
+ assert "main.split .panewrap .pane{" in d
825
825
  assert "zoom:.75" in d
826
826
  assert '<main class="split">' in d
827
827
  assert "return localStorage.getItem('sp')!=='0'" in d
@@ -841,9 +841,9 @@ def test_density_js_persistence_guards():
841
841
  # --- issue #102: split view panes scroll independently, ephemeral page badge ----
842
842
 
843
843
  def _panes(d):
844
- m = re.search(r'<div class="pane" id="pl">(.*?)</div>'
845
- r'<div class="pane" id="pr">(.*?)</main>', d, re.S)
846
- assert m, "split view must render two pane divs (issue #102)"
844
+ m = re.search(r'<div class="panewrap"><div class="pane" id="pl">(.*?)</div></div>'
845
+ r'<div class="panewrap"><div class="pane" id="pr">(.*?)</main>', d, re.S)
846
+ assert m, "split view must render two panes inside non-scrolling wrappers (issues #102, #105)"
847
847
  return m.group(1), m.group(2)
848
848
 
849
849
 
@@ -875,17 +875,33 @@ def test_split_view_empty_conversation_keeps_both_panes():
875
875
 
876
876
 
877
877
  def test_split_panes_own_their_scrollbar():
878
+ # issue #105 moved the flex/positioning role to the wrapper; the pane
879
+ # keeps its own scrollbar.
878
880
  d = transcript.render_html([("user", "x", None)], META)
879
- rule = re.search(r"main\.split \.pane\{([^}]*)\}", d)
880
- assert rule, "pane rule required (issue #102)"
881
- body = rule.group(1)
882
- assert "overflow-y:auto" in body
883
- assert "position:relative" in body
884
- assert "flex:1 1 50%" in body
881
+ rule = re.search(r"main\.split \.panewrap \.pane\{([^}]*)\}", d)
882
+ assert rule, "pane rule required (issues #102, #105)"
883
+ assert "overflow-y:auto" in rule.group(1)
885
884
  assert re.search(r"main\.split\{[^}]*display:flex", d), "split mode is flex, not columns"
886
885
  assert "columns:2" not in d
887
886
 
888
887
 
888
+ def test_page_badge_pinned_to_visible_frame():
889
+ # issue #105: the badge was appended INSIDE the scroller, so it anchored
890
+ # to the content top and scrolled away (measured y=-1012 while opacity
891
+ # stayed 1: visible nothing during scroll). It must live in a
892
+ # NON-scrolling wrapper that is the pane's positioning context.
893
+ d = transcript.render_html([("user", "x", None)], META)
894
+ assert d.count('<div class="panewrap"><div class="pane"') == 2
895
+ rule = re.search(r"main\.split \.panewrap\{([^}]*)\}", d)
896
+ assert rule, ".panewrap rule required (issue #105)"
897
+ body = rule.group(1)
898
+ assert "position:relative" in body # badge anchors to the visible frame
899
+ assert "flex:1 1 50%" in body # the wrapper (not the pane) is the flex item
900
+ assert "overflow" not in body # the wrapper itself must never scroll
901
+ js = d[d.index("<script>"):]
902
+ assert "pn.parentElement.appendChild(pn._pb)" in js # badge outside the scroller
903
+
904
+
889
905
  def test_page_badge_is_an_ephemeral_overlay():
890
906
  d = transcript.render_html([("user", "x", None)], META)
891
907
  rule = re.search(r"\.pagebadge\{([^}]*)\}", d)
@@ -919,6 +935,17 @@ def test_page_badge_js_numbers_one_global_sequence():
919
935
  assert "g+'/'+all" in js # badge text is the global page over the total
920
936
 
921
937
 
938
+ def test_page_badge_js_sizes_pages_by_visible_viewport():
939
+ # issue #104: pages are measured by the pane's actually visible height
940
+ # (on-screen rect ∩ viewport), and the counter advances on natural
941
+ # gestures because the current page is the screenful under its center.
942
+ d = transcript.render_html([("user", "x", None)], META)
943
+ js = d[d.index("<script>"):]
944
+ assert "getBoundingClientRect" in js # real on-screen geometry, no fitPanes guess
945
+ assert "visH" in js # measured visible height drives every page computation
946
+ assert "scrollTop+ch/2" in js # current page = screenful under the center
947
+
948
+
922
949
  def test_pane_sizing_wired_to_split_toggle():
923
950
  d = transcript.render_html([("user", "x", None)], META)
924
951
  js = d[d.index("<script>"):]
File without changes
File without changes