Skip to content

bug: workspace.last_used_at not updated when accessing coder_app #11509

Closed
@johnstcn

Description

@johnstcn

I just noticed now on my workspace vvuurrkk http://dev.coder.com|dev.coder.com that last_used_at is set to 5 days ago. I have been using this workspace consistently over the last few days.

This behaviour can also be observed with a newly created workspace:

https://dev.coder.com/api/v2/workspaces/86c99fd0-35ef-4443-ba0d-304885699478

Initial start:

"created_at": "2024-01-09T10:10:18.925754Z",
"updated_at": "2024-01-09T10:10:18.925754Z",
"last_used_at": "2024-01-09T10:10:18.925756Z",

After stop / start:

"created_at": "2024-01-09T10:10:18.925754Z",
"updated_at": "2024-01-09T10:10:18.925754Z",
"last_used_at": "2024-01-09T10:10:18.925756Z",

After opening code-server:

"created_at": "2024-01-09T10:10:18.925754Z",
"updated_at": "2024-01-09T10:10:18.925754Z",
"last_used_at": "2024-01-09T10:10:18.925756Z",

After opening web terminal (edit: just didn't leave it open long enough):

"last_used_at": "2024-01-09T10:10:18.925756Z",

After coder ssh <workspace>:

"last_used_at": "2024-01-09T10:19:46.010417Z",

Metadata

Metadata

Assignees

Labels

s1Bugs that break core workflows. Only humans may set this.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions