Support task finish images in Lark cards#64
Conversation
PR Review: Support task finish images in Lark cardsThis is a well-structured PR that adds optional image attachments to 1. Image key caching never actually worksThe Root cause: The caller in let metadataJson = buildBindingMetadata({...base...}, existing?.metadataJson ?? null);
// ^^^ drops taskResultImages from old metadata
const taskCardImages = await resolveTaskCardImages({
...state, metadataJson, // <-- metadataJson has NO taskResultImages
});Inside const metadata = parseBindingMetadata(input.metadataJson);
const cachedImages = readCachedTaskResultImages(metadata.taskResultImages);
// ^^^ always [] because buildBindingMetadata dropped the cacheThe image keys ARE persisted into the database (via Impact: In practice, task cards are rarely re-rendered for a terminal state (the structure signature guards against duplicate renders), so the practical impact is low. However, any reconciliation or forced re-render will re-upload images unnecessarily — wasting the caching code entirely. Fix direction: The simplest fix is to pass 2.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d3dfa180c9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d3dfa180c9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d3dfa180c9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Addressed the review feedback before merge: ebd2aca fixes task image cache reuse, batched finish-image permission reporting, and duplicate image attachment typing; 515d5bd retries task completion cards after transient finish-image upload failures and logs the task-status-card race fallback per current scope. All review threads are resolved, local preflight passed, and CI is green. |
Summary:
Tests: