Skip to content
Open
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
6 changes: 6 additions & 0 deletions cli/src/commands/agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,12 @@ export const performRun = ({
// suppress a genuine reply (#757).
const snapshotMessages = async () => {
try {
// READ limit, not a claim. Since #1166 this is the only `limit: 10`
// left in the file, and the one it is easy to mistake it for — the
// events fetch — was reduced to 1 precisely because fetching an
// event CLAIMS it. This endpoint claims nothing: it returns pod
// messages so the echo check can see what is already there, and
// asking for ten costs ten rows.
const { messages = [] } = await client.get(
`/api/agents/runtime/pods/${eventPodId}/messages`, { limit: 10 },
);
Expand Down
Loading