Repository navigation
Tick-store fixes, chart drag fix, Capsule replay strip, install --all, dsh adapter - #11
Merged
godzillacode0000 merged 7 commits intoOct 30, 2026
Merged
Conversation
…he DeepSeek Harness adapters/dsh/install-dsh.sh: skill copy, merge-safe MCP entry (--mcp-file), --doctor with a real MCP handshake, --uninstall. Interpreter order matches bin/register-mcp.sh (PY, .venv, python with mcp, else uvx); bash 3.2 safe; probes scrub PYTHONPATH. Tests, README section, CHANGELOG, CI syntax check. Rebased on v1.1.0. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GLsbckEp88WEwC41dfyMeS
bin/setup-python.sh makes <repo>/.venv with the mcp client (uv when present: 5.6 s vs 286 s for pip in the same sandbox; else python3.11+ venv + pip; an existing python with mcp is left alone). It asks for Python 3.12/3.13/3.11, never the newest: a bare >=3.11 picked a 3.14 release candidate whose pydantic could not import. console/service-linux.sh is the systemd counterpart of service-macos.sh, with a detached fallback that does not hold the caller's pipe. install.sh --all chains plugin, python, service, MCP registration and a health wait; a plain ./install.sh is unchanged. Tests (test_fast_install), README, CHANGELOG, MACOS.md, CI syntax check. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GLsbckEp88WEwC41dfyMeS
SERVER_VERSION was typed once at 1.0.0 and never touched, so /api/health, /api/build and the Server: header all answered 1.0.0 while the repo shipped 1.3.0; traders-desk/plugin.yaml had drifted the other way (1.2.0 against a v1.3.0 tag and a catalog entry claiming 1.3.0), so the manifest the catalog reads disagreed with the entry pointing at it. All three state 1.3.0 and test_docs_drift.OneVersionNumber fails while they disagree — the old drift test checked the manifest's name, never its version. TRADERS_AGENT_ALLOWED_HOSTS appeared in no document. Measured: an allowlisted Host from loopback is handed the POST token and POST /api/broker answers 200, so behind `tailscale serve` every device on the tailnet can approve paper orders with ALLOW_LAN unset, while the README's ALLOW_LAN row still promised LAN peers a read-only console. The README now carries the variable, calls each name a full-trust door and corrects that row; three live-socket tests pin the token, the write and the still-refused unknown name. No behaviour changed, only what the repo admits to. Also: the package README documented the pre---all install, and the test counts disagreed (README ~1,130, HANDOFF 1,166). Both now match a measured run: 1,188 tests, 9 skipped, 73 files. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GLsbckEp88WEwC41dfyMeS
Conflicts kept both sides: install.sh has --with-prop and --all/--setup-python/--service; server.py, plugin.yaml and HANDOFF take main's VERSION-file approach (test_versions.py), so the branch's three-literal OneVersionNumber test and its SERVER_VERSION literal are dropped; the README keeps the branch's fuller TRADERS_AGENT_ALLOWED_HOSTS / ALLOW_LAN rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GLsbckEp88WEwC41dfyMeS
… green - fxticks.bars sized its window from a 0.4x guess and grew it a day per pass, re-reading every hour each time and stopping after 60: on a two-year store 500 x 4h gave 404 bars (12 s) and 500 x D gave 186 (67 s), silently. The window is now sized once (1.5x the trading time + 4 days, one wider pass, never before the store's first day): 500 and 500 in 0.8 s and 4.9 s, identical bars elsewhere. - The LRU held raw ticks (gigabytes at 4,096 busy hours); hours are now packed minute bars, ~4 KB each. The docstring's on-disk bars-v1 cache never existed; the claim and the unused TRADERS_FX_BARS go. - A truncated hour raised inside bars() and sank the whole request to the network; it is now skipped and counted (unreadable_hours). fx-fetch writes via a .part file and rename so it leaves none. - fx-fetch walked to the current, unfinished hour and marked unpublished hours .empty for good; it now ends at the last complete hour and only marks 404s older than a day. - fxdata.status() dropped `ticks` when the network cache folder did not exist, so the Data tab sat on "Reading the tick store..." for an operator who only ran fx-fetch. One shape always, plus `yahoo`; the card's Yahoo line follows it and the card re-reads on every visit. - Unused `import json` in tools/fx-fetch.py, which failed the ruff gate on main. 15 new tests; full suite 1,293 OK. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GLsbckEp88WEwC41dfyMeS
…y and out nudgeChart()'s repaint dispatched a window 'resize' and the resize handler called nudgeChart() again: an endless loop, 140 view resets in 10 idle seconds (measured in Chromium). Each reset re-applied getVisibleRange(), which Vela caps at the newest bar in whole bars, so a drag into the right-hand space sprang back to the edge and the zoom crept in. - onWindowResize ignores synthetic (untrusted) resize events, so the nudge no longer re-enters itself - the repaint is Vela's public panBy(0): same zoom and position, full redraw Verified: 0 resets idle; drags into empty space and into history hold, in replay too (step and play leave a panned view alone); the canvas still repaints after a panel flip and a window resize. Three new tests in test_escape_and_layout.py. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GLsbckEp88WEwC41dfyMeS
The operator's pick of two designs ("A — Capsule"): one frosted pill whose top edge is the scrubber
(white playhead; the range ends fade in on hover), Play as the one bright control (Pause while
playing), back-to-start and next-bar as icons, the cursor time as date over clock (still opens the
calendar), a ring beside "N bars left" that fills as this replay advances, and the speed as a chip.
The speed menu and calendar wear the same glass.
Behaviour is unchanged: seek on release, Start bar, drag handle and saved spot, the paper broker's
replay price. Icon-only buttons are named, focus is visible, the count has a fixed width so the pill
does not wobble during playback, and a narrow pane drops the words but keeps the number and ring.
Verified in Chromium at 1150/620/420 px, dark and light, driving every control. 8 new tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GLsbckEp88WEwC41dfyMeS
|
Architecture Inside the changed components — 3 viewsComponent view — Replay & Chart Frontend Capsule replay strip and repaint stabilization on the Vela workspace
Component view — FX Data & Tick Cache Optimized tick store reading, atomic writes, and backend data services
Component view — Fast Install & Adapters Automated Python bootstrapping, Linux systemd service configuration, and dsh integration
Data flow Tip Run 🪧 More tips
Thanks for using PR Lens! It's free for OSS. If it helped, a star helps other teams find it. |
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.
Everything not yet on
main: six commits plus one merge ofmain(at0fd1304), so this merges cleanly. It also turnsmain's CI green again:mainhas been red on ruff since94e12d2.Fixes
Tick store and data (
aca9d43)fxticks.barsgrew its window by a day per pass from a 0.4× guess, re-read every hour on each pass, and stopped after 60 passes. On a two-year store, 500 × 4h returned 404 bars in 12 s and 500 × D returned 186 in 67 s, with no sign anything was missing. The window is now sized once from the timeframe, with one wider pass for holidays and never before the store's first day. Result: 500 and 500, in 0.8 s and 4.9 s. Bars are identical wherever the old walk did reach.bars-v1disk cache and the unusedTRADERS_FX_BARSare removed.unreadable_hours.tools/fx-fetch.py:.partfile and a rename..emptyonce it is a day old./api/fx/statusnow always has one shape, plus ayahooflag. The tab's Yahoo line follows that flag and the tab re-reads on every visit.import jsonintools/fx-fetch.py.The chart sprang back to its right edge after a drag, in replay and out (
cf2fe0c)nudgeChart()fired a synthetic windowresize, and the resize handler callednudgeChart()again. That loop ran forever: 140 view resets in 10 idle seconds, measured in Chromium.getVisibleRange(). Vela caps that range at the newest bar in whole bars, so the empty space you had dragged in was thrown away and the zoom crept in.panBy(0), which keeps zoom and position.Features
5811de7), picked by the operator from two designs:./install.sh --all(ac2503e): sets up Python (bin/setup-python.sh,uvfirst), installs the service (console/service-linux.sh, or launchd on macOS), registers MCP and waits for health.--setup-pythonand--servicerun those steps alone. Kept alongsidemain's--with-prop.65ad2b5):adapters/dsh/install-dsh.shinstalls the desk skill and registers the MCP server, with--doctorand--uninstall.863317c):TRADERS_AGENT_ALLOWED_HOSTSis documented as a full-trust door. A request using an allowlisted host from loopback is handed the POST token, which the new tests pin. The package README now leads with--all.Merge notes
install.sh.server.py,plugin.yamlandHANDOFF.mdtakemain's VERSION-file approach (test_versions.py), so the branch's older version-literal test is dropped.Test plan
TRADER_CHART_REQUIRE_NODE=1 TRADER_CHART_REQUIRE_MCP=1. Earlier runs on this branch: 1,293 after the data fix, then OK after each later commit.ruff check --select F,E9 console tools,node --checkon every frontend file,bash -non the shell scripts,vendor-sums --check,modulepreload --check,verify-plugin.mjsand its self-test.Generated by Claude Code