| 947 | } |
| 948 | |
| 949 | void ChatRootView::relocateToWindow() |
| 950 | { |
| 951 | handOffSession(); |
| 952 | triggerOpenChatCommand(Constants::QODE_ASSIST_OPEN_CHAT_WINDOW_ACTION); |
| 953 | clearMessages(); |
| 954 | clearAttachmentFiles(); |
| 955 | emit closeHostRequested(); |
| 956 | |
| 957 | // Closing the source split raises the main window; re-raise the chat window once that |
| 958 | // queued teardown has run. The registry outlives this view, which the split close deletes. |
| 959 | if (auto registry = sessionFileRegistry()) { |
| 960 | QMetaObject::invokeMethod( |
| 961 | registry, |
| 962 | [] { |
| 963 | if (auto command = Core::ActionManager::command( |
| 964 | Constants::QODE_ASSIST_OPEN_CHAT_WINDOW_ACTION)) { |
| 965 | if (auto action = command->action()) |
| 966 | action->trigger(); |
| 967 | } |
| 968 | }, |
| 969 | Qt::QueuedConnection); |
| 970 | } |
| 971 | } |
| 972 | |
| 973 | void ChatRootView::updateInputTokensCount() |
| 974 | { |
nothing calls this directly
no outgoing calls
no test coverage detected