Commit cfe053f
fix(app): re-export _call_rpc and _call_realtime from violetear.client
Same root cause as the ReactiveRegistry import bug in 835dede: client.py
now lives inside the violetear.client module (good — gives state.py and
dom.py a proper module to import from). But the bundle's server-side
stubs (generated by _generate_server_stubs, one per @app.server.rpc /
.realtime function) reference `_call_rpc` and `_call_realtime` as bare
names at bundle-module scope. Those names were globals when client.py
was exec'd directly into the bundle; after the module-injection, they're
attributes of violetear.client, not bundle globals.
Symptom in browser: clicking precise mode (which triggers the precise_convert
RPC stub) raised
NameError: name '_call_rpc' is not defined
Fix: add _call_rpc + _call_realtime to the re-export list in client_injection.
New e2e test (test_03_interactive_precise_mode_rpc_roundtrip) catches this
specific regression — it toggles to precise mode and waits for the feet
field to reflect the high-precision constant. Different code path from
the reactive-update test (which is client-only).
43 fast + 3 e2e all green.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 835dede commit cfe053f
2 files changed
Lines changed: 43 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
711 | 711 | | |
712 | 712 | | |
713 | 713 | | |
714 | | - | |
715 | | - | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
716 | 721 | | |
717 | 722 | | |
718 | 723 | | |
719 | 724 | | |
720 | 725 | | |
| 726 | + | |
| 727 | + | |
721 | 728 | | |
722 | 729 | | |
723 | 730 | | |
| |||
0 commit comments