feat: add project-aware agent workspace
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// Translate existing UI scenarios into Responses wire fixtures. Production
|
||||
// clients accept Responses only; this helper belongs exclusively to tests.
|
||||
export function responseFixtureWriter() {
|
||||
export function responseFixtureWriter(conversationId?: string) {
|
||||
let sequence = 0;
|
||||
let id = "resp_browser_fixture";
|
||||
let messageId = "msg_browser_fixture";
|
||||
@@ -13,7 +13,7 @@ export function responseFixtureWriter() {
|
||||
return (chunk: Record<string, unknown>) => {
|
||||
if (chunk.type === "start") {
|
||||
messageId = String(chunk.messageId); id = `resp_${messageId}`;
|
||||
return event("response.created", { response: { id, object: "response", status: "in_progress" } })
|
||||
return event("response.created", { response: { id, object: "response", status: "in_progress", ...(conversationId ? { conversation: { id: conversationId } } : {}) } })
|
||||
+ event("response.output_item.added", { output_index: 0, item: { type: "message", role: "assistant", id: messageId, content: [] } });
|
||||
}
|
||||
if (chunk.type === "text-start") {
|
||||
|
||||
Reference in New Issue
Block a user