Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions apps/web/src/approval-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,6 @@ export function createChatApprovalActions(
void queryClient.invalidateQueries({
queryKey: tenantKeys.pendingApprovals(tenantId),
});
// The tasks backend still owns these inbox routes even though the
// Inbox page that used to read them is gone.
void queryClient.invalidateQueries({
predicate: (query) => {
const key = query.queryKey;
if (!Array.isArray(key)) return false;
return key.some(
(part) => typeof part === "string" && part.includes(`/api/tenants/${tenantId}/inbox`),
);
},
});
}

// A 409 (already resolved, run no longer running) is kept distinct from
Expand Down
18 changes: 0 additions & 18 deletions apps/web/src/bench/index.ts

This file was deleted.

13 changes: 0 additions & 13 deletions apps/web/src/bench/membership.ts

This file was deleted.

120 changes: 0 additions & 120 deletions apps/web/src/bench/tenancy-contracts.ts

This file was deleted.

89 changes: 0 additions & 89 deletions apps/web/src/chat-artifact-open.ts

This file was deleted.

10 changes: 0 additions & 10 deletions apps/web/src/chat/agent-part-adapter.ts

This file was deleted.

7 changes: 3 additions & 4 deletions apps/web/src/chat/blocks/approval-actions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// See docs/chat-wire-contract.md for why this is a host-supplied port.

// Never invented here — mirrors `ApprovalResponse.status`.
export type ApprovalLiveStatus = "pending" | "approved" | "rejected" | "timeout" | "expired";

Expand All @@ -22,8 +20,9 @@ export type PlatformApprovalDetail = {
readonly argumentsSummary?: string;
};

// See docs/chat-wire-contract.md for why `forbidden` is distinct from
// `canAct: false`.
// `forbidden` is distinct from `canAct: false`: the host's own status read
// was refused, so the card shows Approve/Deny anyway and lets the decision
// call's own authorization decide.
export type ApprovalStatusQuery =
| { readonly kind: "loading" }
| {
Expand Down
5 changes: 2 additions & 3 deletions apps/web/src/chat/blocks/approve-block.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// See docs/chat-wire-contract.md for why the platform's own detail is
// authoritative. No `ApprovalActions` port: falls back to pre-round-trip
// framing, fixed disabled buttons, no fetch.
// The platform's own detail is authoritative. No `ApprovalActions` port:
// falls back to pre-round-trip framing, fixed disabled buttons, no fetch.

import { Button } from "@corbits/react-ui";
import type { ApproveBlockData } from "../wire/blocks";
Expand Down
35 changes: 0 additions & 35 deletions apps/web/src/chat/blocks/connect-service-actions.ts

This file was deleted.

63 changes: 0 additions & 63 deletions apps/web/src/chat/blocks/connect-service-block-container.tsx

This file was deleted.

Loading
Loading