feat(web): add manual context compaction - #109
Open
beilo wants to merge 1 commit into
Open
Conversation
daveyijzermans
pushed a commit
to daveyijzermans/pi-web
that referenced
this pull request
Aug 23, 2026
.project-palette was constrained to min(64vh, 520px) which left empty space in the fullscreen sheet on mobile (≤900px). Added mobile media query to stretch palette to 100% height. Closes ygncode#109
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.
Summary
Add a manual context-compaction action to the live chat UI.
/compactand/compact <instructions>in the composer.POST /api/compactto the pi RPC worker.Related issue
Related to #41 — Support
/compactcommand through RPC.This PR covers the core button, composer command, and RPC path. The keyboard shortcut and dedicated Playwright E2E case requested in the issue discussion are not included yet.
Type of change
feat— new featuretest— adding or updating testsLive vs. Export
internal/ui/embedded/in sync withweb/src/session/changesThe new action is live-app-only. Export rendering does not expose the composer or compact endpoint.
Testing
make checkmake build