Skip to content

Commit b7be7f0

Browse files
committed
refactor(agents): move client/viewOpened to a same-file extension (type_body_length)
1 parent 3598c26 commit b7be7f0

1 file changed

Lines changed: 13 additions & 10 deletions

File tree

Coder-Desktop/Coder-Desktop/Agents/AgentsService.swift

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -124,16 +124,6 @@ final class CoderAgentsService: AgentsService {
124124
UserDefaults.standard.set(owner, forKey: Defaults.transcriptOwner)
125125
}
126126

127-
var client: CoderSDK.Client? {
128-
state.client
129-
}
130-
131-
func viewOpened() {
132-
guard !didEmitViewOpened else { return }
133-
didEmitViewOpened = true
134-
telemetry.send(.agentsViewOpened)
135-
}
136-
137127
func reloadSessions() async {
138128
guard let client else { return }
139129
do {
@@ -386,3 +376,16 @@ extension CoderAgentsService {
386376
return cachedOrgID
387377
}
388378
}
379+
380+
// Same-file extension: private access preserved; keeps the type body under the lint cap.
381+
extension CoderAgentsService {
382+
var client: CoderSDK.Client? {
383+
state.client
384+
}
385+
386+
func viewOpened() {
387+
guard !didEmitViewOpened else { return }
388+
didEmitViewOpened = true
389+
telemetry.send(.agentsViewOpened)
390+
}
391+
}

0 commit comments

Comments
 (0)