Skip to content

feat: adopt uteke 0.18.0 room lifecycle endpoints (rename, update, memory move) #341

Description

@ajianaz

Background

Uteke v0.18.0 (2026-09-14) shipped room lifecycle management (uteke#1202/#1203):

  • POST /room/rename — rename a room; server rewrites the registry row and every room_memories/room_documents reference in one transaction
  • POST /room/update — edit room title/description (omitted fields stay unchanged)
  • POST /room/memory/move — move a memory between rooms, preserving author/role/joined_at provenance

Audited against the v0.17.0..v0.18.0 diff: purely additive (811+/11- across 9 files), no changes to the ~55 endpoints corin already uses, retrieval behavior identical. No action is required for corin v0.4.0 compatibility — this issue is about adopting the new capabilities.

Scope

  1. UtekeClient (src-tauri/src/uteke_client.rs): add room_rename(old_id, new_id), room_update(room_id, title?, description?), room_memory_move(memory_id, from_room, to_room) following the existing request/response struct pattern
  2. Commands + IPC: expose Tauri commands (uteke_room_rename, uteke_room_update, uteke_room_memory_move) — follow the 5-file pattern (uteke_client.rscommands.rslib.rstypes.tsipc.ts)
  3. UI: actions in the Rooms view — rename (inline or modal), edit title/description, move memory to another room (picker on memory detail + room context menu)
  4. Compat gate: add roomLifecycle: [0, 18, 0] to MIN_VERSIONS in src/lib/ts/compat.ts; gate the new actions per the existing pattern (NamespacesView / NamespaceManager upgrade hints, UpgradePrompt), so corin stays fully functional against uteke ≥ 0.16.1

Out of scope

  • Ingest date anchors (--timestamp / import timestamps) — separate issue if wanted
  • Room deletion policy changes (existing room_delete unchanged)

Acceptance criteria

  • All three HTTP methods implemented with error handling consistent with json_checked usage (404 on missing room/link surfaced as readable errors)
  • UI actions visible and functional when server ≥ 0.18.0; gated with upgrade hint when older
  • Vitest coverage for the new compat entry; existing tests green
  • cargo fmt --all clean before opening the PR (lesson from v0.2.0)
  • CI fully green (Rust check/clippy/test, frontend type check/build/test, Cora Review)

References

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions