Skip to content

feat: add project context UI in settings panel#63

Merged
nonogv merged 1 commit into
mainfrom
feat/ui-project-context
Jun 6, 2026
Merged

feat: add project context UI in settings panel#63
nonogv merged 1 commit into
mainfrom
feat/ui-project-context

Conversation

@nonogv

@nonogv nonogv commented Jun 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds WebSocket message types and state for per-project context (ProjectState, ContextState)
  • Extends Settings panel with Project, Instructions, and Memories sections (global + per-project layers)
  • Adds ProjectStaleBanner amber warning bar with "Update Memories" and dismiss actions

What was NOT touched

  • src/storage.ts, src/server.ts, src/agent/chat.ts (backend PRs handle server contract)

Tradeoffs

  • Settings textareas use local draft state synced from server context on prop change, so unsaved edits are preserved until the server pushes new context
  • context_saved dismisses the stale banner locally; full memory refresh requires the backend PR

Test plan

  • npm run build passes
  • Open settings → switch/create project, verify slug display and Clear
  • Edit global/project instructions and memories; project fields disabled without active slug
  • Stale banner appears on project_stale message; Update Memories sends refresh_project_memories

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
@nonogv nonogv force-pushed the feat/ui-project-context branch from 238def8 to 8d92de3 Compare June 6, 2026 17:39
@nonogv nonogv merged commit 8e7d6d3 into main Jun 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant