Skip to content

Github copilot token does not renew, after it expires #126

@mspik

Description

@mspik

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

Describe the bug
Github copilot token does not renew, after it expires I need to /login again.

To Reproduce
Steps to reproduce the behavior (linux):

  1. open eca in emacs
  2. enter /login + github-copilot
  3. authenticate with browser and confirm new token with new expires-at is present under ~/.cache/eca/db.transit.json
  4. After expires-at eca chat window returns "invalid token 401" and I need to authenticate again

Expected behavior

Doctor

> /doctor

ECA version: 0.56.2

Server cmd: /home/user/.emacs.d/eca/eca server

Default model: github-copilot/gpt-5

Login providers:
anthropic: {}
azure: {}
deepseek: {}
github-copilot: {:step :login/done, :device-code "ec7*****009", :access-token
"ghu*****jhK", :api-key "tid*****4c5", :expires-at 1758357397}
openai: {}
openrouter: {}
z-ai: {}

Relevant env vars:
DEBUGINFOD_URLS=https://debuginfod.ubuntu.com

Additional context
I'm honestly not sure if this is a bug or missing feature. I reported this as a bug because I found this commit: 1ad87dc commit message says: Fix token expiration for copilot and anthropic., but no copilot files were modified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions