Skip to content

chore: Cursor messaging: enable context inject - #845

Merged
getappz merged 2 commits into
masterfrom
task/320-cursor-messaging-enable-context-inject
Oct 3, 2026
Merged

getappz merged 2 commits into
masterfrom
task/320-cursor-messaging-enable-context-inject

Conversation

@getappz

@getappz getappz commented Oct 3, 2026

Copy link
Copy Markdown
Owner

Implementing Cursor context inject for host_injects_context. Checking skills and current branch state first.Existing uncommitted changes on the branch — reviewing them against item #320 and #319 dependency.Uncommitted work looks mostly done; fixing duplicate #[test] attrs and finishing verification. lean-ctx DB is readonly — falling back to native read/search.Fixing orphaned tests, then checking post_tool_use emit paths and compiling.#319 is done. Retrying the test attribute fixes with smaller edits.Running fmt and targeted tests in the foreground.hook_messages.rs was corrupted by lean-ctx output — restoring from git and re-applying the real changes.Re-applying hook_messages.rs changes from the earlier diff onto the restored HEAD file.The patch failed on a missing semicolon in sync_with — fixing and reapplying.All 18 hook_messages tests passed. Fixing the unused agent warning, then running the parse tests.Status: done — 3aa9f35 on task/320-cursor-messaging-enable-context-inject

What changed

  • Added "cursor" to host_injects_context
  • MailSurface / takes_mail_on: take mail only on Cursor inject surfaces (sessionStart, postToolUse, stop); hold on beforeSubmitPrompt / allow-path preToolUse
  • Emit Cursor schema: flat additional_context, stop followup_message
  • Mid-turn Cursor mail via postToolUse (PendingCursorMail); parse conversation_id / workspace_roots

Tests (foreground): cargo fmt --all; cargo test --bin agentflare hook_messages (18 ok); accepts_cursor + related parse tests (4 ok)

Concerns

  • No live Cursor verification that inject reaches the model (docs-based; MCP piggyback remains backup)
  • Cursor beforeSubmitPrompt still cannot carry non-mail prompt context (optimize/memory) — messaging only on the three inject surfacesDone. Commit 3aa9f35 on task/320-cursor-messaging-enable-context-inject: Cursor is in host_injects_context, with inject on sessionStart / postToolUse / stop and mail held on surfaces that can’t inject. Unit tests for hook_messages and the Cursor parse paths passed.

Opened by cursor on flared:51bb8de6c33b for item #320 via agentflare.

@coderabbitai

coderabbitai Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Next included review available in 3 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available. Your 52 included PR review attempts over the past 7 days set your current allowance at 2 reviews per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: getappz/agentflare/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: cb0c42fe-c5f2-4526-964f-3ac7f031a982
📥 Commits

Reviewing files that changed from the base of the PR and between 7cca639 and fe1544a.

📒 Files selected for processing (5)
  • src/hook.rs
  • src/hook_completion_gate.rs
  • src/hook_messages.rs
  • src/init.rs
  • src/mcp_server/message.rs
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@getappz

getappz commented Oct 3, 2026

Copy link
Copy Markdown
Owner Author

Claiming self-repair for flared:51bb8de6c33b.

@getappz

getappz commented Oct 3, 2026

Copy link
Copy Markdown
Owner Author

supervisor — CI self-repair dispatched

Failing checks: clippy.

Please investigate and push a fix.

job: bVyO2meBJeJH4sTQX3lq6

shiva added 2 commits October 3, 2026 14:26
Co-authored-by: Cursor <cursoragent@cursor.com>

Agentflare-Agent: cursor
Agentflare-Branch: task/320-cursor-messaging-enable-context-inject
Agentflare-Item: 320
Drop unused agent arg from sync_with_take, scope sync_with to tests, and fix orphaned PostToolUse docs so CI clippy is green.

Co-authored-by: Cursor <cursoragent@cursor.com>

Agentflare-Agent: cursor
Agentflare-Branch: task/320-cursor-messaging-enable-context-inject
Agentflare-Item: 320
@getappz
getappz force-pushed the task/320-cursor-messaging-enable-context-inject branch from ae29aa3 to fe1544a Compare October 3, 2026 08:56
@getappz
getappz enabled auto-merge (squash) October 3, 2026 08:59
@getappz
getappz merged commit 5e1ad27 into master Oct 3, 2026
16 checks passed
@getappz
getappz deleted the task/320-cursor-messaging-enable-context-inject branch October 3, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant