* Get the task mode asynchronously, ensuring it's properly initialized. * This is the recommended way to access the task mode as it guarantees * the mode is available before returning. * * ## Async behavior * - Internally waits for `taskModeReady` promise to resolve * - Returns the initi
()
| 768 | * @public |
| 769 | */ |
| 770 | public async getTaskMode(): Promise<string> { |
| 771 | await this.taskModeReady |
| 772 | return this._taskMode || defaultModeSlug |
| 773 | } |
| 774 | |
| 775 | /** |
| 776 | * Get the task mode synchronously. This should only be used when you're certain |