Skip to content

Fix wasm SSH#504

Open
palchrb wants to merge 10 commits intotale:mainfrom
palchrb:main
Open

Fix wasm SSH#504
palchrb wants to merge 10 commits intotale:mainfrom
palchrb:main

Conversation

@palchrb
Copy link

@palchrb palchrb commented Mar 20, 2026

Two minor fixes to make SSH work again; 1. making sure that the wasm files are in the docker image + making sure that headplane tries to fetch the resource at /admin/ not root

claude and others added 4 commits March 20, 2026 10:18
The WASM files (hp_ssh.wasm, wasm_exec.js) were being copied to /run/app/
which contains React Router source files that get compiled. Static assets
need to be in /run/public/ so Vite copies them to build/client/ during the
build, making them available at runtime via the Hono static file server.

https://claude.ai/code/session_01E9a9GGxEPjEyMTRcbTrVmC
The wasm_exec.js and hp_ssh.wasm files were referenced with absolute
root paths (e.g. /wasm_exec.js) instead of using the __PREFIX__ global,
causing them to fail when Headplane is served under a subpath like /admin.

https://claude.ai/code/session_01E9a9GGxEPjEyMTRcbTrVmC
claude and others added 2 commits March 20, 2026 14:54
@shopify/lang-jsonc pulled in @codemirror/state@6.5.4 while the rest
of the codemirror packages used 6.6.0, causing "multiple instances of
@codemirror/state" errors that broke the ACL editor.

https://claude.ai/code/session_01E9a9GGxEPjEyMTRcbTrVmC
fix: deduplicate @codemirror/state to fix ACL editor crash
@murfasa
Copy link

murfasa commented Mar 22, 2026

Can confirm this PR works! Hopefully it can be merged into latest soon. 👍

"better-sqlite3"
]
],
"overrides": {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this about?

Copy link
Author

@palchrb palchrb Mar 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies, maybe that should not be part of this PR. What happened when I built the docker image based on your main branch + the above commits, is that the ACL editor stopped working. You might have/want to address that in a different way.

@shopify/lang-jsonc pulled in @codemirror/state@6.5.4 while the rest
of the codemirror packages used 6.6.0, causing "multiple instances of
@codemirror/state" errors that broke the ACL editor.

claude and others added 2 commits March 25, 2026 10:42
The navigation tabs (Machines, Users, Access Control, DNS, Settings) were
hidden on mobile devices (< 768px) with no alternative navigation method.
This adds a hamburger menu using the existing Menu component that is only
visible on mobile, providing access to all navigation links on small screens.

https://claude.ai/code/session_01E9a9GGxEPjEyMTRcbTrVmC
@tale
Copy link
Owner

tale commented Mar 25, 2026

If you're going to PR changes, please keep them clean, get rid of whatever hamburger menu you added and also opened a separate PR for. You don't need to use AI for everything 🙄. I'm more than happy to merge in the changes for the WASM module.

@palchrb
Copy link
Author

palchrb commented Mar 25, 2026

If you're going to PR changes, please keep them clean, get rid of whatever hamburger menu you added and also opened a separate PR for. You don't need to use AI for everything 🙄. I'm more than happy to merge in the changes for the WASM module.

My apologies again.. I did not mean for the hamburger menu item to be part of this. Will clean it up. Do you want me to remove b8bd498 as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants