feat(perch-hub): envelope + per-session tool narrowing pane on the Session tab (PR-D) - #372
Merged
Merged
Conversation
…ssion tab (PR-D, audit item 15) Port the envelope & narrowing pane from the board card drawer so hub-only sessions get per-session narrowing too. Bot Builder stays the only writer of the envelope; the pane can only REMOVE tools, per session, effective from the next message (a wake rebuilds the world). - routes/perch.js: GET /bots/:id/envelope?threadId= attaches the session's saved narrowing (tri-state: absent = not reported, null = reported-empty, JSON text = the narrowed set) so the pane renders in one call; the bare per-bot call the board drawer makes is unchanged. - perch-hub client/html/css: collapsible pane on the Session tab reusing the drawer's botboard.bd* i18n and save semantics (widening_rejected reverts the checkbox and says why); collapse+clear on session switch; identity guard on the envelope continuation (guards 17 -> 18). - tests: 3 hub-client tests + 4 route tests for the threadId contract. - docs: bot-builder.md step 4 (EN+ES) — the hub now HAS the pane; both surfaces read and write the same per-session narrowing. Full suite 4835/0.
kh0pper
pushed a commit
that referenced
this pull request
Sep 13, 2026
… + open questions Written after PR-D shipped (#372, main 2889d28). Records: send_user_file is a pi-lab extension (pi core dist grep = 0), the R4 ff-before-restart deploy lesson, the oauth_tokens.token column correction, and the Q1-Q3 investigation order with the re-scope gate before any pi-lab-side relay.
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.
Ports the parity-handoff PR-D (audit item 15). Implementation from the quota-interrupted session; this session added the missing pieces: the EN+ES
bot-builder.mdstep 4 correction and 4 route tests for the new?threadId=contract.GET /bots/:id/envelope?threadId=attaches the session saved narrowing (tri-state: absent = not reported, null = reported-empty, JSON text = narrowed set); bare per-bot call unchanged (board drawer untouched).Envelope & toolspane reusing the drawer i18n + save semantics; widening_rejected reverts + explains; collapse/clear on session switch; identity guards 17->18.Full suite 4835/0. VitePress build green both locales.