Skip to content

fix(sessions): remove agentRules spawn path#159

Merged
harshitsinghbhandari merged 1 commit into
mainfrom
fix/remove-agent-rules-internals
Jun 8, 2026
Merged

fix(sessions): remove agentRules spawn path#159
harshitsinghbhandari merged 1 commit into
mainfrom
fix/remove-agent-rules-internals

Conversation

@harshitsinghbhandari

@harshitsinghbhandari harshitsinghbhandari commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • remove the existing per-spawn agentRules / --rules path from CLI, API DTOs, and session manager prompt assembly
  • regenerate OpenAPI and frontend API schema so SpawnSessionRequest.agentRules is no longer advertised

Why

Persistent or ad-hoc project instructions should flow through the system prompt / repo-local AGENTS.md model rather than a separate agentRules prompt-concatenation path.

Tests

  • cd backend && go test ./internal/session_manager ./internal/httpd/controllers ./internal/httpd/apispec ./internal/cli
  • cd backend && go test ./...

Notes

  • npm run api could not complete locally because dependencies are not installed (openapi-typescript missing from local node_modules), so I regenerated the TS schema with npx openapi-typescript@7.4.4 backend/internal/httpd/apispec/openapi.yaml -o frontend/src/api/schema.ts.
  • Worker session aa-77 is updating PR feat(config): persist per-project agent config and resolve it at spawn #154 to remove the new project-config rules fields and future-only config fields; I sent it conflict-avoidance notes for this branch.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

harshitsinghbhandari has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@harshitsinghbhandari harshitsinghbhandari force-pushed the fix/remove-agent-rules-internals branch from 189fc8f to 255c50f Compare June 8, 2026 13:40

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

harshitsinghbhandari has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@harshitsinghbhandari harshitsinghbhandari merged commit 5071364 into main Jun 8, 2026
8 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