Skip to content

Commit ec85709

Browse files
committed
Don't clear packages after heartbeat
1 parent cd4e444 commit ec85709

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/agent/Agent.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,9 @@ export class Agent {
304304
this.routes.clear();
305305
this.hostnames.clear();
306306
this.users.clear();
307-
this.packages.clear();
307+
// Note: packages are intentionally NOT cleared here because they persist
308+
// for the lifetime of the application. If cleared, the dashboard would
309+
// incorrectly show packages as "no longer in use" for long-running servers.
308310
const response = await this.api.report(
309311
this.token,
310312
{

0 commit comments

Comments
 (0)