Skip to content

Conversation

@Oba-One
Copy link
Member

@Oba-One Oba-One commented Aug 14, 2025

Adds an AI Work Assistant to enable offline, AI-assisted work session data capture and integration with existing IPFS/EAS submission.


Open in Cursor Open in Web

@cursor
Copy link

cursor bot commented Aug 14, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@vercel
Copy link

vercel bot commented Aug 14, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Project Deployment Preview Comments Updated (UTC)
green-goods 🔄 Building Preview Comment Aug 14, 2025 7:04am

const mediaToSend = pinnedMediaCIDs ? (pinnedMediaCIDs as unknown as File[]) : images;
const ctxActions = [] as Action[];
return submitWorkToQueue(draft, gardenAddress!, actionUID!, ctxActions, chainId, images);
return submitWorkToQueue(draft, gardenAddress!, actionUID!, ctxActions, chainId, mediaToSend);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Type Casting Error in Media Submission

The pinnedMediaCIDs array, which holds IPFS CIDs as strings, is incorrectly cast to File[] when passed to submitWorkToQueue. This causes runtime errors as the submission logic attempts to process strings as file objects, despite the media payload now supporting (File | string)[].

Fix in Cursor Fix in Web

Base automatically changed from feat/offline-support to develop August 17, 2025 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

3 participants