0.6.6 enforces the nostrconnect handshake secret. Previously a signer
could answer the connect request with result: "ack" and skip proving it
could decrypt the secret, so any relay-connected party who saw the
nostrconnect URI could claim the session and become the user's signer.
The 0.6.6 NostrLoginProvider now resolves stored logins on a microtask
(rendering a null fallback until storage resolves) rather than
synchronously. Component/hook tests render and query immediately, so
they observed an empty tree. Mock @nostrify/react/login in the test
setup with a synchronous provider and matching useNostrLogin hook,
passing every other export (NLogin, NUser, the connect helpers) through
from the real module untouched.
Zapping asked the recipient's LNURL-pay server for an invoice and paid
whatever came back, checking only that it was a non-empty string. The
server is chosen by the recipient, so anyone who posts a note and runs
their own endpoint decided how much their victims paid — after the
victim had already approved a figure. The success toast reported the
requested amount rather than the paid one, so an overcharge left no
trace in the UI either.
Add a BOLT11 decoder (bech32 + tagged fields, on @scure/base and
@noble/hashes, both already bundled via nostr-tools) and require the
returned invoice to charge exactly the millisats the user approved.
Amountless invoices are rejected outright. The check runs before the
NWC, WebLN and QR paths alike, and useNWC's sendPayment now takes the
approved amount and re-checks it, so no future caller can hand the
wallet an unvetted invoice.
Resolve LNURL-pay in-repo instead of via nip57.getZapEndpoint, which
returns only the callback URL and discards everything used to validate
the response: HTTPS is now required for both the LNURL and the callback
it names, the advertised minSendable/maxSendable are honoured, and the
invoice's description hash is checked against the zap request (NIP-57)
or the endpoint metadata (LUD-06) when it carries one.
Report the decoded amount in the success toast so it can never
understate a spend.
Adapted from Alex Gleason's ditto commit 6e062450.
Strip image_url parts from all user messages except the most recent one
before sending to the API. The model has already responded to earlier
images, so re-sending them on every turn wastes tokens. The VFS text
path is preserved so the model can still read the file if needed.
This is a send-time transformation only — session.messages stays
intact for the UI.
- Remove unused useErrorDetection.ts hook (154 lines)
- Remove separate console.ts type file, consolidate into ReadConsoleMessagesTool
- Simplify console message state management in PreviewPane
- Remove redundant console clearing logic in ProjectView
- Streamline copy functionality in console UI
- Clean up imports and formatting
Preserves all functionality while reducing code complexity and maintenance burden.
- Unified the global console message system with local state passing
- Maintained backward compatibility for external systems
- Added proper synchronization between global and local console states
- Resolved conflicts in PreviewPane.tsx and ProjectView.tsx
- Both console messaging systems now co-exist peacefully
- Move ConsoleMessage interface to shared types file to eliminate duplication
- Remove redundant handleSetConsoleMessages variable in PreviewPane
- Update all imports to use shared ConsoleMessage type
- Clean up excess comments and redundant code patterns
- Restore mobile back buttons in AboutSettings and DataSettings pages
- Remove extra empty lines in Index.tsx
- Ensure compatibility with origin/main changes
- All tests pass and build succeeds
This resolves conflicts where the zipImport branch had incorrectly
removed mobile navigation features that were added in origin/main.