File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33All notable changes to this project will be documented in this file.
44
5+ ## [ 0.6.1] - 2025-02-02
6+
7+ ### Fixed
8+
9+ - Fix ` ignored_agents ` matching to accept agent names with or without ` @ ` prefix
10+ - Both ` "time-tracking" ` and ` "@time-tracking" ` now work in configuration
11+
512## [ 0.6.0] - 2025-01-31
613
714### Breaking Changes
Original file line number Diff line number Diff line change 11{
22 "name" : " @techdivision/opencode-time-tracking" ,
3- "version" : " 0.6.0 " ,
3+ "version" : " 0.6.1 " ,
44 "description" : " Automatic time tracking plugin for OpenCode - tracks session duration and tool usage to CSV" ,
55 "main" : " src/Plugin.ts" ,
66 "types" : " src/Plugin.ts" ,
Original file line number Diff line number Diff line change @@ -192,8 +192,13 @@ export function createEventHook(
192192 // Get agent name if available
193193 const agentString = session . agent ?. name ?? null
194194
195- // Check if agent should be ignored
196- if ( agentString && config . ignored_agents ?. includes ( agentString ) ) {
195+ // Check if agent should be ignored (tolerant matching: with or without @ prefix)
196+ const normalizedAgent = agentString ?. replace ( / ^ @ / , "" )
197+ const isIgnoredAgent = config . ignored_agents ?. some (
198+ ( ignored ) => ignored . replace ( / ^ @ / , "" ) === normalizedAgent
199+ )
200+
201+ if ( agentString && isIgnoredAgent ) {
197202 await client . tui . showToast ( {
198203 body : {
199204 message : `Time tracking skipped for ${ agentString } (ignored agent)` ,
You can’t perform that action at this time.
0 commit comments