File tree Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,12 @@ export class CharmManager {
157157 ) ;
158158 // Use the space DID as the cause - it's derived from the space name
159159 // and consistently available everywhere
160- this . spaceCell = this . runtime . getSpaceCell ( this . space ) ;
160+ // For home space (where space DID = user identity DID), getHomeSpaceCell()
161+ // uses homeSpaceCellSchema which includes favorites for proper sync/query behavior.
162+ const isHomeSpace = this . space === this . runtime . userIdentityDID ;
163+ this . spaceCell = isHomeSpace
164+ ? this . runtime . getHomeSpaceCell ( )
165+ : this . runtime . getSpaceCell ( this . space ) ;
161166
162167 const syncSpaceCell = Promise . resolve ( this . spaceCell . sync ( ) ) ;
163168
Original file line number Diff line number Diff line change 1- export { Runtime , spaceCellSchema } from "./runtime.ts" ;
1+ export { homeSpaceCellSchema , Runtime , spaceCellSchema } from "./runtime.ts" ;
22export type {
33 CharmMetadata ,
44 ConsoleHandler ,
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ export interface SpaceCellContents {
9595 * Home space contains user-specific data like favorites that persists across all spaces.
9696 * See docs/common/HOME_SPACE.md for more details.
9797 */
98- export interface HomeSpaceCellContents {
98+ export interface HomeSpaceCellContents extends SpaceCellContents {
9999 favorites : Cell < { cell : Cell < unknown > ; tag : string } [ ] > ;
100100}
101101
@@ -128,6 +128,17 @@ export const spaceCellSchema: JSONSchema = {
128128export const homeSpaceCellSchema : JSONSchema = {
129129 type : "object" ,
130130 properties : {
131+ // Include all space cell properties
132+ allCharms : {
133+ type : "array" ,
134+ items : { not : true , asCell : true } ,
135+ } ,
136+ recentCharms : {
137+ type : "array" ,
138+ items : { not : true , asCell : true } ,
139+ } ,
140+ defaultPattern : { not : true , asCell : true } ,
141+ // Plus home-space-specific properties
131142 favorites : {
132143 type : "array" ,
133144 items : {
You can’t perform that action at this time.
0 commit comments