Repository navigation
feat(apps): share context with the originating conversation - #4866
Closed
reachjalil wants to merge 3 commits into
Closed
reachjalil wants to merge 3 commits into
reachjalil wants to merge 3 commits into
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
reachjalil
force-pushed
the
fix/app-conversation-ownership
branch
from
September 10, 2026 22:48
65295c3 to
b067e9a
Compare
This was referenced Sep 10, 2026
reachjalil
force-pushed
the
feat/app-conversation-handoff
branch
from
September 10, 2026 22:52
773725f to
fb89034
Compare
This branch was successfully deployed
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.
Dependency
Stacked on #4863 (
fix/app-conversation-ownership). Uses its originating-conversation and live-launch contract; revalidate after any parent change.Summary
Let a standard MCP App contribute context or request a reviewed follow-up in its originating conversation without silently starting turns or targeting the selected chat.
ui/update-model-contextretains bounded, latest-per-source text/JSON context. Normal future submissions validate the live launch and append attributed, untrusted synthetic user input immediately before native prompt dispatch. Updates alone start no turn and never become system instructions.ui/messageaccepts user-role text blocks, opens a native review dialog, and uses the owning conversation send/admission path. Success follows accepted/sent admission; composer drafts stay unchanged.Context is ephemeral and limited to 16 KiB per update, 64 KiB across 16 Apps. Only supported text message modalities are advertised. View-exposed tools, resource proxies, streaming and generated-view writes are not added.
Verification
Signed head:
fb89034c9a437d9bab6f2026e67dd031df330adc.Exact parent-PR base:
b067e9a174725085dbcebcf3c3ff963f0b597157.Passed on that exact head, all exit 0:
pnpm --filter @openwork/app exec bun test --isolate ./tests/mcp-app-conversation.test.ts ./tests/queued-drain-admission-wedge.test.ts ./tests/mcp-app-origin.test.tsx— 39 passed.pnpm --filter @openwork/app exec bun test ./tests/opencode-v2-adapter.test.ts --test-name-pattern "prompt|model admission|waiting for .* admission|variant"— 10 passed; 74 not selected.pnpm --filter @openwork/app exec bun test ./tests/opencode-stream-timeout.test.ts --test-name-pattern "explicit client rejection|bounded native POST"— 2 passed; 17 not selected.pnpm --filter openwork-server exec bun --conditions=development test src/mcp-app-host.test.ts— 37 passed.pnpm --filter @openwork/app exec bun test --isolate ./tests/composer-focus-continuity.test.tsx— 1 passed.pnpm --dir evals exec bun test ./packages/labs/test/mock-mcp.test.ts --test-name-pattern "App context witness"— 1 passed; 7 not selected.Total: 90 passed, zero failed/skipped; 98 tests were deliberately filtered out, not claimed as passed. All three delta commits have verified signatures.
Verdict and remaining coverage
Incomplete. The existing
saved-app-creationjourney was extended but not run with the real App/Den/model boundary. Cross-workspace handoff and the complete rendered review flow therefore still need end-to-end evidence. No real models, live providers, enterprise accounts or shared app profiles were used.Rebase conflicts in
session-surface.tsxpreserved upstream send options/queued-item consumption and retained bothuiStateOwnerand the App-message handler. Focused composer coverage passed afterward; it emitted duplicate-key warnings, which are not represented as a failure or silently repaired out of scope.The independent protocol-contract PR #4862 is not included in this stack. Combining it requires updating frame fixtures and supported-message expectations/docs; current checks do not certify that composed tree. Hosted CI/review are pending. No merge or deployment is included.