Fix OA workspace cover thumbnails and add space chat new session.
Resolve mindspace-cover images from workspace directories when generating feed thumbnails, refresh stale SVGs missing embedded photos, and disable thumbnail API caching so fixes take effect immediately. Also add a new session control to the space chat panel, including on mobile. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+2
-2
@@ -1942,7 +1942,7 @@ api.get('/mindspace/v1/assets/:assetId/thumbnail', async (req, res) => {
|
||||
try {
|
||||
const svg = await mindSpaceAssets.renderAssetThumbnail(req.currentUser.id, req.params.assetId);
|
||||
res.set('Content-Type', 'image/svg+xml; charset=utf-8');
|
||||
res.set('Cache-Control', 'private, max-age=300');
|
||||
res.set('Cache-Control', 'private, no-cache');
|
||||
res.setHeader('X-Request-Id', req.requestId);
|
||||
return res.send(svg);
|
||||
} catch (error) {
|
||||
@@ -2614,7 +2614,7 @@ api.get('/mindspace/v1/pages/:pageId/thumbnail', async (req, res) => {
|
||||
try {
|
||||
const svg = await mindSpacePages.renderThumbnail(req.currentUser.id, req.params.pageId);
|
||||
res.set('Content-Type', 'image/svg+xml; charset=utf-8');
|
||||
res.set('Cache-Control', 'private, max-age=300');
|
||||
res.set('Cache-Control', 'private, no-cache');
|
||||
res.setHeader('X-Request-Id', req.requestId);
|
||||
return res.send(svg);
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user