6 Commits

Author SHA1 Message Date
bvn13
8de74a96d1 chore: bump both submodules and let the proxy wrapper allow a published host
cloudcli moves to d12813e1, which carries the fix this workspace was missing:
PluginsProvider and TasksSettingsProvider sit above ProtectedRoute and fetched
exactly once, on mount, so in a browser holding no token yet the request landed
on the login screen, came back 401, and nothing asked again — the whole session
then ran with an empty plugin list and no Tasks section until a reload.
plugin-taskwork moves to fdae5240, which keeps a task draft that loses focus.

dev-host-proxy.sh gains ALLOWED_HOST. Publishing the dev host under a name
rather than localhost — a port forward, a reverse proxy — otherwise ends at
Vite's "Blocked request. This host is not allowed.". The value goes into the
variable Vite reads for exactly this, so vite.config.js needs no local patch,
and leaving ALLOWED_HOST unset passes an empty string, which Vite ignores.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-20 12:43:01 +03:00
bvn13
aefc979c24 chore: bump both submodules and track the plugin on master
The plugin repository moved off `main` — the branch no longer exists on the
GitHub mirror, so `branch = main` here would have broken
`git submodule update --remote` for anyone cloning this workspace.

Pins: cloudcli dfc8ba9 → 25ad334 (sidebar resize fixes from PR #1189 review),
plugin-taskwork 3dbc55c → cadd21e (pencil-button rename for tasks).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-27 00:19:22 +03:00
bvn13
be316cb781 fix: make dev-host.sh run on macOS and Git Bash, not just Linux
The host never started on Windows: `setsid: command not found`, after
which the script wrote the dead setsid pid to .dev-host.pid and counted
out its full timeout printing dots. setsid is Linux-only, so this would
have hit macOS too.

Four Linux assumptions, replaced with probed alternatives:

  setsid           used when present; otherwise plain nohup, and stop
                   walks the process tree instead of killing the group
  ss               falls back to lsof (macOS), then netstat (Windows)
  node -p require  reads the version with sed instead: bash hands Node
                   /c/Users/..., which Node resolves as C:\c\Users\...
                   and throws MODULE_NOT_FOUND
  --show-current   falls back to `describe`, empty on the detached HEAD
                   a fresh submodule checkout leaves behind

Also, so the next failure is legible rather than a wall of dots:
the readiness loop now stops the moment the host process dies, and the
timeout prints the log's error lines instead of `tail -5`, which the
per-file session-sync chatter had made useless. Timeout raised to 120s
for cold first starts (tsx compile + vite optimizeDeps), overridable
with READY_TIMEOUT_SECONDS.

Unrelated bug found while there: stop_host used `exit 0` when nothing was
running, so `restart` on a stopped host never reached start_host.

Verified on Linux: the three port backends agree, and the no-setsid path
was exercised in isolation — group kill fails as expected and kill_tree
reaps parent and children. The netstat and ps branches are written to
documented behaviour but untested for lack of a Windows or macOS host.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-22 12:31:41 +03:00
bvn13
7c6299053e fix: accept a submodule .git file in the workspace scripts
dev-host.sh and export-patches.sh tested the submodule with `[ -d
cloudcli/.git ]`. In a normal submodule checkout .git is a *file*
pointing at ../.git/modules/cloudcli, so the check failed and both
scripts reported "not initialised" right after a successful
bootstrap.sh.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-22 12:22:38 +03:00
bvn13
fecf92c105 chore: public workspace with GitHub submodules 2026-08-22 12:13:20 +03:00
bvn13
68548c0afe chore: public workspace with GitHub submodules 2026-08-22 12:09:41 +03:00