mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-12-06 14:56:23 +01:00
Messages tab for streams, with messages as the single record (#819)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f63586f9f0
commit
cc382b9226
42 files changed
+3403
-453
No files matched your search
@@ -715,18 +715,19 @@ pub async fn detail(
|
||||
body_cap: usize,
|
||||
) -> Result<FlowDetail, String> {
|
||||
let flow = get(db, flow_id)?;
|
||||
let request_body = preview(blobs, &flow, FlowBody::Request, body_cap).await?;
|
||||
let response_body = preview(blobs, &flow, FlowBody::Response, body_cap).await?;
|
||||
let request_body = preview(db, blobs, &flow, FlowBody::Request, body_cap).await?;
|
||||
let response_body = preview(db, blobs, &flow, FlowBody::Response, body_cap).await?;
|
||||
Ok(FlowDetail { flow, request_body, response_body })
|
||||
}
|
||||
|
||||
async fn preview(
|
||||
db: &ProxyQueryManager,
|
||||
blobs: &BlobManager,
|
||||
flow: &Flow,
|
||||
which: FlowBody,
|
||||
cap: usize,
|
||||
) -> Result<Option<BodyPreview>, String> {
|
||||
let body = bodies::read_body(blobs, flow, which, cap).await?;
|
||||
let body = bodies::read_body(db, blobs, flow, which, cap).await?;
|
||||
if body.data.is_empty() && !body.truncated {
|
||||
return Ok(None);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user