Skip to content

feat(agentic): add /goal mode, file-read edit guardrails, and workspace file transfer improvements#848

Merged
bobleer merged 4 commits into
GCWing:mainfrom
bobleer:feat/goal-mode-file-read-guardrails
May 24, 2026
Merged

feat(agentic): add /goal mode, file-read edit guardrails, and workspace file transfer improvements#848
bobleer merged 4 commits into
GCWing:mainfrom
bobleer:feat/goal-mode-file-read-guardrails

Conversation

@bobleer
Copy link
Copy Markdown
Collaborator

@bobleer bobleer commented May 24, 2026

Summary

  • Add session goal mode (/goal): synthesize a goal from session context via AI, persist goal state in session metadata, verify achievement after turns, and expose activate_session_goal through desktop API and frontend chat input.
  • Enforce file-read-before-edit guardrails: track per-session file read state, reject Edit until the target file was read with a non-partial view and content still matches, and improve agent prompts plus read-line-prefix parsing for reliable edits.
  • Improve workspace file handling: robust cross-platform clipboard path/URI parsing (macOS/Linux/Windows), workspace drag-and-drop transfer, and file explorer context-menu / paste flows with tests.

Test plan

  • Run /goal in an active chat session and confirm goal text, success criteria, and kickoff message are generated and persisted
  • Verify goal continuation and achievement verification across multiple dialog turns
  • Confirm Edit tool is blocked until the file is read in-session; succeeds after Read with matching content
  • Paste/drag files from clipboard into workspace on macOS (and Linux/Windows if available)
  • pnpm run lint:web && pnpm run type-check:web && pnpm --dir src/web-ui run test:run
  • cargo check --workspace && cargo test --workspace

@bobleer bobleer merged commit a95ac53 into GCWing:main May 24, 2026
4 checks passed
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