Skip to content

fix(evi): drop the linear mcp connection and raise the session limits - #512

Merged
HugoRCD merged 1 commit into
mainfrom
fix/evi-drop-linear-connection
Aug 7, 2026
Merged

fix(evi): drop the linear mcp connection and raise the session limits#512
HugoRCD merged 1 commit into
mainfrom
fix/evi-drop-linear-connection

Conversation

@HugoRCD

@HugoRCD HugoRCD commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Two changes, both from what the EVL-213 run showed.

The Linear MCP connection is removed

It does not degrade when misconfigured — it takes the run down. On that thread every GitHub tool returned Cannot read properties of undefined (reading 'toLowerCase'), thrown from isProvisionableConnectorUid in @vercel/connect/dist/eve/provision-oauth-connector.js, the OAuth connector provisioning path this connection uses. Five calls, same error, and Evi finished the task by reading the repo over HTTP from the sandbox instead.

Local evals never caught it: provisionEveOAuthConnector returns early without an OIDC token, so the code only runs deployed. I said earlier that a broken connection would just mean "Evi answers without Linear" — that was wrong, and this is the correction.

The Linear channel stays. Only the MCP connection goes, until Connect can mint an app token for that connector.

Session limits raised

5M input was set defensively before there was anything to measure. That thread spent 2.8M input across two turns, so a conversation was about three turns from being cut off mid-thread. Now 20M input / 250k output — still half of eve's default, and it bounds a loop rather than a long conversation. Cost is not what these protect: that session billed $0.0103 at a 95% cache rate.

Also

AGENTS.md gains one line under "Code style — no slop": a comment states a durable constraint in one or two lines, and the investigation that produced it belongs in the PR body or a doc. Applied to the three agent/lib files here.

Testing

pnpm eval 16/16, 86 gates. eve info reports 0 errors, connections down to docs, channels unchanged. Lint and typecheck clean.

Summary by CodeRabbit

  • New Features
    • Increased supported session limits to accommodate substantially larger inputs and outputs.
  • Changes
    • Removed the built-in Linear connection option.
  • Documentation
    • Clarified channel naming, environment behavior, and spend-tag reporting.
    • Added guidance about OAuth connection configuration issues that can interrupt runs and affect GitHub tool availability.
    • Updated comment-writing guidance to favor concise descriptions of lasting constraints.

@changeset-bot

changeset-bot Bot commented Aug 7, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: ae284c1

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel

vercel Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
evi Ready Ready Preview Aug 7, 2026 9:58pm
evlog-docs Ready Ready Preview, v0 Aug 7, 2026 9:58pm
evlog-render-lab Ready Ready Preview Aug 7, 2026 9:58pm
evlog-telemetry Ready Ready Preview Aug 7, 2026 9:58pm
just-use-evlog Ready Ready Preview Aug 7, 2026 9:58pm

Request Review

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Thank you for following the naming conventions! 🙏

@pkg-pr-new

pkg-pr-new Bot commented Aug 7, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/@evlog/cli@512
npm i https://pkg.pr.new/evlog@512
npm i https://pkg.pr.new/@evlog/nuxthub@512
npm i https://pkg.pr.new/@evlog/telemetry@512

commit: ae284c1

@HugoRCD
HugoRCD merged commit 0a72717 into main Aug 7, 2026
17 of 18 checks passed
@HugoRCD HugoRCD self-assigned this Aug 7, 2026
@HugoRCD
HugoRCD deleted the fix/evi-drop-linear-connection branch August 7, 2026 21:59
@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: c16a15f8-da36-47ae-ab33-082360822833

📥 Commits

Reviewing files that changed from the base of the PR and between 80f5aec and ae284c1.

📒 Files selected for processing (7)
  • AGENTS.md
  • apps/evi/agent/agent.ts
  • apps/evi/agent/connections/linear.ts
  • apps/evi/agent/lib/channel.ts
  • apps/evi/agent/lib/environment.ts
  • apps/evi/agent/lib/gateway.ts
  • apps/evi/docs/notes.md

📝 Walkthrough

Walkthrough

The changes increase agent session token limits, remove the Linear MCP connection, document OAuth failure behavior, revise runtime metadata documentation, and add guidance for concise comments.

Changes

Agent configuration and documentation

Layer / File(s) Summary
Session limits and Linear connection behavior
apps/evi/agent/agent.ts, apps/evi/agent/connections/linear.ts, apps/evi/docs/notes.md
Session input and output limits increased. The Linear MCP connection was removed. The notes document related production OAuth failure behavior.
Runtime metadata documentation
apps/evi/agent/lib/channel.ts, apps/evi/agent/lib/environment.ts, apps/evi/agent/lib/gateway.ts
Documentation now describes channel names, environment labels, deployment-mode availability, and gateway request tags.
Comment-writing guidance
AGENTS.md
Comments must state concise, durable constraints without issue references, measurements, or historical narratives.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • HugoRCD/evlog#508: Introduced the session limits, runtime documentation areas, and Linear connection updated by this PR.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/evi-drop-linear-connection

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

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

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant